mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
2 lines
11 KiB
JavaScript
Vendored
2 lines
11 KiB
JavaScript
Vendored
import{c as B}from"./@babel.f9bcab46.js";var Q={exports:{}};(function(F,E){(function(I,_){F.exports=_()})(B,function(){var I={year:0,month:1,day:2,hour:3,minute:4,second:5},_={};return function(P,j,g){var O,c=function($,d,o){o===void 0&&(o={});var r=new Date($),h=function(p,y){y===void 0&&(y={});var v=y.timeZoneName||"short",b=p+"|"+v,D=_[b];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:p,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),_[b]=D),D}(d,o);return h.formatToParts(r)},Y=function($,d){for(var o=c($,d),r=[],h=0;h<o.length;h+=1){var p=o[h],y=p.type,v=p.value,b=I[y];b>=0&&(r[b]=parseInt(v,10))}var D=r[3],T=D===24?0:D,H=r[0]+"-"+r[1]+"-"+r[2]+" "+T+":"+r[4]+":"+r[5]+":000",L=+$;return(g.utc(H).valueOf()-(L-=L%1e3))/6e4},k=j.prototype;k.tz=function($,d){$===void 0&&($=O);var o,r=this.utcOffset(),h=this.toDate(),p=h.toLocaleString("en-US",{timeZone:$}),y=Math.round((h-new Date(p))/1e3/60),v=15*-Math.round(h.getTimezoneOffset()/15)-y;if(!Number(v))o=this.utcOffset(0,d);else if(o=g(p,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),d){var b=o.utcOffset();o=o.add(r-b,"minute")}return o.$x.$timezone=$,o},k.offsetName=function($){var d=this.$x.$timezone||g.tz.guess(),o=c(this.valueOf(),d,{timeZoneName:$}).find(function(r){return r.type.toLowerCase()==="timezonename"});return o&&o.value};var w=k.startOf;k.startOf=function($,d){if(!this.$x||!this.$x.$timezone)return w.call(this,$,d);var o=g(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return w.call(o,$,d).tz(this.$x.$timezone,!0)},g.tz=function($,d,o){var r=o&&d,h=o||d||O,p=Y(+g(),h);if(typeof $!="string")return g($).tz(h);var y=function(T,H,L){var C=T-60*H*1e3,m=Y(C,L);if(H===m)return[C,H];var f=Y(C-=60*(m-H)*1e3,L);return m===f?[C,m]:[T-60*Math.min(m,f)*1e3,Math.max(m,f)]}(g.utc($,r).valueOf(),p,h),v=y[0],b=y[1],D=g(v).utcOffset(b);return D.$x.$timezone=h,D},g.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},g.tz.setDefault=function($){O=$}}})})(Q);var et=Q.exports,K={exports:{}};(function(F,E){(function(I,_){F.exports=_()})(B,function(){var I="minute",_=/[+-]\d\d(?::?\d\d)?/g,P=/([+-]|\d\d)/g;return function(j,g,O){var c=g.prototype;O.utc=function(r){var h={date:r,utc:!0,args:arguments};return new g(h)},c.utc=function(r){var h=O(this.toDate(),{locale:this.$L,utc:!0});return r?h.add(this.utcOffset(),I):h},c.local=function(){return O(this.toDate(),{locale:this.$L,utc:!1})};var Y=c.parse;c.parse=function(r){r.utc&&(this.$u=!0),this.$utils().u(r.$offset)||(this.$offset=r.$offset),Y.call(this,r)};var k=c.init;c.init=function(){if(this.$u){var r=this.$d;this.$y=r.getUTCFullYear(),this.$M=r.getUTCMonth(),this.$D=r.getUTCDate(),this.$W=r.getUTCDay(),this.$H=r.getUTCHours(),this.$m=r.getUTCMinutes(),this.$s=r.getUTCSeconds(),this.$ms=r.getUTCMilliseconds()}else k.call(this)};var w=c.utcOffset;c.utcOffset=function(r,h){var p=this.$utils().u;if(p(r))return this.$u?0:p(this.$offset)?w.call(this):this.$offset;if(typeof r=="string"&&(r=function(D){D===void 0&&(D="");var T=D.match(_);if(!T)return null;var H=(""+T[0]).match(P)||["-",0,0],L=H[0],C=60*+H[1]+ +H[2];return C===0?0:L==="+"?C:-C}(r),r===null))return this;var y=Math.abs(r)<=16?60*r:r,v=this;if(h)return v.$offset=y,v.$u=r===0,v;if(r!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(y+b,I)).$offset=y,v.$x.$localOffset=b}else v=this.utc();return v};var $=c.format;c.format=function(r){var h=r||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return $.call(this,h)},c.valueOf=function(){var r=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*r},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var d=c.toDate;c.toDate=function(r){return r==="s"&&this.$offset?O(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var o=c.diff;c.diff=function(r,h,p){if(r&&this.$u===r.$u)return o.call(this,r,h,p);var y=this.local(),v=O(r).local();return o.call(y,v,h,p)}}})})(K);var nt=K.exports,X={exports:{}};(function(F,E){(function(I,_){F.exports=_()})(B,function(){var I=1e3,_=6e4,P=36e5,j="millisecond",g="second",O="minute",c="hour",Y="day",k="week",w="month",$="quarter",d="year",o="date",r="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},v=function(s,n,t){var i=String(s);return!i||i.length>=n?s:""+Array(n+1-i.length).join(t)+s},b={s:v,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),i=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+v(i,2,"0")+":"+v(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var i=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(i,w),u=t-e<0,a=n.clone().add(i+(u?-1:1),w);return+(-(i+(t-e)/(u?e-a:a-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:w,y:d,w:k,d:Y,D:o,h:c,m:O,s:g,ms:j,Q:$}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},D="en",T={};T[D]=y;var H="$isDayjsObject",L=function(s){return s instanceof R||!(!s||!s[H])},C=function s(n,t,i){var e;if(!n)return D;if(typeof n=="string"){var u=n.toLowerCase();T[u]&&(e=u),t&&(T[u]=t,e=u);var a=n.split("-");if(!e&&a.length>1)return s(a[0])}else{var l=n.name;T[l]=n,e=l}return!i&&e&&(D=e),e||!i&&D},m=function(s,n){if(L(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new R(t)},f=b;f.l=C,f.i=L,f.w=function(s,n){return m(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var R=function(){function s(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[H]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(i){var e=i.date,u=i.utc;if(e===null)return new Date(NaN);if(f.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(h);if(a){var l=a[2]-1||0,M=(a[7]||"0").substring(0,3);return u?new Date(Date.UTC(a[1],l,a[3]||1,a[4]||0,a[5]||0,a[6]||0,M)):new Date(a[1],l,a[3]||1,a[4]||0,a[5]||0,a[6]||0,M)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return f},n.isValid=function(){return this.$d.toString()!==r},n.isSame=function(t,i){var e=m(t);return this.startOf(i)<=e&&e<=this.endOf(i)},n.isAfter=function(t,i){return m(t)<this.startOf(i)},n.isBefore=function(t,i){return this.endOf(i)<m(t)},n.$g=function(t,i,e){return f.u(t)?this[i]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,i){var e=this,u=!!f.u(i)||i,a=f.p(t),l=function(W,z){var Z=f.w(e.$u?Date.UTC(e.$y,z,W):new Date(e.$y,z,W),e);return u?Z:Z.endOf(Y)},M=function(W,z){return f.w(e.toDate()[W].apply(e.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(z)),e)},S=this.$W,x=this.$M,U=this.$D,A="set"+(this.$u?"UTC":"");switch(a){case d:return u?l(1,0):l(31,11);case w:return u?l(1,x):l(0,x+1);case k:var N=this.$locale().weekStart||0,q=(S<N?S+7:S)-N;return l(u?U-q:U+(6-q),x);case Y:case o:return M(A+"Hours",0);case c:return M(A+"Minutes",1);case O:return M(A+"Seconds",2);case g:return M(A+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,i){var e,u=f.p(t),a="set"+(this.$u?"UTC":""),l=(e={},e[Y]=a+"Date",e[o]=a+"Date",e[w]=a+"Month",e[d]=a+"FullYear",e[c]=a+"Hours",e[O]=a+"Minutes",e[g]=a+"Seconds",e[j]=a+"Milliseconds",e)[u],M=u===Y?this.$D+(i-this.$W):i;if(u===w||u===d){var S=this.clone().set(o,1);S.$d[l](M),S.init(),this.$d=S.set(o,Math.min(this.$D,S.daysInMonth())).$d}else l&&this.$d[l](M);return this.init(),this},n.set=function(t,i){return this.clone().$set(t,i)},n.get=function(t){return this[f.p(t)]()},n.add=function(t,i){var e,u=this;t=Number(t);var a=f.p(i),l=function(x){var U=m(u);return f.w(U.date(U.date()+Math.round(x*t)),u)};if(a===w)return this.set(w,this.$M+t);if(a===d)return this.set(d,this.$y+t);if(a===Y)return l(1);if(a===k)return l(7);var M=(e={},e[O]=_,e[c]=P,e[g]=I,e)[a]||1,S=this.$d.getTime()+t*M;return f.w(S,this)},n.subtract=function(t,i){return this.add(-1*t,i)},n.format=function(t){var i=this,e=this.$locale();if(!this.isValid())return e.invalidDate||r;var u=t||"YYYY-MM-DDTHH:mm:ssZ",a=f.z(this),l=this.$H,M=this.$m,S=this.$M,x=e.weekdays,U=e.months,A=e.meridiem,N=function(z,Z,J,V){return z&&(z[Z]||z(i,u))||J[Z].slice(0,V)},q=function(z){return f.s(l%12||12,z,"0")},W=A||function(z,Z,J){var V=z<12?"AM":"PM";return J?V.toLowerCase():V};return u.replace(p,function(z,Z){return Z||function(J){switch(J){case"YY":return String(i.$y).slice(-2);case"YYYY":return f.s(i.$y,4,"0");case"M":return S+1;case"MM":return f.s(S+1,2,"0");case"MMM":return N(e.monthsShort,S,U,3);case"MMMM":return N(U,S);case"D":return i.$D;case"DD":return f.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return N(e.weekdaysMin,i.$W,x,2);case"ddd":return N(e.weekdaysShort,i.$W,x,3);case"dddd":return x[i.$W];case"H":return String(l);case"HH":return f.s(l,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return W(l,M,!0);case"A":return W(l,M,!1);case"m":return String(M);case"mm":return f.s(M,2,"0");case"s":return String(i.$s);case"ss":return f.s(i.$s,2,"0");case"SSS":return f.s(i.$ms,3,"0");case"Z":return a}return null}(z)||a.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,i,e){var u,a=this,l=f.p(i),M=m(t),S=(M.utcOffset()-this.utcOffset())*_,x=this-M,U=function(){return f.m(a,M)};switch(l){case d:u=U()/12;break;case w:u=U();break;case $:u=U()/3;break;case k:u=(x-S)/6048e5;break;case Y:u=(x-S)/864e5;break;case c:u=x/P;break;case O:u=x/_;break;case g:u=x/I;break;default:u=x}return e?u:f.a(u)},n.daysInMonth=function(){return this.endOf(w).$D},n.$locale=function(){return T[this.$L]},n.locale=function(t,i){if(!t)return this.$L;var e=this.clone(),u=C(t,i,!0);return u&&(e.$L=u),e},n.clone=function(){return f.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s}(),G=R.prototype;return m.prototype=G,[["$ms",j],["$s",g],["$m",O],["$H",c],["$W",Y],["$M",w],["$y",d],["$D",o]].forEach(function(s){G[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),m.extend=function(s,n){return s.$i||(s(n,R,m),s.$i=!0),m},m.locale=C,m.isDayjs=L,m.unix=function(s){return m(1e3*s)},m.en=T[D],m.Ls=T,m.p={},m})})(X);var rt=X.exports;export{nt as a,et as b,rt as v};
|