wip
This commit is contained in:
1 parent
a26c555b05
commit
cec5a5e2f7
20 files changed
+211
-120
No files matched your search
@@ -0,0 +1 @@
|
||||
var Oi=Object.create;var yn=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ei=Object.getOwnPropertyNames;var zi=Object.getPrototypeOf,Ii=Object.prototype.hasOwnProperty;var k=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var qi=(n,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Ei(t))!Ii.call(n,e)&&e!==a&&yn(n,e,{get:()=>t[e],enumerable:!(i=Ai(t,e))||i.enumerable});return n};var se=(n,t,a)=>(a=n!=null?Oi(zi(n)):{},qi(t||!n||!n.__esModule?yn(a,"default",{value:n,enumerable:!0}):a,n));var $n=k((je,He)=>{(function(n,t){typeof je=="object"&&typeof He<"u"?He.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=t()})(je,function(){"use strict";return function(n,t){var a=t.prototype,i=a.format;a.format=function(e){var r=this,o=this.$locale();if(!this.isValid())return i.bind(this)(e);var _=this.$utils(),m=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(u){switch(u){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return o.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return o.ordinal(r.week(),"W");case"w":case"ww":return _.s(r.week(),u==="w"?1:2,"0");case"W":case"WW":return _.s(r.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return _.s(String(r.$H===0?24:r.$H),u==="k"?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return u}});return i.bind(this)(m)}}})});var Cn=k((we,Te)=>{(function(n,t){typeof we=="object"&&typeof Te<"u"?Te.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=t()})(we,function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,e=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},_=function(f){return(f=+f)+(f>68?1900:2e3)},m=function(f){return function(h){this[f]=+h}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var y=h.match(/([+-]|\d\d)/g),Y=60*y[1]+(+y[2]||0);return Y===0?0:y[0]==="+"?-Y:Y}(f)}],l=function(f){var h=o[f];return h&&(h.indexOf?h:h.s.concat(h.f))},M=function(f,h){var y,Y=o.meridiem;if(Y){for(var v=1;v<=24;v+=1)if(f.indexOf(Y(v,0,h))>-1){y=v>12;break}}else y=f===(h?"pm":"PM");return y},s={A:[r,function(f){this.afternoon=M(f,!1)}],a:[r,function(f){this.afternoon=M(f,!0)}],Q:[a,function(f){this.month=3*(f-1)+1}],S:[a,function(f){this.milliseconds=100*+f}],SS:[i,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[e,m("seconds")],ss:[e,m("seconds")],m:[e,m("minutes")],mm:[e,m("minutes")],H:[e,m("hours")],h:[e,m("hours")],HH:[e,m("hours")],hh:[e,m("hours")],D:[e,m("day")],DD:[i,m("day")],Do:[r,function(f){var h=o.ordinal,y=f.match(/\d+/);if(this.day=y[0],h)for(var Y=1;Y<=31;Y+=1)h(Y).replace(/\[|\]/g,"")===f&&(this.day=Y)}],w:[e,m("week")],ww:[i,m("week")],M:[e,m("month")],MM:[i,m("month")],MMM:[r,function(f){var h=l("months"),y=(l("monthsShort")||h.map(function(Y){return Y.slice(0,3)})).indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[r,function(f){var h=l("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,m("year")],YY:[i,function(f){this.year=_(f)}],YYYY:[/\d{4}/,m("year")],Z:u,ZZ:u};function d(f){var h,y;h=f,y=o&&o.formats;for(var Y=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,H,N){var F=N&&N.toUpperCase();return H||y[N]||n[N]||y[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,p,c){return p||c.slice(1)})})).match(t),v=Y.length,g=0;g<v;g+=1){var C=Y[g],A=s[C],I=A&&A[0],q=A&&A[1];Y[g]=q?{regex:I,parser:q}:C.replace(/^\[|\]$/g,"")}return function($){for(var H={},N=0,F=0;N<v;N+=1){var S=Y[N];if(typeof S=="string")F+=S.length;else{var p=S.regex,c=S.parser,L=$.slice(F),D=p.exec(L)[0];c.call(H,D),$=$.replace(D,"")}}return function(b){var j=b.afternoon;if(j!==void 0){var T=b.hours;j?T<12&&(b.hours+=12):T===12&&(b.hours=0),delete b.afternoon}}(H),H}}return function(f,h,y){y.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(_=f.parseTwoDigitYear);var Y=h.prototype,v=Y.parse;Y.parse=function(g){var C=g.date,A=g.utc,I=g.args;this.$u=A;var q=I[1];if(typeof q=="string"){var $=I[2]===!0,H=I[3]===!0,N=$||H,F=I[2];H&&(F=I[2]),o=this.$locale(),!$&&F&&(o=y.Ls[F]),this.$d=function(L,D,b,j){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*L);var T=d(D)(L),z=T.year,x=T.month,W=T.day,P=T.hours,X=T.minutes,K=T.seconds,re=T.milliseconds,V=T.zone,U=T.week,Z=new Date,Q=W||(z||x?1:Z.getDate()),ee=z||Z.getFullYear(),fe=0;z&&!x||(fe=x>0?x-1:Z.getMonth());var me,pe=P||0,De=X||0,Le=K||0,ve=re||0;return V?new Date(Date.UTC(ee,Line truncated
|
||||
Reference in new issue
Block a user