2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
import{c as t}from"./call-bind-af784638.js";var e={};({get exports(){return e},set exports(t){e=t}}).exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",i="minute",o="hour",a="day",u="week",h="month",c="quarter",f="year",d="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,M={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(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},p={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,h),i=n-s<0,o=e.clone().add(r+(i?-1:1),h);return+(-(r+(n-s)/(i?s-o:o-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:f,w:u,d:a,D:d,h:o,m:i,s:s,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",g={};g[v]=M;var w=function(t){return t instanceof k},D=function t(e,n,r){var s;if(!e)return v;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(s=i),n&&(g[i]=n,s=i);var o=e.split("-");if(!s&&o.length>1)return t(o[0])}else{var a=e.name;g[a]=e,s=a}return!r&&s&&(v=s),s||!r&&v},S=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},Y=p;Y.l=D,Y.i=w,Y.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function M(t){this.$L=D(t.locale,null,!0),this.parse(t)}var y=M.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(Y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.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()},y.$utils=function(){return Y},y.isValid=function(){return!(this.$d.toString()===l)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,n){return Y.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!Y.u(e)||e,c=Y.p(t),l=function(t,e){var s=Y.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},m=function(t,e){return Y.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},$=this.$W,M=this.$M,y=this.$D,p="set"+(this.$u?"UTC":"");switch(c){case f:return r?l(1,0):l(31,11);case h:return r?l(1,M):l(0,M+1);case u:var v=this.$locale().weekStart||0,g=($<v?$+7:$)-v;return l(r?y-g:y+(6-g),M);case a:case d:return m(p+"Hours",0);case o:return m(p+"Minutes",1);case i:return m(p+"Seconds",2);case s:return m(p+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,u=Y.p(t),c="set"+(this.$u?"UTC":""),l=(n={},n[a]=c+"Date",n[d]=c+"Date",n[h]=c+"Month",n[f]=c+"FullYear",n[o]=c+"Hours",n[i]=c+"Minutes",n[s]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],m=u===a?this.$D+(e-this.$W):e;if(u===h||u===f){var $=this.clone().set(d,1);$.$d[l](m),$.init(),this.$d=$.set(d,Math.min(this.$D,$.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[Y.p(t)]()},y.add=function(r,c){var d,l=this;r=Number(r);var m=Y.p(c),$=function(t){var e=S(l);return Y.w(e.date(e.date()+Math.round(t*r)),l)};if(m===h)return this.set(h,this.$M+r);if(m===f)return this.set(f,this.$y+r);if(m===a)return $(1);if(m===u)return $(7);var M=(d={},d[i]=e,d[o]=n,d[s]=t,d)[m]||1,y=this.$d.getTime()+r*M;return Y.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=Y.z(this),i=this.$H,o=this.$m,a=this.$M,u=n.weekdays,h=n.months,c=function(t,n,s,i){return t&&(t[n]||t(e,r))||s[n].slice(0,i)},f=function(t){return Y.s(i%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:Y.s(a+1,2,"0"),MMM:c(n.monthsShort,a,h,3),MMMM:c(h,a),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:Y.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,o,!0),A:d(i,o,!1),m:String(o),mm:Y.s(o,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:s};return r.replace($,(function(t,e){return e||m[t]||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,d,l){var m,$=Y.p(d),M=S(r),y=(M.utcOffset()-this.utcOffset())*e,p=this-M,v=Y.m(this,M);return v=(m={},m[f]=v/12,m[h]=v,m[c]=v/3,m[u]=(p-y)/6048e5,m[a]=(p-y)/864e5,m[o]=p/n,m[i]=p/e,m[s]=p/t,m)[$]||p,l?v:Y.a(v)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return g[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=D(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return Y.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},M}(),x=k.prototype;return S.prototype=x,[["$ms",r],["$s",s],["$m",i],["$H",o],["$W",a],["$M",h],["$y",f],["$D",d]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,k,S),t.$i=!0),S},S.locale=D,S.isDayjs=w,S.unix=function(t){return S(1e3*t)},S.en=g[v],S.Ls=g,S.p={},S}();const n=e;var r={};({get exports(){return r},set exports(t){r=t}}).exports=function(){var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},o=function(t){return(t=+t)+(t>68?1900:2e3)},a=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],h=function(t){var e=i[t];return e&&(e.indexOf?e:e.s.concat(e.f))},c=function(t,e){var n,r=i.meridiem;if(r){for(var s=1;s<=24;s+=1)if(t.indexOf(r(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},f={A:[s,function(t){this.afternoon=c(t,!1)}],a:[s,function(t){this.afternoon=c(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[s,function(t){var e=i.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[s,function(t){var e=h("months"),n=(h("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=h("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=o(t)}],YYYY:[/\d{4}/,a("year")],Z:u,ZZ:u};function d(n){var r,s;r=n,s=i&&i.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var i=r&&r.toUpperCase();return n||s[r]||t[r]||s[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=o.length,u=0;u<a;u+=1){var h=o[u],c=f[h],d=c&&c[0],l=c&&c[1];o[u]=l?{regex:d,parser:l}:h.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var s=o[n];if("string"==typeof s)r+=s.length;else{var i=s.regex,u=s.parser,h=t.slice(r),c=i.exec(h)[0];u.call(e,c),t=t.replace(c,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var r=e.prototype,s=r.parse;r.parse=function(t){var e=t.date,r=t.utc,o=t.args;this.$u=r;var a=o[1];if("string"==typeof a){var u=!0===o[2],h=!0===o[3],c=u||h,f=o[2];h&&(f=o[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=d(e)(t),s=r.year,i=r.month,o=r.day,a=r.hours,u=r.minutes,h=r.seconds,c=r.milliseconds,f=r.zone,l=new Date,m=o||(s||i?1:l.getDate()),$=s||l.getFullYear(),M=0;s&&!i||(M=i>0?i-1:l.getMonth());var y=a||0,p=u||0,v=h||0,g=c||0;return f?new Date(Date.UTC($,M,m,y,p,v,g+60*f.offset*1e3)):n?new Date(Date.UTC($,M,m,y,p,v,g)):new Date($,M,m,y,p,v,g)}catch(w){return new Date("")}}(e,a,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),c&&e!=this.format(a)&&(this.$d=new Date("")),i={}}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){o[1]=a[m-1];var $=n.apply(this,o);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}m===l&&(this.$d=new Date(""))}else s.call(this,t)}}}();const s=r;var i={};({get exports(){return i},set exports(t){i=t}}).exports=function(t,e,n){var r=e.prototype,s=function(t){return t&&(t.indexOf?t:t.s)},i=function(t,e,n,r,i){var o=t.name?t:t.$locale(),a=s(o[e]),u=s(o[n]),h=a||u.map((function(t){return t.slice(0,r)}));if(!i)return h;var c=o.weekStart;return h.map((function(t,e){return h[(e+(c||0))%7]}))},o=function(){return n.Ls[n.locale()]},a=function(t,e){return t.formats[e]||t.formats[e.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))},u=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):i(t,"months")},monthsShort:function(e){return e?e.format("MMM"):i(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):i(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):i(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):i(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return i(o(),"months")},n.monthsShort=function(){return i(o(),"monthsShort","months",3)},n.weekdays=function(t){return i(o(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return i(o(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return i(o(),"weekdaysMin","weekdays",2,t)}};const o=i;var a={};({get exports(){return a},set exports(t){a=t}}).exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var s=this.$utils(),i=(t||"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(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return r.bind(this)(i)}};const u=a;var h,c,f={};({get exports(){return f},set exports(t){f=t}}).exports=(h="week",c="year",function(t,e,n){var r=e.prototype;r.week=function(t){if(void 0===t&&(t=null),null!==t)return this.add(7*(t-this.week()),"day");var e=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=n(this).startOf(c).add(1,c).date(e),s=n(this).endOf(h);if(r.isBefore(s))return 1}var i=n(this).startOf(c).date(e).startOf(h).subtract(1,"millisecond"),o=this.diff(i,h,!0);return o<0?n(this).startOf("week").week():Math.ceil(o)},r.weeks=function(t){return void 0===t&&(t=null),this.week(t)}});const d=f;var l={};({get exports(){return l},set exports(t){l=t}}).exports=function(t,e){e.prototype.weekYear=function(){var t=this.month(),e=this.week(),n=this.year();return 1===e&&11===t?n+1:0===t&&e>=52?n-1:n}};const m=l;var $={};({get exports(){return $},set exports(t){$=t}}).exports=function(t,e,n){e.prototype.dayOfYear=function(t){var e=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"day")}};const M=$;var y={};({get exports(){return y},set exports(t){y=t}}).exports=function(t,e){e.prototype.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)}};const p=y;var v={};({get exports(){return v},set exports(t){v=t}}).exports=function(t,e){e.prototype.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)}};const g=v;var w={};({get exports(){return w},set exports(t){w=t}}).exports=function(){var t,e,n=1e3,r=6e4,s=36e5,i=864e5,o=/\[([^\]]+)]|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,a=31536e6,u=2592e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:a,months:u,days:i,hours:s,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(t){return t instanceof p},d=function(t,e,n){return new p(t,n,e.$l)},l=function(t){return e.p(t)+"s"},m=function(t){return t<0},$=function(t){return m(t)?Math.ceil(t):Math.floor(t)},M=function(t){return Math.abs(t)},y=function(t,e){return t?m(t)?{negative:!0,format:""+M(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function m(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return d(t*c[l(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){r.$d[l(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var s=t.match(h);if(s){var i=s.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var M=m.prototype;return M.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*c[n]}),0)},M.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/a),t%=a,this.$d.months=$(t/u),t%=u,this.$d.days=$(t/i),t%=i,this.$d.hours=$(t/s),t%=s,this.$d.minutes=$(t/r),t%=r,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},M.toISOString=function(){var t=y(this.$d.years,"Y"),e=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),s=y(this.$d.hours,"H"),i=y(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3);var a=y(o,"S"),u=t.negative||e.negative||r.negative||s.negative||i.negative||a.negative,h=s.format||i.format||a.format?"T":"",c=(u?"-":"")+"P"+t.format+e.format+r.format+h+s.format+i.format+a.format;return"P"===c||"-P"===c?"P0D":c},M.toJSON=function(){return this.toISOString()},M.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(t,e){return e||String(r[t])}))},M.as=function(t){return this.$ms/c[l(t)]},M.get=function(t){var e=this.$ms,n=l(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?$(e/c[n]):this.$d[n],0===e?0:e},M.add=function(t,e,n){var r;return r=e?t*c[l(e)]:f(t)?t.$ms:d(t,this).$ms,d(this.$ms+r*(n?-1:1),this)},M.subtract=function(t,e){return this.add(t,e,!0)},M.locale=function(t){var e=this.clone();return e.$l=t,e},M.clone=function(){return d(this.$ms,this)},M.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},m}();return function(n,r,s){t=s,e=s().$utils(),s.duration=function(t,e){var n=s.locale();return d(t,{$l:n},e)},s.isDuration=f;var i=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(t,e){return f(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},r.prototype.subtract=function(t,e){return f(t)&&(t=t.asMilliseconds()),o.bind(this)(t,e)}}}();const D=w;export{u as a,m as b,s as c,n as d,M as e,g as f,D as g,p as i,o as l,d as w};
|