Socket
Socket
Sign inDemoInstall

temporal-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporal-polyfill - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

chunks/i5MHFTYG.esm.js

4

global.esm.js

@@ -1,4 +0,4 @@

import { Temporal as jt, DateTimeFormat as kt, toTemporalInstant as qt } from "./impl.esm.js";
import { Temporal as jt, DateTimeFormat as kt, toTemporalInstant as qt } from "./chunks/i5MHFTYG.esm.js";
import { createPropDescriptors as xt } from "./chunks/fEYw9zwg.esm.js";
import { createPropDescriptors as xt } from "./chunks/vVnp2l5L.esm.js";

@@ -5,0 +5,0 @@ Object.defineProperties(globalThis, xt({

@@ -1,1 +0,1 @@

!function(){"use strict";function n(n,t,r,e,o){const i=E(t,r,e);if(o&&t!==i)throw new RangeError(Vo(n,t,r,e));return i}function t(t,e,o,i,u){return n(e,r(t,e),o,i,u)}function r(n,t){const r=n[t];if(void 0===r)throw new TypeError(ni(t));return r}function e(n){return null!==n&&/object|function/.test(typeof n)}function o(n,t=Map){const r=new t;return(t,...e)=>{if(r.has(t))return r.get(t);const o=n(t,...e);return r.set(t,o),o}}function i(n){return u({name:n},1)}function u(n,t){return f((n=>({value:n,configurable:1,writable:!t})),n)}function c(n){return f((n=>({get:n,configurable:1})),n)}function s(n){return{[Symbol.toStringTag]:{value:n,configurable:1}}}function a(n,t){const r={};let e=n.length;for(const o of t)r[n[--e]]=o;return r}function f(n,t,r){const e={};for(const o in t)e[o]=n(t[o],o,r);return e}function h(n,t,r){const e={};for(let o=0;o<t.length;o++){const i=t[o];e[i]=n(i,o,r)}return e}function d(n,t){const r={};for(const e of n)r[e]=t[e];return r}function l(n,t){const r={};for(const e in t)n.has(e)||(r[e]=t[e]);return r}function w(n){n={...n};const t=Object.keys(n);for(const r of t)void 0===n[r]&&delete n[r];return n}function m(n,t,r){for(const e of n)if(t[e]!==r[e])return 0;return 1}function g(n,...t){return(...r)=>n(...t,...r)}function y(n){return n}function v(n){return n[0].toUpperCase()+n.substring(1)}function b(n){return n.slice().sort()}function p(n,t){return String(t).padStart(n,"0")}function M(n,t){return Math.sign(n-t)}function E(n,t,r){return Math.min(Math.max(n,t),r)}function O(n,t){return[Math.floor(n/t),I(n,t)]}function I(n,t){return(n%t+t)%t}function T(n,t){return[R(n,t),D(n,t)]}function R(n,t){return Math.trunc(n/t)||0}function D(n,t){return n%t||0}function S(n){return.5===Math.abs(n%1)}function j(n,t,r){let e=0,o=0;for(let i=0;i<=t;i++){const t=n[r[i]],u=Ji[i],c=Ui/u,[s,a]=T(t,c);e+=a*u,o+=s}const[i,u]=T(e,Ui);return[o+i,u]}function P(n,t,r){const e={};for(let o=t;o>=0;o--){const t=Ji[o];e[r[o]]=R(n,t),n=D(n,t)}return e}function N(n,t){let[r,e]=T(t,Ui),o=n+r;const i=Math.sign(o);return i&&i===-Math.sign(e)&&(o-=i,e+=i*Ui),[o,e]}function Y(n,t){return N(n[0],n[1]+t)}function F(n,t,r=1){return N(n[0]+t[0]*r,n[1]+t[1]*r)}function Z(n,t){return N(t[0]-n[0],t[1]-n[1])}function C(n,t){return M(n[0],t[0])||M(n[1],t[1])}function $(n,t=1){const r=BigInt(Ui/t);return[Number(n/r),Number(n%r)*t]}function k(n,t=1){const r=Ui/t,[e,o]=T(n,r);return[e,o*t]}function L(n,t=1){const[r,e]=n,o=Math.floor(e/t),i=Ui/t;return BigInt(r)*BigInt(i)+BigInt(o)}function W(n,t=1,r){const[e,o]=x(n,t);return e+(r?o/t:0)}function x(n,t){const[r,e]=n,[o,i]=O(e,t);return[r*(Ui/t)+o,i]}function q(n,t){const r=n.formatToParts(t),e={};for(const n of r)e[n.type]=n.value;return e}function B(n){return t(n,"isoYear",Cu,Zu,1),n.isoYear===Cu?t(n,"isoMonth",4,12,1):n.isoYear===Zu&&t(n,"isoMonth",1,9,1),n}function U(n){return J({...n,...Su,isoHour:12}),n}function J(n){const r=t(n,"isoYear",Cu,Zu,1),e=r===Cu?1:r===Zu?-1:0;return e&&H(Q({...n,isoDay:n.isoDay+e,isoNanosecond:n.isoNanosecond-e})),n}function H(n){if(!n||-1===C(n,Fu)||1===C(n,Yu))throw new RangeError(Ei);return n}function A(n){return j(n,5,Eu)[1]}function z(n){const[t,r]=O(n,Ui);return[P(r,5,Eu),t]}function _(n){return W(n,xi)}function G(n){return W(n,Wi)}function K(n){return nn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond)}function Q(n){const t=K(n);if(void 0!==t){const[r,e]=T(t,$i);return[r,e*Wi+(n.isoMicrosecond||0)*Li+(n.isoNanosecond||0)]}}function V(n,t){const[r,e]=z(A(n)-t);return H(Q({...n,isoDay:n.isoDay+e,...r}))}function X(...n){return nn(...n)/ki}function nn(...n){const[t,r]=tn(...n),e=t.getTime();if(!isNaN(e))return e-r*$i}function tn(n,t=1,r=1,e=0,o=0,i=0,u=0){const c=n===Cu?1:n===Zu?-1:0,s=new Date;return s.setUTCHours(e,o,i,u),s.setUTCFullYear(n,t-1,r+c),[s,c]}function rn(n,t){let[r,e]=Y(n,t);e<0&&(e+=Ui,r-=1);const[o,i]=O(e,Wi),[u,c]=O(i,Li);return{...en(r*$i+o),isoMicrosecond:u,isoNanosecond:c}}function en(n){const t=n<-$i*Nu?1:n>$i*Nu?-1:0,r=new Date(n+t*$i);return a(Iu,[r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate()-t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()])}function on(){return Lu}function un(n,t){switch(t){case 2:return sn(n)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function cn(n){return sn(n)?366:365}function sn(n){return n%4==0&&(n%100!=0||n%400==0)}function an(n){return we(K(dn(n)),K({...n,...Su}))+1}function fn(n){const[t,r]=tn(n.isoYear,n.isoMonth,n.isoDay);return I(t.getUTCDay()-r,7)||7}function hn(n){const t=an(n),r=fn(n),e=fn(dn(n)),o=Math.floor((t-r+10)/Wu),{isoYear:i}=n;return o<1?[i-1,5===e||6===e&&sn(i-1)?53:52]:53===o&&cn(i)-t<4-r?[i+1,1]:[i,o]}function dn(n){return{...n,isoMonth:1,isoDay:1,...Su}}function ln({isoYear:n}){return n<1?["bce",1-n]:["ce",n]}function wn(n){return mn(n),vn(n,1),n}function mn(n){return yn(n,1),n}function gn(n){return m(Ou,n,yn(n))}function yn(n,r){const{isoYear:e}=n,o=t(n,"isoMonth",1,on(),r);return{isoYear:e,isoMonth:o,isoDay:t(n,"isoDay",1,un(e,o),r)}}function vn(n,r){return a(Eu,[t(n,"isoHour",0,23,r),t(n,"isoMinute",0,59,r),t(n,"isoSecond",0,59,r),t(n,"isoMillisecond",0,999,r),t(n,"isoMicrosecond",0,999,r),t(n,"isoNanosecond",0,999,r)])}function bn(n){if(!e(n))throw new TypeError(Qo);return n}function pn(n,t,r=n){if(typeof t!==n)throw new TypeError(Xo(r,t));return t}function Mn(n){return On(Ju(n))}function En(n){return In(Mn(n))}function On(n,t="number"){if(!Number.isInteger(n))throw new RangeError(Ho(t,n));return n||0}function In(n,t="number"){if(n<=0)throw new RangeError(Ao(t,n));return n}function Tn(n){if(null==n)throw new TypeError("Cannot be null or undefined");return n}function Rn(n,t){if(null==t)throw new RangeError(ni(n));return t}function Dn(n){if("symbol"==typeof n)throw new TypeError(Ko);return String(n)}function Sn(n,t){return e(n)?String(n):Bu(n,t)}function jn(n){if("string"==typeof n)return BigInt(n);if("bigint"!=typeof n)throw new TypeError(Go(n));return n}function Pn(n,t="number"){if("bigint"==typeof n)throw new TypeError(_o(t));if(n=Number(n),!Number.isFinite(n))throw new RangeError(zo(t,n));return n}function Nn(n,t){return Math.trunc(Pn(n,t))||0}function Yn(n,t){return On(Pn(n,t),t)}function Fn(n,t){return In(Nn(n,t),t)}function Zn(n){return void 0===n?0:rc(bn(n))}function Cn(n,t=0){n=An(n);const r=ec(n),e=oc(n,t);return[rc(n),e,r]}function $n(n){return ec(An(n))}function kn(n,t,r,e=9,o=0,i=4){t=An(t);let u=nc(t,e,o),c=Un(t),s=sc(t,i);const a=Xu(t,e,o,1);return null==u?u=Math.max(r,a):Vn(u,a),c=Jn(c,a,1),n&&(s=(n=>n<4?(n+2)%4:n)(s)),[u,a,c,s]}function Ln(n,t=6,r){let e=Un(n=zn(n,Au));const o=sc(n,7);let i=Xu(n,t);return i=Rn(Au,i),e=Jn(e,i,void 0,r),[i,e,o]}function Wn(n){return ic(An(n))}function xn(n,t){return qn(An(n),t)}function qn(n,t=4){const r=Hn(n);return[sc(n,4),...Bn(Xu(n,t),r)]}function Bn(n,t){return null!=n?[Ji[n],n<4?9-3*n:-1]:[void 0===t?1:10**(9-t),t]}function Un(n){const t=n[_u];return void 0===t?1:Nn(t,_u)}function Jn(t,r,e,o){const i=o?Ui:Ji[r+1];if(i){const e=Ji[r];if(i%((t=n(_u,t,1,i/e-(o?0:1),1))*e))throw new RangeError(Xo(_u,t))}else t=n(_u,t,1,e?10**9:1,1);return t}function Hn(t){let r=t[Gu];if(void 0!==r){if("number"!=typeof r){if("auto"===Dn(r))return;throw new RangeError(Xo(Gu,r))}r=n(Gu,Math.floor(r),0,9,1)}return r}function An(n){return void 0===n?{}:bn(n)}function zn(n,t){return"string"==typeof n?{[t]:n}:bn(n)}function _n(n){if(void 0!==n){if(e(n))return Object.assign(Object.create(null),n);throw new TypeError(Qo)}}function Gn(n,t){return n&&Object.assign(Object.create(null),n,{overflow:Vu[t]})}function Kn(t,r,e=9,o=0,i){let u=r[t];if(void 0===u)return i?o:void 0;if(u=Dn(u),"auto"===u)return i?o:null;let c=Zi[u];if(void 0===c&&(c=bu[u]),void 0===c)throw new RangeError(Xo(t,u));return n(t,c,o,e,1),c}function Qn(n,t,r,e=0){const o=r[n];if(void 0===o)return e;const i=Dn(o),u=t[i];if(void 0===u)throw new RangeError(Xo(n,i));return u}function Vn(n,t){if(t>n)throw new RangeError(Ri)}function Xn(n){return{branding:mc,epochNanoseconds:n}}function nt(n,t,r){return{branding:wc,calendar:r,timeZone:t,epochNanoseconds:n}}function tt(n,t=n.calendar){return{branding:dc,calendar:t,...d(Du,n)}}function rt(n,t=n.calendar){return{branding:hc,calendar:t,...d(Tu,n)}}function et(n,t=n.calendar){return{branding:ac,calendar:t,...d(Tu,n)}}function ot(n,t=n.calendar){return{branding:fc,calendar:t,...d(Tu,n)}}function it(n){return{branding:lc,...d(Ru,n)}}function ut(n){return{branding:gc,...d(gu,n)}}function ct(n){return"string"==typeof n?n:Bu(n.id)}function st(n,t){return n===t||ct(n)===ct(t)}function at(n,t){return W(n,Ji[t],1)}function ft(n,t,r,e,o,i){const u={...pu,[mu[t]]:r},c=i(e,n),s=i(c,u);return[o(c),o(s)]}function ht(n,t,r){const e=W(Z(n,t));if(!e)throw new RangeError(mi);return W(Z(n,r))/e}function dt(n,t,r,e,o){return 6===t?((n,t,r)=>{if(t){const e=Kt(t,n);return J({...fr(n,bt(A(n),e,r)/e),...Su})}return lt(n,Ui,r)})(n,o,e):lt(n,vt(t,r),e)}function lt(n,t,r){const[e,o]=wt(n,t,r);return J({...fr(n,o),...e})}function wt(n,t,r){return z(bt(A(n),t,r))}function mt(n,t,r,e,o){return br(Mt(vr(n,6),r,e,o),t)}function gt(n,t,r,e){return br(Et(vr(n,t),r,e),t)}function yt(n,t,r,e,o,i,u,c,s){const a=c===y?e>6?Tt:6===e?Ot:It:e>6?Tt:Ot;let[f,h,d]=a(n,t,r,e,o,i,u,c,s);return d&&(f=((n,t,r,e,o,i,u)=>{const c=Ic(n);for(let s=e+1;s<=r;s++){if(7===s&&7!==r)continue;const e=Mr(n,s-1);e[mu[s]]+=c;const a=W(Z(i(u(o,e)),t));if(a&&Math.sign(a)!==c)break;n=e}return n})(f,h,r,Math.max(6,e),u,c,s)),f}function vt(n,t){return Ji[n]*t}function bt(n,t,r){return((n,t)=>yc[t](n))(n/t,r)*t}function pt(n){return bt(n,qi,7)}function Mt(n,t,r,e,o){return 6===t?[bt(at(n,6),r,e),0]:Et(n,vt(t,r),e,o)}function Et(n,t,r,e){let[o,i]=n;e&&i<0&&(i+=Ui,o-=1);const[u,c]=O(bt(i,t,r),Ui);return N(o+u,c)}function Ot(n,t,r,e,o,i){const u=Ic(n),c=vr(n,6),s=Mt(c,e,o,i),a=Z(c,s),f=Math.sign(s[0]-c[0])===u,h=br(s,Math.min(r,6));return[{...n,...h},F(t,a),f]}function It(n,t,r,e,o,i,u,c,s){const a=Ic(n);let[f,h]=j(n,5,mu);const d=vt(e,o);let l=bt(h,d,i);const[w,m]=ft({...n,...Mu},6,a,u,c,s),g=l-W(Z(w,m));g&&Math.sign(g)!==a?t=Y(w,l):(f+=a,l=bt(g,d,i),t=Y(m,l));const y=pr(l);return[{...n,...y,days:n.days+f},t,Boolean(f)]}function Tt(n,t,r,e,o,i,u,c,s){const a=Ic(n),f=mu[e],h=Mr(n,e-1),d=R(n[f],o)*o;h[f]=d;const[l,w]=ft(h,e,o*a,u,c,s),m=d+ht(l,w,t)*a*o,g=bt(m,o,i),y=Math.sign(g-m)===a;return h[f]=g,[h,y?w:l,y]}function Rt(n,t,r,e){const[o,i,u,c]=(n=>{const t=qn(n=An(n));return[n.timeZone,...t]})(e),s=void 0!==o;return((n,t,r,e,o,i)=>{r=Et(r,o,e,1);const u=t.getOffsetNanosecondsFor(r);return $t(rn(r,u),i)+(n?qt(pt(u)):"Z")})(s,t(s?n(o):vc),r.epochNanoseconds,i,u,c)}function Dt(n,t,r){return((n,t,r,e,o,i,u,c,s,a)=>{e=Et(e,s,c,1);const f=n(r).getOffsetNanosecondsFor(e);return $t(rn(e,f),a)+qt(pt(f),u)+((n,t)=>1!==t?"["+(2===t?"!":"")+ct(n)+"]":"")(r,i)+Bt(t,o)})(n,t.calendar,t.timeZone,t.epochNanoseconds,...(n=>{n=An(n);const t=ic(n),r=Hn(n),e=cc(n),o=sc(n,4),i=Xu(n,4);return[t,uc(n),e,o,...Bn(i,r)]})(r))}function St(n,t){return((n,t,r,e,o,i)=>$t(lt(t,o,e),i)+Bt(n,r))(n.calendar,n,...(n=>(n=An(n),[ic(n),...qn(n)]))(t))}function jt(n,t){return r=n.calendar,e=n,o=Wn(t),kt(e)+Bt(r,o);var r,e,o}function Pt(n,t){return Zt(n.calendar,Lt,n,Wn(t))}function Nt(n,t){return Zt(n.calendar,Wt,n,Wn(t))}function Yt(n,t){return((n,t,r,e)=>xt(wt(n,r,t)[0],e))(n,...xn(t))}function Ft(n,t){const[r,e,o]=xn(t,3);return e>1&&(n={...n,...gt(n,Math.min(Or(n),6),e,r)}),((n,t)=>{const r=Ic(n),e=-1===r?mr(n):n,{hours:o,minutes:i}=e,[u,c]=x(j(e,3,mu),xi),s=Jt(c,t),a=t>=0||!r||s;return(r<0?"-":"")+"P"+Ct({Y:At(e.years),M:At(e.months),W:At(e.weeks),D:At(e.days)})+(o||i||u||a?"T"+Ct({H:At(o),M:At(i),S:At(u,a)+s}):"")})(n,o)}function Zt(n,t,r,e){const o=ct(n),i=e>1||0===e&&o!==au;return 1===e?o===au?t(r):kt(r):i?kt(r)+Ut(o,2===e):t(r)}function Ct(n){const t=[];for(const r in n){const e=n[r];e&&t.push(e,r)}return t.join("")}function $t(n,t){return kt(n)+"T"+xt(n,t)}function kt(n){return Lt(n)+"-"+Fi(n.isoDay)}function Lt(n){const{isoYear:t}=n;return(t<0||t>9999?Ht(t)+p(6,Math.abs(t)):p(4,t))+"-"+Fi(n.isoMonth)}function Wt(n){return Fi(n.isoMonth)+"-"+Fi(n.isoDay)}function xt(n,t){const r=[Fi(n.isoHour),Fi(n.isoMinute)];return-1!==t&&r.push(Fi(n.isoSecond)+((n,t,r,e)=>Jt(n*Wi+t*Li+r,e))(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t)),r.join(":")}function qt(n,t=0){if(1===t)return"";const[r,e]=O(Math.abs(n),Bi),[o,i]=O(e,qi),[u,c]=O(i,xi);return Ht(n)+Fi(r)+":"+Fi(o)+(u||c?":"+Fi(u)+Jt(c):"")}function Bt(n,t){if(1!==t){const r=ct(n);if(t>1||0===t&&r!==au)return Ut(r,2===t)}return""}function Ut(n,t){return"["+(t?"!":"")+"u-ca="+n+"]"}function Jt(n,t){let r=p(9,n);return r=void 0===t?r.replace(Ec,""):r.slice(0,t),r?"."+r:""}function Ht(n){return n<0?"-":"+"}function At(n,t){return n||t?n.toLocaleString("fullwide",{useGrouping:0}):""}function zt(n,t){return rn(t,n.getOffsetNanosecondsFor(t))}function _t(n,t,r,e=0,o=0,i,u){if(void 0!==r&&1===e&&(1===e||u))return V(t,r);const c=n.getPossibleInstantsFor(t);if(void 0!==r&&3!==e){const n=((n,t,r,e)=>{const o=Q(t);e&&(r=pt(r));for(const t of n){let n=W(Z(t,o));if(e&&(n=pt(n)),n===r)return t}})(c,t,r,i);if(void 0!==n)return n;if(0===e)throw new RangeError(pi)}return u?Q(t):Gt(n,t,o,c)}function Gt(n,t,r=0,e=n.getPossibleInstantsFor(t)){if(1===e.length)return e[0];if(1===r)throw new RangeError(Mi);if(e.length)return e[3===r?1:0];const o=Q(t),i=((n,t)=>{const r=n.getOffsetNanosecondsFor(Y(t,-Ui));return n.getOffsetNanosecondsFor(Y(t,Ui))-r})(n,o),u=i*(2===r?-1:1);return(e=n.getPossibleInstantsFor(rn(o,u)))[2===r?0:e.length-1]}function Kt(n,t){t={...t,...Su};const r=W(Z(Gt(n,{...t,...Su}),Gt(n,{...fr(t,1),...Su})));if(r<=0)throw new RangeError(mi);return r}function Qt(n){if(Math.abs(n)>=Ui)throw new RangeError(bi);return n}function Vt(n,t,r){return Xn(H(F(t.epochNanoseconds,(n=>{if(Er(n))throw new RangeError(Ti);return vr(n,5)})(n?mr(r):r))))}function Xt(n,t,r,e,o,i=Object.create(null)){const u=t(e.timeZone),c=or(n(e.calendar),u,e.epochNanoseconds,r?mr(o):o,i);return{...e,epochNanoseconds:c}}function nr(n,t,r,e,o=Object.create(null)){return tt({...r,...ir(n(r.calendar),r,t?mr(e):e,o)})}function tr(n,t,r,e,o){return{...r,...ur(n(r.calendar),r,t?mr(e):e,o)}}function rr(n,t,r,e,o=Object.create(null)){const i=r.calendar,u=n(i);let c=cr(u,r);t&&(e=wr(e)),Ic(e)<0&&(c=u.dateAdd(c,{...pu,months:1}),c=fr(c,-1));const s=u.dateAdd(c,e,o);return et(cr(u,s),i)}function er(n,t,r){return it(sr(t,n?mr(r):r)[0])}function or(n,t,r,e,o){const i=vr(e,5);if(Er(e)){const u=zt(t,r);r=F(Gt(t,{...ur(n,u,{...e,...Mu},o),...d(Eu,u),calendar:au}),i)}else r=F(r,i),Zn(o);return H(r)}function ir(n,t,r,e){const[o,i]=sr(t,r);return J({...ur(n,t,{...r,...Mu,days:r.days+i},e),...o})}function ur(n,t,r,e){if(r.years||r.months||r.weeks)return n.dateAdd(t,r,e);Zn(e);const o=r.days+j(r,5,mu)[0];return o?U(fr(t,o)):t}function cr(n,t){return fr(t,1-n.day(t))}function sr(n,t){const[r,e]=j(t,5,mu),[o,i]=z(A(n)+e);return[o,r+i]}function ar(t,r,e){const o=Zn(e);let i,{years:u,months:c,weeks:s,days:a}=r;if(a+=j(r,5,mu)[0],u||c){let[r,e,s]=this.u(t);if(u){const[t,i]=this.l(r,e);r+=u,e=Pe(t,i,this.F(r)),e=n("month",e,1,this.O(r),o)}c&&([r,e]=this.L(r,e,c)),s=n("day",s,1,this.k(r,e),o),i=this.U(r,e,s)}else{if(!s&&!a)return t;i=K(t)}return i+=(s*Wu+a)*$i,U(en(i))}function fr(n,t){return t&&(n=en(K(n)+t*$i)),n}function hr(n,t,r){const{calendar:e,timeZone:o,epochNanoseconds:i}=r,u=n(e);if(i){const n=t(o);return[i,y,g(or,u,n),g(ue,u,n)]}return[{...r,...Su},Q,g(ir,u),g(ce,u)]}function dr(n,t,r,e,o,i,u){let c=i(e,n);return t&&(c=i(c,t)),[u(e,c,r),o(c)]}function lr(n,t,r,e,o,i,u){const c=n(An(u).relativeTo),s=Math.max(Or(o),Or(i));if(s<6||6===s&&(!c||!c.epochNanoseconds))return ut(((n,t,r,e)=>{const o=F(vr(n,6),vr(t,6),e?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Ei);return{...pu,...br(o,r)}})(o,i,s,e));if(!c)throw new RangeError(Ii);return e&&(i=mr(i)),ut(dr(o,i,s,...hr(t,r,c))[0])}function wr(n){return ut(mr(n))}function mr(n){const t={};for(const r of mu)t[r]=-1*n[r]||0;return t}function gr(n,t=mu){let r=0;for(const e of t){const t=Math.sign(n[e]);if(t){if(r&&r!==t)throw new RangeError(Oi);r=t}}return r}function yr(n){return Ic(n),n}function vr(n,t){return j(n,t,mu)}function br(n,t=6){const[r,e]=n,o=P(e,t,mu);if(o[mu[t]]+=r*(Ui/Ji[t]),!Number.isFinite(o[mu[t]]))throw new RangeError(Ei);return o}function pr(n,t=5){return P(n,t,mu)}function Mr(n,t){const r={...n};for(let n=0;n<=t;n++)r[mu[n]]=0;return r}function Er(n){return Boolean(gr(n,vu))}function Or(n){let t=9;for(;t>0&&!n[mu[t]];t--);return t}function Ir(n,t){return[n,t]}function Tr(n){const t=Math.floor(n/bc)*bc;return[t,t+bc]}function Rr(n){const t=$r(n);if(void 0===t)throw new RangeError(Di(n));return t}function Dr(n){const t=Fr(Bu(n));if(!t||t.o)throw new RangeError(Di(n));return rt(t.i?Pr(t):Nr(t))}function Sr(n){if(n.calendar!==au)throw new RangeError(Si(n.calendar))}function jr(n,t,r=0,e=0){const o=Jr(n.timeZone),i=Tc(o);return nt(_t(i,wn(n),t,r,e,!i.h,n.o),o,De(n.calendar))}function Pr(n){return Yr(J(wn(n)))}function Nr(n){return Yr(U(mn(n)))}function Yr(n){return{...n,calendar:De(n.calendar)}}function Fr(n){const t=Lc.exec(n);return t?(n=>{const t=n[10],r="Z"===(t||"").toUpperCase();return{isoYear:kr(n),isoMonth:parseInt(n[4]),isoDay:parseInt(n[5]),...Lr(n.slice(5)),...Wr(n[16]),i:Boolean(n[6]),o:r,offset:r?void 0:t}})(t):void 0}function Zr(n){const t=$c.exec(n);return t?(n=>({isoYear:kr(n),isoMonth:parseInt(n[4]),isoDay:1,...Wr(n[5])}))(t):void 0}function Cr(n){const t=kc.exec(n);return t?(n=>({isoYear:ku,isoMonth:parseInt(n[1]),isoDay:parseInt(n[2]),...Wr(n[3])}))(t):void 0}function $r(n,t){const r=xc.exec(n);return r?((n,t)=>{const r=n[4]||n[5];if(t&&r)throw new RangeError(Si(r));return Qt((Ur(n[2])*Bi+Ur(n[3])*qi+Ur(n[4])*xi+xr(n[5]||""))*Br(n[1]))})(r,t):void 0}function kr(n){const t=Br(n[1]),r=parseInt(n[2]||n[3]);if(t<0&&!r)throw new RangeError(Si(-0));return t*r}function Lr(n){const t=Ur(n[3]);return{...z(xr(n[4]||""))[0],isoHour:Ur(n[1]),isoMinute:Ur(n[2]),isoSecond:60===t?59:t}}function Wr(n){let t,r;const e=[];if(n.replace(qc,((n,o,i)=>{const u=Boolean(o),[c,s]=i.split("=").reverse();if(s){if("u-ca"===s)e.push(c),t||(t=u);else if(u)throw new RangeError(Si(n))}else{if(r)throw new RangeError(Si(n));r=c}return""})),e.length>1&&t)throw new RangeError(Si(n));return{timeZone:r,calendar:e[0]||au}}function xr(n){return parseInt(n.padEnd(9,"0"))}function qr(n){return new RegExp(`^${n}$`,"i")}function Br(n){return n&&"+"!==n?-1:1}function Ur(n){return void 0===n?0:parseInt(n)}function Jr(n){const t=Ar(n);return"number"==typeof t?qt(t):t?(n=>n.toLowerCase().split("/").map(((n,t)=>(n.length<=3||/\d/.test(n))&&!/etc|yap/.test(n)?n.toUpperCase():n.replace(/baja|dumont|[a-z]+/g,((n,r)=>n.length<=2&&!t||"in"===n||"chat"===n?n.toUpperCase():n.length>2||!r?v(n).replace(/island|noronha|murdo|rivadavia|urville/,v):n)))).join("/"))(n):vc}function Hr(n){const t=Ar(n);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:vc}function Ar(n){const t=$r(n=n.toUpperCase(),1);return void 0!==t?t:n!==vc?Uc(n):void 0}function zr(n,t){return C(n.epochNanoseconds,t.epochNanoseconds)}function _r(n,t){return C(n.epochNanoseconds,t.epochNanoseconds)}function Gr(n,t){return Kr(n,t)||Qr(n,t)}function Kr(n,t){return M(K(n),K(t))}function Qr(n,t){return M(A(n),A(t))}function Vr(n,t){if(n===t)return 1;const r=ct(n),e=ct(t);if(r===e)return 1;try{return Hr(r)===Hr(e)}catch(n){}}function Xr(n,t,r,e){const o=kn(n,_n(e),3,5),i=fe(t.epochNanoseconds,r.epochNanoseconds,...o);return ut(n?mr(i):i)}function ne(n,t,r,e,o,i){const u=me(e.calendar,o.calendar),c=_n(i),[s,a,f,h]=kn(r,c,5),d=e.epochNanoseconds,l=o.epochNanoseconds,w=C(l,d);let m;if(w)if(s<6)m=fe(d,l,s,a,f,h);else{const r=t(((n,t)=>{if(!Vr(n,t))throw new RangeError(vi);return n})(e.timeZone,o.timeZone)),i=n(u);m=se(i,r,w,d,l,s,c),!w||0===a&&1===f||(m=yt(m,l,s,a,f,h,d,y,g(or,i,r)))}else m=pu;return ut(r?mr(m):m)}function te(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o),[c,s,a,f]=kn(t,u,6),h=Q(r),d=Q(e),l=C(d,h);let w;if(l)if(c<=6)w=fe(h,d,c,s,a,f);else{const t=n(i);w=ae(t,l,r,e,c,u),!l||0===s&&1===a||(w=yt(w,d,c,s,a,f,r,Q,g(ir,t)))}else w=pu;return ut(t?mr(w):w)}function re(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o);return oe(t||0,(()=>n(i)),r,e,...kn(t,u,6,9,6),u)}function ee(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o),c=kn(t,u,9,9,8),s=n(i);return oe(t||0,(()=>s),cr(s,r),cr(s,e),...c,u)}function oe(n,t,r,e,o,i,u,c,s){const a=Q(r),f=Q(e);let h;if(C(f,a)){let n;6===o?h=de(r,e):(n=t(),h=n.dateUntil(r,e,o,s)),6===i&&1===u||(n||(n=t()),h=yt(h,f,o,i,u,c,r,Q,((t,r)=>n.dateAdd(t,r))))}else h=pu;return ut(n?mr(h):h)}function ie(n,t,r,e){const o=_n(e),[i,u,c,s]=kn(n,o,5,5),a=A(t),f=bt(A(r)-a,vt(u,c),s),h={...pu,...pr(f,i)};return ut(n?mr(h):h)}function ue(n,t,r,e,o,i){const u=C(e,r);return u?o<6?he(r,e,o):se(n,t,u,r,e,o,i):pu}function ce(n,t,r,e,o){const i=Q(t),u=Q(r),c=C(u,i);return c?e<=6?he(i,u,e):ae(n,c,t,r,e,o):pu}function se(n,t,r,e,o,i,u){const c=zt(t,e),s=d(Eu,c),a=zt(t,o),f=g(Gt,t);let h,l,w,m=0;do{if(m>2)throw new RangeError(mi);h={...fr(a,m++*-r),...s},l=f(h),w=C(o,l)}while(w===-r);return{...6===i?de(c,h):n.dateUntil(c,h,i,u),...pr(W(Z(l,o)))}}function ae(n,t,r,e,o,i){const u=A(r);let c=A(e)-u,s=r;return Math.sign(c)===-t&&(s=fr(r,t),c+=Ui*t),{...n.dateUntil({...s,...Su},{...e,...Su},o,i),...pr(c)}}function fe(n,t,r,e,o,i){return{...pu,...br(Mt(Z(n,t),e,o,i),r)}}function he(n,t,r){return{...pu,...br(Z(n,t),r)}}function de(n,t){return{...pu,days:le(n,t)}}function le(n,t){return we(K(n),K(t))}function we(n,t){return Math.round((t-n)/$i)}function me(n,t){if(!st(n,t))throw new RangeError(yi);return n}function ge(n){return o((t=>{const r=K(t);return n(r)}),WeakMap)}function ye(n){const t=n(0).year-$u;return o((r=>{let e,o=nn(r-t);const i=[],u=[];do{o+=400*$i}while((e=n(o)).year<=r);do{o+=(1-e.day)*$i,e.year===r&&(i.push(o),u.push(e.month)),o-=$i}while((e=n(o)).year>=r);return{P:i.reverse(),v:Ni(u.reverse())}}))}function ve(n,t){let r,e,o=be(n);if(n.era){const u=du[t];void 0!==u&&(i=(i=n.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),r=lu[i]||i,e=o,o=Ye(e,u[r]||0))}var i;return{era:r,eraYear:e,year:o}}function be(n){return parseInt(n.relatedYear||n.year)}function pe(n){const{year:t,month:r,day:e}=this.I(n),{v:o}=this.N(t);return[t,o[r]+1,e]}function Me(n,t=1,r=1){return this.N(n).P[t-1]+(r-1)*$i}function Ee(n){const t=Re(this,n),r=Re(this,n-1),e=t.length;if(e>r.length){const n=Ze(this);if(n<0)return-n;for(let n=0;n<e;n++)if(t[n]!==r[n])return n+1}}function Oe(n){return we(Me.call(this,n),Me.call(this,n+1))}function Ie(n,t){const{P:r}=this.N(n);let e=t+1,o=r;return e>r.length&&(e=1,o=this.N(n+1).P),we(r[t-1],o[e-1])}function Te(n){return this.N(n).P.length}function Re(n,t){return Object.keys(n.N(t).v)}function De(n){if((n=(n=>("islamicc"===(n=n.toLowerCase())&&(n="islamic-civil"),n))(n))!==au&&n!==fu&&Se(n)!==Se(Hc(n).resolvedOptions().calendar))throw new RangeError(gi(n));return n}function Se(n){return n.split("-")[0]}function je(n){const t=zc.exec(n);if(!t)throw new RangeError(fi(n));return[parseInt(t[1]),Boolean(t[2])]}function Pe(n,t,r){return n+(t||r&&n>=r?1:0)}function Ne(n,t){return n-(t&&n>=t?1:0)}function Ye(n,t){return(t+n)*(Math.sign(t)||1)||0}function Fe(n){return du[Ce(n)]}function Ze(n){return wu[Ce(n)]}function Ce(n){return Se(n.id||au)}function $e(n,t,r,e=[]){const o=We(n,t,iu,e);return n.dateFromFields(o,r)}function ke(n,t,r,e){const o=We(n,t,eu,e);return n.yearMonthFromFields(o,r)}function Le(n,t,r,e,o=[]){const i=We(n,r,iu,o);return t&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=ku),n.monthDayFromFields(i,e)}function We(n,t,r,e=[],o=[]){return xe(t,[...n.fields(r),...o].sort(),e)}function xe(n,t,r,e=!r){const o={};let i,u=0;for(const e of t){if(e===i)throw new RangeError(ri(e));if("constructor"===e||"__proto__"===e)throw new RangeError(ti(e));let t=n[e];if(void 0!==t)u=1,_c[e]&&(t=_c[e](t,e)),o[e]=t;else if(r){if(r.includes(e))throw new TypeError(ni(e));o[e]=su[e]}i=e}if(e&&!u)throw new TypeError(ei);return o}function qe(n,t){return vn(Gc({...su,...n}),t)}function Be(n,t,r,e,o=[],i=[]){const u=[...n.fields(e),...o].sort();let c=xe(t,u,i);const s=xe(r,u);return c=n.mergeFields(c,s),xe(c,u,[])}function Ue(n,t){const r=We(n,t,cu);return n.monthDayFromFields(r)}function Je(n,t,r){const e=We(n,t,ou);return n.yearMonthFromFields(e,r)}function He(n,t,r,e,o){t=d(r=n.fields(r),t),e=xe(e,o=n.fields(o),[]);let i=n.mergeFields(t,e);return i=xe(i,[...r,...o].sort(),[]),n.dateFromFields(i)}function Ae(n,t){let{era:r,eraYear:e,year:o}=t;const i=Fe(n);if(void 0!==r||void 0!==e){if(void 0===r||void 0===e)throw new TypeError(ui);if(!i)throw new RangeError(ii);const n=i[r];if(void 0===n)throw new RangeError(si(r));const t=Ye(e,n);if(void 0!==o&&o!==t)throw new RangeError(ci);o=t}else if(void 0===o)throw new TypeError(ai(i));return o}function ze(t,r,e,o){let{month:i,monthCode:u}=r;if(void 0!==u){const n=((n,t,r,e)=>{const o=n.F(r),[i,u]=je(t);let c=Pe(i,u,o);if(u){const t=Ze(n);if(void 0===t)throw new RangeError(wi);if(t>0){if(c>t)throw new RangeError(wi);if(void 0===o){if(1===e)throw new RangeError(wi);c--}}else{if(c!==-t)throw new RangeError(wi);if(void 0===o&&1===e)throw new RangeError(wi)}}return c})(t,u,e,o);if(void 0!==i&&i!==n)throw new RangeError(hi);i=n,o=1}else if(void 0===i)throw new TypeError(di);return n("month",i,1,t.O(e),o)}function _e(n,r,e,o,i){return t(r,"day",1,n.k(o,e),i)}function Ge(n,t,r,e){let o=0;const i=[];for(const n of r)void 0!==t[n]?o=1:i.push(n);if(Object.assign(n,t),o)for(const t of e||i)delete n[t]}function Ke(n,t,r=au){return nt(n.epochNanoseconds,t,r)}function Qe(n,t){return tt(Oc(t,n))}function Ve(n,t){return rt(Oc(t,n))}function Xe(n,t){return it(Oc(t,n))}function no(n,t){return{...n,calendar:t}}function to(n,t){if(n===t)return n;const r=ct(n),e=ct(t);if(r===e||r===au)return t;if(e===au)return n;throw new RangeError(yi)}function ro(n,t,r=[]){const e=new Set(r);return r=>(((n,t)=>{for(const r of t)if(r in n)return 1;return 0})(r=l(e,r),n)||Object.assign(r,t),r)}function eo(n,t){return Gt(Tc(t.timeZone),{...Su,isoHour:12,...n})}function oo(n){return n.epochNanoseconds}function io(n,t=uo){const[r,,,e]=n;return(o,i=Rs,...u)=>{const c=t(e?e(...u):void 0,o,i,r),s=c.resolvedOptions();return[c,...co(n,s,...u)]}}function uo(n,t,r,e){if(r=e(r),n){if(void 0!==r.timeZone)throw new TypeError(Pi);r.timeZone=n}return new ju(t,r)}function co(n,t,...r){const[,e,o]=n;return r.map((n=>(n.calendar&&((n,t,r)=>{if((r||n!==au)&&n!==t)throw new RangeError(yi)})(ct(n.calendar),t.calendar,o),G(e(n,t)))))}function so(n,t,r,e,o){function a(...n){if(!(this instanceof a))throw new TypeError(oi);js(this,t(...n))}function h(n,t){return Object.defineProperties((function(...t){return n.call(this,d(this),...t)}),i(t))}function d(t){const r=Ss(t);if(!r||r.branding!==n)throw new TypeError(oi);return r}return Object.defineProperties(a.prototype,{...c(f(h,r)),...u(f(h,e)),...s("Temporal."+n)}),Object.defineProperties(a,{...u(o),...i(n)}),[a,n=>{const t=Object.create(a.prototype);return js(t,n),t},d]}function ao(n){return n=n.concat("id").sort(),t=>{if(!((n,t)=>{for(const r of t)if(!(r in n))return 0;return 1})(t,n))throw new TypeError("Invalid protocol");return t}}function fo(n){if(Ss(n)||void 0!==n.calendar||void 0!==n.timeZone)throw new TypeError("Invalid bag");return n}function ho(n){return function(...t){const r=Ns.get(this),[e,...o]=r(...t);return e[n](...o)}}function lo(n){return function(...t){return Ns.get(this).J[n](...t)}}function wo(n){const t=Ys[n];if(!t)throw new TypeError(ji(n));return io(t,o(uo))}function mo(n,t){const r={};for(const e in n)r[e]=({K:n},r)=>{const o=Ss(r)||{},{branding:i}=o,u=i===hc||t.includes(i)?o:Zo(r);return n[e](u)};return r}function go(n){const t={};for(const r in n)t[r]=n=>{const{calendar:t}=n;return(e=t,"string"==typeof e?Vc(e):(o=e,Object.assign(Object.create(Ks),{X:o})))[r](n);var e,o};return t}function yo(){throw new TypeError("Cannot use valueOf")}function vo({calendar:n}){return"string"==typeof n?new Ka(n):n}function bo(n,t){if(t=_n(t),e(n)){const r=Ss(n);if(r&&r.branding===fc)return Zn(t),r;const e=xo(n);return Le(La(e||au),!e,n,t)}const r=((n,t)=>{const r=Cr(Bu(t));if(r)return Sr(r),ot(mn(r));const e=Dr(t),{calendar:o}=e,i=n(o),[u,c,s]=i.u(e),[a,f]=i.l(u,c),[h,d]=i.m(a,f,s);return ot(i.p(h,d,s),o)})(Vc,n);return Zn(t),r}function po(n,t,r){return Qt(Mn(t.call(n,da(Xn(r)))))}function Mo(n,t=oa){const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,Hu(n[o]));return e}function Eo(n,t){return"string"==typeof n?Tc(n):Mo(n,t)}function Oo(n){return Eo(n,ia)}function Io(n,t){if(t=_n(t),e(n)){const r=Ss(n);return r&&r.branding===ac?(Zn(t),r):ke($a(Wo(n)),n,t)}const r=((n,t)=>{const r=Zr(Bu(t));if(r)return Sr(r),et(B(mn(r)));const e=Dr(t),o=cr(n(e.calendar),e);return et({...e,...o})})(Vc,n);return Zn(t),r}function To(n,t){if(t=_n(t),e(n)){const r=Ss(n);if(r&&r.branding===wc)return Cn(t),r;const e=Wo(n);return((n,t,r,e,o,i)=>{const u=We(r,o,iu,_i,Ki),c=n(u.timeZone),[s,a,f]=Cn(i),h=r.dateFromFields(u,Gn(i,s)),d=qe(u,s);return nt(_t(t(c),{...h,...d},void 0!==u.offset?Rr(u.offset):void 0,a,f),c,e)})(Po,Eo,ka(e),e,n,t)}return((n,t)=>{const r=Fr(Bu(n));if(!r||!r.timeZone)throw new RangeError(Di(n));const{offset:e}=r,o=e?Rr(e):void 0,[,i,u]=Cn(t);return jr(r,o,i,u)})(n,t)}function Ro(n){return Oc(n,Oo)}function Do(n){return f((n=>t=>n(Ro(t))),n)}function So(n){if(e(n)){const t=Ss(n);if(t)switch(t.branding){case mc:return t;case wc:return Xn(t.epochNanoseconds)}}return(n=>{const t=Fr(n=Sn(n));if(!t)throw new RangeError(Di(n));let r;if(t.o)r=0;else{if(!t.offset)throw new RangeError(Di(n));r=Rr(t.offset)}return t.timeZone&&$r(t.timeZone,1),Xn(V(wn(t),r))})(n)}function jo(n,t,r){const e=t.C(So(r).epochNanoseconds,n);return e?da(Xn(e)):null}function Po(n){return e(n)?(Ss(n)||{}).timeZone||ga(n):(n=>Jr((n=>{const t=Fr(n);return t&&(t.timeZone||t.o&&vc||t.offset)||n})(Bu(n))))(n)}function No(n,t){if(e(n)){const r=Ss(n)||{};switch(r.branding){case lc:return Zn(t),r;case dc:return Zn(t),it(r);case wc:return Zn(t),Xe(Oo,r)}return((n,t)=>{const r=Zn(t);return it(qe(xe(n,Ai,[],1),r))})(n,t)}return Zn(t),(n=>{let t,r=(n=>{const t=Wc.exec(n);return t?(Wr(t[10]),Lr(t)):void 0})(Bu(n));if(!r){if(r=Fr(n),!r)throw new RangeError(Di(n));if(!r.i)throw new RangeError(Di(n));if(r.o)throw new RangeError(Si("Z"));Sr(r)}if((t=Zr(n))&&gn(t))throw new RangeError(Di(n));if((t=Cr(n))&&gn(t))throw new RangeError(Di(n));return it(vn(r,1))})(n)}function Yo(n){return void 0===n?void 0:No(n)}function Fo(n,t){if(t=_n(t),e(n)){const r=Ss(n)||{};switch(r.branding){case dc:return Zn(t),r;case hc:return Zn(t),tt({...r,...Su});case wc:return Zn(t),Qe(Oo,r)}return((n,t,r)=>{const e=We(n,t,iu,[],Hi),o=Zn(r);return tt(J({...n.dateFromFields(e,Gn(r,o)),...qe(e,o)}))})(ka(Wo(n)),n,t)}const r=(n=>{const t=Fr(Bu(n));if(!t||t.o)throw new RangeError(Di(n));return tt(Pr(t))})(n);return Zn(t),r}function Zo(n,t){if(t=_n(t),e(n)){const r=Ss(n)||{};switch(r.branding){case hc:return Zn(t),r;case dc:return Zn(t),rt(r);case wc:return Zn(t),Ve(Oo,r)}return $e(ka(Wo(n)),n,t)}const r=Dr(n);return Zn(t),r}function Co(n,t,r){return En(t.call(n,Ea(rt(r,n))))}function $o(n){return t=>"string"==typeof t?Vc(t):((n,t)=>{const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,n[o]);return e})(t,n)}function ko(n){if(e(n)){const t=Ss(n);return t&&t.branding===gc?t:(n=>{const t=xe(n,gu);return ut(yr({...pu,...t}))})(n)}return(n=>{const t=(n=>{const t=Bc.exec(n);return t?(n=>{function t(n,t,i){let u=0,c=0;if(i&&([u,o]=O(o,Ji[i])),void 0!==n){if(e)throw new RangeError(Si(n));c=(n=>{const t=parseInt(n);if(!Number.isFinite(t))throw new RangeError(Si(n));return t})(n),r=1,t&&(o=xr(t)*(Ji[i]/xi),e=1)}return u+c}let r=0,e=0,o=0,i={...a(mu,[t(n[2]),t(n[3]),t(n[4]),t(n[5]),t(n[6],n[7],5),t(n[8],n[9],4),t(n[10],n[11],3)]),...P(o,2,mu)};if(!r)throw new RangeError(ei);return Br(n[1])<0&&(i=mr(i)),i})(t):void 0})(Bu(n));if(!t)throw new RangeError(Di(n));return ut(t)})(n)}function Lo(n){if(void 0!==n){if(e(n)){const t=Ss(n)||{};switch(t.branding){case wc:case hc:return t;case dc:return rt(t)}const r=Wo(n);return{...((n,t,r,e)=>{const o=We(r,e,iu,[],Ki);if(void 0!==o.timeZone){const e=r.dateFromFields(o),i=qe(o),u=n(o.timeZone);return{epochNanoseconds:_t(t(u),{...e,...i},void 0!==o.offset?Rr(o.offset):void 0),timeZone:u}}return{...r.dateFromFields(o),...Su}})(Po,Eo,ka(r),n),calendar:r}}return(n=>{const t=Fr(Bu(n));if(!t)throw new RangeError(Di(n));if(t.timeZone)return jr(t,t.offset?Rr(t.offset):void 0);if(t.o)throw new RangeError(Di(n));return Nr(t)})(n)}}function Wo(n){return xo(n)||au}function xo(n){const{calendar:t}=n;if(void 0!==t)return qo(t)}function qo(n){return e(n)?(Ss(n)||{}).calendar||Qa(n):(n=>De((n=>{const t=Fr(n)||Zr(n)||Cr(n);return t?t.calendar:n})(Bu(n))))(n)}function Bo(n){const t=zt(n,Uo());return d(Iu,t)}function Uo(){return k(Date.now(),Wi)}function Jo(){return Va||(Va=(new ju).resolvedOptions().timeZone)}const Ho=(n,t)=>`Non-integer ${n}: ${t}`,Ao=(n,t)=>`Non-positive ${n}: ${t}`,zo=(n,t)=>`Non-finite ${n}: ${t}`,_o=n=>`Cannot convert bigint to ${n}`,Go=n=>`Invalid bigint: ${n}`,Ko="Cannot convert Symbol to string",Qo="Invalid object",Vo=(n,t,r,e)=>`${n} ${t} must be between ${r}-${e}`,Xo=(n,t)=>`Invalid ${n}: ${t}`,ni=n=>`Missing ${n}`,ti=n=>`Invalid field ${n}`,ri=n=>`Duplicate field ${n}`,ei="No valid fields",oi="Invalid calling context",ii="Forbidden era/eraYear",ui="Mismatching era/eraYear",ci="Mismatching year/eraYear",si=n=>`Invalid era: ${n}`,ai=n=>"Missing year"+(n?"/era/eraYear":""),fi=n=>`Invalid monthCode: ${n}`,hi="Mismatching month/monthCode",di="Missing month/monthCode",li="Cannot guess year",wi="Invalid leap month",mi="Invalid protocol results",gi=n=>`Invalid Calendar: ${n}`,yi="Mismatching Calendars",vi="Mismatching TimeZones",bi="Out-of-bounds offset",pi="Invalid offset for TimeZone",Mi="Ambiguous offset",Ei="Out-of-bounds date",Oi="Cannot mix duration signs",Ii="Missing relativeTo",Ti="Cannot use large units",Ri="smallestUnit > largestUnit",Di=n=>`Cannot parse: ${n}`,Si=n=>`Invalid substring: ${n}`,ji=n=>`Cannot format ${n}`,Pi="Forbidden timeZone",Ni=g(h,((n,t)=>t)),Yi=g(h,((n,t,r)=>r)),Fi=g(p,2),Zi={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Ci=Object.keys(Zi),$i=864e5,ki=1e3,Li=1e3,Wi=1e6,xi=1e9,qi=6e10,Bi=36e11,Ui=864e11,Ji=[1,Li,Wi,xi,qi,Bi,Ui],Hi=Ci.slice(0,6),Ai=b(Hi),zi=["offset"],_i=["timeZone"],Gi=[...Hi,...zi],Ki=[...Gi,..._i],Qi=["era","eraYear"],Vi=[...Qi,"year"],Xi=["year"],nu=["monthCode"],tu=["month",...nu],ru=["day"],eu=[...tu,...Xi],ou=[...nu,...Xi],iu=[...ru,...eu],uu=[...ru,...tu],cu=[...ru,...nu],su=Yi(Hi,0),au="iso8601",fu="gregory",hu="japanese",du={[fu]:{bce:-1,ce:0},[hu]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},lu={bc:"bce",ad:"ce"},wu={chinese:13,dangi:13,hebrew:-6},mu=Ci.map((n=>n+"s")),gu=b(mu),yu=mu.slice(0,6),vu=mu.slice(6),bu=Ni(mu),pu=Yi(mu,0),Mu=Yi(yu,0),Eu=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Ou=["isoDay","isoMonth","isoYear"],Iu=[...Eu,...Ou],Tu=b(Ou),Ru=b(Eu),Du=b(Iu),Su=Yi(Ru,0),ju=Intl.DateTimeFormat,Pu="en-GB",Nu=1e8,Yu=[Nu,0],Fu=[-Nu,0],Zu=275760,Cu=-271821,$u=1970,ku=1972,Lu=12,Wu=7,xu=nn(1868,9,8),qu=o((n=>{const t=K(n);if(t<xu)return ln(n);const r=q(Hc(hu),t),{era:e,eraYear:o}=ve(r,hu);return[e,o]}),WeakMap),Bu=g(pn,"string"),Uu=g(pn,"boolean"),Ju=g(pn,"number"),Hu=g(pn,"function"),Au="smallestUnit",zu="unit",_u="roundingIncrement",Gu="fractionalSecondDigits",Ku="relativeTo",Qu={constrain:0,reject:1},Vu=Object.keys(Qu),Xu=g(Kn,Au),nc=g(Kn,"largestUnit"),tc=g(Kn,zu),rc=g(Qn,"overflow",Qu),ec=g(Qn,"disambiguation",{compatible:0,reject:1,earlier:2,later:3}),oc=g(Qn,"offset",{reject:0,use:1,prefer:2,ignore:3}),ic=g(Qn,"calendarName",{auto:0,never:1,critical:2,always:3}),uc=g(Qn,"timeZoneName",{auto:0,never:1,critical:2}),cc=g(Qn,"offset",{auto:0,never:1}),sc=g(Qn,"roundingMode",{floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8}),ac="PlainYearMonth",fc="PlainMonthDay",hc="PlainDate",dc="PlainDateTime",lc="PlainTime",wc="ZonedDateTime",mc="Instant",gc="Duration",yc=[Math.floor,n=>S(n)?Math.floor(n):Math.round(n),Math.ceil,n=>S(n)?Math.ceil(n):Math.round(n),Math.trunc,n=>S(n)?Math.trunc(n)||0:Math.round(n),n=>n<0?Math.floor(n):Math.ceil(n),n=>Math.sign(n)*Math.round(Math.abs(n))||0,n=>S(n)?(n=Math.trunc(n)||0)+n%2:Math.round(n)],vc="UTC",bc=5184e3,pc=X(1847),Mc=X((new Date).getUTCFullYear()+10),Ec=/0+$/,Oc=o(((n,t)=>{const{epochNanoseconds:r}=n,e=(t.getOffsetNanosecondsFor?t:t(n.timeZone)).getOffsetNanosecondsFor(r),o=rn(r,e);return{calendar:n.calendar,...o,offsetNanoseconds:e}}),WeakMap),Ic=o(gr,WeakMap),Tc=o((n=>{const t=Ar(n);return"object"==typeof t?new Dc(t):new Rc(t||0)}));class Rc{constructor(n){this.h=n}getOffsetNanosecondsFor(){return this.h}getPossibleInstantsFor(n){return[V(n,this.h)]}C(){}}class Dc{constructor(n){this.B=(n=>{function t(n){const t=E(n,u,c),[o,s]=Tr(t),a=e(o),f=e(s);return a===f?a:r(i(o,s),a,f,n)}function r(t,r,e,o){let i,u;for(;(void 0===o||void 0===(i=o<t[0]?r:o>=t[1]?e:void 0))&&(u=t[1]-t[0]);){const r=t[0]+Math.floor(u/2);n(r)===e?t[1]=r:t[0]=r+1}return i}const e=o(n),i=o(Ir);let u=pc,c=Mc;return{R(n){const r=t(n-86400),e=t(n+86400),o=n-r,i=n-e;if(r===e)return[o];const u=t(o);return u===t(i)?[n-u]:r>e?[o,i]:[]},q:t,C(n,t){const o=E(n,u,c);let[s,a]=Tr(o);const f=bc*t,h=t<0?()=>a>u||(u=o,0):()=>s<c||(c=o,0);for(;h();){const o=e(s),u=e(a);if(o!==u){const e=i(s,a);r(e,o,u);const c=e[0];if((M(c,n)||1)===t)return c}s+=f,a+=f}}}})((n=>t=>{const r=q(n,t*ki);return X(be(r),parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-t})(n))}getOffsetNanosecondsFor(n){return this.B.q(_(n))*xi}getPossibleInstantsFor(n){const[t,r]=[X((e=n).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond),e.isoMillisecond*Wi+e.isoMicrosecond*Li+e.isoNanosecond];var e;return this.B.R(t).map((n=>H(Y(k(n,xi),r))))}C(n,t){const[r,e]=(n=>x(n,xi))(n),o=this.B.C(r+(t>0||e?1:0),t);if(void 0!==o)return k(o,xi)}}const Sc="([+āˆ’-])",jc="(?:[.,](\\d{1,9}))?",Pc=`(?:(?:${Sc}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Nc="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+jc+")?)?",Yc=Sc+Nc,Fc=Pc+"-?(\\d{2})(?:[T ]"+Nc+"(Z|"+Yc+")?)?",Zc="\\[(!?)([^\\]]*)\\]",Cc=`((?:${Zc})*)`,$c=qr(Pc+Cc),kc=qr("(?:--)?(\\d{2})-?(\\d{2})"+Cc),Lc=qr(Fc+Cc),Wc=qr("T?"+Nc+"(?:"+Yc+")?"+Cc),xc=qr(Yc),qc=new RegExp(Zc,"g"),Bc=qr(`${Sc}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${jc}H)?(?:(\\d+)${jc}M)?(?:(\\d+)${jc}S)?)?`),Uc=o((n=>new ju(Pu,{timeZone:n,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Jc=o((n=>{function t(n){return((n,t)=>({...ve(n,t),month:n.month,day:parseInt(n.day)}))(q(r,n),e)}const r=Hc(n),e=Se(n);return{id:n,I:ge(t),N:ye(t)}})),Hc=o((n=>new ju(Pu,{calendar:n,timeZone:vc,era:"short",year:"numeric",month:"short",day:"numeric"}))),Ac={dateAdd:ar,dateUntil(n,t,r){if(r<=7){let e=0,o=le(n,t);return 7===r&&([e,o]=T(o,Wu)),{...pu,weeks:e,days:o}}const e=this.u(n),o=this.u(t);let[i,u,c]=((n,t,r,e,o,i,u)=>{function c(){const[e,u]=n.l(t,r),[c,s]=n.l(o,i);a=o-t,f=n.O(o),h=a?c-e||Number(s)-Number(u):i-Math.min(r,f)}function s(){c(),d=n.k(o,i),l=u-Math.min(e,d)}let a,f,h,d,l;s();const w=Math.sign(l),m=Math.sign(a)||Math.sign(h)||w;if(m){if(w===-m){const t=d;[o,i]=n.L(o,i,-m),s(),l+=m<0?-t:d}if(Math.sign(h)===-m){const n=f;o-=m,c(),h+=m<0?-n:f}}return[a,h,l]})(this,...e,...o);return 8===r&&(u+=this.j(i,e[0]),i=0),{...pu,years:i,months:u,days:c}},dateFromFields(n,t){const r=Zn(t),e=Ae(this,n),o=ze(this,n,e,r),i=_e(this,n,o,e,r);return rt(U(this.p(e,o,i)),this.id||au)},yearMonthFromFields(n,t){const r=Zn(t),e=Ae(this,n),o=ze(this,n,e,r);return et(B(this.p(e,o,1)),this.id||au)},monthDayFromFields(t,e){const o=Zn(e),i=!this.id,{monthCode:u,year:c,month:s}=t;let a,f,h,d,l;if(void 0!==u){[a,f]=je(u),l=r(t,"day");const e=this.m(a,f,l);if(!e)throw new RangeError(li);if([h,d]=e,void 0!==s&&s!==d)throw new RangeError(hi);i&&(d=n("month",d,1,Lu,1),l=n("day",l,1,un(void 0!==c?c:h,d),o))}else{h=void 0===c&&i?ku:Ae(this,t),d=ze(this,t,h,o),l=_e(this,t,d,h,o);const n=this.F(h);f=d===n,a=Ne(d,n);const r=this.m(a,f,l);if(!r)throw new RangeError(li);[h,d]=r}return ot(this.p(h,d,l),this.id||au)},fields(n){return Fe(this)&&n.includes("year")?[...n,...Qi]:n},mergeFields(n,t){const r=Object.assign(Object.create(null),n);return Ge(r,t,tu),Fe(this)&&(Ge(r,t,Vi),this.id===hu&&Ge(r,t,uu,Qi)),r},inLeapYear(n){const[t]=this.u(n);return this.$(t)},monthsInYear(n){const[t]=this.u(n);return this.O(t)},daysInMonth(n){const[t,r]=this.u(n);return this.k(t,r)},daysInYear(n){const[t]=this.u(n);return this.G(t)},era(n){return this.V(n)[0]},eraYear(n){return this.V(n)[1]},monthCode(n){const[t,r]=this.u(n),[e,o]=this.l(t,r);return((n,t)=>"M"+Fi(n)+(t?"L":""))(e,o)},dayOfWeek:fn,weekOfYear(n){return hn(n)[1]},yearOfWeek(n){return hn(n)[0]},daysInWeek(){return Wu}},zc=/^M(\d{2})(L?)$/,_c={era:Sn,eraYear:Nn,year:Nn,month:Fn,monthCode:Sn,day:Fn,...Yi(Hi,Nn),...Yi(mu,Yn),offset:Sn},Gc=g(((n,t,r)=>{const e={};for(let o=0;o<n.length;o++)e[t[o]]=r[n[o]];return e}),Hi,Eu),Kc={...Ac,u(n){return[n.isoYear,n.isoMonth,n.isoDay]},V(n){return this.id===fu?ln(n):this.id===hu?qu(n):[void 0,void 0]},l(n,t){return[t,0]},m(n,t){if(!t)return[ku,n]},$:sn,F(){},O:on,j:n=>n*Lu,k:un,G:cn,dayOfYear:an,p(n,t,r){return{isoYear:n,isoMonth:t,isoDay:r}},U:nn,L(n,t,r){return n+=R(r,Lu),(t+=D(r,Lu))<1?(n--,t+=Lu):t>Lu&&(n++,t-=Lu),[n,t]},year(n){return n.isoYear},month(n){return n.isoMonth},day:n=>n.isoDay},Qc={...Ac,u:pe,V(n){const t=this.I(n);return[t.era,t.eraYear]},l(n,t){const r=Ee.call(this,n);return[Ne(t,r),r===t]},m(n,t,r){let[e,o,i]=pe.call(this,{isoYear:ku,isoMonth:Lu,isoDay:31});const u=Ee.call(this,e),c=o===u;1===(M(n,Ne(o,u))||M(Number(t),Number(c))||M(r,i))&&e--;for(let o=0;o<100;o++){const i=e-o,u=Ee.call(this,i),c=Pe(n,t,u);if(t===(c===u)&&r<=Ie.call(this,i,c))return[i,c]}},$(n){const t=Oe.call(this,n);return t>Oe.call(this,n-1)&&t>Oe.call(this,n+1)},F:Ee,O:Te,j(n,t){const r=t+n,e=Math.sign(n),o=e<0?-1:0;let i=0;for(let n=t;n!==r;n+=e)i+=Te.call(this,n+o);return i},k:Ie,G:Oe,dayOfYear(n){const t=K({...n,...Su}),{year:r}=this.I(n);return we(Me.call(this,r),t)},p(n,t,r){return U({...en(Me.call(this,n,t,r))})},U:Me,L(n,t,r){if(r)if(t+=r,r<0){if(t<Number.MIN_SAFE_INTEGER)throw new RangeError(Ei);for(;t<1;)t+=Te.call(this,--n)}else{if(t>Number.MAX_SAFE_INTEGER)throw new RangeError(Ei);let r;for(;t>(r=Te.call(this,n));)t-=r,n++}return[n,t]},year(n){return this.I(n).year},month(n){const{year:t,month:r}=this.I(n),{v:e}=this.N(t);return e[r]+1},day(n){return this.I(n).day}},Vc=(Xc=Kc,ns=Qc,n=>n===au?Xc:n===fu||n===hu?Object.assign(Object.create(Xc),{id:n}):Object.assign(Object.create(ns),Jc(n)));var Xc,ns;const ts="numeric",rs=["timeZoneName"],es={month:ts,day:ts},os={year:ts,month:ts},is={...os,day:ts},us={hour:ts,minute:ts,second:ts},cs={...is,...us},ss={...cs,timeZoneName:"short"},as=Object.keys(es),fs=Object.keys(os),hs=[...Object.keys(is),"weekday","dateStyle"],ds=[...Object.keys(us),"dayPeriod","timeStyle"],ls=[...hs,...ds],ws=[...ls,...rs],ms=[...rs,...ds],gs=[...rs,...hs],ys=[...rs,"day","weekday","dateStyle",...ds],vs=ro(as,es,[...rs,"year","weekday","dateStyle",...ds]),bs=[ro(fs,os,ys),eo,1],ps=[vs,eo,1],Ms=[ro(hs,is,ms),eo],Es=[ro(ls,cs,rs),eo],Os=[ro(ds,us,gs),(n,t)=>Gt(Tc(t.timeZone),{isoYear:$u,isoMonth:1,isoDay:1,...n})],Is=[ro(ls,cs),oo],Ts=[ro(ws,ss),oo,0,(n,t)=>{const r=ct(n.timeZone);if(t&&ct(t.timeZone)!==r)throw new RangeError(vi);return r}],Rs={},Ds=new WeakMap,Ss=Ds.get.bind(Ds),js=Ds.set.bind(Ds),Ps=function(){const n=ju.prototype,t=Object.getOwnPropertyDescriptors(n),r=Object.getOwnPropertyDescriptors(ju),e=function(n,t={}){if(!(this instanceof e))return new e(n,t);Ns.set(this,((n,t={})=>{const r=new ju(n,t),e=r.resolvedOptions(),i=e.locale,u=d(Object.keys(t),e),c=o(wo),s=(...n)=>{let t;const e=n.map(((n,r)=>{const e=Ss(n),o=(e||{}).branding;if(r&&t&&t!==o)throw new TypeError("Mismatching types for formatting");return t=o,e}));return t?c(t)(i,u,...e):[r,...n]};return s.J=r,s})(n,t))};for(const n in t){const r=t[n],o=n.startsWith("format")&&ho(n);"function"==typeof r.value?r.value="constructor"===n?e:o||lo(n):o&&(r.get=function(){return o.bind(this)})}return r.prototype.value=Object.create(n,t),Object.defineProperties(e,r),e}(),Ns=new WeakMap,Ys={PlainYearMonth:bs,PlainMonthDay:ps,PlainDate:Ms,PlainDateTime:Es,PlainTime:Os,Instant:Is},Fs=io(bs),Zs=io(ps),Cs=io(Ms),$s=io(Es),ks=io(Os),Ls=io(Is),Ws=io(Ts),xs={era(n){if(void 0!==n&&"string"!=typeof n)throw new TypeError("Expected string or undefined");return n},eraYear(n){if("number"==typeof n)On(n);else if(void 0!==n)throw new TypeError("Expected integer or undefined");return n},year:Mn,month:En,daysInMonth:En,daysInYear:En,inLeapYear:Uu,monthsInYear:En},qs={monthCode:Bu},Bs={day:En},Us={dayOfWeek:En,dayOfYear:En,weekOfYear:En,yearOfWeek:Mn,daysInWeek:En},Js={...xs,...qs,...Bs,...Us},Hs={...mo(xs,[ac]),...mo(Us,[]),...mo(qs,[ac,fc]),...mo(Bs,[fc])},As=go(Js),zs=go({...xs,...qs}),_s=go({...qs,...Bs}),Gs={calendarId:n=>ct(n.calendar)},Ks=f(((n,t)=>function(r){const{X:e}=this;return n(e[t](Ea(rt(r,e))))}),Js),Qs=h((n=>t=>t[n]),mu),Vs=h(((n,t)=>n=>n[Eu[t]]),Hi),Xs={epochSeconds(n){return _(n.epochNanoseconds)},epochMilliseconds(n){return G(n.epochNanoseconds)},epochMicroseconds(n){return L(n.epochNanoseconds,Li)},epochNanoseconds(n){return L(n.epochNanoseconds)}},na=g(l,new Set(["branding"])),[ta,ra,ea]=so(fc,g(((n,t,r,e=au,o=ku)=>{const i=Nn(t),u=Nn(r),c=n(e);return ot(U(mn({isoYear:Nn(o),isoMonth:i,isoDay:u})),c)}),qo),{...Gs,..._s},{with(n,t,r){return ra(((n,t,r,e,o)=>{const i=_n(o);return((n,t,r,e)=>{const o=Be(n,t,r,iu);return n.monthDayFromFields(o,e)})(n(t.calendar),r,e,i)})(qa,n,this,fo(t),r))},equals(n,t){return!Kr(r=n,e=bo(t))&&st(r.calendar,e.calendar);var r,e},toString:Nt,toJSON:n=>Nt(n),toLocaleString(n,t,r){const[e,o]=Zs(t,r,n);return e.format(o)},toPlainDate(n,t){return Ea(((n,t,r,e)=>((n,t,r)=>He(n,t,cu,bn(r),Xi))(n(t.calendar),r,e))(xa,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ra(bo(n,t))}),oa={getOffsetNanosecondsFor:po,getPossibleInstantsFor(n,t,r){return[...t.call(n,pa(tt(r,au)))].map((n=>la(n).epochNanoseconds))}},ia={getOffsetNanosecondsFor:po},[ua,ca,sa]=so(ac,g(((n,t,r,e=au,o=1)=>{const i=Nn(t),u=Nn(r),c=n(e);return et(B(mn({isoYear:i,isoMonth:u,isoDay:Nn(o)})),c)}),qo),{...Gs,...zs},{with(n,t,r){return ca(((n,t,r,e,o)=>{const i=_n(o);return et(((n,t,r,e)=>{const o=Be(n,t,r,eu);return n.yearMonthFromFields(o,e)})(n(t.calendar),r,e,i))})(Wa,n,this,fo(t),r))},add:(n,t,r)=>ca(rr(Ja,0,n,ko(t),r)),subtract:(n,t,r)=>ca(rr(Ja,1,n,ko(t),r)),until:(n,t,r)=>za(ee(Ha,0,n,Io(t),r)),since:(n,t,r)=>za(ee(Ha,1,n,Io(t),r)),equals(n,t){return!Kr(r=n,e=Io(t))&&st(r.calendar,e.calendar);var r,e},toString:Pt,toJSON:n=>Pt(n),toLocaleString(n,t,r){const[e,o]=Fs(t,r,n);return e.format(o)},toPlainDate(n,t){return Ea(((n,t,r,e)=>((n,t,r)=>He(n,t,ou,bn(r),ru))(n(t.calendar),r,e))(xa,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ca(Io(n,t)),compare:(n,t)=>Kr(Io(n),Io(t))}),[aa,fa]=so(wc,g(((n,t,r,e,o=au)=>nt(H($(jn(r))),t(e),n(o))),qo,Po),{...Xs,...Gs,...Do(As),...Do(Vs),hoursInDay:n=>((n,t)=>{const r=n(t.timeZone);return Kt(r,Oc(t,r))/Bi})(Eo,n),offsetNanoseconds:n=>Ro(n).offsetNanoseconds,offset:n=>qt(Ro(n).offsetNanoseconds),timeZoneId:n=>ct(n.timeZone)},{with(n,t,r){return fa(((n,t,r,e,o,i)=>{const u=_n(i),{calendar:c,timeZone:s}=r;return nt(((n,t,r,e,o)=>{const i=Be(n,r,e,iu,Gi,zi),[u,c,s]=Cn(o,2);return _t(t,{...n.dateFromFields(i,Gn(o,u)),...qe(i,u)},Rr(i.offset),c,s)})(n(c),t(s),e,o,u),s,c)})(xa,Eo,n,this,fo(t),r))},withPlainTime:(n,t)=>fa(((n,t,r=Su)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r};return nt(_t(o,i,i.offsetNanoseconds,2),e,t.calendar)})(Eo,n,Yo(t))),withPlainDate:(n,t)=>fa(((n,t,r)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r},u=to(t.calendar,r.calendar);return nt(_t(o,i,i.offsetNanoseconds,2),e,u)})(Eo,n,Zo(t))),withTimeZone:(n,t)=>fa(((n,t)=>({...n,timeZone:t}))(n,Po(t))),withCalendar:(n,t)=>fa(no(n,qo(t))),add:(n,t,r)=>fa(Xt(Ba,Eo,0,n,ko(t),r)),subtract:(n,t,r)=>fa(Xt(Ba,Eo,1,n,ko(t),r)),until:(n,t,r)=>za(ut(ne(Ua,Eo,0,n,To(t),r))),since:(n,t,r)=>za(ut(ne(Ua,Eo,1,n,To(t),r))),round:(n,t)=>fa(((n,t,r)=>{let{epochNanoseconds:e,timeZone:o,calendar:i}=t;const[u,c,s]=Ln(r);if(0===u&&1===c)return t;const a=n(o),f=a.getOffsetNanosecondsFor(e);let h={...rn(e,f),calendar:i};return h={calendar:i,...dt(h,u,c,s,a)},e=_t(a,h,f,2,0,1),nt(e,o,i)})(Eo,n,t)),startOfDay:n=>fa(((n,t)=>{let{epochNanoseconds:r,timeZone:e,calendar:o}=t;const i=n(e);return r=_t(i,{...Oc(t,i),...Su},void 0,0,0,1),nt(r,e,o)})(Eo,n)),equals(n,t){return!_r(r=n,e=To(t))&&!!Vr(r.timeZone,e.timeZone)&&st(r.calendar,e.calendar);var r,e},toString:(n,t)=>Dt(Oo,n,t),toJSON:n=>Dt(Oo,n),toLocaleString(n,t,r={}){const[e,o]=Ws(t,r,n);return e.format(o)},toInstant:n=>da(Xn(n.epochNanoseconds)),toPlainDate:n=>Ea(Ve(Oo,n)),toPlainTime:n=>va(Xe(Oo,n)),toPlainDateTime:n=>pa(Qe(Oo,n)),toPlainYearMonth(n){return ca(Je($a(n.calendar),this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},getISOFields:n=>((n,t)=>{const r=Oc(t,n);return{calendar:t.calendar,...d(Du,r),offset:qt(r.offsetNanoseconds),timeZone:t.timeZone}})(Oo,n),getCalendar:vo,getTimeZone:({timeZone:n})=>"string"==typeof n?new wa(n):n,valueOf:yo},{from:(n,t)=>fa(To(n,t)),compare:(n,t)=>_r(To(n),To(t))}),[ha,da,la]=so(mc,(n=>Xn(H($(jn(n))))),Xs,{add:(n,t)=>da(Vt(0,n,ko(t))),subtract:(n,t)=>da(Vt(1,n,ko(t))),until:(n,t,r)=>za(Xr(0,n,So(t),r)),since:(n,t,r)=>za(Xr(1,n,So(t),r)),round:(n,t)=>da(((n,t)=>{const[r,e,o]=Ln(t,5,1);return Xn(Mt(n.epochNanoseconds,r,e,o,1))})(n,t)),equals(n,t){return!zr(n,So(t))},toString:(n,t)=>Rt(Po,Oo,n,t),toJSON:n=>Rt(Po,Oo,n),toLocaleString(n,t,r){const[e,o]=Ls(t,r,n);return e.format(o)},toZonedDateTimeISO:(n,t)=>fa(Ke(n,Po(t))),toZonedDateTime(n,t){const r=bn(t);return fa(Ke(n,Po(r.timeZone),qo(r.calendar)))},valueOf:yo},{from:n=>da(So(n)),fromEpochSeconds:n=>da((n=>Xn(H(k(n,xi))))(n)),fromEpochMilliseconds:n=>da((n=>Xn(H(k(n,Wi))))(n)),fromEpochMicroseconds:n=>da((n=>Xn(H($(jn(n),Li))))(n)),fromEpochNanoseconds:n=>da((n=>Xn(H($(jn(n)))))(n)),compare:(n,t)=>zr(So(n),So(t))}),[wa,ma]=so("TimeZone",(n=>{const t=Jr(n);return{branding:"TimeZone",id:t,K:Tc(t)}}),{id:n=>n.id},{toString:n=>n.id,toJSON:n=>n.id,getPossibleInstantsFor:({K:n},t)=>n.getPossibleInstantsFor(Fo(t)).map((n=>da(Xn(n)))),getOffsetNanosecondsFor:({K:n},t)=>n.getOffsetNanosecondsFor(So(t).epochNanoseconds),getOffsetStringFor(n,t){const r=So(t).epochNanoseconds;return qt(Mo(this,ia).getOffsetNanosecondsFor(r))},getPlainDateTimeFor(n,t,r=au){const e=So(t).epochNanoseconds,o=Mo(this,ia).getOffsetNanosecondsFor(e);return pa(tt(rn(e,o),qo(r)))},getInstantFor(n,t,r){const e=Fo(t),o=$n(r),i=Mo(this);return da(Xn(Gt(i,e,o)))},getNextTransition:({K:n},t)=>jo(1,n,t),getPreviousTransition:({K:n},t)=>jo(-1,n,t),equals(n,t){return!!Vr(this,Po(t))}},{from(n){const t=Po(n);return"string"==typeof t?new wa(t):t}}),ga=ao(Object.keys(oa)),[ya,va]=so(lc,((n=0,t=0,r=0,e=0,o=0,i=0)=>it(vn(f(Nn,a(Eu,[n,t,r,e,o,i])),1))),Vs,{with(n,t,r){return va(((n,t,r)=>it(((n,t,r)=>{const e=Zn(r);return qe({...d(Ai,n),...xe(t,Ai)},e)})(n,t,r)))(this,fo(t),r))},add:(n,t)=>va(er(0,n,ko(t))),subtract:(n,t)=>va(er(1,n,ko(t))),until:(n,t,r)=>za(ie(0,n,No(t),r)),since:(n,t,r)=>za(ie(1,n,No(t),r)),round:(n,t)=>va(((n,t)=>it(((n,t,r,e)=>wt(n,vt(t,r),e)[0])(n,...Ln(t,5))))(n,t)),equals(n,t){return!Qr(n,No(t))},toString:Yt,toJSON:n=>Yt(n),toLocaleString(n,t,r){const[e,o]=ks(t,r,n);return e.format(o)},toZonedDateTime:(n,t)=>fa(((n,t,r,e,o)=>{const i=bn(o),u=t(i.plainDate),c=n(i.timeZone);return nt(Gt(r(c),{...u,...e}),c,u.calendar)})(Po,Zo,Eo,n,t)),toPlainDateTime(n,t){return pa((r=n,e=Zo(t),tt(J({...r,...e}))));var r,e},getISOFields:na,valueOf:yo},{from:(n,t)=>va(No(n,t)),compare:(n,t)=>Qr(No(n),No(t))}),[ba,pa]=so(dc,g(((n,t,r,e,o=0,i=0,u=0,c=0,s=0,h=0,d=au)=>tt(J(wn(f(Nn,a(Iu,[t,r,e,o,i,u,c,s,h])))),n(d))),qo),{...Gs,...As,...Vs},{with(n,t,r){return pa(((n,t,r,e,o)=>{const i=_n(o);return tt(((n,t,r,e)=>{const o=Be(n,t,r,iu,Hi),i=Zn(e);return J({...n.dateFromFields(o,Gn(e,i)),...qe(o,i)})})(n(t.calendar),r,e,i))})(xa,n,this,fo(t),r))},withPlainTime:(n,t)=>pa(((n,t=Su)=>tt({...n,...t}))(n,Yo(t))),withPlainDate(n,t){return pa((r=n,e=Zo(t),tt({...r,...e},to(r.calendar,e.calendar))));var r,e},withCalendar:(n,t)=>pa(no(n,qo(t))),add:(n,t,r)=>pa(nr(Ba,0,n,ko(t),r)),subtract:(n,t,r)=>pa(nr(Ba,1,n,ko(t),r)),until:(n,t,r)=>za(te(Ua,0,n,Fo(t),r)),since:(n,t,r)=>za(te(Ua,1,n,Fo(t),r)),round:(n,t)=>pa(((n,t)=>tt(dt(n,...Ln(t)),n.calendar))(n,t)),equals(n,t){return!Gr(r=n,e=Fo(t))&&st(r.calendar,e.calendar);var r,e},toString:(n,t)=>St(n,t),toJSON:n=>St(n),toLocaleString(n,t,r){const[e,o]=$s(t,r,n);return e.format(o)},toZonedDateTime:(n,t,r)=>fa(((n,t,r,e)=>nt(((n,t,r,e)=>{const o=$n(e);return H(Gt(n(t),r,o))})(n,r,t,e),r,t.calendar))(Eo,n,Po(t),r)),toPlainDate:n=>Ea(rt(n)),toPlainYearMonth(n){return ca(((n,t,r)=>{const e=n(t.calendar);return et({...t,...Je(e,r)})})($a,n,this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},toPlainTime:n=>va(it(n)),getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>pa(Fo(n,t)),compare:(n,t)=>Gr(Fo(n),Fo(t))}),[Ma,Ea,Oa]=so(hc,g(((n,t,r,e,o=au)=>rt(U(mn(f(Nn,{isoYear:t,isoMonth:r,isoDay:e}))),n(o))),qo),{...Gs,...As},{with(n,t,r){return Ea(((n,t,r,e,o)=>{const i=_n(o);return((n,t,r,e)=>{const o=Be(n,t,r,iu);return n.dateFromFields(o,e)})(n(t.calendar),r,e,i)})(xa,n,this,fo(t),r))},withCalendar:(n,t)=>Ea(no(n,qo(t))),add:(n,t,r)=>Ea(tr(Ba,0,n,ko(t),r)),subtract:(n,t,r)=>Ea(tr(Ba,1,n,ko(t),r)),until:(n,t,r)=>za(re(Ua,0,n,Zo(t),r)),since:(n,t,r)=>za(re(Ua,1,n,Zo(t),r)),equals(n,t){return!Kr(r=n,e=Zo(t))&&st(r.calendar,e.calendar);var r,e},toString:jt,toJSON:n=>jt(n),toLocaleString(n,t,r){const[e,o]=Cs(t,r,n);return e.format(o)},toZonedDateTime(n,t){const r=!e(t)||t instanceof wa?{timeZone:t}:t;return fa(((n,t,r,e,o)=>{const i=n(o.timeZone),u=o.plainTime,c=void 0!==u?t(u):Su;return nt(Gt(r(i),{...e,...c}),i,e.calendar)})(Po,No,Eo,n,r))},toPlainDateTime:(n,t)=>pa(((n,t=Su)=>tt(J({...n,...t})))(n,Yo(t))),toPlainYearMonth(n){return ca(Je($a(n.calendar),this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>Ea(Zo(n,t)),compare:(n,t)=>Kr(Zo(n),Zo(t))}),Ia={fields(n,t,r){return[...t.call(n,r)]}},Ta={dateFromFields(n,t,r,e){return Oa(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Ra={yearMonthFromFields(n,t,r,e){return sa(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Da={monthDayFromFields(n,t,r,e){return ea(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Sa={mergeFields(n,t,r,e){return bn(t.call(n,Object.assign(Object.create(null),r),Object.assign(Object.create(null),e)))}},ja={...Ta,...Sa},Pa={...Ra,...Sa},Na={...Da,...Sa},Ya={dateAdd(n,t,r,e,o){return Oa(t.call(n,Ea(rt(r,n)),za(ut(e)),o))}},Fa={...Ya,dateUntil(n,t,r,e,o,i){return _a(t.call(n,Ea(rt(r,n)),Ea(rt(e,n)),Object.assign(Object.create(null),i,{largestUnit:Ci[o]})))}},Za={...Ya,day:Co},Ca={...Fa,day:Co},$a=$o(Ra),ka=$o(Ta),La=$o(Da),Wa=$o(Pa),xa=$o(ja),qa=$o(Na),Ba=$o(Ya),Ua=$o(Fa),Ja=$o(Za),Ha=$o(Ca),[Aa,za,_a]=so(gc,((n=0,t=0,r=0,e=0,o=0,i=0,u=0,c=0,s=0,h=0)=>ut(yr(f(Yn,a(mu,[n,t,r,e,o,i,u,c,s,h]))))),{...Qs,blank:n=>!Ic(n),sign:n=>Ic(n)},{with:(n,t)=>za(((n,t)=>{return ut((r=n,e=t,yr({...r,...xe(e,gu)})));var r,e})(n,t)),add:(n,t,r)=>za(lr(Lo,Ua,Eo,0,n,ko(t),r)),subtract:(n,t,r)=>za(lr(Lo,Ua,Eo,1,n,ko(t),r)),negated:n=>za(wr(n)),abs:n=>za((n=>{return ut(-1===Ic(t=n)?mr(t):t);var t})(n)),round:(n,t)=>za(((n,t,r,e,o)=>{const i=Or(e),[u,c,s,a,f]=((n,t,r)=>{n=zn(n,Au);let e=nc(n);const o=r(n[Ku]);let i=Un(n);const u=sc(n,7);let c=Xu(n);if(void 0===e&&void 0===c)throw new RangeError("Required smallestUnit or largestUnit");return null==c&&(c=0),null==e&&(e=Math.max(c,t)),Vn(e,c),i=Jn(i,c,1),[e,c,i,u,o]})(o,i,n),h=Math.max(i,u);if(h<6||6===h&&(!f||!f.epochNanoseconds))return ut(((n,t,r,e,o)=>({...pu,...mt(n,t,r,e,o)}))(e,u,c,s,a));if(!f)throw new RangeError(Ii);const d=hr(t,r,f);let l=0;e.weeks&&7===c&&(l=e.weeks,e={...e,weeks:0});let[w,m]=dr(e,void 0,u,...d);const g=Ic(e),y=Ic(w);if(g&&y&&g!==y)throw new RangeError(mi);return!y||0===c&&1===s||(w=yt(w,m,u,c,s,a,...d)),w.weeks+=l,ut(w)})(Lo,Ua,Eo,n,t)),total:(n,t)=>((n,t,r,e,o)=>{const i=Or(e),[u,c]=((n,t)=>{const r=t((n=zn(n,zu))[Ku]);let e=tc(n);return e=Rn(zu,e),[e,r]})(o,n),s=Math.max(u,i);if(s<6||6===s&&(!c||!c.epochNanoseconds))return((n,t)=>at(vr(n,6),t))(e,u);if(!c)throw new RangeError(Ii);const a=hr(t,r,c);return((n,t,r,e,o,i)=>{const u=Ic(n),[c,s]=ft(Mr(n,r-1),r,u,e,o,i),a=ht(c,s,t);return n[mu[r]]+a*u})(...dr(e,void 0,u,...a),u,...a)})(Lo,Ua,Eo,n,t),toString:Ft,toLocaleString(n,t,r){return Intl.DurationFormat?new Intl.DurationFormat(t,r).format(this):Ft(n)},toJSON:n=>Ft(n),valueOf:yo},{from:n=>za(ko(n)),compare:(n,t,r)=>((n,t,r,e,o,i)=>{const u=n(An(i).relativeTo),c=Math.max(Or(e),Or(o));if(m(mu,e,o))return 0;if(c<6||6===c&&(!u||!u.epochNanoseconds))return C(j(e,6,mu),j(o,6,mu));if(!u)throw new RangeError(Ii);const[s,a,f]=hr(t,r,u);return C(a(f(s,e)),a(f(s,o)))})(Lo,Ua,Eo,ko(n),ko(t),r)}),Ga={toString:n=>n.id,toJSON:n=>n.id,...Hs,dateAdd:({id:n,K:t},r,e,o)=>Ea(rt(t.dateAdd(Zo(r),ko(e),o),n)),dateUntil:({K:n},t,r,e)=>za(ut(n.dateUntil(Zo(t),Zo(r),(n=>(n=An(n),nc(n,9,6,1)))(e)))),dateFromFields:({id:n,K:t},r,e)=>Ea($e(t,r,e,n===au?["year","day"]:[])),yearMonthFromFields:({id:n,K:t},r,e)=>ca(ke(t,r,e,n===au?Xi:[])),monthDayFromFields:({id:n,K:t},r,e)=>ra(Le(t,0,r,e,n===au?ru:[])),fields({K:n},t){const r=new Set(iu),e=[];for(const n of t){if(Bu(n),!r.has(n))throw new RangeError(ti(n));r.delete(n),e.push(n)}return n.fields(e)},mergeFields:({K:n},t,r)=>n.mergeFields(w(Tn(t)),w(Tn(r)))},[Ka]=so("Calendar",(n=>{const t=De(Bu(n));return{branding:"Calendar",id:t,K:Vc(t)}}),{id:n=>n.id},Ga,{from(n){const t=qo(n);return"string"==typeof t?new Ka(t):t}}),Qa=ao(Object.keys(Ga).slice(4));let Va;const Xa=Object.defineProperties({},{...s("Temporal.Now"),...u({timeZoneId:()=>Jo(),instant:()=>da(Xn(Uo())),zonedDateTime:(n,t=Jo())=>fa(nt(Uo(),Po(t),qo(n))),zonedDateTimeISO:(n=Jo())=>fa(nt(Uo(),Po(n),au)),plainDateTime:(n,t=Jo())=>pa(tt(Bo(Oo(Po(t))),qo(n))),plainDateTimeISO:(n=Jo())=>pa(tt(Bo(Oo(Po(n))),au)),plainDate:(n,t=Jo())=>Ea(rt(Bo(Oo(Po(t))),qo(n))),plainDateISO:(n=Jo())=>Ea(rt(Bo(Oo(Po(n))),au)),plainTimeISO:(n=Jo())=>va(it(Bo(Oo(Po(n)))))})}),nf=Object.defineProperties({},{...s("Temporal"),...u({PlainYearMonth:ua,PlainMonthDay:ta,PlainDate:Ma,PlainTime:ya,PlainDateTime:ba,ZonedDateTime:aa,Instant:ha,Calendar:Ka,TimeZone:wa,Duration:Aa,Now:Xa})});Object.defineProperties(globalThis,u({Temporal:nf})),Object.defineProperties(Intl,u({DateTimeFormat:Ps})),Object.defineProperties(Date.prototype,u({toTemporalInstant(){return da(Xn(k(this.valueOf(),Wi)))}}))}();
!function(){"use strict";function n(n,t,r,e,o){const i=E(t,r,e);if(o&&t!==i)throw new RangeError(Vo(n,t,r,e));return i}function t(t,e,o,i,u){return n(e,r(t,e),o,i,u)}function r(n,t){const r=n[t];if(void 0===r)throw new TypeError(ni(t));return r}function e(n){return null!==n&&/object|function/.test(typeof n)}function o(n,t=Map){const r=new t;return(t,...e)=>{if(r.has(t))return r.get(t);const o=n(t,...e);return r.set(t,o),o}}function i(n){return u({name:n},1)}function u(n,t){return f((n=>({value:n,configurable:1,writable:!t})),n)}function c(n){return f((n=>({get:n,configurable:1})),n)}function s(n){return{[Symbol.toStringTag]:{value:n,configurable:1}}}function a(n,t){const r={};let e=n.length;for(const o of t)r[n[--e]]=o;return r}function f(n,t,r){const e={};for(const o in t)e[o]=n(t[o],o,r);return e}function h(n,t,r){const e={};for(let o=0;o<t.length;o++){const i=t[o];e[i]=n(i,o,r)}return e}function d(n,t){const r={};for(const e of n)r[e]=t[e];return r}function l(n,t){const r={};for(const e in t)n.has(e)||(r[e]=t[e]);return r}function w(n){n={...n};const t=Object.keys(n);for(const r of t)void 0===n[r]&&delete n[r];return n}function m(n,t,r){for(const e of n)if(t[e]!==r[e])return 0;return 1}function g(n,...t){return(...r)=>n(...t,...r)}function y(n){return n}function v(n){return n[0].toUpperCase()+n.substring(1)}function b(n){return n.slice().sort()}function p(n,t){return String(t).padStart(n,"0")}function M(n,t){return Math.sign(n-t)}function E(n,t,r){return Math.min(Math.max(n,t),r)}function O(n,t){return[Math.floor(n/t),I(n,t)]}function I(n,t){return(n%t+t)%t}function T(n,t){return[R(n,t),D(n,t)]}function R(n,t){return Math.trunc(n/t)||0}function D(n,t){return n%t||0}function S(n){return.5===Math.abs(n%1)}function j(n){if(!e(n))throw new TypeError(Qo);return n}function P(n,t,r=n){if(typeof t!==n)throw new TypeError(Xo(r,t));return t}function N(n){return F($i(n))}function Y(n){return Z(N(n))}function F(n,t="number"){if(!Number.isInteger(n))throw new RangeError(Ho(t,n));return n||0}function Z(n,t="number"){if(n<=0)throw new RangeError(Ao(t,n));return n}function C(n){if(null==n)throw new TypeError("Cannot be null or undefined");return n}function $(n,t){if(null==t)throw new RangeError(ni(n));return t}function k(n){if("symbol"==typeof n)throw new TypeError(Ko);return String(n)}function L(n,t){return e(n)?String(n):Zi(n,t)}function W(n){if("string"==typeof n)return BigInt(n);if("bigint"!=typeof n)throw new TypeError(Go(n));return n}function x(n,t="number"){if("bigint"==typeof n)throw new TypeError(_o(t));if(n=Number(n),!Number.isFinite(n))throw new RangeError(zo(t,n));return n}function q(n,t){return Math.trunc(x(n,t))||0}function B(n,t){return F(x(n,t),t)}function U(n,t){return Z(q(n,t),t)}function J(n,t,r){let e=0,o=0;for(let i=0;i<=t;i++){const t=n[r[i]],u=_i[i],c=zi/u,[s,a]=T(t,c);e+=a*u,o+=s}const[i,u]=T(e,zi);return[o+i,u]}function H(n,t,r){const e={};for(let o=t;o>=0;o--){const t=_i[o];e[r[o]]=R(n,t),n=D(n,t)}return e}function A(n,t){let[r,e]=T(t,zi),o=n+r;const i=Math.sign(o);return i&&i===-Math.sign(e)&&(o-=i,e+=i*zi),[o,e]}function z(n,t){return A(n[0],n[1]+t)}function _(n,t,r=1){return A(n[0]+t[0]*r,n[1]+t[1]*r)}function G(n,t){return A(t[0]-n[0],t[1]-n[1])}function K(n,t){return M(n[0],t[0])||M(n[1],t[1])}function Q(n,t=1){const r=BigInt(zi/t);return[Number(n/r),Number(n%r)*t]}function V(n,t=1){const r=zi/t,[e,o]=T(n,r);return[e,o*t]}function X(n,t=1){const[r,e]=n,o=Math.floor(e/t),i=zi/t;return BigInt(r)*BigInt(i)+BigInt(o)}function nn(n,t=1,r){const[e,o]=tn(n,t);return e+(r?o/t:0)}function tn(n,t){const[r,e]=n,[o,i]=O(e,t);return[r*(zi/t)+o,i]}function rn(n){if((n=(n=>("islamicc"===(n=n.toLowerCase())&&(n="islamic-civil"),n))(n))!==pu&&n!==Mu&&en(n)!==en(_c(n).resolvedOptions().calendar))throw new RangeError(gi(n));return n}function en(n){return n.split("-")[0]}function on(n,t){const r=n.formatToParts(t),e={};for(const n of r)e[n.type]=n.value;return e}function un(n){return t(n,"isoYear",Wu,Lu,1),n.isoYear===Wu?t(n,"isoMonth",4,12,1):n.isoYear===Lu&&t(n,"isoMonth",1,9,1),n}function cn(n){return sn({...n,...Yu,isoHour:12}),n}function sn(n){const r=t(n,"isoYear",Wu,Lu,1),e=r===Wu?1:r===Lu?-1:0;return e&&an(mn({...n,isoDay:n.isoDay+e,isoNanosecond:n.isoNanosecond-e})),n}function an(n){if(!n||-1===K(n,ku)||1===K(n,$u))throw new RangeError(Ei);return n}function fn(n){return J(n,5,Ru)[1]}function hn(n){const[t,r]=O(n,zi);return[H(r,5,Ru),t]}function dn(n){return nn(n,Ji)}function ln(n){return nn(n,Ui)}function wn(n){return vn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond)}function mn(n){const t=wn(n);if(void 0!==t){const[r,e]=T(t,xi);return[r,e*Ui+(n.isoMicrosecond||0)*Bi+(n.isoNanosecond||0)]}}function gn(n,t){const[r,e]=hn(fn(n)-t);return an(mn({...n,isoDay:n.isoDay+e,...r}))}function yn(...n){return vn(...n)/qi}function vn(...n){const[t,r]=bn(...n),e=t.getTime();if(!isNaN(e))return e-r*xi}function bn(n,t=1,r=1,e=0,o=0,i=0,u=0){const c=n===Wu?1:n===Lu?-1:0,s=new Date;return s.setUTCHours(e,o,i,u),s.setUTCFullYear(n,t-1,r+c),[s,c]}function pn(n,t){let[r,e]=z(n,t);e<0&&(e+=zi,r-=1);const[o,i]=O(e,Ui),[u,c]=O(i,Bi);return{...Mn(r*xi+o),isoMicrosecond:u,isoNanosecond:c}}function Mn(n){const t=n<-xi*Cu?1:n>xi*Cu?-1:0,r=new Date(n+t*xi);return a(Su,[r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate()-t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()])}function En(){return Bu}function On(n,t){switch(t){case 2:return Tn(n)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function In(n){return Tn(n)?366:365}function Tn(n){return n%4==0&&(n%100!=0||n%400==0)}function Rn(n){return je(wn(jn(n)),wn({...n,...Yu}))+1}function Dn(n){const[t,r]=bn(n.isoYear,n.isoMonth,n.isoDay);return I(t.getUTCDay()-r,7)||7}function Sn(n){const t=Rn(n),r=Dn(n),e=Dn(jn(n)),o=Math.floor((t-r+10)/Uu),{isoYear:i}=n;return o<1?[i-1,5===e||6===e&&Tn(i-1)?53:52]:53===o&&In(i)-t<4-r?[i+1,1]:[i,o]}function jn(n){return{...n,isoMonth:1,isoDay:1,...Yu}}function Pn({isoYear:n}){return n<1?["bce",1-n]:["ce",n]}function Nn(n){return Yn(n),Cn(n,1),n}function Yn(n){return Zn(n,1),n}function Fn(n){return m(Du,n,Zn(n))}function Zn(n,r){const{isoYear:e}=n,o=t(n,"isoMonth",1,En(),r);return{isoYear:e,isoMonth:o,isoDay:t(n,"isoDay",1,On(e,o),r)}}function Cn(n,r){return a(Ru,[t(n,"isoHour",0,23,r),t(n,"isoMinute",0,59,r),t(n,"isoSecond",0,59,r),t(n,"isoMillisecond",0,999,r),t(n,"isoMicrosecond",0,999,r),t(n,"isoNanosecond",0,999,r)])}function $n(n){return void 0===n?0:rc(j(n))}function kn(n,t=0){n=_n(n);const r=ec(n),e=oc(n,t);return[rc(n),e,r]}function Ln(n){return ec(_n(n))}function Wn(n,t,r,e=9,o=0,i=4){t=_n(t);let u=nc(t,e,o),c=Hn(t),s=sc(t,i);const a=Xu(t,e,o,1);return null==u?u=Math.max(r,a):nt(u,a),c=An(c,a,1),n&&(s=(n=>n<4?(n+2)%4:n)(s)),[u,a,c,s]}function xn(n,t=6,r){let e=Hn(n=Gn(n,Au));const o=sc(n,7);let i=Xu(n,t);return i=$(Au,i),e=An(e,i,void 0,r),[i,e,o]}function qn(n){return ic(_n(n))}function Bn(n,t){return Un(_n(n),t)}function Un(n,t=4){const r=zn(n);return[sc(n,4),...Jn(Xu(n,t),r)]}function Jn(n,t){return null!=n?[_i[n],n<4?9-3*n:-1]:[void 0===t?1:10**(9-t),t]}function Hn(n){const t=n[_u];return void 0===t?1:q(t,_u)}function An(t,r,e,o){const i=o?zi:_i[r+1];if(i){const e=_i[r];if(i%((t=n(_u,t,1,i/e-(o?0:1),1))*e))throw new RangeError(Xo(_u,t))}else t=n(_u,t,1,e?10**9:1,1);return t}function zn(t){let r=t[Gu];if(void 0!==r){if("number"!=typeof r){if("auto"===k(r))return;throw new RangeError(Xo(Gu,r))}r=n(Gu,Math.floor(r),0,9,1)}return r}function _n(n){return void 0===n?{}:j(n)}function Gn(n,t){return"string"==typeof n?{[t]:n}:j(n)}function Kn(n){if(void 0!==n){if(e(n))return Object.assign(Object.create(null),n);throw new TypeError(Qo)}}function Qn(n,t){return n&&Object.assign(Object.create(null),n,{overflow:Vu[t]})}function Vn(t,r,e=9,o=0,i){let u=r[t];if(void 0===u)return i?o:void 0;if(u=k(u),"auto"===u)return i?o:null;let c=Li[u];if(void 0===c&&(c=Xi[u]),void 0===c)throw new RangeError(Xo(t,u));return n(t,c,o,e,1),c}function Xn(n,t,r,e=0){const o=r[n];if(void 0===o)return e;const i=k(o),u=t[i];if(void 0===u)throw new RangeError(Xo(n,i));return u}function nt(n,t){if(t>n)throw new RangeError(Ri)}function tt(n){return{branding:mc,epochNanoseconds:n}}function rt(n,t,r){return{branding:wc,calendar:r,timeZone:t,epochNanoseconds:n}}function et(n,t=n.calendar){return{branding:dc,calendar:t,...d(Nu,n)}}function ot(n,t=n.calendar){return{branding:hc,calendar:t,...d(ju,n)}}function it(n,t=n.calendar){return{branding:ac,calendar:t,...d(ju,n)}}function ut(n,t=n.calendar){return{branding:fc,calendar:t,...d(ju,n)}}function ct(n){return{branding:lc,...d(Pu,n)}}function st(n){return{branding:gc,...d(Ki,n)}}function at(n){return"string"==typeof n?n:Zi(n.id)}function ft(n,t){return n===t||at(n)===at(t)}function ht(n,t){return nn(n,_i[t],1)}function dt(n,t,r,e,o,i){const u={...nu,[Gi[t]]:r},c=i(e,n),s=i(c,u);return[o(c),o(s)]}function lt(n,t,r){const e=nn(G(n,t));if(!e)throw new RangeError(mi);return nn(G(n,r))/e}function wt(n,t,r,e,o){return 6===t?((n,t,r)=>{if(t){const e=Vt(t,n);return sn({...dr(n,Mt(fn(n),e,r)/e),...Yu})}return mt(n,zi,r)})(n,o,e):mt(n,pt(t,r),e)}function mt(n,t,r){const[e,o]=gt(n,t,r);return sn({...dr(n,o),...e})}function gt(n,t,r){return hn(Mt(fn(n),t,r))}function yt(n,t,r,e,o){return We(Ot(Le(n,6),r,e,o),t)}function vt(n,t,r,e){return We(It(Le(n,t),r,e),t)}function bt(n,t,r,e,o,i,u,c,s){const a=c===y?e>6?Dt:6===e?Tt:Rt:e>6?Dt:Tt;let[f,h,d]=a(n,t,r,e,o,i,u,c,s);return d&&(f=((n,t,r,e,o,i,u)=>{const c=Gc(n);for(let s=e+1;s<=r;s++){if(7===s&&7!==r)continue;const e=qe(n,s-1);e[Gi[s]]+=c;const a=nn(G(i(u(o,e)),t));if(a&&Math.sign(a)!==c)break;n=e}return n})(f,h,r,Math.max(6,e),u,c,s)),f}function pt(n,t){return _i[n]*t}function Mt(n,t,r){return((n,t)=>yc[t](n))(n/t,r)*t}function Et(n){return Mt(n,Hi,7)}function Ot(n,t,r,e,o){return 6===t?[Mt(ht(n,6),r,e),0]:It(n,pt(t,r),e,o)}function It(n,t,r,e){let[o,i]=n;e&&i<0&&(i+=zi,o-=1);const[u,c]=O(Mt(i,t,r),zi);return A(o+u,c)}function Tt(n,t,r,e,o,i){const u=Gc(n),c=Le(n,6),s=Ot(c,e,o,i),a=G(c,s),f=Math.sign(s[0]-c[0])===u,h=We(s,Math.min(r,6));return[{...n,...h},_(t,a),f]}function Rt(n,t,r,e,o,i,u,c,s){const a=Gc(n);let[f,h]=J(n,5,Gi);const d=pt(e,o);let l=Mt(h,d,i);const[w,m]=dt({...n,...tu},6,a,u,c,s),g=l-nn(G(w,m));g&&Math.sign(g)!==a?t=z(w,l):(f+=a,l=Mt(g,d,i),t=z(m,l));const y=xe(l);return[{...n,...y,days:n.days+f},t,Boolean(f)]}function Dt(n,t,r,e,o,i,u,c,s){const a=Gc(n),f=Gi[e],h=qe(n,e-1),d=R(n[f],o)*o;h[f]=d;const[l,w]=dt(h,e,o*a,u,c,s),m=d+lt(l,w,t)*a*o,g=Mt(m,o,i),y=Math.sign(g-m)===a;return h[f]=g,[h,y?w:l,y]}function St(n,t,r,e){const[o,i,u,c]=(n=>{const t=Un(n=_n(n));return[n.timeZone,...t]})(e),s=void 0!==o;return((n,t,r,e,o,i)=>{r=It(r,o,e,1);const u=t.getOffsetNanosecondsFor(r);return Lt(pn(r,u),i)+(n?Ut(Et(u)):"Z")})(s,t(s?n(o):vc),r.epochNanoseconds,i,u,c)}function jt(n,t,r){return((n,t,r,e,o,i,u,c,s,a)=>{e=It(e,s,c,1);const f=n(r).getOffsetNanosecondsFor(e);return Lt(pn(e,f),a)+Ut(Et(f),u)+((n,t)=>1!==t?"["+(2===t?"!":"")+at(n)+"]":"")(r,i)+Jt(t,o)})(n,t.calendar,t.timeZone,t.epochNanoseconds,...(n=>{n=_n(n);const t=ic(n),r=zn(n),e=cc(n),o=sc(n,4),i=Xu(n,4);return[t,uc(n),e,o,...Jn(i,r)]})(r))}function Pt(n,t){return((n,t,r,e,o,i)=>Lt(mt(t,o,e),i)+Jt(n,r))(n.calendar,n,...(n=>(n=_n(n),[ic(n),...Un(n)]))(t))}function Nt(n,t){return r=n.calendar,e=n,o=qn(t),Wt(e)+Jt(r,o);var r,e,o}function Yt(n,t){return $t(n.calendar,xt,n,qn(t))}function Ft(n,t){return $t(n.calendar,qt,n,qn(t))}function Zt(n,t){return((n,t,r,e)=>Bt(gt(n,r,t)[0],e))(n,...Bn(t))}function Ct(n,t){const[r,e,o]=Bn(t,3);return e>1&&(n={...n,...vt(n,Math.min(Ue(n),6),e,r)}),((n,t)=>{const r=Gc(n),e=-1===r?Ce(n):n,{hours:o,minutes:i}=e,[u,c]=tn(J(e,3,Gi),Ji),s=At(c,t),a=t>=0||!r||s;return(r<0?"-":"")+"P"+kt({Y:_t(e.years),M:_t(e.months),W:_t(e.weeks),D:_t(e.days)})+(o||i||u||a?"T"+kt({H:_t(o),M:_t(i),S:_t(u,a)+s}):"")})(n,o)}function $t(n,t,r,e){const o=at(n),i=e>1||0===e&&o!==pu;return 1===e?o===pu?t(r):Wt(r):i?Wt(r)+Ht(o,2===e):t(r)}function kt(n){const t=[];for(const r in n){const e=n[r];e&&t.push(e,r)}return t.join("")}function Lt(n,t){return Wt(n)+"T"+Bt(n,t)}function Wt(n){return xt(n)+"-"+Fi(n.isoDay)}function xt(n){const{isoYear:t}=n;return(t<0||t>9999?zt(t)+p(6,Math.abs(t)):p(4,t))+"-"+Fi(n.isoMonth)}function qt(n){return Fi(n.isoMonth)+"-"+Fi(n.isoDay)}function Bt(n,t){const r=[Fi(n.isoHour),Fi(n.isoMinute)];return-1!==t&&r.push(Fi(n.isoSecond)+((n,t,r,e)=>At(n*Ui+t*Bi+r,e))(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t)),r.join(":")}function Ut(n,t=0){if(1===t)return"";const[r,e]=O(Math.abs(n),Ai),[o,i]=O(e,Hi),[u,c]=O(i,Ji);return zt(n)+Fi(r)+":"+Fi(o)+(u||c?":"+Fi(u)+At(c):"")}function Jt(n,t){if(1!==t){const r=at(n);if(t>1||0===t&&r!==pu)return Ht(r,2===t)}return""}function Ht(n,t){return"["+(t?"!":"")+"u-ca="+n+"]"}function At(n,t){let r=p(9,n);return r=void 0===t?r.replace(Ec,""):r.slice(0,t),r?"."+r:""}function zt(n){return n<0?"-":"+"}function _t(n,t){return n||t?n.toLocaleString("fullwide",{useGrouping:0}):""}function Gt(n,t){return pn(t,n.getOffsetNanosecondsFor(t))}function Kt(n,t,r,e=0,o=0,i,u){if(void 0!==r&&1===e&&(1===e||u))return gn(t,r);const c=n.getPossibleInstantsFor(t);if(void 0!==r&&3!==e){const n=((n,t,r,e)=>{const o=mn(t);e&&(r=Et(r));for(const t of n){let n=nn(G(t,o));if(e&&(n=Et(n)),n===r)return t}})(c,t,r,i);if(void 0!==n)return n;if(0===e)throw new RangeError(pi)}return u?mn(t):Qt(n,t,o,c)}function Qt(n,t,r=0,e=n.getPossibleInstantsFor(t)){if(1===e.length)return e[0];if(1===r)throw new RangeError(Mi);if(e.length)return e[3===r?1:0];const o=mn(t),i=((n,t)=>{const r=n.getOffsetNanosecondsFor(z(t,-zi));return n.getOffsetNanosecondsFor(z(t,zi))-r})(n,o),u=i*(2===r?-1:1);return(e=n.getPossibleInstantsFor(pn(o,u)))[2===r?0:e.length-1]}function Vt(n,t){t={...t,...Yu};const r=nn(G(Qt(n,{...t,...Yu}),Qt(n,{...dr(t,1),...Yu})));if(r<=0)throw new RangeError(mi);return r}function Xt(n){if(Math.abs(n)>=zi)throw new RangeError(bi);return n}function nr(n,t,r){return tt(an(_(t.epochNanoseconds,(n=>{if(Be(n))throw new RangeError(Ti);return Le(n,5)})(n?Ce(r):r))))}function tr(n,t,r,e,o,i=Object.create(null)){const u=t(e.timeZone),c=ur(n(e.calendar),u,e.epochNanoseconds,r?Ce(o):o,i);return{...e,epochNanoseconds:c}}function rr(n,t,r,e,o=Object.create(null)){return et({...r,...cr(n(r.calendar),r,t?Ce(e):e,o)})}function er(n,t,r,e,o){return{...r,...sr(n(r.calendar),r,t?Ce(e):e,o)}}function or(n,t,r,e,o=Object.create(null)){const i=r.calendar,u=n(i);let c=ar(u,r);t&&(e=Ze(e)),Gc(e)<0&&(c=u.dateAdd(c,{...nu,months:1}),c=dr(c,-1));const s=u.dateAdd(c,e,o);return it(ar(u,s),i)}function ir(n,t,r){return ct(fr(t,n?Ce(r):r)[0])}function ur(n,t,r,e,o){const i=Le(e,5);if(Be(e)){const u=Gt(t,r);r=_(Qt(t,{...sr(n,u,{...e,...tu},o),...d(Ru,u),calendar:pu}),i)}else r=_(r,i),$n(o);return an(r)}function cr(n,t,r,e){const[o,i]=fr(t,r);return sn({...sr(n,t,{...r,...tu,days:r.days+i},e),...o})}function sr(n,t,r,e){if(r.years||r.months||r.weeks)return n.dateAdd(t,r,e);$n(e);const o=r.days+J(r,5,Gi)[0];return o?cn(dr(t,o)):t}function ar(n,t){return dr(t,1-n.day(t))}function fr(n,t){const[r,e]=J(t,5,Gi),[o,i]=hn(fn(n)+e);return[o,r+i]}function hr(t,r,e){const o=$n(e);let i,{years:u,months:c,weeks:s,days:a}=r;if(a+=J(r,5,Gi)[0],u||c){let[r,e,s]=this.o(t);if(u){const[t,i]=this.i(r,e);r+=u,e=Qr(t,i,this.u(r)),e=n("month",e,1,this.h(r),o)}c&&([r,e]=this.l(r,e,c)),s=n("day",s,1,this.m(r,e),o),i=this.v(r,e,s)}else{if(!s&&!a)return t;i=wn(t)}return i+=(s*Uu+a)*xi,cn(Mn(i))}function dr(n,t){return t&&(n=Mn(wn(n)+t*xi)),n}function lr(n){const t=mr(n);return"number"==typeof t?Ut(t):t?(n=>n.toLowerCase().split("/").map(((n,t)=>(n.length<=3||/\d/.test(n))&&!/etc|yap/.test(n)?n.toUpperCase():n.replace(/baja|dumont|[a-z]+/g,((n,r)=>n.length<=2&&!t||"in"===n||"chat"===n?n.toUpperCase():n.length>2||!r?v(n).replace(/island|noronha|murdo|rivadavia|urville/,v):n)))).join("/"))(n):vc}function wr(n){const t=mr(n);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:vc}function mr(n){const t=Sr(n=n.toUpperCase(),1);return void 0!==t?t:n!==vc?Ic(n):void 0}function gr(n,t){return[n,t]}function yr(n){const t=Math.floor(n/bc)*bc;return[t,t+bc]}function vr(n){const t=Sr(n);if(void 0===t)throw new RangeError(Di(n));return t}function br(n){const t=Tr(Zi(n));if(!t||t.p)throw new RangeError(Di(n));return ot(t.O?Er(t):Or(t))}function pr(n){if(n.calendar!==pu)throw new RangeError(Si(n.calendar))}function Mr(n,t,r=0,e=0){const o=lr(n.timeZone),i=Tc(o);return rt(Kt(i,Nn(n),t,r,e,!i.I,n.p),o,rn(n.calendar))}function Er(n){return Ir(sn(Nn(n)))}function Or(n){return Ir(cn(Yn(n)))}function Ir(n){return{...n,calendar:rn(n.calendar)}}function Tr(n){const t=Lc.exec(n);return t?(n=>{const t=n[10],r="Z"===(t||"").toUpperCase();return{isoYear:jr(n),isoMonth:parseInt(n[4]),isoDay:parseInt(n[5]),...Pr(n.slice(5)),...Nr(n[16]),O:Boolean(n[6]),p:r,offset:r?void 0:t}})(t):void 0}function Rr(n){const t=$c.exec(n);return t?(n=>({isoYear:jr(n),isoMonth:parseInt(n[4]),isoDay:1,...Nr(n[5])}))(t):void 0}function Dr(n){const t=kc.exec(n);return t?(n=>({isoYear:qu,isoMonth:parseInt(n[1]),isoDay:parseInt(n[2]),...Nr(n[3])}))(t):void 0}function Sr(n,t){const r=xc.exec(n);return r?((n,t)=>{const r=n[4]||n[5];if(t&&r)throw new RangeError(Si(r));return Xt((Cr(n[2])*Ai+Cr(n[3])*Hi+Cr(n[4])*Ji+Yr(n[5]||""))*Zr(n[1]))})(r,t):void 0}function jr(n){const t=Zr(n[1]),r=parseInt(n[2]||n[3]);if(t<0&&!r)throw new RangeError(Si(-0));return t*r}function Pr(n){const t=Cr(n[3]);return{...hn(Yr(n[4]||""))[0],isoHour:Cr(n[1]),isoMinute:Cr(n[2]),isoSecond:60===t?59:t}}function Nr(n){let t,r;const e=[];if(n.replace(qc,((n,o,i)=>{const u=Boolean(o),[c,s]=i.split("=").reverse();if(s){if("u-ca"===s)e.push(c),t||(t=u);else if(u)throw new RangeError(Si(n))}else{if(r)throw new RangeError(Si(n));r=c}return""})),e.length>1&&t)throw new RangeError(Si(n));return{timeZone:r,calendar:e[0]||pu}}function Yr(n){return parseInt(n.padEnd(9,"0"))}function Fr(n){return new RegExp(`^${n}$`,"i")}function Zr(n){return n&&"+"!==n?-1:1}function Cr(n){return void 0===n?0:parseInt(n)}function $r(n,t,r,e=[]){const o=Wr(n,t,gu,e);return n.dateFromFields(o,r)}function kr(n,t,r,e){const o=Wr(n,t,wu,e);return n.yearMonthFromFields(o,r)}function Lr(n,t,r,e,o=[]){const i=Wr(n,r,gu,o);return t&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=qu),n.monthDayFromFields(i,e)}function Wr(n,t,r,e=[],o=[]){return xr(t,[...n.fields(r),...o].sort(),e)}function xr(n,t,r,e=!r){const o={};let i,u=0;for(const e of t){if(e===i)throw new RangeError(ri(e));if("constructor"===e||"__proto__"===e)throw new RangeError(ti(e));let t=n[e];if(void 0!==t)u=1,Uc[e]&&(t=Uc[e](t,e)),o[e]=t;else if(r){if(r.includes(e))throw new TypeError(ni(e));o[e]=bu[e]}i=e}if(e&&!u)throw new TypeError(ei);return o}function qr(n,t){return Cn(Jc({...bu,...n}),t)}function Br(n,t,r,e,o=[],i=[]){const u=[...n.fields(e),...o].sort();let c=xr(t,u,i);const s=xr(r,u);return c=n.mergeFields(c,s),xr(c,u,[])}function Ur(n,t){const r=Wr(n,t,vu);return n.monthDayFromFields(r)}function Jr(n,t,r){const e=Wr(n,t,mu);return n.yearMonthFromFields(e,r)}function Hr(n,t,r,e,o){t=d(r=n.fields(r),t),e=xr(e,o=n.fields(o),[]);let i=n.mergeFields(t,e);return i=xr(i,[...r,...o].sort(),[]),n.dateFromFields(i)}function Ar(n,t){let{era:r,eraYear:e,year:o}=t;const i=ne(n);if(void 0!==r||void 0!==e){if(void 0===r||void 0===e)throw new TypeError(ui);if(!i)throw new RangeError(ii);const n=i[r];if(void 0===n)throw new RangeError(si(r));const t=Xr(e,n);if(void 0!==o&&o!==t)throw new RangeError(ci);o=t}else if(void 0===o)throw new TypeError(ai(i));return o}function zr(t,r,e,o){let{month:i,monthCode:u}=r;if(void 0!==u){const n=((n,t,r,e)=>{const o=n.u(r),[i,u]=Kr(t);let c=Qr(i,u,o);if(u){const t=te(n);if(void 0===t)throw new RangeError(wi);if(t>0){if(c>t)throw new RangeError(wi);if(void 0===o){if(1===e)throw new RangeError(wi);c--}}else{if(c!==-t)throw new RangeError(wi);if(void 0===o&&1===e)throw new RangeError(wi)}}return c})(t,u,e,o);if(void 0!==i&&i!==n)throw new RangeError(hi);i=n,o=1}else if(void 0===i)throw new TypeError(di);return n("month",i,1,t.h(e),o)}function _r(n,r,e,o,i){return t(r,"day",1,n.m(o,e),i)}function Gr(n,t,r,e){let o=0;const i=[];for(const n of r)void 0!==t[n]?o=1:i.push(n);if(Object.assign(n,t),o)for(const t of e||i)delete n[t]}function Kr(n){const t=Ac.exec(n);if(!t)throw new RangeError(fi(n));return[parseInt(t[1]),Boolean(t[2])]}function Qr(n,t,r){return n+(t||r&&n>=r?1:0)}function Vr(n,t){return n-(t&&n>=t?1:0)}function Xr(n,t){return(t+n)*(Math.sign(t)||1)||0}function ne(n){return Ou[re(n)]}function te(n){return Tu[re(n)]}function re(n){return en(n.id||pu)}function ee(n){return o((t=>{const r=wn(t);return n(r)}),WeakMap)}function oe(n){const t=n(0).year-xu;return o((r=>{let e,o=vn(r-t);const i=[],u=[];do{o+=400*xi}while((e=n(o)).year<=r);do{o+=(1-e.day)*xi,e.year===r&&(i.push(o),u.push(e.month)),o-=xi}while((e=n(o)).year>=r);return{R:i.reverse(),j:Ni(u.reverse())}}))}function ie(n,t){let r,e,o=ue(n);if(n.era){const u=Ou[t];void 0!==u&&(i=(i=n.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),r=Iu[i]||i,e=o,o=Xr(e,u[r]||0))}var i;return{era:r,eraYear:e,year:o}}function ue(n){return parseInt(n.relatedYear||n.year)}function ce(n){const{year:t,month:r,day:e}=this.P(n),{j:o}=this.N(t);return[t,o[r]+1,e]}function se(n,t=1,r=1){return this.N(n).R[t-1]+(r-1)*xi}function ae(n){const t=le(this,n),r=le(this,n-1),e=t.length;if(e>r.length){const n=te(this);if(n<0)return-n;for(let n=0;n<e;n++)if(t[n]!==r[n])return n+1}}function fe(n){return je(se.call(this,n),se.call(this,n+1))}function he(n,t){const{R:r}=this.N(n);let e=t+1,o=r;return e>r.length&&(e=1,o=this.N(n+1).R),je(r[t-1],o[e-1])}function de(n){return this.N(n).R.length}function le(n,t){return Object.keys(n.N(t).j)}function we(n,t,r,e){const o=Wn(n,Kn(e),3,5),i=Te(t.epochNanoseconds,r.epochNanoseconds,...o);return st(n?Ce(i):i)}function me(n,t,r,e,o,i){const u=Pe(e.calendar,o.calendar),c=Kn(i),[s,a,f,h]=Wn(r,c,5),d=e.epochNanoseconds,l=o.epochNanoseconds,w=K(l,d);let m;if(w)if(s<6)m=Te(d,l,s,a,f,h);else{const r=t(((n,t)=>{if(!Ge(n,t))throw new RangeError(vi);return n})(e.timeZone,o.timeZone)),i=n(u);m=Oe(i,r,w,d,l,s,c),!w||0===a&&1===f||(m=bt(m,l,s,a,f,h,d,y,g(ur,i,r)))}else m=nu;return st(r?Ce(m):m)}function ge(n,t,r,e,o){const i=Pe(r.calendar,e.calendar),u=Kn(o),[c,s,a,f]=Wn(t,u,6),h=mn(r),d=mn(e),l=K(d,h);let w;if(l)if(c<=6)w=Te(h,d,c,s,a,f);else{const t=n(i);w=Ie(t,l,r,e,c,u),!l||0===s&&1===a||(w=bt(w,d,c,s,a,f,r,mn,g(cr,t)))}else w=nu;return st(t?Ce(w):w)}function ye(n,t,r,e,o){const i=Pe(r.calendar,e.calendar),u=Kn(o);return be(t||0,(()=>n(i)),r,e,...Wn(t,u,6,9,6),u)}function ve(n,t,r,e,o){const i=Pe(r.calendar,e.calendar),u=Kn(o),c=Wn(t,u,9,9,8),s=n(i);return be(t||0,(()=>s),ar(s,r),ar(s,e),...c,u)}function be(n,t,r,e,o,i,u,c,s){const a=mn(r),f=mn(e);let h;if(K(f,a)){let n;6===o?h=De(r,e):(n=t(),h=n.dateUntil(r,e,o,s)),6===i&&1===u||(n||(n=t()),h=bt(h,f,o,i,u,c,r,mn,((t,r)=>n.dateAdd(t,r))))}else h=nu;return st(n?Ce(h):h)}function pe(n,t,r,e){const o=Kn(e),[i,u,c,s]=Wn(n,o,5,5),a=fn(t),f=Mt(fn(r)-a,pt(u,c),s),h={...nu,...xe(f,i)};return st(n?Ce(h):h)}function Me(n,t,r,e,o,i){const u=K(e,r);return u?o<6?Re(r,e,o):Oe(n,t,u,r,e,o,i):nu}function Ee(n,t,r,e,o){const i=mn(t),u=mn(r),c=K(u,i);return c?e<=6?Re(i,u,e):Ie(n,c,t,r,e,o):nu}function Oe(n,t,r,e,o,i,u){const c=Gt(t,e),s=d(Ru,c),a=Gt(t,o),f=g(Qt,t);let h,l,w,m=0;do{if(m>2)throw new RangeError(mi);h={...dr(a,m++*-r),...s},l=f(h),w=K(o,l)}while(w===-r);return{...6===i?De(c,h):n.dateUntil(c,h,i,u),...xe(nn(G(l,o)))}}function Ie(n,t,r,e,o,i){const u=fn(r);let c=fn(e)-u,s=r;return Math.sign(c)===-t&&(s=dr(r,t),c+=zi*t),{...n.dateUntil({...s,...Yu},{...e,...Yu},o,i),...xe(c)}}function Te(n,t,r,e,o,i){return{...nu,...We(Ot(G(n,t),e,o,i),r)}}function Re(n,t,r){return{...nu,...We(G(n,t),r)}}function De(n,t){return{...nu,days:Se(n,t)}}function Se(n,t){return je(wn(n),wn(t))}function je(n,t){return Math.round((t-n)/xi)}function Pe(n,t){if(!ft(n,t))throw new RangeError(yi);return n}function Ne(n,t,r){const{calendar:e,timeZone:o,epochNanoseconds:i}=r,u=n(e);if(i){const n=t(o);return[i,y,g(ur,u,n),g(Me,u,n)]}return[{...r,...Yu},mn,g(cr,u),g(Ee,u)]}function Ye(n,t,r,e,o,i,u){let c=i(e,n);return t&&(c=i(c,t)),[u(e,c,r),o(c)]}function Fe(n,t,r,e,o,i,u){const c=n(_n(u).relativeTo),s=Math.max(Ue(o),Ue(i));if(s<6||6===s&&(!c||!c.epochNanoseconds))return st(((n,t,r,e)=>{const o=_(Le(n,6),Le(t,6),e?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Ei);return{...nu,...We(o,r)}})(o,i,s,e));if(!c)throw new RangeError(Ii);return e&&(i=Ce(i)),st(Ye(o,i,s,...Ne(t,r,c))[0])}function Ze(n){return st(Ce(n))}function Ce(n){const t={};for(const r of Gi)t[r]=-1*n[r]||0;return t}function $e(n,t=Gi){let r=0;for(const e of t){const t=Math.sign(n[e]);if(t){if(r&&r!==t)throw new RangeError(Oi);r=t}}return r}function ke(n){return Gc(n),n}function Le(n,t){return J(n,t,Gi)}function We(n,t=6){const[r,e]=n,o=H(e,t,Gi);if(o[Gi[t]]+=r*(zi/_i[t]),!Number.isFinite(o[Gi[t]]))throw new RangeError(Ei);return o}function xe(n,t=5){return H(n,t,Gi)}function qe(n,t){const r={...n};for(let n=0;n<=t;n++)r[Gi[n]]=0;return r}function Be(n){return Boolean($e(n,Vi))}function Ue(n){let t=9;for(;t>0&&!n[Gi[t]];t--);return t}function Je(n,t){return K(n.epochNanoseconds,t.epochNanoseconds)}function He(n,t){return K(n.epochNanoseconds,t.epochNanoseconds)}function Ae(n,t){return ze(n,t)||_e(n,t)}function ze(n,t){return M(wn(n),wn(t))}function _e(n,t){return M(fn(n),fn(t))}function Ge(n,t){if(n===t)return 1;const r=at(n),e=at(t);if(r===e)return 1;try{return wr(r)===wr(e)}catch(n){}}function Ke(n,t,r=pu){return rt(n.epochNanoseconds,t,r)}function Qe(n,t){return et(Oc(t,n))}function Ve(n,t){return ot(Oc(t,n))}function Xe(n,t){return ct(Oc(t,n))}function no(n,t){return{...n,calendar:t}}function to(n,t){if(n===t)return n;const r=at(n),e=at(t);if(r===e||r===pu)return t;if(e===pu)return n;throw new RangeError(yi)}function ro(n,t,r=[]){const e=new Set(r);return r=>(((n,t)=>{for(const r of t)if(r in n)return 1;return 0})(r=l(e,r),n)||Object.assign(r,t),r)}function eo(n,t){return Qt(Tc(t.timeZone),{...Yu,isoHour:12,...n})}function oo(n){return n.epochNanoseconds}function io(n,t=uo){const[r,,,e]=n;return(o,i=Rs,...u)=>{const c=t(e?e(...u):void 0,o,i,r),s=c.resolvedOptions();return[c,...co(n,s,...u)]}}function uo(n,t,r,e){if(r=e(r),n){if(void 0!==r.timeZone)throw new TypeError(Pi);r.timeZone=n}return new Fu(t,r)}function co(n,t,...r){const[,e,o]=n;return r.map((n=>(n.calendar&&((n,t,r)=>{if((r||n!==pu)&&n!==t)throw new RangeError(yi)})(at(n.calendar),t.calendar,o),ln(e(n,t)))))}function so(n,t,r,e,o){function a(...n){if(!(this instanceof a))throw new TypeError(oi);js(this,t(...n))}function h(n,t){return Object.defineProperties((function(...t){return n.call(this,d(this),...t)}),i(t))}function d(t){const r=Ss(t);if(!r||r.branding!==n)throw new TypeError(oi);return r}return Object.defineProperties(a.prototype,{...c(f(h,r)),...u(f(h,e)),...s("Temporal."+n)}),Object.defineProperties(a,{...u(o),...i(n)}),[a,n=>{const t=Object.create(a.prototype);return js(t,n),t},d]}function ao(n){return n=n.concat("id").sort(),t=>{if(!((n,t)=>{for(const r of t)if(!(r in n))return 0;return 1})(t,n))throw new TypeError("Invalid protocol");return t}}function fo(n){if(Ss(n)||void 0!==n.calendar||void 0!==n.timeZone)throw new TypeError("Invalid bag");return n}function ho(n){return function(...t){const r=Ns.get(this),[e,...o]=r(...t);return e[n](...o)}}function lo(n){return function(...t){return Ns.get(this).F[n](...t)}}function wo(n){const t=Ys[n];if(!t)throw new TypeError(ji(n));return io(t,o(uo))}function mo(n,t){const r={};for(const e in n)r[e]=({C:n},r)=>{const o=Ss(r)||{},{branding:i}=o,u=i===hc||t.includes(i)?o:Fo(r);return n[e](u)};return r}function go(n){const t={};for(const r in n)t[r]=n=>{const{calendar:t}=n;return(e=t,"string"==typeof e?Vc(e):(o=e,Object.assign(Object.create(Ks),{$:o})))[r](n);var e,o};return t}function yo(){throw new TypeError("Cannot use valueOf")}function vo({calendar:n}){return"string"==typeof n?new za(n):n}function bo(n,t){if(t=Kn(t),e(n)){const r=Ss(n);if(r&&r.branding===fc)return $n(t),r;const e=Wo(n);return Lr(Ca(e||pu),!e,n,t)}const r=((n,t)=>{const r=Dr(Zi(t));if(r)return pr(r),ut(Yn(r));const e=br(t),{calendar:o}=e,i=n(o),[u,c,s]=i.o(e),[a,f]=i.i(u,c),[h,d]=i.k(a,f,s);return ut(i.L(h,d,s),o)})(Vc,n);return $n(t),r}function po(n,t,r){return Xt(N(t.call(n,Ka(tt(r)))))}function Mo(n,t=oa){const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,ki(n[o]));return e}function Eo(n,t,r){const e=t.q(qo(r).epochNanoseconds,n);return e?Ka(tt(e)):null}function Oo(n){return e(n)?(Ss(n)||{}).timeZone||sa(n):(n=>lr((n=>{const t=Tr(n);return t&&(t.timeZone||t.p&&vc||t.offset)||n})(Zi(n))))(n)}function Io(n,t){return"string"==typeof n?Tc(n):Mo(n,t)}function To(n){return Io(n,ia)}function Ro(n,t){if(t=Kn(t),e(n)){const r=Ss(n);return r&&r.branding===ac?($n(t),r):kr(Fa(Lo(n)),n,t)}const r=((n,t)=>{const r=Rr(Zi(t));if(r)return pr(r),it(un(Yn(r)));const e=br(t),o=ar(n(e.calendar),e);return it({...e,...o})})(Vc,n);return $n(t),r}function Do(n,t){if(t=Kn(t),e(n)){const r=Ss(n);if(r&&r.branding===wc)return kn(t),r;const e=Lo(n);return((n,t,r,e,o,i)=>{const u=Wr(r,o,gu,iu,cu),c=n(u.timeZone),[s,a,f]=kn(i),h=r.dateFromFields(u,Qn(i,s)),d=qr(u,s);return rt(Kt(t(c),{...h,...d},void 0!==u.offset?vr(u.offset):void 0,a,f),c,e)})(Oo,Io,Za(e),e,n,t)}return((n,t)=>{const r=Tr(Zi(n));if(!r||!r.timeZone)throw new RangeError(Di(n));const{offset:e}=r,o=e?vr(e):void 0,[,i,u]=kn(t);return Mr(r,o,i,u)})(n,t)}function So(n){return Oc(n,To)}function jo(n){return f((n=>t=>n(So(t))),n)}function Po(n,t){if(e(n)){const r=Ss(n)||{};switch(r.branding){case lc:return $n(t),r;case dc:return $n(t),ct(r);case wc:return $n(t),Xe(To,r)}return((n,t)=>{const r=$n(t);return ct(qr(xr(n,eu,[],1),r))})(n,t)}return $n(t),(n=>{let t,r=(n=>{const t=Wc.exec(n);return t?(Nr(t[10]),Pr(t)):void 0})(Zi(n));if(!r){if(r=Tr(n),!r)throw new RangeError(Di(n));if(!r.O)throw new RangeError(Di(n));if(r.p)throw new RangeError(Si("Z"));pr(r)}if((t=Rr(n))&&Fn(t))throw new RangeError(Di(n));if((t=Dr(n))&&Fn(t))throw new RangeError(Di(n));return ct(Cn(r,1))})(n)}function No(n){return void 0===n?void 0:Po(n)}function Yo(n,t){if(t=Kn(t),e(n)){const r=Ss(n)||{};switch(r.branding){case dc:return $n(t),r;case hc:return $n(t),et({...r,...Yu});case wc:return $n(t),Qe(To,r)}return((n,t,r)=>{const e=Wr(n,t,gu,[],ru),o=$n(r);return et(sn({...n.dateFromFields(e,Qn(r,o)),...qr(e,o)}))})(Za(Lo(n)),n,t)}const r=(n=>{const t=Tr(Zi(n));if(!t||t.p)throw new RangeError(Di(n));return et(Er(t))})(n);return $n(t),r}function Fo(n,t){if(t=Kn(t),e(n)){const r=Ss(n)||{};switch(r.branding){case hc:return $n(t),r;case dc:return $n(t),ot(r);case wc:return $n(t),Ve(To,r)}return $r(Za(Lo(n)),n,t)}const r=br(n);return $n(t),r}function Zo(n,t,r){return Y(t.call(n,ba(ot(r,n))))}function Co(n){return t=>"string"==typeof t?Vc(t):((n,t)=>{const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,n[o]);return e})(t,n)}function $o(n){if(e(n)){const t=Ss(n);return t&&t.branding===gc?t:(n=>{const t=xr(n,Ki);return st(ke({...nu,...t}))})(n)}return(n=>{const t=(n=>{const t=Bc.exec(n);return t?(n=>{function t(n,t,i){let u=0,c=0;if(i&&([u,o]=O(o,_i[i])),void 0!==n){if(e)throw new RangeError(Si(n));c=(n=>{const t=parseInt(n);if(!Number.isFinite(t))throw new RangeError(Si(n));return t})(n),r=1,t&&(o=Yr(t)*(_i[i]/Ji),e=1)}return u+c}let r=0,e=0,o=0,i={...a(Gi,[t(n[2]),t(n[3]),t(n[4]),t(n[5]),t(n[6],n[7],5),t(n[8],n[9],4),t(n[10],n[11],3)]),...H(o,2,Gi)};if(!r)throw new RangeError(ei);return Zr(n[1])<0&&(i=Ce(i)),i})(t):void 0})(Zi(n));if(!t)throw new RangeError(Di(n));return st(t)})(n)}function ko(n){if(void 0!==n){if(e(n)){const t=Ss(n)||{};switch(t.branding){case wc:case hc:return t;case dc:return ot(t)}const r=Lo(n);return{...((n,t,r,e)=>{const o=Wr(r,e,gu,[],cu);if(void 0!==o.timeZone){const e=r.dateFromFields(o),i=qr(o),u=n(o.timeZone);return{epochNanoseconds:Kt(t(u),{...e,...i},void 0!==o.offset?vr(o.offset):void 0),timeZone:u}}return{...r.dateFromFields(o),...Yu}})(Oo,Io,Za(r),n),calendar:r}}return(n=>{const t=Tr(Zi(n));if(!t)throw new RangeError(Di(n));if(t.timeZone)return Mr(t,t.offset?vr(t.offset):void 0);if(t.p)throw new RangeError(Di(n));return Or(t)})(n)}}function Lo(n){return Wo(n)||pu}function Wo(n){const{calendar:t}=n;if(void 0!==t)return xo(t)}function xo(n){return e(n)?(Ss(n)||{}).calendar||_a(n):(n=>rn((n=>{const t=Tr(n)||Rr(n)||Dr(n);return t?t.calendar:n})(Zi(n))))(n)}function qo(n){if(e(n)){const t=Ss(n);if(t)switch(t.branding){case mc:return t;case wc:return tt(t.epochNanoseconds)}}return(n=>{const t=Tr(n=L(n));if(!t)throw new RangeError(Di(n));let r;if(t.p)r=0;else{if(!t.offset)throw new RangeError(Di(n));r=vr(t.offset)}return t.timeZone&&Sr(t.timeZone,1),tt(gn(Nn(t),r))})(n)}function Bo(n){const t=Gt(n,Uo());return d(Su,t)}function Uo(){return V(Date.now(),Ui)}function Jo(){return Va||(Va=(new Fu).resolvedOptions().timeZone)}const Ho=(n,t)=>`Non-integer ${n}: ${t}`,Ao=(n,t)=>`Non-positive ${n}: ${t}`,zo=(n,t)=>`Non-finite ${n}: ${t}`,_o=n=>`Cannot convert bigint to ${n}`,Go=n=>`Invalid bigint: ${n}`,Ko="Cannot convert Symbol to string",Qo="Invalid object",Vo=(n,t,r,e)=>`${n} ${t} must be between ${r}-${e}`,Xo=(n,t)=>`Invalid ${n}: ${t}`,ni=n=>`Missing ${n}`,ti=n=>`Invalid field ${n}`,ri=n=>`Duplicate field ${n}`,ei="No valid fields",oi="Invalid calling context",ii="Forbidden era/eraYear",ui="Mismatching era/eraYear",ci="Mismatching year/eraYear",si=n=>`Invalid era: ${n}`,ai=n=>"Missing year"+(n?"/era/eraYear":""),fi=n=>`Invalid monthCode: ${n}`,hi="Mismatching month/monthCode",di="Missing month/monthCode",li="Cannot guess year",wi="Invalid leap month",mi="Invalid protocol results",gi=n=>`Invalid Calendar: ${n}`,yi="Mismatching Calendars",vi="Mismatching TimeZones",bi="Out-of-bounds offset",pi="Invalid offset for TimeZone",Mi="Ambiguous offset",Ei="Out-of-bounds date",Oi="Cannot mix duration signs",Ii="Missing relativeTo",Ti="Cannot use large units",Ri="smallestUnit > largestUnit",Di=n=>`Cannot parse: ${n}`,Si=n=>`Invalid substring: ${n}`,ji=n=>`Cannot format ${n}`,Pi="Forbidden timeZone",Ni=g(h,((n,t)=>t)),Yi=g(h,((n,t,r)=>r)),Fi=g(p,2),Zi=g(P,"string"),Ci=g(P,"boolean"),$i=g(P,"number"),ki=g(P,"function"),Li={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Wi=Object.keys(Li),xi=864e5,qi=1e3,Bi=1e3,Ui=1e6,Ji=1e9,Hi=6e10,Ai=36e11,zi=864e11,_i=[1,Bi,Ui,Ji,Hi,Ai,zi],Gi=Wi.map((n=>n+"s")),Ki=b(Gi),Qi=Gi.slice(0,6),Vi=Gi.slice(6),Xi=Ni(Gi),nu=Yi(Gi,0),tu=Yi(Qi,0),ru=Wi.slice(0,6),eu=b(ru),ou=["offset"],iu=["timeZone"],uu=[...ru,...ou],cu=[...uu,...iu],su=["era","eraYear"],au=[...su,"year"],fu=["year"],hu=["monthCode"],du=["month",...hu],lu=["day"],wu=[...du,...fu],mu=[...hu,...fu],gu=[...lu,...wu],yu=[...lu,...du],vu=[...lu,...hu],bu=Yi(ru,0),pu="iso8601",Mu="gregory",Eu="japanese",Ou={[Mu]:{bce:-1,ce:0},[Eu]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},Iu={bc:"bce",ad:"ce"},Tu={chinese:13,dangi:13,hebrew:-6},Ru=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Du=["isoDay","isoMonth","isoYear"],Su=[...Ru,...Du],ju=b(Du),Pu=b(Ru),Nu=b(Su),Yu=Yi(Pu,0),Fu=Intl.DateTimeFormat,Zu="en-GB",Cu=1e8,$u=[Cu,0],ku=[-Cu,0],Lu=275760,Wu=-271821,xu=1970,qu=1972,Bu=12,Uu=7,Ju=vn(1868,9,8),Hu=o((n=>{const t=wn(n);if(t<Ju)return Pn(n);const r=on(_c(Eu),t),{era:e,eraYear:o}=ie(r,Eu);return[e,o]}),WeakMap),Au="smallestUnit",zu="unit",_u="roundingIncrement",Gu="fractionalSecondDigits",Ku="relativeTo",Qu={constrain:0,reject:1},Vu=Object.keys(Qu),Xu=g(Vn,Au),nc=g(Vn,"largestUnit"),tc=g(Vn,zu),rc=g(Xn,"overflow",Qu),ec=g(Xn,"disambiguation",{compatible:0,reject:1,earlier:2,later:3}),oc=g(Xn,"offset",{reject:0,use:1,prefer:2,ignore:3}),ic=g(Xn,"calendarName",{auto:0,never:1,critical:2,always:3}),uc=g(Xn,"timeZoneName",{auto:0,never:1,critical:2}),cc=g(Xn,"offset",{auto:0,never:1}),sc=g(Xn,"roundingMode",{floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8}),ac="PlainYearMonth",fc="PlainMonthDay",hc="PlainDate",dc="PlainDateTime",lc="PlainTime",wc="ZonedDateTime",mc="Instant",gc="Duration",yc=[Math.floor,n=>S(n)?Math.floor(n):Math.round(n),Math.ceil,n=>S(n)?Math.ceil(n):Math.round(n),Math.trunc,n=>S(n)?Math.trunc(n)||0:Math.round(n),n=>n<0?Math.floor(n):Math.ceil(n),n=>Math.sign(n)*Math.round(Math.abs(n))||0,n=>S(n)?(n=Math.trunc(n)||0)+n%2:Math.round(n)],vc="UTC",bc=5184e3,pc=yn(1847),Mc=yn((new Date).getUTCFullYear()+10),Ec=/0+$/,Oc=o(((n,t)=>{const{epochNanoseconds:r}=n,e=(t.getOffsetNanosecondsFor?t:t(n.timeZone)).getOffsetNanosecondsFor(r),o=pn(r,e);return{calendar:n.calendar,...o,offsetNanoseconds:e}}),WeakMap),Ic=o((n=>new Fu(Zu,{timeZone:n,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Tc=o((n=>{const t=mr(n);return"object"==typeof t?new Dc(t):new Rc(t||0)}));class Rc{constructor(n){this.I=n}getOffsetNanosecondsFor(){return this.I}getPossibleInstantsFor(n){return[gn(n,this.I)]}q(){}}class Dc{constructor(n){this.B=(n=>{function t(n){const t=E(n,u,c),[o,s]=yr(t),a=e(o),f=e(s);return a===f?a:r(i(o,s),a,f,n)}function r(t,r,e,o){let i,u;for(;(void 0===o||void 0===(i=o<t[0]?r:o>=t[1]?e:void 0))&&(u=t[1]-t[0]);){const r=t[0]+Math.floor(u/2);n(r)===e?t[1]=r:t[0]=r+1}return i}const e=o(n),i=o(gr);let u=pc,c=Mc;return{U(n){const r=t(n-86400),e=t(n+86400),o=n-r,i=n-e;if(r===e)return[o];const u=t(o);return u===t(i)?[n-u]:r>e?[o,i]:[]},J:t,q(n,t){const o=E(n,u,c);let[s,a]=yr(o);const f=bc*t,h=t<0?()=>a>u||(u=o,0):()=>s<c||(c=o,0);for(;h();){const o=e(s),u=e(a);if(o!==u){const e=i(s,a);r(e,o,u);const c=e[0];if((M(c,n)||1)===t)return c}s+=f,a+=f}}}})((n=>t=>{const r=on(n,t*qi);return yn(ue(r),parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-t})(n))}getOffsetNanosecondsFor(n){return this.B.J(dn(n))*Ji}getPossibleInstantsFor(n){const[t,r]=[yn((e=n).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond),e.isoMillisecond*Ui+e.isoMicrosecond*Bi+e.isoNanosecond];var e;return this.B.U(t).map((n=>an(z(V(n,Ji),r))))}q(n,t){const[r,e]=(n=>tn(n,Ji))(n),o=this.B.q(r+(t>0||e?1:0),t);if(void 0!==o)return V(o,Ji)}}const Sc="([+āˆ’-])",jc="(?:[.,](\\d{1,9}))?",Pc=`(?:(?:${Sc}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Nc="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+jc+")?)?",Yc=Sc+Nc,Fc=Pc+"-?(\\d{2})(?:[T ]"+Nc+"(Z|"+Yc+")?)?",Zc="\\[(!?)([^\\]]*)\\]",Cc=`((?:${Zc}){0,9})`,$c=Fr(Pc+Cc),kc=Fr("(?:--)?(\\d{2})-?(\\d{2})"+Cc),Lc=Fr(Fc+Cc),Wc=Fr("T?"+Nc+"(?:"+Yc+")?"+Cc),xc=Fr(Yc),qc=new RegExp(Zc,"g"),Bc=Fr(`${Sc}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${jc}H)?(?:(\\d+)${jc}M)?(?:(\\d+)${jc}S)?)?`),Uc={era:L,eraYear:q,year:q,month:U,monthCode:L,day:U,...Yi(ru,q),...Yi(Gi,B),offset:L},Jc=g(((n,t,r)=>{const e={};for(let o=0;o<n.length;o++)e[t[o]]=r[n[o]];return e}),ru,Ru),Hc={dateAdd:hr,dateUntil(n,t,r){if(r<=7){let e=0,o=Se(n,t);return 7===r&&([e,o]=T(o,Uu)),{...nu,weeks:e,days:o}}const e=this.o(n),o=this.o(t);let[i,u,c]=((n,t,r,e,o,i,u)=>{function c(){const[e,u]=n.i(t,r),[c,s]=n.i(o,i);a=o-t,f=n.h(o),h=a?c-e||Number(s)-Number(u):i-Math.min(r,f)}function s(){c(),d=n.m(o,i),l=u-Math.min(e,d)}let a,f,h,d,l;s();const w=Math.sign(l),m=Math.sign(a)||Math.sign(h)||w;if(m){if(w===-m){const t=d;[o,i]=n.l(o,i,-m),s(),l+=m<0?-t:d}if(Math.sign(h)===-m){const n=f;o-=m,c(),h+=m<0?-n:f}}return[a,h,l]})(this,...e,...o);return 8===r&&(u+=this._(i,e[0]),i=0),{...nu,years:i,months:u,days:c}},dateFromFields(n,t){const r=$n(t),e=Ar(this,n),o=zr(this,n,e,r),i=_r(this,n,o,e,r);return ot(cn(this.L(e,o,i)),this.id||pu)},yearMonthFromFields(n,t){const r=$n(t),e=Ar(this,n),o=zr(this,n,e,r);return it(un(this.L(e,o,1)),this.id||pu)},monthDayFromFields(t,e){const o=$n(e),i=!this.id,{monthCode:u,year:c,month:s}=t;let a,f,h,d,l;if(void 0!==u){[a,f]=Kr(u),l=r(t,"day");const e=this.k(a,f,l);if(!e)throw new RangeError(li);if([h,d]=e,void 0!==s&&s!==d)throw new RangeError(hi);i&&(d=n("month",d,1,Bu,1),l=n("day",l,1,On(void 0!==c?c:h,d),o))}else{h=void 0===c&&i?qu:Ar(this,t),d=zr(this,t,h,o),l=_r(this,t,d,h,o);const n=this.u(h);f=d===n,a=Vr(d,n);const r=this.k(a,f,l);if(!r)throw new RangeError(li);[h,d]=r}return ut(this.L(h,d,l),this.id||pu)},fields(n){return ne(this)&&n.includes("year")?[...n,...su]:n},mergeFields(n,t){const r=Object.assign(Object.create(null),n);return Gr(r,t,du),ne(this)&&(Gr(r,t,au),this.id===Eu&&Gr(r,t,yu,su)),r},inLeapYear(n){const[t]=this.o(n);return this.G(t)},monthsInYear(n){const[t]=this.o(n);return this.h(t)},daysInMonth(n){const[t,r]=this.o(n);return this.m(t,r)},daysInYear(n){const[t]=this.o(n);return this.K(t)},era(n){return this.V(n)[0]},eraYear(n){return this.V(n)[1]},monthCode(n){const[t,r]=this.o(n),[e,o]=this.i(t,r);return((n,t)=>"M"+Fi(n)+(t?"L":""))(e,o)},dayOfWeek:Dn,weekOfYear(n){return Sn(n)[1]},yearOfWeek(n){return Sn(n)[0]},daysInWeek(){return Uu}},Ac=/^M(\d{2})(L?)$/,zc=o((n=>{function t(n){return((n,t)=>({...ie(n,t),month:n.month,day:parseInt(n.day)}))(on(r,n),e)}const r=_c(n),e=en(n);return{id:n,P:ee(t),N:oe(t)}})),_c=o((n=>new Fu(Zu,{calendar:n,timeZone:vc,era:"short",year:"numeric",month:"short",day:"numeric"}))),Gc=o($e,WeakMap),Kc={...Hc,o(n){return[n.isoYear,n.isoMonth,n.isoDay]},V(n){return this.id===Mu?Pn(n):this.id===Eu?Hu(n):[void 0,void 0]},i(n,t){return[t,0]},k(n,t){if(!t)return[qu,n]},G:Tn,u(){},h:En,_:n=>n*Bu,m:On,K:In,dayOfYear:Rn,L(n,t,r){return{isoYear:n,isoMonth:t,isoDay:r}},v:vn,l(n,t,r){return n+=R(r,Bu),(t+=D(r,Bu))<1?(n--,t+=Bu):t>Bu&&(n++,t-=Bu),[n,t]},year(n){return n.isoYear},month(n){return n.isoMonth},day:n=>n.isoDay},Qc={...Hc,o:ce,V(n){const t=this.P(n);return[t.era,t.eraYear]},i(n,t){const r=ae.call(this,n);return[Vr(t,r),r===t]},k(n,t,r){let[e,o,i]=ce.call(this,{isoYear:qu,isoMonth:Bu,isoDay:31});const u=ae.call(this,e),c=o===u;1===(M(n,Vr(o,u))||M(Number(t),Number(c))||M(r,i))&&e--;for(let o=0;o<100;o++){const i=e-o,u=ae.call(this,i),c=Qr(n,t,u);if(t===(c===u)&&r<=he.call(this,i,c))return[i,c]}},G(n){const t=fe.call(this,n);return t>fe.call(this,n-1)&&t>fe.call(this,n+1)},u:ae,h:de,_(n,t){const r=t+n,e=Math.sign(n),o=e<0?-1:0;let i=0;for(let n=t;n!==r;n+=e)i+=de.call(this,n+o);return i},m:he,K:fe,dayOfYear(n){const t=wn({...n,...Yu}),{year:r}=this.P(n);return je(se.call(this,r),t)},L(n,t,r){return cn({...Mn(se.call(this,n,t,r))})},v:se,l(n,t,r){if(r)if(t+=r,r<0){if(t<Number.MIN_SAFE_INTEGER)throw new RangeError(Ei);for(;t<1;)t+=de.call(this,--n)}else{if(t>Number.MAX_SAFE_INTEGER)throw new RangeError(Ei);let r;for(;t>(r=de.call(this,n));)t-=r,n++}return[n,t]},year(n){return this.P(n).year},month(n){const{year:t,month:r}=this.P(n),{j:e}=this.N(t);return e[r]+1},day(n){return this.P(n).day}},Vc=(Xc=Kc,ns=Qc,n=>n===pu?Xc:n===Mu||n===Eu?Object.assign(Object.create(Xc),{id:n}):Object.assign(Object.create(ns),zc(n)));var Xc,ns;const ts="numeric",rs=["timeZoneName"],es={month:ts,day:ts},os={year:ts,month:ts},is={...os,day:ts},us={hour:ts,minute:ts,second:ts},cs={...is,...us},ss={...cs,timeZoneName:"short"},as=Object.keys(es),fs=Object.keys(os),hs=[...Object.keys(is),"weekday","dateStyle"],ds=[...Object.keys(us),"dayPeriod","timeStyle"],ls=[...hs,...ds],ws=[...ls,...rs],ms=[...rs,...ds],gs=[...rs,...hs],ys=[...rs,"day","weekday","dateStyle",...ds],vs=ro(as,es,[...rs,"year","weekday","dateStyle",...ds]),bs=[ro(fs,os,ys),eo,1],ps=[vs,eo,1],Ms=[ro(hs,is,ms),eo],Es=[ro(ls,cs,rs),eo],Os=[ro(ds,us,gs),(n,t)=>Qt(Tc(t.timeZone),{isoYear:xu,isoMonth:1,isoDay:1,...n})],Is=[ro(ls,cs),oo],Ts=[ro(ws,ss),oo,0,(n,t)=>{const r=at(n.timeZone);if(t&&at(t.timeZone)!==r)throw new RangeError(vi);return r}],Rs={},Ds=new WeakMap,Ss=Ds.get.bind(Ds),js=Ds.set.bind(Ds),Ps=function(){const n=Fu.prototype,t=Object.getOwnPropertyDescriptors(n),r=Object.getOwnPropertyDescriptors(Fu),e=function(n,t={}){if(!(this instanceof e))return new e(n,t);Ns.set(this,((n,t={})=>{const r=new Fu(n,t),e=r.resolvedOptions(),i=e.locale,u=d(Object.keys(t),e),c=o(wo),s=(...n)=>{let t;const e=n.map(((n,r)=>{const e=Ss(n),o=(e||{}).branding;if(r&&t&&t!==o)throw new TypeError("Mismatching types for formatting");return t=o,e}));return t?c(t)(i,u,...e):[r,...n]};return s.F=r,s})(n,t))};for(const n in t){const r=t[n],o=n.startsWith("format")&&ho(n);"function"==typeof r.value?r.value="constructor"===n?e:o||lo(n):o&&(r.get=function(){return o.bind(this)})}return r.prototype.value=Object.create(n,t),Object.defineProperties(e,r),e}(),Ns=new WeakMap,Ys={PlainYearMonth:bs,PlainMonthDay:ps,PlainDate:Ms,PlainDateTime:Es,PlainTime:Os,Instant:Is},Fs=io(bs),Zs=io(ps),Cs=io(Ms),$s=io(Es),ks=io(Os),Ls=io(Is),Ws=io(Ts),xs={era(n){if(void 0!==n&&"string"!=typeof n)throw new TypeError("Expected string or undefined");return n},eraYear(n){if("number"==typeof n)F(n);else if(void 0!==n)throw new TypeError("Expected integer or undefined");return n},year:N,month:Y,daysInMonth:Y,daysInYear:Y,inLeapYear:Ci,monthsInYear:Y},qs={monthCode:Zi},Bs={day:Y},Us={dayOfWeek:Y,dayOfYear:Y,weekOfYear:Y,yearOfWeek:N,daysInWeek:Y},Js={...xs,...qs,...Bs,...Us},Hs={...mo(xs,[ac]),...mo(Us,[]),...mo(qs,[ac,fc]),...mo(Bs,[fc])},As=go(Js),zs=go({...xs,...qs}),_s=go({...qs,...Bs}),Gs={calendarId:n=>at(n.calendar)},Ks=f(((n,t)=>function(r){const{$:e}=this;return n(e[t](ba(ot(r,e))))}),Js),Qs=h((n=>t=>t[n]),Gi),Vs=h(((n,t)=>n=>n[Ru[t]]),ru),Xs={epochSeconds(n){return dn(n.epochNanoseconds)},epochMilliseconds(n){return ln(n.epochNanoseconds)},epochMicroseconds(n){return X(n.epochNanoseconds,Bi)},epochNanoseconds(n){return X(n.epochNanoseconds)}},na=g(l,new Set(["branding"])),[ta,ra,ea]=so(fc,g(((n,t,r,e=pu,o=qu)=>{const i=q(t),u=q(r),c=n(e);return ut(cn(Yn({isoYear:q(o),isoMonth:i,isoDay:u})),c)}),xo),{...Gs,..._s},{with(n,t,r){return ra(((n,t,r,e,o)=>{const i=Kn(o);return((n,t,r,e)=>{const o=Br(n,t,r,gu);return n.monthDayFromFields(o,e)})(n(t.calendar),r,e,i)})(La,n,this,fo(t),r))},equals(n,t){return!ze(r=n,e=bo(t))&&ft(r.calendar,e.calendar);var r,e},toString:Ft,toJSON:n=>Ft(n),toLocaleString(n,t,r){const[e,o]=Zs(t,r,n);return e.format(o)},toPlainDate(n,t){return ba(((n,t,r,e)=>((n,t,r)=>Hr(n,t,vu,j(r),fu))(n(t.calendar),r,e))(ka,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ra(bo(n,t))}),oa={getOffsetNanosecondsFor:po,getPossibleInstantsFor(n,t,r){return[...t.call(n,ya(et(r,pu)))].map((n=>Qa(n).epochNanoseconds))}},ia={getOffsetNanosecondsFor:po},[ua,ca]=so("TimeZone",(n=>{const t=lr(n);return{branding:"TimeZone",id:t,C:Tc(t)}}),{id:n=>n.id},{toString:n=>n.id,toJSON:n=>n.id,getPossibleInstantsFor:({C:n},t)=>n.getPossibleInstantsFor(Yo(t)).map((n=>Ka(tt(n)))),getOffsetNanosecondsFor:({C:n},t)=>n.getOffsetNanosecondsFor(qo(t).epochNanoseconds),getOffsetStringFor(n,t){const r=qo(t).epochNanoseconds;return Ut(Mo(this,ia).getOffsetNanosecondsFor(r))},getPlainDateTimeFor(n,t,r=pu){const e=qo(t).epochNanoseconds,o=Mo(this,ia).getOffsetNanosecondsFor(e);return ya(et(pn(e,o),xo(r)))},getInstantFor(n,t,r){const e=Yo(t),o=Ln(r),i=Mo(this);return Ka(tt(Qt(i,e,o)))},getNextTransition:({C:n},t)=>Eo(1,n,t),getPreviousTransition:({C:n},t)=>Eo(-1,n,t),equals(n,t){return!!Ge(this,Oo(t))}},{from(n){const t=Oo(n);return"string"==typeof t?new ua(t):t}}),sa=ao(Object.keys(oa)),[aa,fa,ha]=so(ac,g(((n,t,r,e=pu,o=1)=>{const i=q(t),u=q(r),c=n(e);return it(un(Yn({isoYear:i,isoMonth:u,isoDay:q(o)})),c)}),xo),{...Gs,...zs},{with(n,t,r){return fa(((n,t,r,e,o)=>{const i=Kn(o);return it(((n,t,r,e)=>{const o=Br(n,t,r,wu);return n.yearMonthFromFields(o,e)})(n(t.calendar),r,e,i))})($a,n,this,fo(t),r))},add:(n,t,r)=>fa(or(qa,0,n,$o(t),r)),subtract:(n,t,r)=>fa(or(qa,1,n,$o(t),r)),until:(n,t,r)=>Ja(ve(Ba,0,n,Ro(t),r)),since:(n,t,r)=>Ja(ve(Ba,1,n,Ro(t),r)),equals(n,t){return!ze(r=n,e=Ro(t))&&ft(r.calendar,e.calendar);var r,e},toString:Yt,toJSON:n=>Yt(n),toLocaleString(n,t,r){const[e,o]=Fs(t,r,n);return e.format(o)},toPlainDate(n,t){return ba(((n,t,r,e)=>((n,t,r)=>Hr(n,t,mu,j(r),lu))(n(t.calendar),r,e))(ka,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>fa(Ro(n,t)),compare:(n,t)=>ze(Ro(n),Ro(t))}),[da,la]=so(wc,g(((n,t,r,e,o=pu)=>rt(an(Q(W(r))),t(e),n(o))),xo,Oo),{...Xs,...Gs,...jo(As),...jo(Vs),hoursInDay:n=>((n,t)=>{const r=n(t.timeZone);return Vt(r,Oc(t,r))/Ai})(Io,n),offsetNanoseconds:n=>So(n).offsetNanoseconds,offset:n=>Ut(So(n).offsetNanoseconds),timeZoneId:n=>at(n.timeZone)},{with(n,t,r){return la(((n,t,r,e,o,i)=>{const u=Kn(i),{calendar:c,timeZone:s}=r;return rt(((n,t,r,e,o)=>{const i=Br(n,r,e,gu,uu,ou),[u,c,s]=kn(o,2);return Kt(t,{...n.dateFromFields(i,Qn(o,u)),...qr(i,u)},vr(i.offset),c,s)})(n(c),t(s),e,o,u),s,c)})(ka,Io,n,this,fo(t),r))},withPlainTime:(n,t)=>la(((n,t,r=Yu)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r};return rt(Kt(o,i,i.offsetNanoseconds,2),e,t.calendar)})(Io,n,No(t))),withPlainDate:(n,t)=>la(((n,t,r)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r},u=to(t.calendar,r.calendar);return rt(Kt(o,i,i.offsetNanoseconds,2),e,u)})(Io,n,Fo(t))),withTimeZone:(n,t)=>la(((n,t)=>({...n,timeZone:t}))(n,Oo(t))),withCalendar:(n,t)=>la(no(n,xo(t))),add:(n,t,r)=>la(tr(Wa,Io,0,n,$o(t),r)),subtract:(n,t,r)=>la(tr(Wa,Io,1,n,$o(t),r)),until:(n,t,r)=>Ja(st(me(xa,Io,0,n,Do(t),r))),since:(n,t,r)=>Ja(st(me(xa,Io,1,n,Do(t),r))),round:(n,t)=>la(((n,t,r)=>{let{epochNanoseconds:e,timeZone:o,calendar:i}=t;const[u,c,s]=xn(r);if(0===u&&1===c)return t;const a=n(o),f=a.getOffsetNanosecondsFor(e);let h={...pn(e,f),calendar:i};return h={calendar:i,...wt(h,u,c,s,a)},e=Kt(a,h,f,2,0,1),rt(e,o,i)})(Io,n,t)),startOfDay:n=>la(((n,t)=>{let{epochNanoseconds:r,timeZone:e,calendar:o}=t;const i=n(e);return r=Kt(i,{...Oc(t,i),...Yu},void 0,0,0,1),rt(r,e,o)})(Io,n)),equals(n,t){return!He(r=n,e=Do(t))&&!!Ge(r.timeZone,e.timeZone)&&ft(r.calendar,e.calendar);var r,e},toString:(n,t)=>jt(To,n,t),toJSON:n=>jt(To,n),toLocaleString(n,t,r={}){const[e,o]=Ws(t,r,n);return e.format(o)},toInstant:n=>Ka(tt(n.epochNanoseconds)),toPlainDate:n=>ba(Ve(To,n)),toPlainTime:n=>ma(Xe(To,n)),toPlainDateTime:n=>ya(Qe(To,n)),toPlainYearMonth(n){return fa(Jr(Fa(n.calendar),this))},toPlainMonthDay(n){return ra(Ur(Ca(n.calendar),this))},getISOFields:n=>((n,t)=>{const r=Oc(t,n);return{calendar:t.calendar,...d(Nu,r),offset:Ut(r.offsetNanoseconds),timeZone:t.timeZone}})(To,n),getCalendar:vo,getTimeZone:({timeZone:n})=>"string"==typeof n?new ua(n):n,valueOf:yo},{from:(n,t)=>la(Do(n,t)),compare:(n,t)=>He(Do(n),Do(t))}),[wa,ma]=so(lc,((n=0,t=0,r=0,e=0,o=0,i=0)=>ct(Cn(f(q,a(Ru,[n,t,r,e,o,i])),1))),Vs,{with(n,t,r){return ma(((n,t,r)=>ct(((n,t,r)=>{const e=$n(r);return qr({...d(eu,n),...xr(t,eu)},e)})(n,t,r)))(this,fo(t),r))},add:(n,t)=>ma(ir(0,n,$o(t))),subtract:(n,t)=>ma(ir(1,n,$o(t))),until:(n,t,r)=>Ja(pe(0,n,Po(t),r)),since:(n,t,r)=>Ja(pe(1,n,Po(t),r)),round:(n,t)=>ma(((n,t)=>ct(((n,t,r,e)=>gt(n,pt(t,r),e)[0])(n,...xn(t,5))))(n,t)),equals(n,t){return!_e(n,Po(t))},toString:Zt,toJSON:n=>Zt(n),toLocaleString(n,t,r){const[e,o]=ks(t,r,n);return e.format(o)},toZonedDateTime:(n,t)=>la(((n,t,r,e,o)=>{const i=j(o),u=t(i.plainDate),c=n(i.timeZone);return rt(Qt(r(c),{...u,...e}),c,u.calendar)})(Oo,Fo,Io,n,t)),toPlainDateTime(n,t){return ya((r=n,e=Fo(t),et(sn({...r,...e}))));var r,e},getISOFields:na,valueOf:yo},{from:(n,t)=>ma(Po(n,t)),compare:(n,t)=>_e(Po(n),Po(t))}),[ga,ya]=so(dc,g(((n,t,r,e,o=0,i=0,u=0,c=0,s=0,h=0,d=pu)=>et(sn(Nn(f(q,a(Su,[t,r,e,o,i,u,c,s,h])))),n(d))),xo),{...Gs,...As,...Vs},{with(n,t,r){return ya(((n,t,r,e,o)=>{const i=Kn(o);return et(((n,t,r,e)=>{const o=Br(n,t,r,gu,ru),i=$n(e);return sn({...n.dateFromFields(o,Qn(e,i)),...qr(o,i)})})(n(t.calendar),r,e,i))})(ka,n,this,fo(t),r))},withPlainTime:(n,t)=>ya(((n,t=Yu)=>et({...n,...t}))(n,No(t))),withPlainDate(n,t){return ya((r=n,e=Fo(t),et({...r,...e},to(r.calendar,e.calendar))));var r,e},withCalendar:(n,t)=>ya(no(n,xo(t))),add:(n,t,r)=>ya(rr(Wa,0,n,$o(t),r)),subtract:(n,t,r)=>ya(rr(Wa,1,n,$o(t),r)),until:(n,t,r)=>Ja(ge(xa,0,n,Yo(t),r)),since:(n,t,r)=>Ja(ge(xa,1,n,Yo(t),r)),round:(n,t)=>ya(((n,t)=>et(wt(n,...xn(t)),n.calendar))(n,t)),equals(n,t){return!Ae(r=n,e=Yo(t))&&ft(r.calendar,e.calendar);var r,e},toString:(n,t)=>Pt(n,t),toJSON:n=>Pt(n),toLocaleString(n,t,r){const[e,o]=$s(t,r,n);return e.format(o)},toZonedDateTime:(n,t,r)=>la(((n,t,r,e)=>rt(((n,t,r,e)=>{const o=Ln(e);return an(Qt(n(t),r,o))})(n,r,t,e),r,t.calendar))(Io,n,Oo(t),r)),toPlainDate:n=>ba(ot(n)),toPlainYearMonth(n){return fa(((n,t,r)=>{const e=n(t.calendar);return it({...t,...Jr(e,r)})})(Fa,n,this))},toPlainMonthDay(n){return ra(Ur(Ca(n.calendar),this))},toPlainTime:n=>ma(ct(n)),getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ya(Yo(n,t)),compare:(n,t)=>Ae(Yo(n),Yo(t))}),[va,ba,pa]=so(hc,g(((n,t,r,e,o=pu)=>ot(cn(Yn(f(q,{isoYear:t,isoMonth:r,isoDay:e}))),n(o))),xo),{...Gs,...As},{with(n,t,r){return ba(((n,t,r,e,o)=>{const i=Kn(o);return((n,t,r,e)=>{const o=Br(n,t,r,gu);return n.dateFromFields(o,e)})(n(t.calendar),r,e,i)})(ka,n,this,fo(t),r))},withCalendar:(n,t)=>ba(no(n,xo(t))),add:(n,t,r)=>ba(er(Wa,0,n,$o(t),r)),subtract:(n,t,r)=>ba(er(Wa,1,n,$o(t),r)),until:(n,t,r)=>Ja(ye(xa,0,n,Fo(t),r)),since:(n,t,r)=>Ja(ye(xa,1,n,Fo(t),r)),equals(n,t){return!ze(r=n,e=Fo(t))&&ft(r.calendar,e.calendar);var r,e},toString:Nt,toJSON:n=>Nt(n),toLocaleString(n,t,r){const[e,o]=Cs(t,r,n);return e.format(o)},toZonedDateTime(n,t){const r=!e(t)||t instanceof ua?{timeZone:t}:t;return la(((n,t,r,e,o)=>{const i=n(o.timeZone),u=o.plainTime,c=void 0!==u?t(u):Yu;return rt(Qt(r(i),{...e,...c}),i,e.calendar)})(Oo,Po,Io,n,r))},toPlainDateTime:(n,t)=>ya(((n,t=Yu)=>et(sn({...n,...t})))(n,No(t))),toPlainYearMonth(n){return fa(Jr(Fa(n.calendar),this))},toPlainMonthDay(n){return ra(Ur(Ca(n.calendar),this))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ba(Fo(n,t)),compare:(n,t)=>ze(Fo(n),Fo(t))}),Ma={fields(n,t,r){return[...t.call(n,r)]}},Ea={dateFromFields(n,t,r,e){return pa(t.call(n,Object.assign(Object.create(null),r),e))},...Ma},Oa={yearMonthFromFields(n,t,r,e){return ha(t.call(n,Object.assign(Object.create(null),r),e))},...Ma},Ia={monthDayFromFields(n,t,r,e){return ea(t.call(n,Object.assign(Object.create(null),r),e))},...Ma},Ta={mergeFields(n,t,r,e){return j(t.call(n,Object.assign(Object.create(null),r),Object.assign(Object.create(null),e)))}},Ra={...Ea,...Ta},Da={...Oa,...Ta},Sa={...Ia,...Ta},ja={dateAdd(n,t,r,e,o){return pa(t.call(n,ba(ot(r,n)),Ja(st(e)),o))}},Pa={...ja,dateUntil(n,t,r,e,o,i){return Ha(t.call(n,ba(ot(r,n)),ba(ot(e,n)),Object.assign(Object.create(null),i,{largestUnit:Wi[o]})))}},Na={...ja,day:Zo},Ya={...Pa,day:Zo},Fa=Co(Oa),Za=Co(Ea),Ca=Co(Ia),$a=Co(Da),ka=Co(Ra),La=Co(Sa),Wa=Co(ja),xa=Co(Pa),qa=Co(Na),Ba=Co(Ya),[Ua,Ja,Ha]=so(gc,((n=0,t=0,r=0,e=0,o=0,i=0,u=0,c=0,s=0,h=0)=>st(ke(f(B,a(Gi,[n,t,r,e,o,i,u,c,s,h]))))),{...Qs,blank:n=>!Gc(n),sign:n=>Gc(n)},{with:(n,t)=>Ja(((n,t)=>{return st((r=n,e=t,ke({...r,...xr(e,Ki)})));var r,e})(n,t)),add:(n,t,r)=>Ja(Fe(ko,xa,Io,0,n,$o(t),r)),subtract:(n,t,r)=>Ja(Fe(ko,xa,Io,1,n,$o(t),r)),negated:n=>Ja(Ze(n)),abs:n=>Ja((n=>{return st(-1===Gc(t=n)?Ce(t):t);var t})(n)),round:(n,t)=>Ja(((n,t,r,e,o)=>{const i=Ue(e),[u,c,s,a,f]=((n,t,r)=>{n=Gn(n,Au);let e=nc(n);const o=r(n[Ku]);let i=Hn(n);const u=sc(n,7);let c=Xu(n);if(void 0===e&&void 0===c)throw new RangeError("Required smallestUnit or largestUnit");return null==c&&(c=0),null==e&&(e=Math.max(c,t)),nt(e,c),i=An(i,c,1),[e,c,i,u,o]})(o,i,n),h=Math.max(i,u);if(h<6||6===h&&(!f||!f.epochNanoseconds))return st(((n,t,r,e,o)=>({...nu,...yt(n,t,r,e,o)}))(e,u,c,s,a));if(!f)throw new RangeError(Ii);const d=Ne(t,r,f);let l=0;e.weeks&&7===c&&(l=e.weeks,e={...e,weeks:0});let[w,m]=Ye(e,void 0,u,...d);const g=Gc(e),y=Gc(w);if(g&&y&&g!==y)throw new RangeError(mi);return!y||0===c&&1===s||(w=bt(w,m,u,c,s,a,...d)),w.weeks+=l,st(w)})(ko,xa,Io,n,t)),total:(n,t)=>((n,t,r,e,o)=>{const i=Ue(e),[u,c]=((n,t)=>{const r=t((n=Gn(n,zu))[Ku]);let e=tc(n);return e=$(zu,e),[e,r]})(o,n),s=Math.max(u,i);if(s<6||6===s&&(!c||!c.epochNanoseconds))return((n,t)=>ht(Le(n,6),t))(e,u);if(!c)throw new RangeError(Ii);const a=Ne(t,r,c);return((n,t,r,e,o,i)=>{const u=Gc(n),[c,s]=dt(qe(n,r-1),r,u,e,o,i),a=lt(c,s,t);return n[Gi[r]]+a*u})(...Ye(e,void 0,u,...a),u,...a)})(ko,xa,Io,n,t),toString:Ct,toLocaleString(n,t,r){return Intl.DurationFormat?new Intl.DurationFormat(t,r).format(this):Ct(n)},toJSON:n=>Ct(n),valueOf:yo},{from:n=>Ja($o(n)),compare:(n,t,r)=>((n,t,r,e,o,i)=>{const u=n(_n(i).relativeTo),c=Math.max(Ue(e),Ue(o));if(m(Gi,e,o))return 0;if(c<6||6===c&&(!u||!u.epochNanoseconds))return K(J(e,6,Gi),J(o,6,Gi));if(!u)throw new RangeError(Ii);const[s,a,f]=Ne(t,r,u);return K(a(f(s,e)),a(f(s,o)))})(ko,xa,Io,$o(n),$o(t),r)}),Aa={toString:n=>n.id,toJSON:n=>n.id,...Hs,dateAdd:({id:n,C:t},r,e,o)=>ba(ot(t.dateAdd(Fo(r),$o(e),o),n)),dateUntil:({C:n},t,r,e)=>Ja(st(n.dateUntil(Fo(t),Fo(r),(n=>(n=_n(n),nc(n,9,6,1)))(e)))),dateFromFields:({id:n,C:t},r,e)=>ba($r(t,r,e,n===pu?["year","day"]:[])),yearMonthFromFields:({id:n,C:t},r,e)=>fa(kr(t,r,e,n===pu?fu:[])),monthDayFromFields:({id:n,C:t},r,e)=>ra(Lr(t,0,r,e,n===pu?lu:[])),fields({C:n},t){const r=new Set(gu),e=[];for(const n of t){if(Zi(n),!r.has(n))throw new RangeError(ti(n));r.delete(n),e.push(n)}return n.fields(e)},mergeFields:({C:n},t,r)=>n.mergeFields(w(C(t)),w(C(r)))},[za]=so("Calendar",(n=>{const t=rn(Zi(n));return{branding:"Calendar",id:t,C:Vc(t)}}),{id:n=>n.id},Aa,{from(n){const t=xo(n);return"string"==typeof t?new za(t):t}}),_a=ao(Object.keys(Aa).slice(4)),[Ga,Ka,Qa]=so(mc,(n=>tt(an(Q(W(n))))),Xs,{add:(n,t)=>Ka(nr(0,n,$o(t))),subtract:(n,t)=>Ka(nr(1,n,$o(t))),until:(n,t,r)=>Ja(we(0,n,qo(t),r)),since:(n,t,r)=>Ja(we(1,n,qo(t),r)),round:(n,t)=>Ka(((n,t)=>{const[r,e,o]=xn(t,5,1);return tt(Ot(n.epochNanoseconds,r,e,o,1))})(n,t)),equals(n,t){return!Je(n,qo(t))},toString:(n,t)=>St(Oo,To,n,t),toJSON:n=>St(Oo,To,n),toLocaleString(n,t,r){const[e,o]=Ls(t,r,n);return e.format(o)},toZonedDateTimeISO:(n,t)=>la(Ke(n,Oo(t))),toZonedDateTime(n,t){const r=j(t);return la(Ke(n,Oo(r.timeZone),xo(r.calendar)))},valueOf:yo},{from:n=>Ka(qo(n)),fromEpochSeconds:n=>Ka((n=>tt(an(V(n,Ji))))(n)),fromEpochMilliseconds:n=>Ka((n=>tt(an(V(n,Ui))))(n)),fromEpochMicroseconds:n=>Ka((n=>tt(an(Q(W(n),Bi))))(n)),fromEpochNanoseconds:n=>Ka((n=>tt(an(Q(W(n)))))(n)),compare:(n,t)=>Je(qo(n),qo(t))});let Va;const Xa=Object.defineProperties({},{...s("Temporal.Now"),...u({timeZoneId:()=>Jo(),instant:()=>Ka(tt(Uo())),zonedDateTime:(n,t=Jo())=>la(rt(Uo(),Oo(t),xo(n))),zonedDateTimeISO:(n=Jo())=>la(rt(Uo(),Oo(n),pu)),plainDateTime:(n,t=Jo())=>ya(et(Bo(To(Oo(t))),xo(n))),plainDateTimeISO:(n=Jo())=>ya(et(Bo(To(Oo(n))),pu)),plainDate:(n,t=Jo())=>ba(ot(Bo(To(Oo(t))),xo(n))),plainDateISO:(n=Jo())=>ba(ot(Bo(To(Oo(n))),pu)),plainTimeISO:(n=Jo())=>ma(ct(Bo(To(Oo(n)))))})}),nf=Object.defineProperties({},{...s("Temporal"),...u({PlainYearMonth:aa,PlainMonthDay:ta,PlainDate:va,PlainTime:wa,PlainDateTime:ga,ZonedDateTime:da,Instant:Ga,Calendar:za,TimeZone:ua,Duration:Ua,Now:Xa})});Object.defineProperties(globalThis,u({Temporal:nf})),Object.defineProperties(Intl,u({DateTimeFormat:Ps})),Object.defineProperties(Date.prototype,u({toTemporalInstant(){return Ka(tt(V(this.valueOf(),Ui)))}}))}();

@@ -1,779 +0,11 @@

function createSlotClass(e, t, n, o, r) {
function Class(...e) {
if (!(this instanceof Class)) {
throw new TypeError(i);
}
Ea(this, t(...e));
}
function bindMethod(e, t) {
return Object.defineProperties((function(...t) {
return e.call(this, getSpecificSlots(this), ...t);
}), Yt(t));
}
function getSpecificSlots(t) {
const n = Aa(t);
if (!n || n.branding !== e) {
throw new TypeError(i);
}
return n;
}
return Object.defineProperties(Class.prototype, {
...Ct(Zt(bindMethod, n)),
...xt(Zt(bindMethod, o)),
...Bt("Temporal." + e)
}), Object.defineProperties(Class, {
...xt(r),
...Yt(e)
}), [ Class, e => {
const t = Object.create(Class.prototype);
return Ea(t, e), t;
}, getSpecificSlots ];
}
import { DateTimeFormat as kt } from "./chunks/i5MHFTYG.esm.js";
function createProtocolValidator(e) {
return e = e.concat("id").sort(), t => {
if (!At(t, e)) {
throw new TypeError(m);
}
return t;
};
}
export { Temporal, toTemporalInstant } from "./chunks/i5MHFTYG.esm.js";
function rejectInvalidBag(e) {
if (Aa(e) || void 0 !== e.calendar || void 0 !== e.timeZone) {
throw new TypeError(o);
}
return e;
}
import { createPropDescriptors as xt } from "./chunks/vVnp2l5L.esm.js";
function createDateTimeFormatClass() {
const e = Fe.prototype, t = Object.getOwnPropertyDescriptors(e), n = Object.getOwnPropertyDescriptors(Fe), DateTimeFormat = function(e, t = {}) {
if (!(this instanceof DateTimeFormat)) {
return new DateTimeFormat(e, t);
}
Va.set(this, ((e, t = {}) => {
const n = new Fe(e, t), o = n.resolvedOptions(), r = o.locale, a = Vt(Object.keys(t), o), i = Jt(createFormatPrepperForBranding), prepFormat = (...e) => {
let t;
const o = e.map(((e, n) => {
const o = Aa(e), r = (o || {}).branding;
if (n && t && t !== r) {
throw new TypeError(F);
}
return t = r, o;
}));
return t ? i(t)(r, a, ...o) : [ n, ...e ];
};
return prepFormat.J = n, prepFormat;
})(e, t));
};
for (const e in t) {
const n = t[e], o = e.startsWith("format") && createFormatMethod(e);
"function" == typeof n.value ? n.value = "constructor" === e ? DateTimeFormat : o || createProxiedMethod(e) : o && (n.get = function() {
return o.bind(this);
});
}
return n.prototype.value = Object.create(e, t), Object.defineProperties(DateTimeFormat, n),
DateTimeFormat;
}
const tm = /*@__PURE__*/ Object.defineProperties(Object.create(Intl), xt({
DateTimeFormat: kt
}));
function createFormatMethod(e) {
return function(...t) {
const n = Va.get(this), [o, ...r] = n(...t);
return o[e](...r);
};
}
function createProxiedMethod(e) {
return function(...t) {
return Va.get(this).J[e](...t);
};
}
function createFormatPrepperForBranding(e) {
const t = Ja[e];
if (!t) {
throw new TypeError(Lt(e));
}
return Rt(t, Jt(Wt));
}
function createCalendarFieldMethods(e, t) {
const n = {};
for (const o in e) {
n[o] = ({K: e}, n) => {
const r = Aa(n) || {}, {branding: a} = r, i = a === hn || t.includes(a) ? r : toPlainDateSlots(n);
return e[o](i);
};
}
return n;
}
function createCalendarGetters(e) {
const t = {};
for (const n in e) {
t[n] = e => {
const {calendar: t} = e;
return (o = t, "string" == typeof o ? nt(o) : (r = o, Object.assign(Object.create(ni), {
X: r
})))[n](e);
var o, r;
};
}
return t;
}
function neverValueOf() {
throw new TypeError(r);
}
function createCalendarFromSlots({calendar: e}) {
return "string" == typeof e ? new ns(e) : e;
}
function toPlainMonthDaySlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
if (n && n.branding === pn) {
return fo(t), n;
}
const o = extractCalendarSlotFromBag(e);
return mo(Wi(o || ae), !o, e, t);
}
const n = So(nt, e);
return fo(t), n;
}
function getOffsetNanosecondsForAdapter(e, t, n) {
return o = t.call(e, hi(Oo(n))), po(zt(o));
var o;
}
function createAdapterOps(e, t = ui) {
const n = Object.keys(t).sort(), o = {};
for (const r of n) {
o[r] = no(t[r], e, je(e[r]));
}
return o;
}
function createTimeZoneOps(e, t) {
return "string" == typeof e ? wn(e) : createAdapterOps(e, t);
}
function createTimeZoneOffsetOps(e) {
return createTimeZoneOps(e, di);
}
function toPlainYearMonthSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
return n && n.branding === mn ? (fo(t), n) : Fo(xi(getCalendarSlotFromBag(e)), e, t);
}
const n = Io(nt, e);
return fo(t), n;
}
function toZonedDateTimeSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
if (n && n.branding === In) {
return Qo(t), n;
}
const o = getCalendarSlotFromBag(e);
return Xo(refineTimeZoneSlot, createTimeZoneOps, Ri(o), o, e, t);
}
return $o(e, t);
}
function slotsToIso(e) {
return bn(e, createTimeZoneOffsetOps);
}
function adaptDateMethods(e) {
return Zt((e => t => e(slotsToIso(t))), e);
}
function toInstantSlots(e) {
if (uo(e)) {
const t = Aa(e);
if (t) {
switch (t.branding) {
case gn:
return t;
case In:
return Oo(t.epochNanoseconds);
}
}
}
return lr(e);
}
function qt() {
return hi(Oo(cr(this.valueOf(), Z)));
}
function getImplTransition(e, t, n) {
const o = t.C(toInstantSlots(n).epochNanoseconds, e);
return o ? hi(Oo(o)) : null;
}
function refineTimeZoneSlot(e) {
return uo(e) ? (Aa(e) || {}).timeZone || gi(e) : (e => Pr(Dr(Le(e))))(e);
}
function toPlainTimeSlots(e, t) {
if (uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case Dn:
return fo(t), n;
case Tn:
return fo(t), Mr(n);
case In:
return fo(t), Wo(createTimeZoneOffsetOps, n);
}
return yr(e, t);
}
return fo(t), Nr(e);
}
function optionalToPlainTimeFields(e) {
return void 0 === e ? void 0 : toPlainTimeSlots(e);
}
function toPlainDateTimeSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case Tn:
return fo(t), n;
case hn:
return fo(t), To({
...n,
...ve
});
case In:
return fo(t), Go(createTimeZoneOffsetOps, n);
}
return Ur(Ri(getCalendarSlotFromBag(e)), e, t);
}
const n = zr(e);
return fo(t), n;
}
function toPlainDateSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case hn:
return fo(t), n;
case Tn:
return fo(t), Xt(n);
case In:
return fo(t), Ro(createTimeZoneOffsetOps, n);
}
return aa(Ri(getCalendarSlotFromBag(e)), e, t);
}
const n = ia(e);
return fo(t), n;
}
function dayAdapter(e, t, n) {
return Ht(t.call(e, wi(Xt(n, e))));
}
function createCompoundOpsCreator(e) {
return t => "string" == typeof t ? nt(t) : ((e, t) => {
const n = Object.keys(t).sort(), o = {};
for (const r of n) {
o[r] = no(t[r], e, e[r]);
}
return o;
})(t, e);
}
function toDurationSlots(e) {
if (uo(e)) {
const t = Aa(e);
return t && t.branding === yn ? t : Ta(e);
}
return pa(e);
}
function refinePublicRelativeTo(e) {
if (void 0 !== e) {
if (uo(e)) {
const t = Aa(e) || {};
switch (t.branding) {
case In:
case hn:
return t;
case Tn:
return Xt(t);
}
const n = getCalendarSlotFromBag(e);
return {
...ha(refineTimeZoneSlot, createTimeZoneOps, Ri(n), e),
calendar: n
};
}
return Pa(e);
}
}
function getCalendarSlotFromBag(e) {
return extractCalendarSlotFromBag(e) || ae;
}
function extractCalendarSlotFromBag(e) {
const {calendar: t} = e;
if (void 0 !== t) {
return refineCalendarSlot(t);
}
}
function refineCalendarSlot(e) {
return uo(e) ? (Aa(e) || {}).calendar || os(e) : (e => Fa(Ia(Le(e))))(e);
}
import { createGetterDescriptors as Ct, mapProps as Zt, createPropDescriptors as xt, createStringTagDescriptors as Bt, createNameDescriptors as Yt, invalidCallingContext as i, hasAllPropsByName as At, invalidProtocol as m, invalidBag as o, RawDateTimeFormat as Fe, pluckProps as Vt, createLazyGenerator as Jt, invalidFormatType as Lt, createFormatPrepper as Rt, createFormatForPrep as Wt, mismatchingFormatTypes as F, plainYearMonthConfig as Mt, plainMonthDayConfig as Pt, plainDateConfig as Et, plainDateTimeConfig as vt, plainTimeConfig as Ft, instantConfig as bt, zonedDateTimeConfig as St, requireStringOrUndefined as Gt, requireIntegerOrUndefined as Ut, requireInteger as zt, requirePositiveInteger as Ht, requireBoolean as Ae, requireString as Le, mapPropNames as Kt, getId as Qt, createPlainDateSlots as Xt, durationFieldNamesAsc as de, timeFieldNamesAsc as j, isoTimeFieldNamesAsc as ge, getEpochSeconds as $t, getEpochMilliseconds as _t, getEpochMicroseconds as eo, getEpochNanoseconds as to, createNativeStandardOps as nt, forbiddenValueOf as r, bindArgs as no, excludePropsByName as oo, PlainDateBranding as hn, PlainYearMonthBranding as mn, PlainMonthDayBranding as pn, plainMonthDayWithFields as ro, plainMonthDaysEqual as ao, formatPlainMonthDayIso as io, plainMonthDayToPlainDate as so, constructPlainMonthDaySlots as lo, copyOptions as co, isObjectLike as uo, refineOverflowOptions as fo, refinePlainMonthDayBag as mo, parsePlainMonthDay as So, isoCalendarId as ae, requireFunction as je, createInstantSlots as Oo, createPlainDateTimeSlots as To, validateTimeZoneOffset as po, queryNativeTimeZone as wn, plainYearMonthWithFields as ho, movePlainYearMonth as Po, diffPlainYearMonth as Do, plainYearMonthsEqual as Co, formatPlainYearMonthIso as go, plainYearMonthToPlainDate as Zo, constructPlainYearMonthSlots as bo, refinePlainYearMonthBag as Fo, parsePlainYearMonth as Io, compareIsoDateFields as vo, computeHoursInDay as wo, formatOffsetNano as jo, ZonedDateTimeBranding as In, zonedEpochSlotsToIso as bn, zonedDateTimeWithFields as Mo, zonedDateTimeWithPlainTime as yo, zonedDateTimeWithPlainDate as No, slotsWithTimeZone as Bo, slotsWithCalendar as Yo, moveZonedDateTime as Ao, createDurationSlots as Eo, diffZonedDateTimes as Vo, roundZonedDateTime as Jo, computeStartOfDay as Lo, zonedDateTimesEqual as ko, formatZonedDateTimeIso as qo, zonedDateTimeToInstant as xo, zonedDateTimeToPlainDate as Ro, zonedDateTimeToPlainTime as Wo, zonedDateTimeToPlainDateTime as Go, zonedDateTimeToPlainYearMonth as Uo, zonedDateTimeToPlainMonthDay as zo, buildZonedIsoFields as Ho, constructZonedDateTimeSlots as Ko, refineZonedFieldOptions as Qo, refineZonedDateTimeBag as Xo, parseZonedDateTime as $o, compareZonedDateTimes as _o, moveInstant as er, diffInstants as tr, roundInstant as nr, instantsEqual as or, formatInstantIso as rr, instantToZonedDateTime as ar, requireObjectLike as ir, constructInstantSlots as sr, InstantBranding as gn, parseInstant as lr, numberToDayTimeNano as cr, epochSecToInstant as ur, epochMilliToInstant as dr, epochMicroToInstant as fr, epochNanoToInstant as mr, compareInstants as Sr, nanoInMilli as Z, epochNanoToIso as Or, refineEpochDisambigOptions as Tr, getSingleInstantFor as pr, isTimeZoneSlotsEqual as hr, resolveTimeZoneId as Pr, parseTimeZoneId as Dr, plainTimeWithFields as Cr, movePlainTime as gr, diffPlainTimes as Zr, roundPlainTime as br, plainTimesEqual as Fr, formatPlainTimeIso as Ir, plainTimeToZonedDateTime as vr, plainTimeToPlainDateTime as wr, constructPlainTimeSlots as jr, PlainTimeBranding as Dn, PlainDateTimeBranding as Tn, createPlainTimeSlots as Mr, refinePlainTimeBag as yr, parsePlainTime as Nr, compareIsoTimeFields as Br, plainDateTimeWithFields as Yr, plainDateTimeWithPlainTime as Ar, plainDateTimeWithPlainDate as Er, movePlainDateTime as Vr, diffPlainDateTimes as Jr, roundPlainDateTime as Lr, plainDateTimesEqual as kr, formatPlainDateTimeIso as qr, plainDateTimeToZonedDateTime as xr, plainDateTimeToPlainYearMonth as Rr, plainDateTimeToPlainMonthDay as Wr, constructPlainDateTimeSlots as Gr, isoTimeFieldDefaults as ve, refinePlainDateTimeBag as Ur, parsePlainDateTime as zr, compareIsoDateTimeFields as Hr, plainDateWithFields as Kr, movePlainDate as Qr, diffPlainDates as Xr, plainDatesEqual as $r, formatPlainDateIso as _r, plainDateToZonedDateTime as ea, plainDateToPlainDateTime as ta, plainDateToPlainYearMonth as na, plainDateToPlainMonthDay as oa, constructPlainDateSlots as ra, refinePlainDateBag as aa, parsePlainDate as ia, unitNamesAsc as k, queryDurationBlank as sa, queryDurationSign as Sn, constructDurationSlots as la, DurationBranding as yn, durationWithFields as ca, addDurations as ua, negateDuration as da, absDuration as fa, roundDuration as ma, totalDuration as Sa, formatDurationIso as Oa, refineDurationBag as Ta, parseDuration as pa, refineMaybeZonedDateTimeBag as ha, parseZonedOrPlainDateTime as Pa, compareDurations as Da, refineCalendarDiffOptions as Ca, dateFieldNamesAlpha as te, forbiddenField as ga, excludeUndefinedProps as Za, requireNonNullish as ba, resolveCalendarId as Fa, parseCalendarId as Ia, getRequiredDateFields as va, getRequiredMonthDayFields as wa, getRequiredYearMonthFields as ja, getCurrentTimeZoneId as Ma, getCurrentEpochNanoseconds as ya, createZonedDateTimeSlots as Na, getCurrentIsoDateTime as Ba } from "./chunks/fEYw9zwg.esm.js";
const Ya = /*@__PURE__*/ new WeakMap, Aa = /*@__PURE__*/ Ya.get.bind(Ya), Ea = /*@__PURE__*/ Ya.set.bind(Ya), kt = /*@__PURE__*/ createDateTimeFormatClass(), Va = /*@__PURE__*/ new WeakMap, Ja = {
PlainYearMonth: Mt,
PlainMonthDay: Pt,
PlainDate: Et,
PlainDateTime: vt,
PlainTime: Ft,
Instant: bt
}, La = /*@__PURE__*/ Rt(Mt), ka = /*@__PURE__*/ Rt(Pt), qa = /*@__PURE__*/ Rt(Et), xa = /*@__PURE__*/ Rt(vt), Ra = /*@__PURE__*/ Rt(Ft), Wa = /*@__PURE__*/ Rt(bt), Ga = /*@__PURE__*/ Rt(St), Ua = {
era: Gt,
eraYear: Ut,
year: zt,
month: Ht,
daysInMonth: Ht,
daysInYear: Ht,
inLeapYear: Ae,
monthsInYear: Ht
}, za = {
monthCode: Le
}, Ha = {
day: Ht
}, Ka = {
dayOfWeek: Ht,
dayOfYear: Ht,
weekOfYear: Ht,
yearOfWeek: zt,
daysInWeek: Ht
}, Qa = /*@__PURE__*/ Object.assign({}, Ua, za, Ha, Ka), Xa = {
...createCalendarFieldMethods(Ua, [ mn ]),
...createCalendarFieldMethods(Ka, []),
...createCalendarFieldMethods(za, [ mn, pn ]),
...createCalendarFieldMethods(Ha, [ pn ])
}, $a = /*@__PURE__*/ createCalendarGetters(Qa), _a = /*@__PURE__*/ createCalendarGetters({
...Ua,
...za
}), ei = /*@__PURE__*/ createCalendarGetters({
...za,
...Ha
}), ti = {
calendarId: e => Qt(e.calendar)
}, ni = /*@__PURE__*/ Zt(((e, t) => function(n) {
const {X: o} = this;
return e(o[t](wi(Xt(n, o))));
}), Qa), oi = /*@__PURE__*/ Kt((e => t => t[e]), de), ri = /*@__PURE__*/ Kt(((e, t) => e => e[ge[t]]), j), ai = {
epochSeconds: $t,
epochMilliseconds: _t,
epochMicroseconds: eo,
epochNanoseconds: to
}, ii = /*@__PURE__*/ no(oo, new Set([ "branding" ])), [si, li, ci] = createSlotClass(pn, no(lo, refineCalendarSlot), {
...ti,
...ei
}, {
with(e, t, n) {
return li(ro(zi, e, this, rejectInvalidBag(t), n));
},
equals: (e, t) => ao(e, toPlainMonthDaySlots(t)),
toString: io,
toJSON: e => io(e),
toLocaleString(e, t, n) {
const [o, r] = ka(t, n, e);
return o.format(r);
},
toPlainDate(e, t) {
return wi(so(Ui, e, this, t));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => li(toPlainMonthDaySlots(e, t))
}), ui = {
getOffsetNanosecondsFor: getOffsetNanosecondsForAdapter,
getPossibleInstantsFor(e, t, n) {
return [ ...t.call(e, Ii(To(n, ae))) ].map((e => Pi(e).epochNanoseconds));
}
}, di = {
getOffsetNanosecondsFor: getOffsetNanosecondsForAdapter
}, [fi, mi, Si] = createSlotClass(mn, no(bo, refineCalendarSlot), {
...ti,
..._a
}, {
with(e, t, n) {
return mi(ho(Gi, e, this, rejectInvalidBag(t), n));
},
add: (e, t, n) => mi(Po(Qi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => mi(Po(Qi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Do(Xi, 0, e, toPlainYearMonthSlots(t), n)),
since: (e, t, n) => _i(Do(Xi, 1, e, toPlainYearMonthSlots(t), n)),
equals: (e, t) => Co(e, toPlainYearMonthSlots(t)),
toString: go,
toJSON: e => go(e),
toLocaleString(e, t, n) {
const [o, r] = La(t, n, e);
return o.format(r);
},
toPlainDate(e, t) {
return wi(Zo(Ui, e, this, t));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => mi(toPlainYearMonthSlots(e, t)),
compare: (e, t) => vo(toPlainYearMonthSlots(e), toPlainYearMonthSlots(t))
}), [Oi, Ti] = createSlotClass(In, no(Ko, refineCalendarSlot, refineTimeZoneSlot), {
...ai,
...ti,
...adaptDateMethods($a),
...adaptDateMethods(ri),
hoursInDay: e => wo(createTimeZoneOps, e),
offsetNanoseconds: e => slotsToIso(e).offsetNanoseconds,
offset: e => jo(slotsToIso(e).offsetNanoseconds),
timeZoneId: e => Qt(e.timeZone)
}, {
with(e, t, n) {
return Ti(Mo(Ui, createTimeZoneOps, e, this, rejectInvalidBag(t), n));
},
withPlainTime: (e, t) => Ti(yo(createTimeZoneOps, e, optionalToPlainTimeFields(t))),
withPlainDate: (e, t) => Ti(No(createTimeZoneOps, e, toPlainDateSlots(t))),
withTimeZone: (e, t) => Ti(Bo(e, refineTimeZoneSlot(t))),
withCalendar: (e, t) => Ti(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => Ti(Ao(Hi, createTimeZoneOps, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => Ti(Ao(Hi, createTimeZoneOps, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Eo(Vo(Ki, createTimeZoneOps, 0, e, toZonedDateTimeSlots(t), n))),
since: (e, t, n) => _i(Eo(Vo(Ki, createTimeZoneOps, 1, e, toZonedDateTimeSlots(t), n))),
round: (e, t) => Ti(Jo(createTimeZoneOps, e, t)),
startOfDay: e => Ti(Lo(createTimeZoneOps, e)),
equals: (e, t) => ko(e, toZonedDateTimeSlots(t)),
toString: (e, t) => qo(createTimeZoneOffsetOps, e, t),
toJSON: e => qo(createTimeZoneOffsetOps, e),
toLocaleString(e, t, n = {}) {
const [o, r] = Ga(t, n, e);
return o.format(r);
},
toInstant: e => hi(xo(e)),
toPlainDate: e => wi(Ro(createTimeZoneOffsetOps, e)),
toPlainTime: e => bi(Wo(createTimeZoneOffsetOps, e)),
toPlainDateTime: e => Ii(Go(createTimeZoneOffsetOps, e)),
toPlainYearMonth(e) {
return mi(Uo(xi, e, this));
},
toPlainMonthDay(e) {
return li(zo(Wi, e, this));
},
getISOFields: e => Ho(createTimeZoneOffsetOps, e),
getCalendar: createCalendarFromSlots,
getTimeZone: ({timeZone: e}) => "string" == typeof e ? new Di(e) : e,
valueOf: neverValueOf
}, {
from: (e, t) => Ti(toZonedDateTimeSlots(e, t)),
compare: (e, t) => _o(toZonedDateTimeSlots(e), toZonedDateTimeSlots(t))
}), [pi, hi, Pi] = createSlotClass(gn, sr, ai, {
add: (e, t) => hi(er(0, e, toDurationSlots(t))),
subtract: (e, t) => hi(er(1, e, toDurationSlots(t))),
until: (e, t, n) => _i(tr(0, e, toInstantSlots(t), n)),
since: (e, t, n) => _i(tr(1, e, toInstantSlots(t), n)),
round: (e, t) => hi(nr(e, t)),
equals: (e, t) => or(e, toInstantSlots(t)),
toString: (e, t) => rr(refineTimeZoneSlot, createTimeZoneOffsetOps, e, t),
toJSON: e => rr(refineTimeZoneSlot, createTimeZoneOffsetOps, e),
toLocaleString(e, t, n) {
const [o, r] = Wa(t, n, e);
return o.format(r);
},
toZonedDateTimeISO: (e, t) => Ti(ar(e, refineTimeZoneSlot(t))),
toZonedDateTime(e, t) {
const n = ir(t);
return Ti(ar(e, refineTimeZoneSlot(n.timeZone), refineCalendarSlot(n.calendar)));
},
valueOf: neverValueOf
}, {
from: e => hi(toInstantSlots(e)),
fromEpochSeconds: e => hi(ur(e)),
fromEpochMilliseconds: e => hi(dr(e)),
fromEpochMicroseconds: e => hi(fr(e)),
fromEpochNanoseconds: e => hi(mr(e)),
compare: (e, t) => Sr(toInstantSlots(e), toInstantSlots(t))
}), [Di, Ci] = createSlotClass("TimeZone", (e => {
const t = Pr(e);
return {
branding: "TimeZone",
id: t,
K: wn(t)
};
}), {
id: e => e.id
}, {
toString: e => e.id,
toJSON: e => e.id,
getPossibleInstantsFor: ({K: e}, t) => e.getPossibleInstantsFor(toPlainDateTimeSlots(t)).map((e => hi(Oo(e)))),
getOffsetNanosecondsFor: ({K: e}, t) => e.getOffsetNanosecondsFor(toInstantSlots(t).epochNanoseconds),
getOffsetStringFor(e, t) {
const n = toInstantSlots(t).epochNanoseconds, o = createAdapterOps(this, di).getOffsetNanosecondsFor(n);
return jo(o);
},
getPlainDateTimeFor(e, t, n = ae) {
const o = toInstantSlots(t).epochNanoseconds, r = createAdapterOps(this, di).getOffsetNanosecondsFor(o);
return Ii(To(Or(o, r), refineCalendarSlot(n)));
},
getInstantFor(e, t, n) {
const o = toPlainDateTimeSlots(t), r = Tr(n), a = createAdapterOps(this);
return hi(Oo(pr(a, o, r)));
},
getNextTransition: ({K: e}, t) => getImplTransition(1, e, t),
getPreviousTransition: ({K: e}, t) => getImplTransition(-1, e, t),
equals(e, t) {
return !!hr(this, refineTimeZoneSlot(t));
}
}, {
from(e) {
const t = refineTimeZoneSlot(e);
return "string" == typeof t ? new Di(t) : t;
}
}), gi = /*@__PURE__*/ createProtocolValidator(Object.keys(ui)), [Zi, bi] = createSlotClass(Dn, jr, ri, {
with(e, t, n) {
return bi(Cr(this, rejectInvalidBag(t), n));
},
add: (e, t) => bi(gr(0, e, toDurationSlots(t))),
subtract: (e, t) => bi(gr(1, e, toDurationSlots(t))),
until: (e, t, n) => _i(Zr(0, e, toPlainTimeSlots(t), n)),
since: (e, t, n) => _i(Zr(1, e, toPlainTimeSlots(t), n)),
round: (e, t) => bi(br(e, t)),
equals: (e, t) => Fr(e, toPlainTimeSlots(t)),
toString: Ir,
toJSON: e => Ir(e),
toLocaleString(e, t, n) {
const [o, r] = Ra(t, n, e);
return o.format(r);
},
toZonedDateTime: (e, t) => Ti(vr(refineTimeZoneSlot, toPlainDateSlots, createTimeZoneOps, e, t)),
toPlainDateTime: (e, t) => Ii(wr(e, toPlainDateSlots(t))),
getISOFields: ii,
valueOf: neverValueOf
}, {
from: (e, t) => bi(toPlainTimeSlots(e, t)),
compare: (e, t) => Br(toPlainTimeSlots(e), toPlainTimeSlots(t))
}), [Fi, Ii] = createSlotClass(Tn, no(Gr, refineCalendarSlot), {
...ti,
...$a,
...ri
}, {
with(e, t, n) {
return Ii(Yr(Ui, e, this, rejectInvalidBag(t), n));
},
withPlainTime: (e, t) => Ii(Ar(e, optionalToPlainTimeFields(t))),
withPlainDate: (e, t) => Ii(Er(e, toPlainDateSlots(t))),
withCalendar: (e, t) => Ii(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => Ii(Vr(Hi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => Ii(Vr(Hi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Jr(Ki, 0, e, toPlainDateTimeSlots(t), n)),
since: (e, t, n) => _i(Jr(Ki, 1, e, toPlainDateTimeSlots(t), n)),
round: (e, t) => Ii(Lr(e, t)),
equals: (e, t) => kr(e, toPlainDateTimeSlots(t)),
toString: (e, t) => qr(e, t),
toJSON: e => qr(e),
toLocaleString(e, t, n) {
const [o, r] = xa(t, n, e);
return o.format(r);
},
toZonedDateTime: (e, t, n) => Ti(xr(createTimeZoneOps, e, refineTimeZoneSlot(t), n)),
toPlainDate: e => wi(Xt(e)),
toPlainYearMonth(e) {
return mi(Rr(xi, e, this));
},
toPlainMonthDay(e) {
return li(Wr(Wi, e, this));
},
toPlainTime: e => bi(Mr(e)),
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => Ii(toPlainDateTimeSlots(e, t)),
compare: (e, t) => Hr(toPlainDateTimeSlots(e), toPlainDateTimeSlots(t))
}), [vi, wi, ji] = createSlotClass(hn, no(ra, refineCalendarSlot), {
...ti,
...$a
}, {
with(e, t, n) {
return wi(Kr(Ui, e, this, rejectInvalidBag(t), n));
},
withCalendar: (e, t) => wi(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => wi(Qr(Hi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => wi(Qr(Hi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Xr(Ki, 0, e, toPlainDateSlots(t), n)),
since: (e, t, n) => _i(Xr(Ki, 1, e, toPlainDateSlots(t), n)),
equals: (e, t) => $r(e, toPlainDateSlots(t)),
toString: _r,
toJSON: e => _r(e),
toLocaleString(e, t, n) {
const [o, r] = qa(t, n, e);
return o.format(r);
},
toZonedDateTime(e, t) {
const n = !uo(t) || t instanceof Di ? {
timeZone: t
} : t;
return Ti(ea(refineTimeZoneSlot, toPlainTimeSlots, createTimeZoneOps, e, n));
},
toPlainDateTime: (e, t) => Ii(ta(e, optionalToPlainTimeFields(t))),
toPlainYearMonth(e) {
return mi(na(xi, e, this));
},
toPlainMonthDay(e) {
return li(oa(Wi, e, this));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => wi(toPlainDateSlots(e, t)),
compare: (e, t) => vo(toPlainDateSlots(e), toPlainDateSlots(t))
}), Mi = {
fields(e, t, n) {
return [ ...t.call(e, n) ];
}
}, yi = /*@__PURE__*/ Object.assign({
dateFromFields(e, t, n, o) {
return ji(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Ni = /*@__PURE__*/ Object.assign({
yearMonthFromFields(e, t, n, o) {
return Si(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Bi = /*@__PURE__*/ Object.assign({
monthDayFromFields(e, t, n, o) {
return ci(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Yi = {
mergeFields(e, t, n, o) {
return ir(t.call(e, Object.assign(Object.create(null), n), Object.assign(Object.create(null), o)));
}
}, Ai = /*@__PURE__*/ Object.assign({}, yi, Yi), Ei = /*@__PURE__*/ Object.assign({}, Ni, Yi), Vi = /*@__PURE__*/ Object.assign({}, Bi, Yi), Ji = {
dateAdd(e, t, n, o, r) {
return ji(t.call(e, wi(Xt(n, e)), _i(Eo(o)), r));
}
}, Li = /*@__PURE__*/ Object.assign({}, Ji, {
dateUntil(e, t, n, o, r, a) {
return es(t.call(e, wi(Xt(n, e)), wi(Xt(o, e)), Object.assign(Object.create(null), a, {
largestUnit: k[r]
})));
}
}), ki = /*@__PURE__*/ Object.assign({}, Ji, {
day: dayAdapter
}), qi = /*@__PURE__*/ Object.assign({}, Li, {
day: dayAdapter
}), xi = /*@__PURE__*/ createCompoundOpsCreator(Ni), Ri = /*@__PURE__*/ createCompoundOpsCreator(yi), Wi = /*@__PURE__*/ createCompoundOpsCreator(Bi), Gi = /*@__PURE__*/ createCompoundOpsCreator(Ei), Ui = /*@__PURE__*/ createCompoundOpsCreator(Ai), zi = /*@__PURE__*/ createCompoundOpsCreator(Vi), Hi = /*@__PURE__*/ createCompoundOpsCreator(Ji), Ki = /*@__PURE__*/ createCompoundOpsCreator(Li), Qi = /*@__PURE__*/ createCompoundOpsCreator(ki), Xi = /*@__PURE__*/ createCompoundOpsCreator(qi), [$i, _i, es] = createSlotClass(yn, la, {
...oi,
blank: e => sa(e),
sign: e => Sn(e)
}, {
with: (e, t) => _i(ca(e, t)),
add: (e, t, n) => _i(ua(refinePublicRelativeTo, Ki, createTimeZoneOps, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => _i(ua(refinePublicRelativeTo, Ki, createTimeZoneOps, 1, e, toDurationSlots(t), n)),
negated: e => _i(da(e)),
abs: e => _i(fa(e)),
round: (e, t) => _i(ma(refinePublicRelativeTo, Ki, createTimeZoneOps, e, t)),
total: (e, t) => Sa(refinePublicRelativeTo, Ki, createTimeZoneOps, e, t),
toString: Oa,
toLocaleString(e, t, n) {
return Intl.DurationFormat ? new Intl.DurationFormat(t, n).format(this) : Oa(e);
},
toJSON: e => Oa(e),
valueOf: neverValueOf
}, {
from: e => _i(toDurationSlots(e)),
compare: (e, t, n) => Da(refinePublicRelativeTo, Ki, createTimeZoneOps, toDurationSlots(e), toDurationSlots(t), n)
}), ts = {
toString: e => e.id,
toJSON: e => e.id,
...Xa,
dateAdd: ({id: e, K: t}, n, o, r) => wi(Xt(t.dateAdd(toPlainDateSlots(n), toDurationSlots(o), r), e)),
dateUntil: ({K: e}, t, n, o) => _i(Eo(e.dateUntil(toPlainDateSlots(t), toPlainDateSlots(n), Ca(o)))),
dateFromFields: ({id: e, K: t}, n, o) => wi(aa(t, n, o, va(e))),
yearMonthFromFields: ({id: e, K: t}, n, o) => mi(Fo(t, n, o, ja(e))),
monthDayFromFields: ({id: e, K: t}, n, o) => li(mo(t, 0, n, o, wa(e))),
fields({K: e}, t) {
const n = new Set(te), o = [];
for (const e of t) {
if (Le(e), !n.has(e)) {
throw new RangeError(ga(e));
}
n.delete(e), o.push(e);
}
return e.fields(o);
},
mergeFields: ({K: e}, t, n) => e.mergeFields(Za(ba(t)), Za(ba(n)))
}, [ns] = createSlotClass("Calendar", (e => {
const t = Fa(Le(e));
return {
branding: "Calendar",
id: t,
K: nt(t)
};
}), {
id: e => e.id
}, ts, {
from(e) {
const t = refineCalendarSlot(e);
return "string" == typeof t ? new ns(t) : t;
}
}), os = /*@__PURE__*/ createProtocolValidator(Object.keys(ts).slice(4)), rs = /*@__PURE__*/ Object.defineProperties({}, {
...Bt("Temporal.Now"),
...xt({
timeZoneId: () => Ma(),
instant: () => hi(Oo(ya())),
zonedDateTime: (e, t = Ma()) => Ti(Na(ya(), refineTimeZoneSlot(t), refineCalendarSlot(e))),
zonedDateTimeISO: (e = Ma()) => Ti(Na(ya(), refineTimeZoneSlot(e), ae)),
plainDateTime: (e, t = Ma()) => Ii(To(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(t))), refineCalendarSlot(e))),
plainDateTimeISO: (e = Ma()) => Ii(To(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e))), ae)),
plainDate: (e, t = Ma()) => wi(Xt(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(t))), refineCalendarSlot(e))),
plainDateISO: (e = Ma()) => wi(Xt(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e))), ae)),
plainTimeISO: (e = Ma()) => bi(Mr(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e)))))
})
}), jt = /*@__PURE__*/ Object.defineProperties({}, {
...Bt("Temporal"),
...xt({
PlainYearMonth: fi,
PlainMonthDay: si,
PlainDate: vi,
PlainTime: Zi,
PlainDateTime: Fi,
ZonedDateTime: Oi,
Instant: pi,
Calendar: ns,
TimeZone: Di,
Duration: $i,
Now: rs
})
});
export { kt as DateTimeFormat, jt as Temporal, qt as toTemporalInstant };
export { tm as Intl };

@@ -1,1 +0,3 @@

export { DateTimeFormat, Temporal, toTemporalInstant } from "./impl.esm.js";
export { Temporal, toTemporalInstant } from "./chunks/i5MHFTYG.esm.js";
export { Intl } from "./impl.esm.js";
{
"name": "temporal-polyfill",
"version": "0.2.1",
"version": "0.2.2",
"title": "Temporal Polyfill",

@@ -5,0 +5,0 @@ "description": "A lightweight polyfill for Temporal, successor to the JavaScript Date object",

@@ -44,3 +44,3 @@

```html
<script src='https://cdn.jsdelivr.net/npm/temporal-polyfill@0.2.1/global.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/temporal-polyfill@0.2.2/global.min.js'></script>
<script>

@@ -47,0 +47,0 @@ console.log(Temporal.Now.zonedDateTimeISO().toString())

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc