dayjs-legacy-d4cf0d68.js 15 KB

12
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}System.register([],(function(e,r){"use strict";return{execute:function(){e("g",r);e("h","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}};!function(e,r){e.exports=function(){var e=1e3,r=6e4,n=36e5,i="millisecond",s="second",o="minute",a="hour",u="day",c="week",f="month",h="quarter",d="year",l="date",m="Invalid Date",y=/^(\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,$={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"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},w={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,f),s=r-i<0,o=e.clone().add(n+(s?-1:1),f);return+(-(n+(r-i)/(s?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:d,w:c,d:u,D:l,h:a,m:o,s:s,ms:i,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",D={};D[v]=$;var g="$isDayjsObject",S=function(t){return t instanceof O||!(!t||!t[g])},k=function t(e,r,n){var i;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),r&&(D[s]=r,i=s);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;D[a]=e,i=a}return!n&&i&&(v=i),i||!n&&v},Y=function(e,r){if(S(e))return e.clone();var n="object"==t(r)?r:{};return n.date=e,n.args=arguments,new O(n)},x=w;x.l=k,x.i=S,x.w=function(t,e){return Y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function t(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var $=t.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(y);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},$.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()},$.$utils=function(){return x},$.isValid=function(){return!(this.$d.toString()===m)},$.isSame=function(t,e){var r=Y(t);return this.startOf(e)<=r&&r<=this.endOf(e)},$.isAfter=function(t,e){return Y(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<Y(t)},$.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var r=this,n=!!x.u(e)||e,i=x.p(t),h=function(t,e){var i=x.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(u)},m=function(t,e){return x.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,p=this.$M,$=this.$D,M="set"+(this.$u?"UTC":"");switch(i){case d:return n?h(1,0):h(31,11);case f:return n?h(1,p):h(0,p+1);case c:var w=this.$locale().weekStart||0,v=(y<w?y+7:y)-w;return h(n?$-v:$+(6-v),p);case u:case l:return m(M+"Hours",0);case a:return m(M+"Minutes",1);case o:return m(M+"Seconds",2);case s:return m(M+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var r,n=x.p(t),c="set"+(this.$u?"UTC":""),h=(r={},r[u]=c+"Date",r[l]=c+"Date",r[f]=c+"Month",r[d]=c+"FullYear",r[a]=c+"Hours",r[o]=c+"Minutes",r[s]=c+"Seconds",r[i]=c+"Milliseconds",r)[n],m=n===u?this.$D+(e-this.$W):e;if(n===f||n===d){var y=this.clone().set(l,1);y.$d[h](m),y.init(),this.$d=y.set(l,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[x.p(t)]()},$.add=function(t,i){var h,l=this;t=Number(t);var m=x.p(i),y=function(e){var r=Y(l);return x.w(r.date(r.date()+Math.round(e*t)),l)};if(m===f)return this.set(f,this.$M+t);if(m===d)return this.set(d,this.$y+t);if(m===u)return y(1);if(m===c)return y(7);var p=(h={},h[o]=r,h[a]=n,h[s]=e,h)[m]||1,$=this.$d.getTime()+t*p;return x.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||m;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),s=this.$H,o=this.$m,a=this.$M,u=r.weekdays,c=r.months,f=r.meridiem,h=function(t,r,i,s){return t&&(t[r]||t(e,n))||i[r].slice(0,s)},d=function(t){return x.s(s%12||12,t,"0")},l=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,u,2);case"ddd":return h(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(s);case"HH":return x.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return l(s,o,!0);case"A":return l(s,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(t,i,l){var m,y=this,p=x.p(i),$=Y(t),M=($.utcOffset()-this.utcOffset())*r,w=this-$,v=function(){return x.m(y,$)};switch(p){case d:m=v()/12;break;case f:m=v();break;case h:m=v()/3;break;case c:m=(w-M)/6048e5;break;case u:m=(w-M)/864e5;break;case a:m=w/n;break;case o:m=w/r;break;case s:m=w/e;break;default:m=w}return l?m:x.a(m)},$.daysInMonth=function(){return this.endOf(f).$D},$.$locale=function(){return D[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=k(t,e,!0);return n&&(r.$L=n),r},$.clone=function(){return x.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},t}(),b=O.prototype;return Y.prototype=b,[["$ms",i],["$s",s],["$m",o],["$H",a],["$W",u],["$M",f],["$y",d],["$D",l]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),Y.extend=function(t,e){return t.$i||(t(e,O,Y),t.$i=!0),Y},Y.locale=k,Y.isDayjs=S,Y.unix=function(t){return Y(1e3*t)},Y.en=D[v],Y.Ls=D,Y.p={},Y}()}(n);e("d",r(n.exports));var i={exports:{}};!function(t,e){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,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},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),r=60*e[1]+(+e[2]||0);return 0===r?0:"+"===e[0]?-r:r}(t)}],c=function(t){var e=s[t];return e&&(e.indexOf?e:e.s.concat(e.f))},f=function(t,e){var r,n=s.meridiem;if(n){for(var i=1;i<=24;i+=1)if(t.indexOf(n(i,0,e))>-1){r=i>12;break}}else r=t===(e?"pm":"PM");return r},h={A:[i,function(t){this.afternoon=f(t,!1)}],a:[i,function(t){this.afternoon=f(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[n,a("seconds")],ss:[n,a("seconds")],m:[n,a("minutes")],mm:[n,a("minutes")],H:[n,a("hours")],h:[n,a("hours")],HH:[n,a("hours")],hh:[n,a("hours")],D:[n,a("day")],DD:[r,a("day")],Do:[i,function(t){var e=s.ordinal,r=t.match(/\d+/);if(this.day=r[0],e)for(var n=1;n<=31;n+=1)e(n).replace(/\[|\]/g,"")===t&&(this.day=n)}],M:[n,a("month")],MM:[r,a("month")],MMM:[i,function(t){var e=c("months"),r=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[i,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,a("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,a("year")],Z:u,ZZ:u};function d(r){var n,i;n=r,i=s&&s.formats;for(var o=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,n){var s=n&&n.toUpperCase();return r||i[n]||t[n]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))).match(e),a=o.length,u=0;u<a;u+=1){var c=o[u],f=h[c],d=f&&f[0],l=f&&f[1];o[u]=l?{regex:d,parser:l}:c.replace(/^\[|\]$/g,"")}return function(t){for(var e={},r=0,n=0;r<a;r+=1){var i=o[r];if("string"==typeof i)n+=i.length;else{var s=i.regex,u=i.parser,c=t.slice(n),f=s.exec(c)[0];u.call(e,f),t=t.replace(f,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var r=t.hours;e?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,r){r.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var n=e.prototype,i=n.parse;n.parse=function(t){var e=t.date,n=t.utc,o=t.args;this.$u=n;var a=o[1];if("string"==typeof a){var u=!0===o[2],c=!0===o[3],f=u||c,h=o[2];c&&(h=o[2]),s=this.$locale(),!u&&h&&(s=r.Ls[h]),this.$d=function(t,e,r){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var n=d(e)(t),i=n.year,s=n.month,o=n.day,a=n.hours,u=n.minutes,c=n.seconds,f=n.milliseconds,h=n.zone,l=new Date,m=o||(i||s?1:l.getDate()),y=i||l.getFullYear(),p=0;i&&!s||(p=s>0?s-1:l.getMonth());var $=a||0,M=u||0,w=c||0,v=f||0;return h?new Date(Date.UTC(y,p,m,$,M,w,v+60*h.offset*1e3)):r?new Date(Date.UTC(y,p,m,$,M,w,v)):new Date(y,p,m,$,M,w,v)}catch(t){return new Date("")}}(e,a,n),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),f&&e!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){o[1]=a[m-1];var y=r.apply(this,o);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}m===l&&(this.$d=new Date(""))}else i.call(this,t)}}}()}(i);e("c",r(i.exports));var s={exports:{}};!function(t,e){t.exports=function(t,e,r){var n=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},s=function(t,e,r,n,s){var o=t.name?t:t.$locale(),a=i(o[e]),u=i(o[r]),c=a||u.map((function(t){return t.slice(0,n)}));if(!s)return c;var f=o.weekStart;return c.map((function(t,e){return c[(e+(f||0))%7]}))},o=function(){return r.Ls[r.locale()]},a=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}(t.formats[e.toUpperCase()])},u=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):s(t,"months")},monthsShort:function(e){return e?e.format("MMM"):s(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):s(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):s(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):s(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return u.bind(this)()},r.localeData=function(){var t=o();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},r.months=function(){return s(o(),"months")},r.monthsShort=function(){return s(o(),"monthsShort","months",3)},r.weekdays=function(t){return s(o(),"weekdays",null,null,t)},r.weekdaysShort=function(t){return s(o(),"weekdaysShort","weekdays",3,t)},r.weekdaysMin=function(t){return s(o(),"weekdaysMin","weekdays",2,t)}}}(s);e("l",r(s.exports));var o={exports:{}};!function(t,e){t.exports=function(t,e){var r=e.prototype,n=r.format;r.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return n.bind(this)(t);var i=this.$utils(),s=(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 r.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return r.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.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 n.bind(this)(s)}}}(o);e("a",r(o.exports));var a={exports:{}};!function(t,e){var r,n;t.exports=(r="week",n="year",function(t,e,i){var s=e.prototype;s.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 s=i(this).startOf(n).add(1,n).date(e),o=i(this).endOf(r);if(s.isBefore(o))return 1}var a=i(this).startOf(n).date(e).startOf(r).subtract(1,"millisecond"),u=this.diff(a,r,!0);return u<0?i(this).startOf("week").week():Math.ceil(u)},s.weeks=function(t){return void 0===t&&(t=null),this.week(t)}})}(a);e("w",r(a.exports));var u={exports:{}};!function(t,e){t.exports=function(t,e){e.prototype.weekYear=function(){var t=this.month(),e=this.week(),r=this.year();return 1===e&&11===t?r+1:0===t&&e>=52?r-1:r}}}(u);e("b",r(u.exports));var c={exports:{}};!function(t,e){t.exports=function(t,e,r){e.prototype.dayOfYear=function(t){var e=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"day")}}}(c);e("e",r(c.exports));var f={exports:{}};!function(t,e){t.exports=function(t,e){e.prototype.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)}}}(f);e("i",r(f.exports));var h={exports:{}};!function(t,e){t.exports=function(t,e){e.prototype.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)}}}(h);e("f",r(h.exports))}}}))}();