diff options
Diffstat (limited to 'code/api/wwwroot/scripts/vendor/temporal.min.mjs')
| -rw-r--r-- | code/api/wwwroot/scripts/vendor/temporal.min.mjs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/code/api/wwwroot/scripts/vendor/temporal.min.mjs b/code/api/wwwroot/scripts/vendor/temporal.min.mjs deleted file mode 100644 index f19136c..0000000 --- a/code/api/wwwroot/scripts/vendor/temporal.min.mjs +++ /dev/null @@ -1,2 +0,0 @@ -!function(){const n=1e3,t=1e6,e=1e9,o=6e10,r=36e11,i=864e11,s=[1,n,t,e,o,r,i],a=864e5,c=1e3,u=[9,6,3];function d(n){return n<=6}function l(n){return n>=6}const h=f("overflow",{constrain:0,reject:1},0);function f(n,t,e){const o=function(n,t,e){return(o,r)=>{if(void 0===o){const t=null!=r?r:e;if(void 0===t)throw new RangeError(`Must specify a ${n}`);return t}if(void 0===t[o])throw new RangeError(`Invalid ${n}: ${o}`);return t[o]}}(n,t,e);return(t,e)=>{const r=y(t);return o(r[n],e)}}function m(n,t,e,o){if(void 0===n)return t;if(!Number.isFinite(n))throw new RangeError("Number must be finite");n=Math.trunc(n);const r=Math.min(Math.max(n,t),e);if(r!==n&&1===o)throw new RangeError("Invalid overflowed value "+n);return r}function g(n,t){const e={};for(const o in t)void 0!==n[o]&&(e[o]=t[o](n[o]));return e}function y(n,t){if(void 0===n&&!t)return{};if(!p(n))throw TypeError("options must be an object or undefined");return n}const w=/object|function/;function p(n){return null!==n&&w.test(typeof n)}const v=f("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function M(){const n=new WeakMap;return[n.get.bind(n),n.set.bind(n)]}function b(n,t){Object.defineProperties(n.prototype,S(t,(n=>({get:n}))))}function S(n,t){const e={};for(const o in n)e[o]=t(n[o],o);return e}function I(n,t,e){const o={};for(const r of t)o[r]=e(n[r]);return o}function F(n,t){const e={};return n.forEach(((n,o)=>{e[n]=t(n,o)})),e}const T=["nanosecond","microsecond","millisecond","second","minute","hour"],O=[...T,"day","week","month","year"],D=O.map((n=>n+"s")),N=F(O,((n,t)=>t)),Y=F(D,((n,t)=>t));function E(n,t,e,o){var r;let i;if(void 0===n){if(void 0===t)throw new RangeError("Unit is required");i=t}else if(i=null!=(r=N[n])?r:Y[n],void 0===i||i<e||i>o)throw new RangeError("Invalid unit "+n);return i}function Z(n,t,e,o,r,i){var a;const c=y(n),u=null!=(a=c.roundingIncrement)?a:1,d=E(c.smallestUnit,e,o,r),l=v(c,i?Math.round:Math.trunc);let h=c.largestUnit;"auto"===h&&(h=void 0);const f=E(h,t=Math.max(t,d),o,r);if(d>f)throw new RangeError("Bad smallestUnit/largestUnit");if(d<6){const n=s[d+1],t=s[d]*u;if(n===t)throw new RangeError("Must not equal larger unit");if(n%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:d,largestUnit:f,roundingFunc:l,roundingIncrement:u}}function C(n,t,e,o){var r;const a=y("string"==typeof n?{smallestUnit:n}:n,!0),c=null!=(r=a.roundingIncrement)?r:1,u=E(a.smallestUnit,void 0,t,e),d=v(a,Math.round),l=s[u]*c;if(6===u){if(1!==c)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const n=o?i:s[u+1];if(!o&&n===l)throw new RangeError("Must not equal larger unit");if(n%l)throw new RangeError("Must divide into larger unit")}return{smallestUnit:u,roundingFunc:d,incNano:l}}const U=Symbol();function P(n,t,...e){return t instanceof n?t:n.from(t,...e)}class R{toJSON(){return this.toString()}}class k extends R{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[x,j]=M();class q extends k{constructor(n){super(),j(this,Object.freeze(n))}getISOFields(){return x(this)}}function H(n,t){return n<t?-1:n>t?1:0}function L(n){return H(n,0)}function B(n,t,e){return e(n/t)*t}function $(n){return B(n,o,A)}function A(n){return Math.round(Math.abs(n))*L(n)}function z(n,t,e){const o=n.div(t).mult(t),r=n.sub(o).toNumber();return o.add(e(r/t)*t)}function W(n,t){return(n%t+t)%t}function K(n,t){return J(e=String(n),t,"0")+e;var e}function G(n,t,e){return n+J(n,t,e)}function J(n,t,e){return new Array(Math.max(0,t-n.length+1)).join(e)}function Q(n){return n<0?"-":"+"}const V=Math.pow(10,8);class X{constructor(n,t){this.high=n,this.low=t}sign(){return L(this.high)||L(this.low)}neg(){return new X(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(n){const[t,e]=tn(n);return en(this.high+t,this.low+e)}sub(n){const[t,e]=tn(n);return en(this.high-t,this.low-e)}mult(n){return en(this.high*n,this.low*n)}div(n){const t=this.high/n;let e=String(t);-1!==e.indexOf("e-")&&(e=t.toFixed(20));const o=e.indexOf(".");let r=0;if(-1!==o){let n=e.substr(o+1);n=G(n,8,"0"),n=n.substr(0,8),r=parseInt(n)*(L(t)||1)}return en(Math.trunc(t)||0,Math.trunc(this.low/n)+r)}toNumber(){return this.high*V+this.low}toBigInt(){return BigInt(this.high)*BigInt(V)+BigInt(this.low)}}function _(n,t){let e,o;if(n instanceof X)e=n.high,o=n.low;else if("number"==typeof n){if(t)throw new TypeError("Must supply bigint, not number");e=Math.trunc(n/V),o=n%V||0}else if("bigint"==typeof n){const t=BigInt(V);e=Number(n/t),o=Number(n%t||0)}else{if("string"!=typeof n)throw new Error("Invalid type of BigNano");{if((n=n.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${n} to a BigInt`);const t=n.length-8;e=Number(n.substr(t)),o=Number(n.substr(0,t))}}return new X(e,o)}function nn(n,t){return H(n.high,t.high)||H(n.low,t.low)}function tn(n){return"number"==typeof n?[0,n]:[n.high,n.low]}function en(n,t){let e=t%V||0,o=n+Math.trunc(t/V);const r=L(o),i=L(e);return i&&r&&i!==r&&(o+=i,e-=V*i),new X(o,e)}const on=D.concat("sign");function rn(n){return I(n,on,(n=>-n||0))}function sn(n,t){var e,o,r,i,s,a,c,u,d,l;return an({years:null!=(e=t.years)?e:n.years,months:null!=(o=t.months)?o:n.months,weeks:null!=(r=t.weeks)?r:n.weeks,days:null!=(i=t.days)?i:n.days,hours:null!=(s=t.hours)?s:n.hours,minutes:null!=(a=t.minutes)?a:n.minutes,seconds:null!=(c=t.seconds)?c:n.seconds,milliseconds:null!=(u=t.milliseconds)?u:n.milliseconds,microseconds:null!=(d=t.microseconds)?d:n.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:n.nanoseconds})}function an(n){return{...n,sign:cn(n)}}function cn(n){let t=0;for(const e of D){if(n[e]){t=L(n[e]);break}}return t}function un(n){let t=9;for(;t>0&&!n[D[t]];)t--;return t}const dn={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},ln={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function hn(n){return{isoHour:n.hour||0,isoMinute:n.minute||0,isoSecond:n.second||0,isoMillisecond:n.millisecond||0,isoMicrosecond:n.microsecond||0,isoNanosecond:n.nanosecond||0}}function fn(n){return _(i).mult(n.days).add(mn(n))}function mn(i){return _(i.nanoseconds).add(_(i.microseconds).mult(n)).add(_(i.milliseconds).mult(t)).add(_(i.seconds).mult(e)).add(_(i.minutes).mult(o)).add(_(i.hours).mult(r))}function gn(i){return i.isoHour*r+i.isoMinute*o+i.isoSecond*e+i.isoMillisecond*t+i.isoMicrosecond*n+i.isoNanosecond}function yn(s,a){let c,u=0,d=0,l=0,h=0,f=0,m=0;switch(a){case 6:c=s.div(i),u=c.toNumber(),s=s.sub(c.mult(i));case 5:c=s.div(r),d=c.toNumber(),s=s.sub(c.mult(r));case 4:c=s.div(o),l=c.toNumber(),s=s.sub(c.mult(o));case 3:c=s.div(e),h=c.toNumber(),s=s.sub(c.mult(e));case 2:c=s.div(t),f=c.toNumber(),s=s.sub(c.mult(t));case 1:c=s.div(n),m=c.toNumber(),s=s.sub(c.mult(n))}return an({years:0,months:0,weeks:0,days:u,hours:d,minutes:l,seconds:h,milliseconds:f,microseconds:m,nanoseconds:s.toNumber()})}function wn(s){const a=Math.floor(s/i);s-=a*i;const c=Math.floor(s/r);s-=c*r;const u=Math.floor(s/o);s-=u*o;const d=Math.floor(s/e);s-=d*e;const l=Math.floor(s/t);s-=l*t;const h=Math.floor(s/n);return[{isoHour:c,isoMinute:u,isoSecond:d,isoMillisecond:l,isoMicrosecond:h,isoNanosecond:s-=h*n},a]}const pn={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class vn{constructor(n){this.id=n}monthCode(n,t){return"M"+K(n,2)}convertMonthCode(n,t){const e=/L$/.test(n),o=parseInt(n.substr(1));if(e)throw new RangeError("Calendar system doesnt support leap months");return[o,!1]}}function Mn(n,t,e,o){var r;let i=null==(r=pn[bn(n)])?void 0:r[e];if(void 0===i){if(!o)throw new Error("Unkown era "+e);i=0}return(i+t)*(L(i)||1)}function bn(n){return n.split("-")[0]}class Sn extends vn{computeFields(n){const t=Zn(n);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(n,t,e){return Yn(n,t,e)}daysInMonth(n,t){return 2===t?this.inLeapYear(n)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(n){return n%4==0&&(n%100!=0||n%400==0)}guessYearForMonthDay(){return Tn}normalizeISOYearForMonthDay(){return Tn}}const In="iso8601",Fn=new Sn(In),Tn=1972,On=Symbol();function Dn(n){return Nn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond)}function Nn(e,o,r,i,s,a,c,u,d){return _(Yn(e,o,r,i,s,a,c)).mult(t).add((null!=u?u:0)*n+(null!=d?d:0))}function Yn(n,t,e,o,r,i,s){const c=L(n);let u,d,l=0;const h=n>=0&&n<1e3,f=h?n+1200:n;for(;l<31;l++){u=e-c*l;const n=Date.UTC(f,t-1,u,null!=o?o:0,null!=r?r:0,null!=i?i:0,null!=s?s:0);if(!xn(n)){d=n+c*l*a;break}}return(void 0===d||u<1||u>Fn.daysInMonth(n,t))&&jn(),h&&(d=new Date(d).setUTCFullYear(n)),d}function En(e){let o=e.div(t),r=e.sub(o.mult(t)).toNumber();r<0&&(r+=t,o=o.sub(1));const i=Math.floor(r/n);return r-=i*n,{...Zn(o.toNumber()),isoMicrosecond:i,isoNanosecond:r}}function Zn(n){const[t,e]=kn(n);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+e,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function Cn(n){var t;return null!=(t=n[On])?t:Dn(n.getISOFields())}function Un(n){return Math.floor(Yn(n,1,1)/c)}function Pn(n){return kn(n.div(t).toNumber())[0].getUTCFullYear()}function Rn(n,t,e){const[o,r]=kn(Yn(n,t,e));return W(o.getUTCDay()+r,7)||7}function kn(n){const t=L(n);let e,o=0;for(;o<31;o++){const r=new Date(n-t*o*a);if(!xn(r)){e=r;break}}return void 0===e&&jn(),[e,t*o]}function xn(n){return isNaN(n.valueOf())}function jn(){throw new RangeError("Date outside of supported range")}function qn(n,t){return Math.round((t-n)/a)}function Hn(n,t){return n+t*a}function Ln(n,t){return!Bn(n,t)&&n.calendar.toString()===t.calendar.toString()}function Bn(n,t){return nn(Dn(n.getISOFields()),Dn(t.getISOFields()))}function $n(n,t){return H(gn(n.getISOFields()),gn(t.getISOFields()))}function An(n,t){return H(n.year,t.year)||H(n.month,t.month)||H(n.day,t.day)}function zn(n,t){return nn(n[On],t[On])}function Wn(n,t,e,o,r){return[n=Number(n),t=m(t,1,o.monthsInYear(n),r),e=m(e,1,o.daysInMonth(n,t),r)]}function Kn(n,t){const[e,o,r]=Wn(n.isoYear,n.isoMonth,n.isoDay,Fn,t);return{isoYear:e,isoMonth:o,isoDay:r}}function Gn(n,t){return{...Kn(n,t),...Jn(n,t)}}function Jn({isoHour:n,isoMinute:t,isoSecond:e,isoMillisecond:o,isoMicrosecond:r,isoNanosecond:i},s){return{isoHour:n=m(n,0,23,s),isoMinute:t=m(t,0,59,s),isoSecond:e=m(e,0,59,s),isoMillisecond:o=m(o,0,999,s),isoMicrosecond:r=m(r,0,999,s),isoNanosecond:i=m(i,0,999,s)}}const Qn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},Vn={...Qn,day:Number},Xn={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},_n={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},nt=F(D,(()=>Number));class tt extends Sn{computeFields(n){const t=super.computeFields(n),{year:e}=t;return{...t,era:e<1?"bce":"ce",eraYear:e<1?-(e-1):e}}}const et=f("calendarName",{auto:0,never:1,always:2},0),ot=f("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function rt(n,t=4){const e=y(n),o=e.smallestUnit,r=e.fractionalSecondDigits;let i,a=0,c=1;return void 0!==o?(a=E(o,void 0,0,t),c=s[a],i=u[a]||0):void 0!==r&&"auto"!==r&&(i=m(r,0,9,1),c=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:v(n,Math.trunc),incNano:c}}const it=f("timeZoneName",{auto:0,never:1},0);function st(n,t){return at(n)+"T"+ut(n,t)}function at(n){return ct(n)+"-"+K(n.isoDay,2)}function ct(n){const{isoYear:t}=n;return(t<1e3||t>9999?Q(t)+K(Math.abs(t),6):K(t,4))+"-"+K(n.isoMonth,2)}function ut(n,t){const e=[K(n.isoHour,2)];return t.smallestUnit<=4&&(e.push(K(n.isoMinute,2)),t.smallestUnit<=3&&e.push(K(n.isoSecond,2)+ft(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t.fractionalSecondDigits)[0])),e.join(":")}function dt(n){const[t,e]=wn(Math.abs(n)),o=ft(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return Q(n)+K(t.isoHour+24*e,2)+":"+K(t.isoMinute,2)+(t.isoSecond||o?":"+K(t.isoSecond,2)+o:"")}function lt(n,t){return n&&(2===t||1!==t&&n!==In)?`[u-ca=${n}]`:""}function ht(n){return n.map((([n,t,e])=>{if(e||n){return Math.abs(n).toLocaleString("fullwide",{useGrouping:!1})+t}return""})).join("")}function ft(o,r,i,a,c,u){let d=_(o).mult(t).add(_(r).mult(n)).add(i);c&&(d=z(d,void 0===a?s[u]:Math.pow(10,9-a),c));const l=d.abs(),h=l.div(e);let f=K(l.sub(h.mult(e)).toNumber(),9);return f=void 0===a?f.replace(/0+$/,""):f.substr(0,a),[f?"."+f:"",h.toNumber()*(d.sign()||1)]}function mt(o){b(o,{epochNanoseconds(){return this[On].toBigInt()},epochMicroseconds(){return this[On].div(n).toBigInt()},epochMilliseconds(){return this[On].div(t).toNumber()},epochSeconds(){return this[On].div(e).toNumber()}})}const gt={calendar:"calendar"};for(const n of O)gt[n]="iso"+((yt=n).charAt(0).toUpperCase()+yt.slice(1));var yt;function wt(n,t=[]){b(n,F(t.concat("calendar"),(n=>function(){return this.getISOFields()[gt[n]]})))}const pt=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],vt=[...pt,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Mt(n,t){b(n,F(t,(n=>function(){const t=this.calendar[n](this);return Object.defineProperty(this,n,{value:t}),t})))}function bt(n,t){(n.prototype||n)[Symbol.toStringTag]="Temporal."+t}const St=f("offset",{prefer:0,use:1,ignore:2,reject:3});function It(n,t,e=0){const o=n.getPossibleInstantsFor(t);if(1===o.length)return o[0];if(3===e)throw new RangeError("Ambiguous offset");if(o.length)return o[2===e?1:0];{const o=function(n,t){const e=Cn(t),o=n.getOffsetNanosecondsFor(new jr(e.sub(i)));return n.getOffsetNanosecondsFor(new jr(e.add(i)))-o}(n,t),r=n.getPossibleInstantsFor(t.add({nanoseconds:o*(1===e?-1:1)}));return r[1===e?0:r.length-1]}}function Ft({year:n,month:t,day:e},o,r,i){n+=o;const s=m(t,1,r.monthsInYear(n),i);let a=t===s?e:1;return a=m(a,1,r.daysInMonth(n,s),i),{year:n,month:s,day:a}}function Tt({year:n,month:t,day:e},o,r,i){if(o){if(t+=o,o<0)for(;t<1;)t+=r.monthsInYear(--n);else{let e;for(;t>(e=r.monthsInYear(n));)t-=e,n++}e=m(e,1,r.daysInMonth(n,t),i)}return{year:n,month:t,day:e}}function Ot({isoYear:n,isoMonth:t,isoDay:e},o){if(o){let r=Yn(n,t,e);r=Hn(r,o),({isoYear:n,isoMonth:t,isoDay:e}=Zn(r))}return{isoYear:n,isoMonth:t,isoDay:e}}function Dt(n,t){if(un(t)>=6)throw new RangeError("Duration cant have units >= days");return n.add(mn(t))}function Nt(n,t,e=3,o){const{offsetNanoseconds:r,timeZone:i,Z:s}=n;if(void 0!==r&&2!==e){if(1===e||s)return Dn(n).sub(r);{const o=Yt(n,r,i,t);if(void 0!==o)return o;if(3===e)throw new RangeError("Mismatching offset/timezone")}}return It(i,Jo(n),ot(o))[On]}function Yt(n,t,e,o){const r=e.getPossibleInstantsFor(Jo(n)),i=Dn(n),s=o?$(t):t;for(const n of r){const t=n[On],e=i.sub(t).toNumber();if((o?$(e):e)===s)return t}}function Et(n){const{timeZone:t}=n,e={...n,...dn,calendar:new Ir("iso8601")},o={...Ot(e,1),...dn,calendar:new Ir("iso8601")},r=It(t,Jo(e))[On];return It(t,Jo(o))[On].sub(r).toNumber()}const Zt="([+-]\\d{6}|\\d{4})-?(\\d{2})",Ct="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",Ut="([+-])"+Ct,Pt="(Z|"+Ut+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",Rt=Bt(Zt+Pt),kt=Bt("(--)?(\\d{2})-?(\\d{2})"+Pt),xt=Bt("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Pt),jt=Bt("T?"+Ct+Pt),qt=Bt(Ut),Ht=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,Lt=/\u2212/g;function Bt(n){return new RegExp(`^${n}$`,"i")}function $t(n){return n.replace(Lt,"-")}function At(n){const t=Jt(n);if(!t)throw ae("dateTime",n);return t}function zt(n){const t=Qt(n);if(!t)throw ae("dateTime",n);return t}function Wt(n){const t=_t(n);if(void 0===t)throw ae("timeZone",n);return t}function Kt(n){let t=function(n){const t=jt.exec($t(n));if(t)return te(t.slice(1))}(n);if(void 0!==t){if("T"!==n.charAt(0)){const e=Vt(n)||Xt(n);e&&function(n){try{return Kn(n,1),!0}catch(n){return!1}}(e)&&(t=void 0)}}else t=Qt(n,!0);if(void 0===t)throw ae("time",n);return t}const Gt=/^Z$/i;function Jt(n){const t=xt.exec($t(n));if(t)return function(n){const t=n[11];let e,o=!1;t&&(o=Gt.test(t),e=o?0:ee(n.slice(12)));return{...ne(n),timeZone:n[21],offsetNanoseconds:e,Z:o}}(t.slice(1))}function Qt(n,t,e){const o=xt.exec($t(n));if(o&&(e||!Gt.test(o[12]))&&(!t||o[4]))return ne(o.slice(1))}function Vt(n){const t=Rt.exec($t(n));if(t)return{calendar:(e=t.slice(1))[14],isoYear:ie(e[0]),isoMonth:ie(e[1]),isoDay:1};var e}function Xt(n){const t=kt.exec($t(n));if(t)return{calendar:(e=t.slice(1))[15],isoYear:Tn,isoMonth:ie(e[1]),isoDay:ie(e[2])};var e}function _t(n){const t=qt.exec($t(n));if(t)return ee(t.slice(1))}function ne(n){return{calendar:n[23],isoYear:ie(n[0]),isoMonth:ie(n[1]),isoDay:ie(n[2]),...te(n.slice(4))}}function te(n){const t=re(n[4]);return{...wn(oe(n[6]||""))[0],isoHour:re(n[0]),isoMinute:re(n[2]),isoSecond:60===t?59:t}}function ee(n){return("+"===n[0]?1:-1)*function(n){return re(n[0])*r+re(n[2])*o+re(n[4])*e+oe(n[6]||"")}(n.slice(1))}function oe(n){return parseInt(G(n,9,"0"))}function re(n){return parseInt(n||"0")}function ie(n){return parseInt(n||"1")}function se(n){return void 0===n?void 0:parseInt(n)}function ae(n,t){throw new RangeError(`Cannot parse ${n} '${t}'`)}function ce(n){return{...n,calendar:void 0===n.calendar?Fr():new Ir(n.calendar)}}function ue(n){return{...ce(n),timeZone:new Te(n.timeZone)}}class de{constructor(n){this.id=n}}class le extends de{constructor(n,t){super(n),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function he(n,t){const e={},o=n.formatToParts(t);for(const n of o)e[n.type]=n.value;return e}const fe={bc:"bce",ad:"ce"};function me(n){return n=n.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),fe[n]||n}const ge=Intl.DateTimeFormat;function ye(n){return[].concat(n||[])}const we={"Pacific/Apia":{2011:[[pe(13017528e5),-36e12,-396e11],[pe(13168728e5),-396e11,-36e12],[pe(13252392e5),-36e12,504e11]]}};function pe(n){return _(n).mult(t)}const ve=(new Date).getUTCFullYear()+10,Me=[182,91,273];class be extends de{constructor(n){const t=new ge("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:n});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=we[n]||{}}getPossibleOffsets(n){let t;const o=[this.getTransition(n,-1),this.getTransition(n.sub(1),1)].filter(Boolean);for(const e of o){const[o,r,i]=e,s=n.sub(r),a=n.sub(i);if(nn(o,s)>0&&nn(o,a)>0)return[r];if(!(nn(o,s)<=0&&nn(o,a)<=0))return r<i?[]:[r,i];t=i}return void 0!==t?[t]:[this.getYearEndOffsetSec(Pn(n))*e]}getOffset(n){return this.getOffsetForEpochSecs(n.div(e).toNumber())*e}getOffsetForEpochSecs(n){const t=he(this.format,n*c);let e=parseInt(t.year);"bce"===me(t.era)&&(e=-(e-1));const o=Yn(e,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(o/c)-n}getTransition(n,t){let e=Pn(n);if(e>ve){const o=this.getTransitionFrom(e,e+t,t,n);if(o||t>0)return o;e=ve}return this.getTransitionFrom(Math.max(e,1847),t<0?1846:ve,t,n)}getTransitionFrom(n,t,e,o){for(;n!==t;n+=e){let t=this.getTransitionsInYear(n);e<0&&(t=t.slice().reverse());for(const n of t)if(nn(n[0],o)===e)return n}}getYearEndOffsetSec(n){const{yearEndOffsets:t}=this;return t[n]||(t[n]=this.getOffsetForEpochSecs(Un(n+1)-1))}getTransitionsInYear(n){const{transitionsInYear:t}=this;return t[n]||(t[n]=this.computeTransitionsInYear(n))}computeTransitionsInYear(n){const t=this.getYearEndOffsetSec(n-1),e=this.getYearEndOffsetSec(n),o=Un(n)-1,r=Un(n+1)-1;if(t!==e)return[this.searchTransition(o,r,t,e)];const i=this.searchIsland(t,o);return void 0!==i?[this.searchTransition(o,i[0],t,i[1]),this.searchTransition(i[0],r,i[1],e)]:[]}searchTransition(n,t,o,r){for(;t-n>1;){const e=Math.floor(n+(t-n)/2);this.getOffsetForEpochSecs(e)===o?n=e:t=e}return[_(t).mult(e),o*e,r*e]}searchIsland(n,t){for(const e of Me){const o=t+86400*e,r=this.getOffsetForEpochSecs(o);if(r!==n)return[o,r]}}}const Se={UTC:new le("UTC",0)};const[Ie,Fe]=M();class Te extends R{constructor(n){if(!n)throw new RangeError("Invalid timezone ID");super(),Fe(this,function(n){const t=(n=String(n)).toLocaleUpperCase();if(Se[t])return Se[t];const e=_t(n);if(void 0!==e){if(Math.abs(e)>i)throw new RangeError("Offset out of bounds");return new le(dt(e),e)}return Se[t]=new be(n)}(n))}static from(n){if(p(n))return function(n){const t=n.timeZone;if(void 0===t)return n;if(p(t)&&void 0===t.timeZone)return t;return new Te(t)}(n);const t=Jt(String(n));if(t){if(t.timeZone){const n=ue(t);return function(n){const{offsetNanoseconds:t,timeZone:e,Z:o}=n;if(void 0!==t&&!o&&void 0===Yt(n,t,e,!0))throw new RangeError("Mismatching offset/timezone")}(n),n.timeZone}if(t.Z)return new Te("UTC");if(void 0!==t.offsetNanoseconds)return new Te(dt(t.offsetNanoseconds))}return new Te(String(n))}get id(){return this.toString()}getOffsetStringFor(n){return dt(this.getOffsetNanosecondsFor(n))}getOffsetNanosecondsFor(n){const t=P(jr,n);return Ie(this).getOffset(t[On])}getPlainDateTimeFor(n,t=Fr()){const e=P(jr,n);return Jo({...En(e[On].add(this.getOffsetNanosecondsFor(e))),calendar:P(Ir,t)})}getInstantFor(n,t){return It(this,P(Go,n),ot(t))}getPossibleInstantsFor(n){const t=Dn(P(Go,n).getISOFields());return Ie(this).getPossibleOffsets(t).map((n=>new jr(t.sub(n))))}getPreviousTransition(n){const t=P(jr,n),e=Ie(this).getTransition(t[On],-1);return e?new jr(e[0]):null}getNextTransition(n){const t=P(jr,n),e=Ie(this).getTransition(t[On],1);return e?new jr(e[0]):null}toString(){return Ie(this).id}}function Oe(n){if(void 0===n.timeZone)throw new TypeError("Must specify timeZone");return P(Te,n.timeZone)}bt(Te,"TimeZone");const De=Je((function(n,t,e){const o=He(n,t,e);if(o)return{...o,timeZone:Oe(n),offsetNanoseconds:void 0!==n.offset?Wt(String(n.offset)):void 0}})),Ne=Je(He),Ye=Je(Le),Ee=Je((function(n,t){const e=Dr(n),o=We(n,Qn,e);if(Qe(o))return e.yearMonthFromFields(o,t)})),Ze=Je((function(n,t){const e=Dr(n),o=We(n,_n,e);if(Qe(o))return void 0===n.year&&void 0===n.calendar&&(o.year=Tn),e.monthDayFromFields(o,t)})),Ce=Je(Be),Ue=Je((function(n,t,e,o){const r=$e(n,t,e,o),i=void 0!==t.offset;if(r||i)return{...r||n.getISOFields(),timeZone:n.timeZone,offsetNanoseconds:i?Wt(String(t.offset)):n.offsetNanoseconds}}),!0),Pe=Je($e,!0),Re=Je(Ae,!0),ke=Je((function(n,t,e){const o=n.calendar;if(Qe(We(t,Qn,o))){const r=Ge(n,t,Qn,o);return o.yearMonthFromFields(r,e)}}),!0),xe=Je((function(n,t,e){const o=n.calendar;if(Qe(We(t,_n,o))){const r=Ge(n,t,_n,o);return o.monthDayFromFields(r,e)}}),!0),je=Je(ze,!0),qe=Je((function(n){const t=g(n,nt);if(Qe(t))return t}));function He(n,t,e){const o=Le(n,e),r=Be(n,t);if(o)return{...o.getISOFields(),...r||dn}}function Le(n,t){const e=Dr(n),o=We(n,Vn,e);if(Qe(o))return e.dateFromFields(o,t)}function Be(n,t){const e=g(n,Xn);if(Qe(e))return Jn(hn(e),t)}function $e(n,t,e,o){const r=Ae(n,t,o),i=ze(n,t,e);if(r||i)return{...n.getISOFields(),...r?r.getISOFields():{},...i}}function Ae(n,t,e){const o=n.calendar,r=We(t,Vn,o);if(Qe(r)){const t=Ge(n,r,Vn,o);return o.dateFromFields(t,e)}}function ze(n,t,e){const o=g(t,Xn);if(Qe(o)){return Jn(hn((r=n,i=o,S(Xn,((n,t)=>{var e;return null!=(e=i[t])?e:r[t]})))),e)}var r,i}function We(n,t,e){let o=Object.keys(t);return o=e.fields?Array.prototype.slice.call(e.fields(o)):Object.keys(Ke(e,o)),Ke(n,o)}function Ke(n,t){const e={};for(const o of t)void 0!==n[o]&&(e[o]=n[o]);return e}function Ge(n,t,e,o){const r=We(n,e,o);return o.mergeFields?o.mergeFields(r,t):Tr(r,t)}function Je(n,t){return(...e)=>{if(t){const n=e[1];if(!p(n))throw new TypeError("must be object-like");if(void 0!==n.calendar)throw new TypeError("calendar not allowed");if(void 0!==n.timeZone)throw new TypeError("timeZone not allowed")}const o=n(...e);if(!o)throw new TypeError("No valid fields");return o}}function Qe(n){return Object.keys(n).length>0}const Ve=i-1,Xe=_(i).mult(1e8),_e=Xe.mult(-1),no=Xe.add(Ve),to=_e.sub(Ve);function eo(n,t){const e=Dn(n);oo(e),wr(e,t)}function oo(n){-1!==nn(n,to)&&1!==nn(n,no)||jn()}function ro(n,t){const e=ao(gn(n),t),[o,r]=wn(e);return{...Ot(n,r),...o}}function io(n,t){const e=ao(gn(n),t),[o]=wn(e);return o}function so(n,t){const[e,o]=function(n){const t=En(n);return[Nn(t.isoYear,t.isoMonth,t.isoDay),gn(t)]}(n),r=ao(o,t);return e.add(r)}function ao(n,t){return B(n,t.incNano,t.roundingFunc)}function co(n,t,e){return(o,r)=>{const i=go(n,r)?{}:{...n,...t};return{buildKey:mo(o,r,!1),buildFormat:function(n,t){return new ge(o,{calendar:n,timeZone:t||void 0,...i,...r,...e})},buildEpochMilli:uo}}}function uo(n){return n.epochMilliseconds}function lo(n,t,e){return(o,r)=>{const i=go(n,r)?{}:n;return{buildKey:mo(o,r,e),buildFormat:function(n,e){return new ge(o,{calendar:n,...i,...r,...t,timeZone:e,timeZoneName:void 0})},buildEpochMilli:void 0!==r.timeZone?ho.bind(null,new Te(r.timeZone)):fo}}}function ho(n,t){const e=Jo({...dn,...t.getISOFields()});return n.getInstantFor(e).epochMilliseconds}function fo(n){return Yn((t=n.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function mo(n,t,e){var o;const r=null!=(o=t.calendar)?o:function(n){for(const t of n){const n=t.match(/-u-ca-(.*)$/);if(n)return n[1]}return}(n),i=t.timeZone;return function(n,t){var o,s,a,c;const u=null==(o=n.calendar)?void 0:o.id,d=null==(s=n.timeZone)?void 0:s.id;if(t){if((null==(a=t.calendar)?void 0:a.id)!==u)throw new RangeError("Mismatching calendar");if((null==(c=t.timeZone)?void 0:c.id)!==d)throw new RangeError("Mismatching timeZone")}if((e||u!==In)&&void 0!==u&&void 0!==r&&r!==u)throw new RangeError("Non-iso calendar mismatch");if(void 0!==d&&void 0!==i&&i!==d)throw new RangeError("Given timeZone must agree");return[r||u||In,i||d||"UTC"]}}function go(n,t){for(const e in n)if(void 0!==t[e])return!0;return!1}function yo(n,t){n.prototype.toLocaleString=function(n,e){const o=t(ye(n),e||{});return o.buildFormat(...o.buildKey(this)).format(o.buildEpochMilli(this))},n.prototype[U]=t}function wo(n){return null==n?void 0:n[U]}function po(n){const t=function(n){const t=Ht.exec($t(n));if(t){let n,e,o,r;[n,r]=vo(t[8],t[10],5,void 0),[e,r]=vo(t[12],t[14],4,r),[o,r]=vo(t[16],t[18],3,r);const i=function(n){const t={};for(const e in n)void 0!==n[e]&&(t[e]=n[e]);return t}({years:se(t[2]),months:se(t[3]),weeks:se(t[4]),days:se(t[5]),hours:n,minutes:e,seconds:o});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const s=yn(_(r||0),2);i.milliseconds=s.milliseconds,i.microseconds=s.microseconds,i.nanoseconds=s.nanoseconds;let a=an(i);return"-"===t[1]&&(a=rn(a)),a}}(n);if(void 0===t)throw ae("duration",n);return t}function vo(n,t,o,r){if(void 0!==n){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(n),void 0!==t?oe(t)*(s[o]/e):void 0]}if(void 0!==r){const n=Math.trunc(r/s[o]);return[n,r-n*s[o]]}return[void 0,void 0]}const Mo=f("offset",{auto:0,never:1},0);class bo extends q{constructor(n=0,t=0,e=0,o=0,r=0,i=0){super({...Jn({isoHour:n,isoMinute:t,isoSecond:e,isoMillisecond:o,isoMicrosecond:r,isoNanosecond:i},1),calendar:Fr()})}static from(n,t){const e=h(t);return So(n instanceof bo?n.getISOFields():"object"==typeof n?Ce(n,e):Kt(String(n)))}static compare(n,t){return $n(P(bo,n),P(bo,t))}with(n,t){return So(je(this,n,h(t)))}add(n){return Fo(this,P(zo,n))}subtract(n){return Fo(this,rn(P(zo,n)))}until(n,t){return To(this,P(bo,n),t)}since(n,t){return To(P(bo,n),this,t)}round(n){const t=C(n,0,5);return So(io(this.getISOFields(),t))}equals(n){return!$n(this,P(bo,n))}toString(n){const t=rt(n);return ut(io(this.getISOFields(),t),t)}toZonedDateTime(n){const t=P(Zr,n.plainDate),e=P(Te,n.timeZone);return Uo({...t.getISOFields(),...this.getISOFields(),timeZone:e})}toPlainDateTime(n){return P(Zr,n).toPlainDateTime(this)}}function So(n){return new bo(n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond)}function Io(n){return P(bo,null!=n?n:{hour:0})}function Fo(n,t){return So(function(n,t){const e=gn(n)+mn(t).toNumber(),[o]=wn(e);return o}(n.getISOFields(),t))}function To(n,t,e){const o=Z(e,5,0,0,5);return Wo(function(n,t,e){return yn(_(B(gn(t)-gn(n),s[e.smallestUnit]*e.roundingIncrement,e.roundingFunc)),e.largestUnit)}(n.getISOFields(),t.getISOFields(),o))}bt(bo,"PlainTime"),wt(bo,T),yo(bo,(function(n,e){return{buildKey:()=>["",""],buildFormat:()=>new ge(n,{hour:"numeric",minute:"2-digit",second:"2-digit",...e,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:n=>Math.trunc(gn(n.getISOFields())/t)}}));const Oo={day:1};class Do extends q{constructor(n,t,e=Fr(),o=1){const r=Kn({isoYear:n,isoMonth:t,isoDay:o},1),i=P(Ir,e);var s,a;s=r,a=i.toString(),wr(Dn(s),a),super({...r,calendar:i})}static from(n,t){if(h(t),n instanceof Do)return No(n.getISOFields());if("object"==typeof n)return Ee(n,t);const e=function(n){const t=Vt(n)||Qt(n);if(!t)throw ae("yearMonth",n);return t}(String(n));return void 0===e.calendar&&(e.isoDay=1),No(ce(e))}static compare(n,t){return Bn(P(Do,n),P(Do,t))}with(n,t){return ke(this,n,t)}add(n,t){return Yo(this,P(zo,n),t)}subtract(n,t){return Yo(this,rn(P(zo,n)),t)}until(n,t){return Eo(this,P(Do,n),!1,t)}since(n,t){return Eo(this,P(Do,n),!0,t)}equals(n){return!Bn(this,P(Do,n))}toString(n){const t=this.getISOFields(),e=t.calendar.toString(),o=et(n);return(e===In?ct(t):at(t))+lt(e,o)}toPlainDate(n){return this.calendar.dateFromFields({year:this.year,month:this.month,day:n.day})}}function No(n){return new Do(n.isoYear,n.isoMonth,n.calendar,n.isoDay)}function Yo(n,t,e){return n.toPlainDate({day:t.sign<0?n.daysInMonth:1}).add(t,e).toPlainYearMonth()}function Eo(n,t,e,o){return Wo(Rr(n.toPlainDate(Oo),t.toPlainDate(Oo),Nr(n,t),e,Z(o,9,8,8,9)))}bt(Do,"PlainYearMonth"),wt(Do),Mt(Do,pt),yo(Do,lo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Zo=Symbol();class Co extends q{constructor(n,t,e=Fr()){const o=P(Te,t),r=P(Ir,e),i=_(n),[s,a]=Po(i,o);eo(s,r.toString()),super({...s,calendar:r,timeZone:o,offset:dt(a)}),this[On]=i,this[Zo]=a}static from(n,t){const e=St(t,3),o=h(t);if(n instanceof Co)return new Co(n.epochNanoseconds,n.timeZone,n.calendar);const r="object"==typeof n;return Uo(r?De(n,o,t):ue(At(String(n))),!r,e,t)}static compare(n,t){return zn(P(Co,n),P(Co,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Zo]}get offset(){return this.getISOFields().offset}with(n,t){ot(t);const e=h(t),o=St(t,0);return Uo(Ue(this,n,e,t),!1,o,t)}withPlainDate(n){const t=P(Zr,n),e=t.toPlainDateTime(this),{timeZone:o}=this,r=It(o,e);return new Co(r.epochNanoseconds,o,Yr(this,t))}withPlainTime(n){return Uo({...this.getISOFields(),...void 0===n?dn:P(bo,n).getISOFields()})}withCalendar(n){return new Co(this.epochNanoseconds,this.timeZone,n)}withTimeZone(n){return new Co(this.epochNanoseconds,n,this.calendar)}add(n,t){return Ro(this,P(zo,n),t)}subtract(n,t){return Ro(this,rn(P(zo,n)),t)}until(n,t){return xo(this,P(Co,n),!1,t)}since(n,t){return xo(this,P(Co,n),!0,t)}round(n){return ko(this,C(n,0,6))}equals(n){return t=this,e=P(Co,n),Ln(t,e)&&t.timeZone.toString()===e.timeZone.toString();var t,e}startOfDay(){return Uo({...this.getISOFields(),...dn,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Et(this.getISOFields())/r}toString(n){const t=rt(n),e=Mo(n),o=it(n),r=et(n),i=ko(this,t);return st(i.getISOFields(),t)+(0===e?dt($(i.offsetNanoseconds)):"")+(s=this.timeZone.toString(),1!==o?`[${s}]`:"")+lt(this.calendar.toString(),r);var s}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return Jo(this.getISOFields())}toPlainDate(){return Cr(this.getISOFields())}toPlainTime(){return So(this.getISOFields())}toInstant(){return new jr(this.epochNanoseconds)}}function Uo(n,t,e,o){const r=Nt(n,t,e,o);return new Co(r,n.timeZone,n.calendar)}function Po(n,t){const e=new jr(n),o=t.getOffsetNanosecondsFor(e);return[En(n.add(o)),o]}function Ro(n,t,e){const o=n.getISOFields(),r=function(n,t,e){const{calendar:o,timeZone:r}=n,i=o.dateAdd(Cr(n),sn(t,ln),e);return It(r,Jo({...n,...i.getISOFields()}))[On].add(mn(t))}(o,t,e);return new Co(r,o.timeZone,o.calendar)}function ko(n,t){const e=n.getISOFields(),o=function(n,t,e){const{calendar:o,timeZone:r}=n;let i,s,a=gn(n);return 6===e.smallestUnit?(i=dn,s=e.roundingFunc(a/Et(n))):(a=ao(a,e),[i,s]=wn(a)),Nt({...Ot(n,s),...i,offsetNanoseconds:t,calendar:o,timeZone:r},!1,0)}(e,n.offsetNanoseconds,t);return new Co(o,e.timeZone,e.calendar)}function xo(n,t,e,o){const r=Z(o,5,0,0,9),{largestUnit:i}=r;if(i>=6&&n.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return Wo(Pr(n,t,Nr(n,t),e,r))}function jo(n){if(void 0===n)return;if(p(n))return n instanceof Co||n instanceof Go?n:P(void 0!==n.timeZone?Co:Go,n);if("symbol"==typeof n)throw new TypeError("Incorrect relativeTo type");const t=Jt(String(n));if(t)return void 0!==t.timeZone?Uo(ue(t),!0):Jo(ce(t));throw new RangeError("Invalid value of relativeTo")}function qo(n,t,e,o){return(e instanceof Zr?function(n,t,e,o){const r=e.add(n);return[o.dateUntil(e,r,{largestUnit:O[t]}),r]}(n,Math.max(6,t),e,o):Ho(n,t,e,o))[0]}function Ho(n,t,e,o,r){const i=!0!==r&&t>7&&n.weeks;i&&(n=sn(n,{weeks:0}));let s=e.add(n),a=kr(e,s,o,t);return i&&(a=sn(a,{weeks:i}),s=s.add({weeks:i})),[a,s]}function Lo(n,t,e,o){const r=D[t],{sign:i}=n;if(!i)return n;const s={};for(let e=9;e>=t;e--){const t=D[e];s[t]=n[t]}const a={[r]:i},c=e.add(s),u=c.add(a),d=Cn(c),l=Cn(u),h=Cn(o).sub(d).toNumber()/l.sub(d).toNumber()*i;return s[r]+=h,s}function Bo(n,t,e,o,r,i){const{largestUnit:a,smallestUnit:c,roundingIncrement:u,roundingFunc:d}=i;if(!l(a)){return yn(z(Cn(e).sub(Cn(t)).mult(r?-1:1),s[c]*u,d),a)}let h=Lo(n,c,t,e);const f=D[c];function m(){const n=h[f];h[f]=B(n,u,d)}return d===Math.round&&m(),r&&(h=rn(h)),d!==Math.round&&m(),c>0&&(h=r?rn(qo(rn(h),a,t,o)):qo(h,a,t,o)),h}bt(Co,"ZonedDateTime"),wt(Co,T),Mt(Co,vt),mt(Co),yo(Co,co({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[$o,Ao]=M();class zo extends k{constructor(n=0,t=0,e=0,o=0,r=0,i=0,s=0,a=0,c=0,u=0){super();const d=qe({years:n,months:t,weeks:e,days:o,hours:r,minutes:i,seconds:s,milliseconds:a,microseconds:c,nanoseconds:u});Ao(this,function(n){const t=an(n),{sign:e}=t;for(const n of D){const o=t[n],r=L(t[n]);if(r&&r!==e)throw new RangeError("All fields must be same sign");if(!Number.isInteger(o))throw new RangeError("Duration fields must be integers")}return t}(d))}static from(n){return Wo("object"==typeof n?qe(n):po(n))}static compare(n,t,e){return function(n,t,e){if(void 0===e&&un(n)<=6&&un(t)<=6)return nn(fn(n),fn(t));if(!e)throw new RangeError("Need relativeTo");const o=e.add(n),r=e.add(t);return void 0!==e[On]?zn(o,r):Bn(o,r)}(P(zo,n),P(zo,t),jo(y(e).relativeTo))}get years(){return $o(this).years}get months(){return $o(this).months}get weeks(){return $o(this).weeks}get days(){return $o(this).days}get hours(){return $o(this).hours}get minutes(){return $o(this).minutes}get seconds(){return $o(this).seconds}get milliseconds(){return $o(this).milliseconds}get microseconds(){return $o(this).microseconds}get nanoseconds(){return $o(this).nanoseconds}get sign(){return $o(this).sign}get blank(){return!this.sign}with(n){return Wo({...$o(this),...qe(n)})}negated(){return Wo(rn($o(this)))}abs(){return Wo(I($o(this),on,(n=>Math.abs(n))))}add(n,t){return Ko(this,P(zo,n),t)}subtract(n,t){return Ko(this,rn(P(zo,n)),t)}round(n){const t="string"==typeof n?{smallestUnit:n}:n;if(!p(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const e=Z(t,un(this),0,0,9,!0),o=jo(t.relativeTo);return Wo(function(n,t,e,o){const{largestUnit:r,smallestUnit:i,roundingIncrement:a,roundingFunc:c}=t;if(void 0===e&&un(n)<=6&&d(r)&&d(i))return yn(z(fn(n),s[i]*a,c),r);if(!e)throw new RangeError("Need relativeTo");const[u,l]=Ho(n,r,e,o);return Bo(u,e,l,o,!1,t)}(this,e,o,o?o.calendar:void 0))}total(n){const t=function(n){let t,e;return"string"==typeof n?e=n:(e=y(n).unit,t=n.relativeTo),{unit:E(e,void 0,0,9),relativeTo:t}}(n),e=jo(t.relativeTo);return function(n,t,e,o){if(void 0===e&&un(n)<=6&&d(t))return fn(n).toNumber()/s[t];if(!e)throw new RangeError("Need relativeTo");const[r,i]=Ho(n,t,e,o,!0);return Lo(r,t,e,i)[D[t]]}(this,t.unit,e,e?e.calendar:void 0)}toString(n){const t=rt(n,3);return function(n,t){const{smallestUnit:e,fractionalSecondDigits:o,roundingFunc:r}=t,{sign:i}=n,s=n.hours,a=n.minutes;let c=n.seconds,u="";if(e<=3){const t=ft(n.milliseconds,n.microseconds,n.nanoseconds,o,r,e);u=t[0],c+=t[1]}const d=void 0!==o||u||!i;return(i<0?"-":"")+"P"+ht([[n.years,"Y"],[n.months,"M"],[n.weeks,"W"],[n.days,"D"]])+(s||a||c||d?"T"+ht([[s,"H"],[a,"M"],[e<=3?c:0,u+"S",d]]):"")}($o(this),t)}toLocaleString(n,t){return this.toString()}}function Wo(n){return new zo(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function Ko(n,t,e){const o=jo(y(e).relativeTo);return Wo(function(n,t,e,o){const r=Math.max(un(n),un(t));if(void 0===e&&r<=6)return yn(fn(n).add(fn(t)),r);if(!e)throw new RangeError("Need relativeTo");const i=e.add(n).add(t);return kr(e,i,o,r)}(n,t,o,o?o.calendar:void 0))}bt(zo,"Duration");class Go extends q{constructor(n,t,e,o=0,r=0,i=0,s=0,a=0,c=0,u=Fr()){const d=Gn({isoYear:n,isoMonth:t,isoDay:e,isoHour:o,isoMinute:r,isoSecond:i,isoMillisecond:s,isoMicrosecond:a,isoNanosecond:c},1),l=P(Ir,u);eo(d,l.toString()),super({...d,calendar:l})}static from(n,t){const e=h(t);return Jo(n instanceof Go?n.getISOFields():"object"==typeof n?Ne(n,e,t):ce(zt(String(n))))}static compare(n,t){return Bn(P(Go,n),P(Go,t))}with(n,t){const e=h(t);return Jo(Pe(this,n,e,t))}withPlainDate(n){const t=P(Zr,n);return Jo({...this.getISOFields(),...t.getISOFields(),calendar:Yr(this,t)})}withPlainTime(n){return Jo({...this.getISOFields(),...Io(n).getISOFields()})}withCalendar(n){return Jo({...this.getISOFields(),calendar:P(Ir,n)})}add(n,t){return Qo(this,P(zo,n),t)}subtract(n,t){return Qo(this,rn(P(zo,n)),t)}until(n,t){return Vo(this,P(Go,n),!1,t)}since(n,t){return Vo(this,P(Go,n),!0,t)}round(n){const t=C(n,0,6);return Jo({...ro(this.getISOFields(),t),calendar:this.calendar})}equals(n){return Ln(this,P(Go,n))}toString(n){const t=rt(n),e=et(n);return st(ro(this.getISOFields(),t),t)+lt(this.calendar.toString(),e)}toZonedDateTime(n,t){const e=P(Te,n),o=It(e,this,ot(t));return new Co(o.epochNanoseconds,e,this.calendar)}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Cr(this.getISOFields())}toPlainTime(){return So(this.getISOFields())}}function Jo(n){return new Go(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,n.calendar)}function Qo(n,t,e){const o=function(n,t,e){const{calendar:o}=n;return En(Dn(o.dateAdd(Cr(n),sn(t,ln),e).getISOFields()).add(gn(n)).add(mn(t)))}(n.getISOFields(),t,e);return Jo({...o,calendar:n.calendar})}function Vo(n,t,e,o){const r=Z(o,6,0,0,9);return Wo(Pr(n,t,Nr(n,t),e,r))}bt(Go,"PlainDateTime"),wt(Go,T),Mt(Go,vt),yo(Go,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class Xo extends q{constructor(n,t,e=Fr(),o=Tn){super({...Kn({isoYear:o,isoMonth:n,isoDay:t},1),calendar:P(Ir,e)})}static from(n,t){if(h(t),n instanceof Xo)return _o(n.getISOFields());if("object"==typeof n)return Ze(n,t);const e=function(n){const t=Xt(n)||Qt(n);if(!t)throw ae("monthDay",n);return t}(String(n));return void 0===e.calendar&&(e.isoYear=Tn),_o(ce(e))}with(n,t){return xe(this,n,t)}equals(n){return!Bn(this,P(Xo,n))}toString(n){const t=this.getISOFields(),e=t.calendar.toString(),o=et(n);return(e===In?function(n){return K(n.isoMonth,2)+"-"+K(n.isoDay,2)}(t):at(t))+lt(e,o)}toPlainDate(n){return this.calendar.dateFromFields({year:n.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function _o(n){return new Xo(n.isoMonth,n.isoDay,n.calendar,n.isoYear)}function nr(n){return n instanceof Zr||n instanceof Go||n instanceof Co||n instanceof Do||n instanceof Xo}function tr(n,t,e){let o;if(n instanceof Zr)o=n;else if(nr(n)){if(e&&n instanceof Xo)throw new TypeError("PlainMonthDay not allowed");o=Cr(n.getISOFields())}else o=Zr.from(n);return Er(o.calendar,t),o}function er(n,t,e){if(nr(n))return n.getISOFields();let{era:o,eraYear:r,year:i,month:s,monthCode:a,day:c}=n;const u=void 0!==r&&void 0!==o?Mn(t.id,r,o):void 0;if(void 0===i){if(void 0===u)throw new TypeError("Must specify either a year or an era & eraYear");i=u}else if(void 0!==u&&u!==i)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const d=h(e);if(void 0!==a){const[n,e]=t.convertMonthCode(a,i);if(void 0!==s&&s!==n)throw new RangeError("Month doesnt match with monthCode");if(s=n,e){if(1===d)throw new RangeError("Month code out of range");c=t.daysInMonth(i,s)}}else if(void 0===s)throw new TypeError("Must specify either a month or monthCode");return[i,s,c]=Wn(i,s,c,t,d),Zn(t.epochMilliseconds(i,s,c))}function or(n,t){if(nr(n)){if(t&&n instanceof Xo)throw new TypeError("PlainMonthDay not allowed");return n.getISOFields()}return Zr.from(n).getISOFields()}function rr(n,t){return qn(n.epochMilliseconds(t,1,1),n.epochMilliseconds(t+1,1,1))}function ir(n,t,e,o){return qn(n.epochMilliseconds(t,1,1),n.epochMilliseconds(t,e,o))+1}bt(Xo,"PlainMonthDay"),wt(Xo),Mt(Xo,["monthCode","day"]),yo(Xo,lo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const sr={hebrew:6,chinese:0,dangi:0};class ar extends vn{constructor(n){const t=cr(n);if(e=n,o=t.resolvedOptions().calendar,bn(e)!==bn(o))throw new RangeError("Invalid calendar: "+n);var e,o;super(n),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(n,t,e){return Hn(this.queryMonthCache(n)[0][t-1],e-1)}daysInMonth(n,t){const e=this.queryMonthCache(n)[0],o=e[t-1];t>=e.length&&(n++,t=0);return qn(o,this.queryMonthCache(n)[0][t])}monthsInYear(n){return this.queryMonthCache(n)[0].length}monthCode(n,t){const e=this.queryLeapMonthByYear(t);return!e||n<e?super.monthCode(n,t):super.monthCode(n-1,t)+(n===e?"L":"")}convertMonthCode(n,t){const e=this.queryLeapMonthByYear(t);let o=/L$/.test(n),r=parseInt(n.substr(1)),i=!1;if(o){const n=sr[this.id];if(void 0===n)throw new RangeError("Calendar system doesnt support leap months");if(n){if(r!==n-1)throw new RangeError("Invalid leap-month month code")}else if(r<=1||r>=12)throw new RangeError("Invalid leap-month month code")}return!o||e&&r===e-1||(i=!0,o=!1),(o||e&&r>=e)&&r++,[r,i]}inLeapYear(n){const t=rr(this,n);return t>rr(this,n-1)&&t>rr(this,n+1)}guessYearForMonthDay(n,t){let e=1970+this.yearCorrection;const o=e+100;for(;e<o;e++){const[o,r]=this.convertMonthCode(n,e);if(!r&&o<=this.monthsInYear(e)&&t<=this.daysInMonth(e,o))return e}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(n){return n}computeFields(n){const t=this.computeFieldsDumb(n),e=this.queryMonthCache(t.year)[2];return{...t,month:e[t.month]}}computeFieldsDumb(n){const t=he(this.format,n);let e,o,r=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==pn[bn(i)])&&(e=me(t.era),o=r,r=Mn(this.id,o,e,!0)),{era:e,eraYear:o,year:r,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(n){const t=this.queryMonthCache(n),e=this.queryMonthCache(n-1),o=this.queryMonthCache(n+1);if(t[0].length>e[0].length&&t[0].length>o[0].length){const n=t[1],o=e[1];for(let t=0;t<o.length;t++)if(o[t]!==n[t])return t+1}}queryMonthCache(n){const{monthCacheByYear:t}=this;return t[n]||(t[n]=this.buildMonthCache(n))}buildMonthCache(n){const t=[],e=[],o={};let r=Yn(this.guessISOYear(n),1,1);for(r=Hn(r,400);;){const o=this.computeFieldsDumb(r);if(o.year<n)break;r=Hn(r,1-o.day),o.year===n&&(t.unshift(r),e.unshift(o.month)),r=Hn(r,-1)}for(let n=0;n<e.length;n++)o[e[n]]=n+1;return[t,e,o]}guessISOYear(n){return n-this.yearCorrection}}function cr(n){return new ge("en-US",{calendar:n,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const ur=Yn(1868,9,8);const dr={gregory:tt,japanese:class extends tt{constructor(){super(...arguments),this.format=cr("japanese")}computeFields(n){const t=super.computeFields(n);if(n>=ur){const e=he(this.format,n);t.era=me(e.era),t.eraYear=parseInt(e.relatedYear||e.year)}return t}},islamic:class extends ar{guessISOYear(n){return Math.ceil(32*n/33+622)}}},lr={[In]:Fn};function hr(n){const t=(n=String(n)).toLocaleLowerCase();return lr[t]||(lr[t]=new(dr[bn(t)]||ar)(n))}const fr=Yn(1582,10,15),mr=Yn(622,7,18),gr={buddhist:fr,japanese:fr,roc:fr,islamic:mr,"islamic-rgsa":mr,indian:0},yr={};function wr(n,e){return pr(n.div(t).toNumber(),e)}function pr(n,t){if(function(n,t){return function(n){let t=yr[n];if(void 0===t){const e=gr[n];if(void 0===e)t=!1;else{let o=hr(n);o instanceof ar||(o=new ar(n));const r=e-a,i=o.computeFields(r);t=r!==o.epochMilliseconds(i.year,i.month,i.day)}yr[n]=t}return t}(t)&&n<gr[t]}(n,t))throw new RangeError("Invalid timestamp for calendar")}function vr(n,t,e){const o=7+t-e;return-W(Rn(n,1,o)-t,7)+o-1}function Mr(n,t,e){const o=vr(n,t,e),r=vr(n+1,t,e);return(rr(Fn,n)-o+r)/7}const[br,Sr]=M();class Ir extends R{constructor(n){super(),"islamicc"===n&&(n="islamic-civil"),Sr(this,hr(n))}static from(n){if(p(n))return function(n){const t=n.calendar;if(void 0===t)return n;if(p(t)&&void 0===t.calendar)return t;return new Ir(t)}(n);const t=Qt(String(n),!1,!0);return new Ir(t?t.calendar||In:String(n))}get id(){return this.toString()}era(n){const t=or(n,!0);return Or(br(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(n){const t=or(n,!0);return Or(br(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(n){const t=or(n,!0);return Or(br(this),t.isoYear,t.isoMonth,t.isoDay).year}month(n){const t=or(n,!0);return Or(br(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(n){const t=tr(n,this);return br(this).monthCode(t.month,t.year)}day(n){const t=or(n);return Or(br(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(n){const t=or(n,!0);return Rn(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(n){const t=tr(n,this,!0);return ir(br(this),t.year,t.month,t.day)}weekOfYear(n){const t=or(n,!0);return function(n,t,e,o,r){const i=vr(n,o,r),s=Math.floor((ir(Fn,n,t,e)-i-1)/7)+1;if(s<1)return s+Mr(n-1,o,r);const a=Mr(n,o,r);return s>a?s-a:s}(t.isoYear,t.isoMonth,t.isoDay,1,4)}daysInWeek(n){return or(n,!0),7}daysInMonth(n){const t=tr(n,this,!0);return br(this).daysInMonth(t.year,t.month)}daysInYear(n){const t=tr(n,this,!0);return rr(br(this),t.year)}monthsInYear(n){const t=tr(n,this,!0);return br(this).monthsInYear(t.year)}inLeapYear(n){return br(this).inLeapYear(this.year(n))}dateFromFields(n,t){const e=er(g(n,Vn),br(this),t);return new Zr(e.isoYear,e.isoMonth,e.isoDay,this)}yearMonthFromFields(n,t){const e=er({...g(n,Qn),day:1},br(this),t);return new Do(e.isoYear,e.isoMonth,this,e.isoDay)}monthDayFromFields(n,t){const e=br(this);let{era:o,eraYear:r,year:i,month:s,monthCode:a,day:c}=g(n,_n);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==a?i=Tn:void 0!==o&&void 0!==r&&(i=Mn(e.id,r,o)),void 0===i){if(void 0===a)throw new TypeError("either year or monthCode required with month");i=e.guessYearForMonthDay(a,c)}const u=er({year:i,month:s,monthCode:a,day:c},e,t);return new Xo(u.isoMonth,u.isoDay,this,e.normalizeISOYearForMonthDay(u.isoYear))}dateAdd(n,t,e){const o=br(this),r=function(n,t,e,o){n=Tt(n=Ft(n,t.years,e,o),t.months,e,o);let r=e.epochMilliseconds(n.year,n.month,n.day);const s=Math.trunc(mn(t).div(i).toNumber());return r=Hn(r,7*t.weeks+t.days+s),Zn(r)}(P(Zr,n,e),P(zo,t),o,h(e));return new Zr(r.isoYear,r.isoMonth,r.isoDay,this)}dateUntil(n,t,e){const o=br(this),r=P(Zr,n),i=P(Zr,t),s=y(e).largestUnit,a="auto"===s?6:E(s,6,6,9);return Er(this,Nr(r,i)),Wo(function(n,t,e,o){let r=0,i=0,s=0,a=0;switch(o){case 9:r=function(n,t,e){const[,o,r]=Wn(t.year,n.month,n.day,e,0),i=An(t,n),s=H(t.month,o)||H(t.day,r);return t.year-n.year-(s&&i&&s!==i?i:0)}(n,t,e),n=Ft(n,r,e,0);case 8:i=function(n,t,e){let o=0;const r=An(t,n);if(r){let{year:i}=n;for(;i!==t.year;)o+=e.monthsInYear(i)*r,i+=r;const[,s,a]=Wn(t.year,n.month,n.day,e,0);o+=t.month-s;const c=H(t.day,a);c&&r&&c!==r&&(o-=r)}return o}(n,t,e),n=Tt(n,i,e,0)}a=qn(e.epochMilliseconds(n.year,n.month,n.day),e.epochMilliseconds(t.year,t.month,t.day)),7===o&&(s=Math.trunc(a/7),a%=7);return an({years:r,months:i,weeks:s,days:a,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(r,i,o,a))}fields(n){return n.slice()}mergeFields(n,t){return Tr(n,t)}toString(){return br(this).id}}function Fr(){return new Ir(In)}function Tr(n,t){var e;const o={...n,...t};if(void 0!==n.year){delete o.era,delete o.eraYear,delete o.year;let e=!1;void 0===t.era&&void 0===t.eraYear||(o.era=t.era,o.eraYear=t.eraYear,e=!0),void 0!==t.year&&(o.year=t.year,e=!0),e||(o.year=n.year)}if(void 0!==n.monthCode){delete o.monthCode,delete o.month;let e=!1;void 0!==t.month&&(o.month=t.month,e=!0),void 0!==t.monthCode&&(o.monthCode=t.monthCode,e=!0),e||(o.monthCode=n.monthCode)}return void 0!==n.day&&(o.day=null!=(e=t.day)?e:n.day),o}function Or(n,t,e,o){const r=Yn(t,e,o);return pr(r,n.id),n.computeFields(r)}function Dr(n){return void 0===n.calendar?Fr():P(Ir,n.calendar)}function Nr(n,t){const{calendar:e}=n;return Er(e,t.calendar),e}function Yr(n,t){const e=n.calendar,o=t.calendar;if(e.id===In)return o;if(o.id===In)return e;if(e.id!==o.id)throw new RangeError("Non-ISO calendars incompatible");return e}function Er(n,t){if(n.toString()!==t.toString())throw new RangeError("Calendars must match")}bt(Ir,"Calendar");class Zr extends q{constructor(n,t,e,o=Fr()){const r=Kn({isoYear:n,isoMonth:t,isoDay:e},1),i=P(Ir,o);!function(n,t){const e=Dn(n);oo(e.add(e.sign()<0?Ve:0)),wr(e,t)}(r,i.toString()),super({...r,calendar:i})}static from(n,t){return h(t),n instanceof Zr?Cr(n.getISOFields()):"object"==typeof n?Ye(n,t):Cr(ce(zt(String(n))))}static compare(n,t){return Bn(P(Zr,n),P(Zr,t))}with(n,t){return Re(this,n,t)}withCalendar(n){const t=this.getISOFields();return new Zr(t.isoYear,t.isoMonth,t.isoDay,n)}add(n,t){return this.calendar.dateAdd(this,n,t)}subtract(n,t){return this.calendar.dateAdd(this,P(zo,n).negated(),t)}until(n,t){return Ur(this,P(Zr,n),!1,t)}since(n,t){return Ur(this,P(Zr,n),!0,t)}equals(n){return!Bn(this,P(Zr,n))}toString(n){const t=et(n),e=this.getISOFields();return at(e)+lt(e.calendar.toString(),t)}toZonedDateTime(n){const t=function(n){let t,e;if("string"==typeof n)e=n;else{if("object"!=typeof n)throw new TypeError("Invalid options/timeZone argument");if(void 0!==n.id?e=n:(e=n.timeZone,t=n.plainTime),void 0===e)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:e}}(n),e=P(Te,t.timeZone),o=void 0===t.plainTime?void 0:P(bo,t.plainTime);return Uo({...this.getISOFields(),...o?o.getISOFields():dn,timeZone:e})}toPlainDateTime(n){return Jo({...this.getISOFields(),...Io(n).getISOFields()})}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Cr(n){return new Zr(n.isoYear,n.isoMonth,n.isoDay,n.calendar)}function Ur(n,t,e,o){return Wo(Rr(n,t,Nr(n,t),e,Z(o,6,6,6,9)))}function Pr(n,t,e,o,r){return Bo(kr(n,t,e,r.largestUnit),n,t,e,o,r)}function Rr(n,t,e,o,r){return Bo(e.dateUntil(n,t,{largestUnit:O[r.largestUnit]}),n,t,e,o,r)}function kr(n,t,e,o){if(!l(o))return xr(n,t,o);const r=Cr({...n.getISOFields(),calendar:e});let i,s,a,c,u,d=Cr({...t.getISOFields(),calendar:e});do{s=e.dateUntil(r,d,{largestUnit:O[o]}),i=n.add(s),a=xr(i,t,5),c=s.sign,u=a.sign}while(c&&u&&c!==u&&(d=d.add({days:u})));return f=a,{sign:(h=s).sign||f.sign,years:h.years+f.years,months:h.months+f.months,weeks:h.weeks+f.weeks,days:h.days+f.days,hours:h.hours+f.hours,minutes:h.minutes+f.minutes,seconds:h.seconds+f.seconds,milliseconds:h.milliseconds+f.milliseconds,microseconds:h.microseconds+f.microseconds,nanoseconds:h.nanoseconds+f.nanoseconds};var h,f}function xr(n,t,e){return yn(Cn(t).sub(Cn(n)),e)}bt(Zr,"PlainDate"),wt(Zr),Mt(Zr,vt),yo(Zr,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class jr extends k{constructor(n){super();const t=_(n,!0);!function(n){-1!==nn(n,_e)&&1!==nn(n,Xe)||jn()}(t),this[On]=t}static from(n){if(n instanceof jr)return new jr(n.epochNanoseconds);const t=At(String(n)),e=t.offsetNanoseconds;if(void 0===e)throw new RangeError("Must specify an offset");return new jr(Dn(Gn(t,1)).sub(e))}static fromEpochSeconds(n){return new jr(_(n).mult(e))}static fromEpochMilliseconds(n){return new jr(_(n).mult(t))}static fromEpochMicroseconds(t){return new jr(t*BigInt(n))}static fromEpochNanoseconds(n){return new jr(n)}static compare(n,t){return zn(P(jr,n),P(jr,t))}add(n){return new jr(Dt(this[On],P(zo,n)))}subtract(n){return new jr(Dt(this[On],rn(P(zo,n))))}until(n,t){return qr(this,P(jr,n),t)}since(n,t){return qr(P(jr,n),this,t)}round(n){const t=C(n,0,5,!0);return new jr(so(this[On],t))}equals(n){return!zn(this,P(jr,n))}toString(n){const t=y(n).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...n,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(n){return new Co(this.epochNanoseconds,n)}toZonedDateTime(n){if(!p(n))throw new TypeError("Must specify options");if(void 0===n.calendar)throw new TypeError("Must specify a calendar");if(void 0===n.timeZone)throw new TypeError("Must specify a timeZone");return new Co(this.epochNanoseconds,n.timeZone,n.calendar)}}function qr(n,t,e){const o=Z(e,3,0,0,5);return Wo(function(n,t,e){return yn(z(t.sub(n),s[e.smallestUnit]*e.roundingIncrement,e.roundingFunc),e.largestUnit)}(n[On],t[On],o))}function Hr(){return jr.fromEpochMilliseconds(this.valueOf())}bt(jr,"Instant"),mt(jr),yo(jr,co({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Lr=Symbol(),Br=Symbol(),$r=Symbol();class Ar extends Intl.DateTimeFormat{constructor(n,t){const e=ye(n),o=function(n){const t={};for(const e in n){let o=n[e];p(o)&&(o=o.toString()),t[e]=o}return t}(t||{});super(e,o),this[Lr]=e,this[Br]=o,this[$r]=new Map}format(n){const t=Wr(this,n);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(n){return super.formatToParts.call(...Wr(this,n))}formatRange(n,t){return super.formatRange.call(...Kr(this,n,t))}formatRangeToParts(n,t){return super.formatRangeToParts.call(...Kr(this,n,t))}}const zr=Ar;function Wr(n,t){const e=wo(t);if(e){const o=Gr(n,e);return[o.buildFormat(t),o.buildEpochMilli(t)]}return[n,t]}function Kr(n,t,e){const o=wo(t);if(o!==wo(e))throw new TypeError("Mismatch of types");if(o){const r=Gr(n,o);return[r.buildFormat(t,e),new Date(r.buildEpochMilli(t)),new Date(r.buildEpochMilli(e))]}return[n,t,e]}function Gr(n,t){const e=n[$r];let o=e.get(t);return o||(o=function(n){const t={};return{buildFormat:function(e,o){const r=n.buildKey(e,o),i=r.join("|");return t[i]||(t[i]=n.buildFormat(...r))},buildEpochMilli:n.buildEpochMilli}}(t(n[Lr],n[Br])),e.set(t,o)),o}const Jr={zonedDateTimeISO:function(n){return Uo(Vr(In,n))},zonedDateTime:function(n,t){return Uo(Vr(n,t))},plainDateTimeISO:function(n){return Jo(Vr(In,n))},plainDateTime:function(n,t){return Jo(Vr(n,t))},plainDateISO:function(n){return Cr(Vr(In,n))},plainDate:function(n,t){return Cr(Vr(n,t))},plainTimeISO:function(n){return So(Vr(In,n))},instant:function(){return new jr(Xr())},timeZone:Qr};bt(Jr,"Now");function Qr(){return new Te((new ge).resolvedOptions().timeZone)}function Vr(n,t=Qr()){const e=P(Te,t);return{...Po(Xr(),e)[0],timeZone:e,calendar:P(Ir,n)}}function Xr(){return _(Date.now()).mult(t)}const _r={PlainYearMonth:Do,PlainMonthDay:Xo,PlainDate:Zr,PlainTime:bo,PlainDateTime:Go,ZonedDateTime:Co,Instant:jr,Calendar:Ir,TimeZone:Te,Duration:zo,Now:Jr,[Symbol.toStringTag]:"Temporal"};!function(){const n="undefined"!=typeof globalThis?globalThis:window;n.Temporal||(n.Temporal=_r,Intl.DateTimeFormat=zr,Date.prototype.toTemporalInstant=Hr)}()}(); -//# sourceMappingURL=temporal.min.js.map |
