@influence-society-web/yuna-frontend 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ "use strict";(()=>{var ts=Object.create;var pi=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var rs=Object.getPrototypeOf,os=Object.prototype.hasOwnProperty;var is=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var as=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ns(t))!os.call(e,o)&&o!==n&&pi(e,o,{get:()=>t[o],enumerable:!(r=es(t,o))||r.enumerable});return e};var ss=(e,t,n)=>(n=e!=null?ts(rs(e)):{},as(t||!e||!e.__esModule?pi(n,"default",{value:e,enumerable:!0}):n,e));var _i=is((co,ho)=>{(function(e,t){typeof co=="object"&&typeof ho<"u"?ho.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.JSBI=t())})(co,function(){"use strict";var e=Math.imul,t=Math.clz32;function n(O,L){(L==null||L>O.length)&&(L=O.length);for(var Y=0,G=Array(L);Y<L;Y++)G[Y]=O[Y];return G}function r(O){if(Array.isArray(O))return O}function o(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function i(O,L,Y){return L=y(L),x(O,I()?Reflect.construct(L,Y||[],y(O).constructor):L.apply(O,Y))}function s(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function u(O,L,Y){if(I())return Reflect.construct.apply(null,arguments);var G=[null];G.push.apply(G,L);var m=new(O.bind.apply(O,G));return Y&&z(m,Y.prototype),m}function l(O,L){for(var Y,G=0;G<L.length;G++)Y=L[G],Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(O,X(Y.key),Y)}function h(O,L,Y){return L&&l(O.prototype,L),Y&&l(O,Y),Object.defineProperty(O,"prototype",{writable:!1}),O}function f(O,L){var Y=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!Y){if(Array.isArray(O)||(Y=pt(O))||L&&O&&typeof O.length=="number"){Y&&(O=Y);var G=0,m=function(){};return{s:m,n:function(){return G>=O.length?{done:!0}:{done:!1,value:O[G++]}},e:function(g){throw g},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,a=!0,c=!1;return{s:function(){Y=Y.call(O)},n:function(){var g=Y.next();return a=g.done,g},e:function(g){c=!0,k=g},f:function(){try{a||Y.return==null||Y.return()}finally{if(c)throw k}}}}function y(O){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},y(O)}function v(O,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(L&&L.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),L&&z(O,L)}function b(O){try{return Function.toString.call(O).indexOf("[native code]")!==-1}catch{return typeof O=="function"}}function I(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I=function(){return!!O})()}function R(O,L){var Y=O==null?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(Y!=null){var G,m,k,a,c=[],g=!0,_=!1;try{if(k=(Y=Y.call(O)).next,L===0){if(Object(Y)!==Y)return;g=!1}else for(;!(g=(G=k.call(Y)).done)&&(c.push(G.value),c.length!==L);g=!0);}catch(p){_=!0,m=p}finally{try{if(!g&&Y.return!=null&&(a=Y.return(),Object(a)!==a))return}finally{if(_)throw m}}return c}}function $(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(O,L){if(L&&(typeof L=="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o(O)}function z(O,L){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Y,G){return Y.__proto__=G,Y},z(O,L)}function F(O,L){return r(O)||R(O,L)||pt(O,L)||$()}function H(O,L){if(typeof O!="object"||!O)return O;var Y=O[Symbol.toPrimitive];if(Y!==void 0){var G=Y.call(O,L||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(O)}function X(O){var L=H(O,"string");return typeof L=="symbol"?L:L+""}function et(O){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},et(O)}function pt(O,L){if(O){if(typeof O=="string")return n(O,L);var Y={}.toString.call(O).slice(8,-1);return Y==="Object"&&O.constructor&&(Y=O.constructor.name),Y==="Map"||Y==="Set"?Array.from(O):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?n(O,L):void 0}}function dt(O){var L=typeof Map=="function"?new Map:void 0;return dt=function(Y){function G(){return u(Y,arguments,y(this).constructor)}if(Y===null||!b(Y))return Y;if(typeof Y!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has(Y))return L.get(Y);L.set(Y,G)}return G.prototype=Object.create(Y.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),z(G,Y)},dt(O)}var J=function(O){var L=Math.abs,Y=Math.max,G=Math.floor;function m(k,a){var c;if(s(this,m),c=i(this,m,[k]),c.sign=a,Object.setPrototypeOf(c,m.prototype),k>m.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return c}return v(m,O),h(m,[{key:"toDebugString",value:function(){var a,c=["BigInt["],g=f(this);try{for(g.s();!(a=g.n()).done;){var _=a.value;c.push((_&&(_>>>0).toString(16))+", ")}}catch(p){g.e(p)}finally{g.f()}return c.push("]"),c.join("")}},{key:"toString",value:function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:10;if(2>a||36<a)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":a&a-1?m.__toStringGeneric(this,a,!1):m.__toStringBasePowerOfTwo(this,a)}},{key:"valueOf",value:function(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:"__copy",value:function(){for(var a=new m(this.length,this.sign),c=0;c<this.length;c++)a[c]=this[c];return a}},{key:"__trim",value:function(){for(var a=this.length,c=this[a-1];c===0;)a--,c=this[a-1],this.pop();return a===0&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var a=0;a<this.length;a++)this[a]=0}},{key:"__clzmsd",value:function(){return m.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function(a,c,g){g>this.length&&(g=this.length);for(var _=32767&a,p=a>>>15,w=0,T=c,E=0;E<g;E++){var S=this.__digit(E),C=32767&S,B=S>>>15,U=m.__imul(C,_),P=m.__imul(C,p),j=m.__imul(B,_),Z=m.__imul(B,p),K=T+U+w;w=K>>>30,K&=1073741823,K+=((32767&P)<<15)+((32767&j)<<15),w+=K>>>30,T=Z+(P>>>15)+(j>>>15),this.__setDigit(E,1073741823&K)}if(w!==0||T!==0)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(a,c,g){for(var _,p=0,w=0;w<g;w++)_=this.__halfDigit(c+w)+a.__halfDigit(w)+p,p=_>>>15,this.__setHalfDigit(c+w,32767&_);return p}},{key:"__inplaceSub",value:function(a,c,g){var _=g-1>>>1,p=0;if(1&c){c>>=1;for(var w=this.__digit(c),T=32767&w,E=0;E<_;E++){var S=a.__digit(E),C=(w>>>15)-(32767&S)-p;p=1&C>>>15,this.__setDigit(c+E,(32767&C)<<15|32767&T),w=this.__digit(c+E+1),T=(32767&w)-(S>>>15)-p,p=1&T>>>15}var B=a.__digit(E),U=(w>>>15)-(32767&B)-p;p=1&U>>>15,this.__setDigit(c+E,(32767&U)<<15|32767&T);var P=B>>>15;if(c+E+1>=this.length)throw new RangeError("out of bounds");!(1&g)&&(w=this.__digit(c+E+1),T=(32767&w)-P-p,p=1&T>>>15,this.__setDigit(c+a.length,1073709056&w|32767&T))}else{c>>=1;for(var j=0;j<a.length-1;j++){var Z=this.__digit(c+j),K=a.__digit(j),rt=(32767&Z)-(32767&K)-p;p=1&rt>>>15;var it=(Z>>>15)-(K>>>15)-p;p=1&it>>>15,this.__setDigit(c+j,(32767&it)<<15|32767&rt)}var ht=this.__digit(c+j),wt=a.__digit(j),qt=(32767&ht)-(32767&wt)-p;p=1&qt>>>15;var Ee=0;!(1&g)&&(Ee=(ht>>>15)-(wt>>>15)-p,p=1&Ee>>>15),this.__setDigit(c+j,(32767&Ee)<<15|32767&qt)}return p}},{key:"__inplaceRightShift",value:function(a){if(a!==0){for(var c,g=this.__digit(0)>>>a,_=this.length-1,p=0;p<_;p++)c=this.__digit(p+1),this.__setDigit(p,1073741823&c<<30-a|g),g=c>>>a;this.__setDigit(_,g)}}},{key:"__digit",value:function(a){return this[a]}},{key:"__unsignedDigit",value:function(a){return this[a]>>>0}},{key:"__setDigit",value:function(a,c){this[a]=0|c}},{key:"__setDigitGrow",value:function(a,c){this[a]=0|c}},{key:"__halfDigitLength",value:function(){var a=this.length;return 32767>=this.__unsignedDigit(a-1)?2*a-1:2*a}},{key:"__halfDigit",value:function(a){return 32767&this[a>>>1]>>>15*(1&a)}},{key:"__setHalfDigit",value:function(a,c){var g=a>>>1,_=this.__digit(g),p=1&a?32767&_|c<<15:1073709056&_|32767&c;this.__setDigit(g,p)}}],[{key:"BigInt",value:function(a){var c=Number.isFinite;if(typeof a=="number"){if(a===0)return m.__zero();if(m.__isOneDigitInt(a))return 0>a?m.__oneDigit(-a,!0):m.__oneDigit(a,!1);if(!c(a)||G(a)!==a)throw new RangeError("The number "+a+" cannot be converted to BigInt because it is not an integer");return m.__fromDouble(a)}if(typeof a=="string"){var g=m.__fromString(a);if(g===null)throw new SyntaxError("Cannot convert "+a+" to a BigInt");return g}if(typeof a=="boolean")return a===!0?m.__oneDigit(1,!1):m.__zero();if(et(a)==="object"){if(a.constructor===m)return a;var _=m.__toPrimitive(a);return m.BigInt(_)}throw new TypeError("Cannot convert "+a+" to a BigInt")}},{key:"toNumber",value:function(a){var c=a.length;if(c===0)return 0;if(c===1){var g=a.__unsignedDigit(0);return a.sign?-g:g}var _=a.__digit(c-1),p=m.__clz30(_),w=30*c-p;if(1024<w)return a.sign?-1/0:1/0;var T=w-1,E=_,S=c-1,C=p+3,B=C===32?0:E<<C;B>>>=12;var U=C-12,P=12<=C?0:E<<20+C,j=20+C;for(0<U&&0<S&&(S--,E=a.__digit(S),B|=E>>>30-U,P=E<<U+2,j=U+2);0<j&&0<S;)S--,E=a.__digit(S),P|=30<=j?E<<j-30:E>>>30-j,j-=30;var Z=m.__decideRounding(a,j,S,E);if((Z===1||Z===0&&(1&P)==1)&&(P=P+1>>>0,P===0&&(B++,B>>>20!=0&&(B=0,T++,1023<T))))return a.sign?-1/0:1/0;var K=a.sign?-2147483648:0;return T=T+1023<<20,m.__kBitConversionInts[m.__kBitConversionIntHigh]=K|T|B,m.__kBitConversionInts[m.__kBitConversionIntLow]=P,m.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(a){if(a.length===0)return a;var c=a.__copy();return c.sign=!a.sign,c}},{key:"bitwiseNot",value:function(a){return a.sign?m.__absoluteSubOne(a).__trim():m.__absoluteAddOne(a,!0)}},{key:"exponentiate",value:function(a,c){if(c.sign)throw new RangeError("Exponent must be positive");if(c.length===0)return m.__oneDigit(1,!1);if(a.length===0)return a;if(a.length===1&&a.__digit(0)===1)return a.sign&&!(1&c.__digit(0))?m.unaryMinus(a):a;if(1<c.length)throw new RangeError("BigInt too big");var g=c.__unsignedDigit(0);if(g===1)return a;if(g>=m.__kMaxLengthBits)throw new RangeError("BigInt too big");if(a.length===1&&a.__digit(0)===2){var _=1+(0|g/30),p=a.sign&&(1&g)!=0,w=new m(_,p);w.__initializeDigits();var T=1<<g%30;return w.__setDigit(_-1,T),w}var E=null,S=a;for(1&g&&(E=a),g>>=1;g!==0;g>>=1)S=m.multiply(S,S),1&g&&(E===null?E=S:E=m.multiply(E,S));return E}},{key:"multiply",value:function(a,c){if(a.length===0)return a;if(c.length===0)return c;var g=a.length+c.length;30<=a.__clzmsd()+c.__clzmsd()&&g--;var _=new m(g,a.sign!==c.sign);_.__initializeDigits();for(var p=0;p<a.length;p++)m.__multiplyAccumulate(c,a.__digit(p),_,p);return _.__trim()}},{key:"divide",value:function(a,c){if(c.length===0)throw new RangeError("Division by zero");if(0>m.__absoluteCompare(a,c))return m.__zero();var g,_=a.sign!==c.sign,p=c.__unsignedDigit(0);if(c.length===1&&32767>=p){if(p===1)return _===a.sign?a:m.unaryMinus(a);g=m.__absoluteDivSmall(a,p,null)}else g=m.__absoluteDivLarge(a,c,!0,!1);return g.sign=_,g.__trim()}},{key:"remainder",value:function(a,c){if(c.length===0)throw new RangeError("Division by zero");if(0>m.__absoluteCompare(a,c))return a;var g=c.__unsignedDigit(0);if(c.length===1&&32767>=g){if(g===1)return m.__zero();var _=m.__absoluteModSmall(a,g);return _===0?m.__zero():m.__oneDigit(_,a.sign)}var p=m.__absoluteDivLarge(a,c,!1,!0);return p.sign=a.sign,p.__trim()}},{key:"add",value:function(a,c){var g=a.sign;return g===c.sign?m.__absoluteAdd(a,c,g):0<=m.__absoluteCompare(a,c)?m.__absoluteSub(a,c,g):m.__absoluteSub(c,a,!g)}},{key:"subtract",value:function(a,c){var g=a.sign;return g===c.sign?0<=m.__absoluteCompare(a,c)?m.__absoluteSub(a,c,g):m.__absoluteSub(c,a,!g):m.__absoluteAdd(a,c,g)}},{key:"leftShift",value:function(a,c){return c.length===0||a.length===0?a:c.sign?m.__rightShiftByAbsolute(a,c):m.__leftShiftByAbsolute(a,c)}},{key:"signedRightShift",value:function(a,c){return c.length===0||a.length===0?a:c.sign?m.__leftShiftByAbsolute(a,c):m.__rightShiftByAbsolute(a,c)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(a,c){return 0>m.__compareToBigInt(a,c)}},{key:"lessThanOrEqual",value:function(a,c){return 0>=m.__compareToBigInt(a,c)}},{key:"greaterThan",value:function(a,c){return 0<m.__compareToBigInt(a,c)}},{key:"greaterThanOrEqual",value:function(a,c){return 0<=m.__compareToBigInt(a,c)}},{key:"equal",value:function(a,c){if(a.sign!==c.sign||a.length!==c.length)return!1;for(var g=0;g<a.length;g++)if(a.__digit(g)!==c.__digit(g))return!1;return!0}},{key:"notEqual",value:function(a,c){return!m.equal(a,c)}},{key:"bitwiseAnd",value:function(a,c){if(!a.sign&&!c.sign)return m.__absoluteAnd(a,c).__trim();if(a.sign&&c.sign){var g=Y(a.length,c.length)+1,_=m.__absoluteSubOne(a,g),p=m.__absoluteSubOne(c);return _=m.__absoluteOr(_,p,_),m.__absoluteAddOne(_,!0,_).__trim()}if(a.sign){var w=[c,a];a=w[0],c=w[1]}return m.__absoluteAndNot(a,m.__absoluteSubOne(c)).__trim()}},{key:"bitwiseXor",value:function(a,c){if(!a.sign&&!c.sign)return m.__absoluteXor(a,c).__trim();if(a.sign&&c.sign){var g=Y(a.length,c.length),_=m.__absoluteSubOne(a,g),p=m.__absoluteSubOne(c);return m.__absoluteXor(_,p,_).__trim()}var w=Y(a.length,c.length)+1;if(a.sign){var T=[c,a];a=T[0],c=T[1]}var E=m.__absoluteSubOne(c,w);return E=m.__absoluteXor(E,a,E),m.__absoluteAddOne(E,!0,E).__trim()}},{key:"bitwiseOr",value:function(a,c){var g=Y(a.length,c.length);if(!a.sign&&!c.sign)return m.__absoluteOr(a,c).__trim();if(a.sign&&c.sign){var _=m.__absoluteSubOne(a,g),p=m.__absoluteSubOne(c);return _=m.__absoluteAnd(_,p,_),m.__absoluteAddOne(_,!0,_).__trim()}if(a.sign){var w=[c,a];a=w[0],c=w[1]}var T=m.__absoluteSubOne(c,g);return T=m.__absoluteAndNot(T,a,T),m.__absoluteAddOne(T,!0,T).__trim()}},{key:"asIntN",value:function(a,c){if(c.length===0)return c;if(a=G(a),0>a)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(a===0)return m.__zero();if(a>=m.__kMaxLengthBits)return c;var g=0|(a+29)/30;if(c.length<g)return c;var _=c.__unsignedDigit(g-1),p=1<<(a-1)%30;if(c.length===g&&_<p)return c;var w=(_&p)===p;if(!w)return m.__truncateToNBits(a,c);if(!c.sign)return m.__truncateAndSubFromPowerOfTwo(a,c,!0);if(!(_&p-1)){for(var T=g-2;0<=T;T--)if(c.__digit(T)!==0)return m.__truncateAndSubFromPowerOfTwo(a,c,!1);return c.length===g&&_===p?c:m.__truncateToNBits(a,c)}return m.__truncateAndSubFromPowerOfTwo(a,c,!1)}},{key:"asUintN",value:function(a,c){if(c.length===0)return c;if(a=G(a),0>a)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(a===0)return m.__zero();if(c.sign){if(a>m.__kMaxLengthBits)throw new RangeError("BigInt too big");return m.__truncateAndSubFromPowerOfTwo(a,c,!1)}if(a>=m.__kMaxLengthBits)return c;var g=0|(a+29)/30;if(c.length<g)return c;var _=a%30;if(c.length==g){if(_===0)return c;var p=c.__digit(g-1);if(!(p>>>_))return c}return m.__truncateToNBits(a,c)}},{key:"ADD",value:function(a,c){if(a=m.__toPrimitive(a),c=m.__toPrimitive(c),typeof a=="string")return typeof c!="string"&&(c=c.toString()),a+c;if(typeof c=="string")return a.toString()+c;if(a=m.__toNumeric(a),c=m.__toNumeric(c),m.__isBigInt(a)&&m.__isBigInt(c))return m.add(a,c);if(typeof a=="number"&&typeof c=="number")return a+c;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(a,c){return m.__compare(a,c,0)}},{key:"LE",value:function(a,c){return m.__compare(a,c,1)}},{key:"GT",value:function(a,c){return m.__compare(a,c,2)}},{key:"GE",value:function(a,c){return m.__compare(a,c,3)}},{key:"EQ",value:function(a,c){for(;;){if(m.__isBigInt(a))return m.__isBigInt(c)?m.equal(a,c):m.EQ(c,a);if(typeof a=="number"){if(m.__isBigInt(c))return m.__equalToNumber(c,a);if(et(c)!=="object")return a==c;c=m.__toPrimitive(c)}else if(typeof a=="string"){if(m.__isBigInt(c))return a=m.__fromString(a),a!==null&&m.equal(a,c);if(et(c)!=="object")return a==c;c=m.__toPrimitive(c)}else if(typeof a=="boolean"){if(m.__isBigInt(c))return m.__equalToNumber(c,+a);if(et(c)!=="object")return a==c;c=m.__toPrimitive(c)}else if(et(a)==="symbol"){if(m.__isBigInt(c))return!1;if(et(c)!=="object")return a==c;c=m.__toPrimitive(c)}else if(et(a)==="object"){if(et(c)==="object"&&c.constructor!==m)return a==c;a=m.__toPrimitive(a)}else return a==c}}},{key:"NE",value:function(a,c){return!m.EQ(a,c)}},{key:"DataViewGetBigInt64",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return m.asIntN(64,m.DataViewGetBigUint64(a,c,g))}},{key:"DataViewGetBigUint64",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0&&arguments[2],_=g?[4,0]:[0,4],p=F(_,2),w=p[0],T=p[1],E=a.getUint32(c+w,g),S=a.getUint32(c+T,g),C=new m(3,!1);return C.__setDigit(0,1073741823&S),C.__setDigit(1,(268435455&E)<<2|S>>>30),C.__setDigit(2,E>>>28),C.__trim()}},{key:"DataViewSetBigInt64",value:function(a,c,g){var _=3<arguments.length&&arguments[3]!==void 0&&arguments[3];m.DataViewSetBigUint64(a,c,g,_)}},{key:"DataViewSetBigUint64",value:function(a,c,g){var _=3<arguments.length&&arguments[3]!==void 0&&arguments[3];g=m.asUintN(64,g);var p=0,w=0;if(0<g.length&&(w=g.__digit(0),1<g.length)){var T=g.__digit(1);w|=T<<30,p=T>>>2,2<g.length&&(p|=g.__digit(2)<<28)}var E=_?[4,0]:[0,4],S=F(E,2),C=S[0],B=S[1];a.setUint32(c+C,p,_),a.setUint32(c+B,w,_)}},{key:"__zero",value:function(){return new m(0,!1)}},{key:"__oneDigit",value:function(a,c){var g=new m(1,c);return g.__setDigit(0,a),g}},{key:"__decideRounding",value:function(a,c,g,_){if(0<c)return-1;var p;if(0>c)p=-c-1;else{if(g===0)return-1;g--,_=a.__digit(g),p=29}var w=1<<p;if(!(_&w))return-1;if(w-=1,(_&w)!=0)return 1;for(;0<g;)if(g--,a.__digit(g)!==0)return 1;return 0}},{key:"__fromDouble",value:function(a){var c=0>a;m.__kBitConversionDouble[0]=a;var g,_=2047&m.__kBitConversionInts[m.__kBitConversionIntHigh]>>>20,p=_-1023,w=(0|p/30)+1,T=new m(w,c),E=1048576,S=1048575&m.__kBitConversionInts[m.__kBitConversionIntHigh]|E,C=m.__kBitConversionInts[m.__kBitConversionIntLow],B=20,U=p%30,P=0;if(U<B){var j=B-U;P=j+32,g=S>>>j,S=S<<32-j|C>>>j,C<<=32-j}else if(U===B)P=32,g=S,S=C,C=0;else{var Z=U-B;P=32-Z,g=S<<Z|C>>>32-Z,S=C<<Z,C=0}T.__setDigit(w-1,g);for(var K=w-2;0<=K;K--)0<P?(P-=30,g=S>>>2,S=S<<30|C>>>2,C<<=30):g=0,T.__setDigit(K,g);return T.__trim()}},{key:"__isWhitespace",value:function(a){return 13>=a&&9<=a||(159>=a?a==32:131071>=a?a==160||a==5760:196607>=a?(a&=131071,10>=a||a==40||a==41||a==47||a==95||a==4096):a==65279)}},{key:"__fromString",value:function(a){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,g=0,_=a.length,p=0;if(p===_)return m.__zero();for(var w=a.charCodeAt(p);m.__isWhitespace(w);){if(++p===_)return m.__zero();w=a.charCodeAt(p)}if(w===43){if(++p===_)return null;w=a.charCodeAt(p),g=1}else if(w===45){if(++p===_)return null;w=a.charCodeAt(p),g=-1}if(c===0){if(c=10,w===48){if(++p===_)return m.__zero();if(w=a.charCodeAt(p),w===88||w===120){if(c=16,++p===_)return null;w=a.charCodeAt(p)}else if(w===79||w===111){if(c=8,++p===_)return null;w=a.charCodeAt(p)}else if(w===66||w===98){if(c=2,++p===_)return null;w=a.charCodeAt(p)}}}else if(c===16&&w===48){if(++p===_)return m.__zero();if(w=a.charCodeAt(p),w===88||w===120){if(++p===_)return null;w=a.charCodeAt(p)}}if(g!==0&&c!==10)return null;for(;w===48;){if(++p===_)return m.__zero();w=a.charCodeAt(p)}var T=_-p,E=m.__kMaxBitsPerChar[c],S=m.__kBitsPerCharTableMultiplier-1;if(T>1073741824/E)return null;var C=E*T+S>>>m.__kBitsPerCharTableShift,B=0|(C+29)/30,U=new m(B,!1),P=10>c?c:10,j=10<c?c-10:0;if(c&c-1){U.__initializeDigits();var qt=!1,Ee=0;do{for(var Cr,so=0,uo=1;;){if(Cr=void 0,w-48>>>0<P)Cr=w-48;else if((32|w)-97>>>0<j)Cr=(32|w)-87;else{qt=!0;break}var yi=uo*c;if(1073741823<yi)break;if(uo=yi,so=so*c+Cr,Ee++,++p===_){qt=!0;break}w=a.charCodeAt(p)}S=30*m.__kBitsPerCharTableMultiplier-1;var Qa=0|(E*Ee+S>>>m.__kBitsPerCharTableShift)/30;U.__inplaceMultiplyAdd(uo,so,Qa)}while(!qt)}else{E>>=m.__kBitsPerCharTableShift;var Z=[],K=[],rt=!1;do{for(var it,ht=0,wt=0;;){if(it=void 0,w-48>>>0<P)it=w-48;else if((32|w)-97>>>0<j)it=(32|w)-87;else{rt=!0;break}if(wt+=E,ht=ht<<E|it,++p===_){rt=!0;break}if(w=a.charCodeAt(p),30<wt+E)break}Z.push(ht),K.push(wt)}while(!rt);m.__fillFromParts(U,Z,K)}if(p!==_){if(!m.__isWhitespace(w))return null;for(p++;p<_;p++)if(w=a.charCodeAt(p),!m.__isWhitespace(w))return null}return U.sign=g===-1,U.__trim()}},{key:"__fillFromParts",value:function(a,c,g){for(var _=0,p=0,w=0,T=c.length-1;0<=T;T--){var E=c[T],S=g[T];p|=E<<w,w+=S,w===30?(a.__setDigit(_++,p),w=0,p=0):30<w&&(a.__setDigit(_++,1073741823&p),w-=30,p=E>>>S-w)}if(p!==0){if(_>=a.length)throw new Error("implementation bug");a.__setDigit(_++,p)}for(;_<a.length;_++)a.__setDigit(_,0)}},{key:"__toStringBasePowerOfTwo",value:function(a,c){var g=a.length,_=c-1;_=(85&_>>>1)+(85&_),_=(51&_>>>2)+(51&_),_=(15&_>>>4)+(15&_);var p=_,w=c-1,T=a.__digit(g-1),E=m.__clz30(T),S=30*g-E,C=0|(S+p-1)/p;if(a.sign&&C++,268435456<C)throw new Error("string too long");for(var B=Array(C),U=C-1,P=0,j=0,Z=0;Z<g-1;Z++){var K=a.__digit(Z),rt=(P|K<<j)&w;B[U--]=m.__kConversionChars[rt];var it=p-j;for(P=K>>>it,j=30-it;j>=p;)B[U--]=m.__kConversionChars[P&w],P>>>=p,j-=p}var ht=(P|T<<j)&w;for(B[U--]=m.__kConversionChars[ht],P=T>>>p-j;P!==0;)B[U--]=m.__kConversionChars[P&w],P>>>=p;if(a.sign&&(B[U--]="-"),U!==-1)throw new Error("implementation bug");return B.join("")}},{key:"__toStringGeneric",value:function(a,c,g){var _=a.length;if(_===0)return"";if(_===1){var p=a.__unsignedDigit(0).toString(c);return g===!1&&a.sign&&(p="-"+p),p}var w=30*_-m.__clz30(a.__digit(_-1)),T=m.__kMaxBitsPerChar[c],E=T-1,S=w*m.__kBitsPerCharTableMultiplier;S+=E-1,S=0|S/E;var C,B,U=S+1>>1,P=m.exponentiate(m.__oneDigit(c,!1),m.__oneDigit(U,!1)),j=P.__unsignedDigit(0);if(P.length===1&&32767>=j){C=new m(a.length,!1),C.__initializeDigits();for(var Z,K=0,rt=2*a.length-1;0<=rt;rt--)Z=K<<15|a.__halfDigit(rt),C.__setHalfDigit(rt,0|Z/j),K=0|Z%j;B=K.toString(c)}else{var it=m.__absoluteDivLarge(a,P,!0,!0);C=it.quotient;var ht=it.remainder.__trim();B=m.__toStringGeneric(ht,c,!0)}C.__trim();for(var wt=m.__toStringGeneric(C,c,!0);B.length<U;)B="0"+B;return g===!1&&a.sign&&(wt="-"+wt),wt+B}},{key:"__unequalSign",value:function(a){return a?-1:1}},{key:"__absoluteGreater",value:function(a){return a?-1:1}},{key:"__absoluteLess",value:function(a){return a?1:-1}},{key:"__compareToBigInt",value:function(a,c){var g=a.sign;if(g!==c.sign)return m.__unequalSign(g);var _=m.__absoluteCompare(a,c);return 0<_?m.__absoluteGreater(g):0>_?m.__absoluteLess(g):0}},{key:"__compareToNumber",value:function(a,c){if(m.__isOneDigitInt(c)){var g=a.sign,_=0>c;if(g!==_)return m.__unequalSign(g);if(a.length===0){if(_)throw new Error("implementation bug");return c===0?0:-1}if(1<a.length)return m.__absoluteGreater(g);var p=L(c),w=a.__unsignedDigit(0);return w>p?m.__absoluteGreater(g):w<p?m.__absoluteLess(g):0}return m.__compareToDouble(a,c)}},{key:"__compareToDouble",value:function(a,c){if(c!==c)return c;if(c===1/0)return-1;if(c===-1/0)return 1;var g=a.sign,_=0>c;if(g!==_)return m.__unequalSign(g);if(c===0)throw new Error("implementation bug: should be handled elsewhere");if(a.length===0)return-1;m.__kBitConversionDouble[0]=c;var p=2047&m.__kBitConversionInts[m.__kBitConversionIntHigh]>>>20;if(p==2047)throw new Error("implementation bug: handled elsewhere");var w=p-1023;if(0>w)return m.__absoluteGreater(g);var T=a.length,E=a.__digit(T-1),S=m.__clz30(E),C=30*T-S,B=w+1;if(C<B)return m.__absoluteLess(g);if(C>B)return m.__absoluteGreater(g);var U=1048576,P=1048576|1048575&m.__kBitConversionInts[m.__kBitConversionIntHigh],j=m.__kBitConversionInts[m.__kBitConversionIntLow],Z=20,K=29-S;if(K!==(0|(C-1)%30))throw new Error("implementation bug");var rt,it=0;if(K<Z){var ht=Z-K;it=ht+32,rt=P>>>ht,P=P<<32-ht|j>>>ht,j<<=32-ht}else if(K===Z)it=32,rt=P,P=j,j=0;else{var wt=K-Z;it=32-wt,rt=P<<wt|j>>>32-wt,P=j<<wt,j=0}if(E>>>=0,rt>>>=0,E>rt)return m.__absoluteGreater(g);if(E<rt)return m.__absoluteLess(g);for(var qt=T-2;0<=qt;qt--){0<it?(it-=30,rt=P>>>2,P=P<<30|j>>>2,j<<=30):rt=0;var Ee=a.__unsignedDigit(qt);if(Ee>rt)return m.__absoluteGreater(g);if(Ee<rt)return m.__absoluteLess(g)}if(P!==0||j!==0){if(it===0)throw new Error("implementation bug");return m.__absoluteLess(g)}return 0}},{key:"__equalToNumber",value:function(a,c){return m.__isOneDigitInt(c)?c===0?a.length===0:a.length===1&&a.sign===0>c&&a.__unsignedDigit(0)===L(c):m.__compareToDouble(a,c)===0}},{key:"__comparisonResultToBool",value:function(a,c){return c===0?0>a:c===1?0>=a:c===2?0<a:c===3?0<=a:void 0}},{key:"__compare",value:function(a,c,g){if(a=m.__toPrimitive(a),c=m.__toPrimitive(c),typeof a=="string"&&typeof c=="string")switch(g){case 0:return a<c;case 1:return a<=c;case 2:return a>c;case 3:return a>=c}if(m.__isBigInt(a)&&typeof c=="string")return c=m.__fromString(c),c!==null&&m.__comparisonResultToBool(m.__compareToBigInt(a,c),g);if(typeof a=="string"&&m.__isBigInt(c))return a=m.__fromString(a),a!==null&&m.__comparisonResultToBool(m.__compareToBigInt(a,c),g);if(a=m.__toNumeric(a),c=m.__toNumeric(c),m.__isBigInt(a)){if(m.__isBigInt(c))return m.__comparisonResultToBool(m.__compareToBigInt(a,c),g);if(typeof c!="number")throw new Error("implementation bug");return m.__comparisonResultToBool(m.__compareToNumber(a,c),g)}if(typeof a!="number")throw new Error("implementation bug");if(m.__isBigInt(c))return m.__comparisonResultToBool(m.__compareToNumber(c,a),2^g);if(typeof c!="number")throw new Error("implementation bug");return g===0?a<c:g===1?a<=c:g===2?a>c:g===3?a>=c:void 0}},{key:"__absoluteAdd",value:function(a,c,g){if(a.length<c.length)return m.__absoluteAdd(c,a,g);if(a.length===0)return a;if(c.length===0)return a.sign===g?a:m.unaryMinus(a);var _=a.length;(a.__clzmsd()===0||c.length===a.length&&c.__clzmsd()===0)&&_++;for(var p,w=new m(_,g),T=0,E=0;E<c.length;E++)p=a.__digit(E)+c.__digit(E)+T,T=p>>>30,w.__setDigit(E,1073741823&p);for(;E<a.length;E++){var S=a.__digit(E)+T;T=S>>>30,w.__setDigit(E,1073741823&S)}return E<w.length&&w.__setDigit(E,T),w.__trim()}},{key:"__absoluteSub",value:function(a,c,g){if(a.length===0)return a;if(c.length===0)return a.sign===g?a:m.unaryMinus(a);for(var _,p=new m(a.length,g),w=0,T=0;T<c.length;T++)_=a.__digit(T)-c.__digit(T)-w,w=1&_>>>30,p.__setDigit(T,1073741823&_);for(;T<a.length;T++){var E=a.__digit(T)-w;w=1&E>>>30,p.__setDigit(T,1073741823&E)}return p.__trim()}},{key:"__absoluteAddOne",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,_=a.length;g===null?g=new m(_,c):g.sign=c;for(var p,w=1,T=0;T<_;T++)p=a.__digit(T)+w,w=p>>>30,g.__setDigit(T,1073741823&p);return w!==0&&g.__setDigitGrow(_,1),g}},{key:"__absoluteSubOne",value:function(a,c){var g=a.length;c=c||g;for(var _,p=new m(c,!1),w=1,T=0;T<g;T++)_=a.__digit(T)-w,w=1&_>>>30,p.__setDigit(T,1073741823&_);if(w!==0)throw new Error("implementation bug");for(var E=g;E<c;E++)p.__setDigit(E,0);return p}},{key:"__absoluteAnd",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,_=a.length,p=c.length,w=p;if(_<p){w=_;var T=a,E=_;a=c,_=p,c=T,p=E}var S=w;g===null?g=new m(S,!1):S=g.length;for(var C=0;C<w;C++)g.__setDigit(C,a.__digit(C)&c.__digit(C));for(;C<S;C++)g.__setDigit(C,0);return g}},{key:"__absoluteAndNot",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,_=a.length,p=c.length,w=p;_<p&&(w=_);var T=_;g===null?g=new m(T,!1):T=g.length;for(var E=0;E<w;E++)g.__setDigit(E,a.__digit(E)&~c.__digit(E));for(;E<_;E++)g.__setDigit(E,a.__digit(E));for(;E<T;E++)g.__setDigit(E,0);return g}},{key:"__absoluteOr",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,_=a.length,p=c.length,w=p;if(_<p){w=_;var T=a,E=_;a=c,_=p,c=T,p=E}var S=_;g===null?g=new m(S,!1):S=g.length;for(var C=0;C<w;C++)g.__setDigit(C,a.__digit(C)|c.__digit(C));for(;C<_;C++)g.__setDigit(C,a.__digit(C));for(;C<S;C++)g.__setDigit(C,0);return g}},{key:"__absoluteXor",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,_=a.length,p=c.length,w=p;if(_<p){w=_;var T=a,E=_;a=c,_=p,c=T,p=E}var S=_;g===null?g=new m(S,!1):S=g.length;for(var C=0;C<w;C++)g.__setDigit(C,a.__digit(C)^c.__digit(C));for(;C<_;C++)g.__setDigit(C,a.__digit(C));for(;C<S;C++)g.__setDigit(C,0);return g}},{key:"__absoluteCompare",value:function(a,c){var g=a.length-c.length;if(g!=0)return g;for(var _=a.length-1;0<=_&&a.__digit(_)===c.__digit(_);)_--;return 0>_?0:a.__unsignedDigit(_)>c.__unsignedDigit(_)?1:-1}},{key:"__multiplyAccumulate",value:function(a,c,g,_){if(c!==0){for(var p=32767&c,w=c>>>15,T=0,E=0,S=0;S<a.length;S++,_++){var C=g.__digit(_),B=a.__digit(S),U=32767&B,P=B>>>15,j=m.__imul(U,p),Z=m.__imul(U,w),K=m.__imul(P,p),rt=m.__imul(P,w);C+=E+j+T,T=C>>>30,C&=1073741823,C+=((32767&Z)<<15)+((32767&K)<<15),T+=C>>>30,E=rt+(Z>>>15)+(K>>>15),g.__setDigit(_,1073741823&C)}for(;T!==0||E!==0;_++){var it=g.__digit(_);it+=T+E,E=0,T=it>>>30,g.__setDigit(_,1073741823&it)}}}},{key:"__internalMultiplyAdd",value:function(a,c,g,_,p){for(var w=g,T=0,E=0;E<_;E++){var S=a.__digit(E),C=m.__imul(32767&S,c),B=m.__imul(S>>>15,c),U=C+((32767&B)<<15)+T+w;w=U>>>30,T=B>>>15,p.__setDigit(E,1073741823&U)}if(p.length>_)for(p.__setDigit(_++,w+T);_<p.length;)p.__setDigit(_++,0);else if(w+T!==0)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(a,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;g===null&&(g=new m(a.length,!1));for(var _=0,p=2*a.length-1;0<=p;p-=2){var w=(_<<15|a.__halfDigit(p))>>>0,T=0|w/c;_=0|w%c,w=(_<<15|a.__halfDigit(p-1))>>>0;var E=0|w/c;_=0|w%c,g.__setDigit(p>>>1,T<<15|E)}return g}},{key:"__absoluteModSmall",value:function(a,c){for(var g,_=0,p=2*a.length-1;0<=p;p--)g=(_<<15|a.__halfDigit(p))>>>0,_=0|g%c;return _}},{key:"__absoluteDivLarge",value:function(a,c,g,_){var p=c.__halfDigitLength(),w=c.length,T=a.__halfDigitLength()-p,E=null;g&&(E=new m(T+2>>>1,!1),E.__initializeDigits());var S=new m(p+2>>>1,!1);S.__initializeDigits();var C=m.__clz15(c.__halfDigit(p-1));0<C&&(c=m.__specialLeftShift(c,C,0));for(var B=m.__specialLeftShift(a,C,1),U=c.__halfDigit(p-1),P=0,j=T;0<=j;j--){var Z=32767,K=B.__halfDigit(j+p);if(K!==U){var rt=(K<<15|B.__halfDigit(j+p-1))>>>0;Z=0|rt/U;for(var it=0|rt%U,ht=c.__halfDigit(p-2),wt=B.__halfDigit(j+p-2);m.__imul(Z,ht)>>>0>(it<<16|wt)>>>0&&(Z--,it+=U,!(32767<it)););}m.__internalMultiplyAdd(c,Z,0,w,S);var qt=B.__inplaceSub(S,j,p+1);qt!==0&&(qt=B.__inplaceAdd(c,j,p),B.__setHalfDigit(j+p,32767&B.__halfDigit(j+p)+qt),Z--),g&&(1&j?P=Z<<15:E.__setDigit(j>>>1,P|Z))}if(_)return B.__inplaceRightShift(C),g?{quotient:E,remainder:B}:B;if(g)return E;throw new Error("unreachable")}},{key:"__clz15",value:function(a){return m.__clz30(a)-15}},{key:"__specialLeftShift",value:function(a,c,g){var _=a.length,p=_+g,w=new m(p,!1);if(c===0){for(var T=0;T<_;T++)w.__setDigit(T,a.__digit(T));return 0<g&&w.__setDigit(_,0),w}for(var E,S=0,C=0;C<_;C++)E=a.__digit(C),w.__setDigit(C,1073741823&E<<c|S),S=E>>>30-c;return 0<g&&w.__setDigit(_,S),w}},{key:"__leftShiftByAbsolute",value:function(a,c){var g=m.__toShiftAmount(c);if(0>g)throw new RangeError("BigInt too big");var _=0|g/30,p=g%30,w=a.length,T=p!==0&&a.__digit(w-1)>>>30-p!=0,E=w+_+(T?1:0),S=new m(E,a.sign);if(p===0){for(var C=0;C<_;C++)S.__setDigit(C,0);for(;C<E;C++)S.__setDigit(C,a.__digit(C-_))}else{for(var B=0,U=0;U<_;U++)S.__setDigit(U,0);for(var P,j=0;j<w;j++)P=a.__digit(j),S.__setDigit(j+_,1073741823&P<<p|B),B=P>>>30-p;if(T)S.__setDigit(w+_,B);else if(B!==0)throw new Error("implementation bug")}return S.__trim()}},{key:"__rightShiftByAbsolute",value:function(a,c){var g=a.length,_=a.sign,p=m.__toShiftAmount(c);if(0>p)return m.__rightShiftByMaximum(_);var w=0|p/30,T=p%30,E=g-w;if(0>=E)return m.__rightShiftByMaximum(_);var S=!1;if(_){var C=(1<<T)-1;if(a.__digit(w)&C)S=!0;else for(var B=0;B<w;B++)if(a.__digit(B)!==0){S=!0;break}}if(S&&T===0){var U=a.__digit(g-1),P=~U==0;P&&E++}var j=new m(E,_);if(T===0){j.__setDigit(E-1,0);for(var Z=w;Z<g;Z++)j.__setDigit(Z-w,a.__digit(Z))}else{for(var K,rt=a.__digit(w)>>>T,it=g-w-1,ht=0;ht<it;ht++)K=a.__digit(ht+w+1),j.__setDigit(ht,1073741823&K<<30-T|rt),rt=K>>>T;j.__setDigit(it,rt)}return S&&(j=m.__absoluteAddOne(j,!0,j)),j.__trim()}},{key:"__rightShiftByMaximum",value:function(a){return a?m.__oneDigit(1,!0):m.__zero()}},{key:"__toShiftAmount",value:function(a){if(1<a.length)return-1;var c=a.__unsignedDigit(0);return c>m.__kMaxLengthBits?-1:c}},{key:"__toPrimitive",value:function(a){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"default";if(et(a)!=="object"||a.constructor===m)return a;if(typeof Symbol<"u"&&et(Symbol.toPrimitive)==="symbol"&&a[Symbol.toPrimitive]){var g=a[Symbol.toPrimitive](c);if(et(g)!=="object")return g;throw new TypeError("Cannot convert object to primitive value")}var _=a.valueOf;if(_){var p=_.call(a);if(et(p)!=="object")return p}var w=a.toString;if(w){var T=w.call(a);if(et(T)!=="object")return T}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(a){return m.__isBigInt(a)?a:+a}},{key:"__isBigInt",value:function(a){return et(a)==="object"&&a!==null&&a.constructor===m}},{key:"__truncateToNBits",value:function(a,c){for(var g=0|(a+29)/30,_=new m(g,c.sign),p=g-1,w=0;w<p;w++)_.__setDigit(w,c.__digit(w));var T=c.__digit(p);if(a%30!=0){var E=32-a%30;T=T<<E>>>E}return _.__setDigit(p,T),_.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(a,c,g){for(var _=Math.min,p,w=0|(a+29)/30,T=new m(w,g),E=0,S=w-1,C=0,B=_(S,c.length);E<B;E++)p=0-c.__digit(E)-C,C=1&p>>>30,T.__setDigit(E,1073741823&p);for(;E<S;E++)T.__setDigit(E,0|1073741823&-C);var U,P=S<c.length?c.__digit(S):0,j=a%30;if(j===0)U=0-P-C,U&=1073741823;else{var Z=32-j;P=P<<Z>>>Z;var K=1<<32-Z;U=K-P-C,U&=K-1}return T.__setDigit(S,U),T.__trim()}},{key:"__digitPow",value:function(a,c){for(var g=1;0<c;)1&c&&(g*=a),c>>>=1,a*=a;return g}},{key:"__detectBigEndian",value:function(){return m.__kBitConversionDouble[0]=-0,m.__kBitConversionInts[0]!==0}},{key:"__isOneDigitInt",value:function(a){return(1073741823&a)===a}}])}(dt(Array));return J.__kMaxLength=33554432,J.__kMaxLengthBits=J.__kMaxLength<<5,J.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],J.__kBitsPerCharTableShift=5,J.__kBitsPerCharTableMultiplier=1<<J.__kBitsPerCharTableShift,J.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],J.__kBitConversionBuffer=new ArrayBuffer(8),J.__kBitConversionDouble=new Float64Array(J.__kBitConversionBuffer),J.__kBitConversionInts=new Int32Array(J.__kBitConversionBuffer),J.__kBitConversionIntHigh=J.__detectBigEndian()?0:1,J.__kBitConversionIntLow=J.__detectBigEndian()?1:0,J.__clz30=t?function(O){return t(O)-2}:function(O){var L=Math.LN2,Y=Math.log;return O===0?30:0|29-(0|Y(O>>>0)/L)},J.__imul=e||function(O,L){return 0|O*L},J})});var D=ss(_i(),1),te=D.default.BigInt(0),Gn=D.default.BigInt(1),ri=D.default.BigInt(2),us=D.default.BigInt(10),cs=D.default.BigInt(24),ds=D.default.BigInt(60),hs=D.default.BigInt(1e3),hr=D.default.BigInt(1e6),Un=D.default.BigInt(1e9),Qi=D.default.multiply(D.default.BigInt(3600),Un),ls=D.default.multiply(ds,Un),Fe=D.default.multiply(Qi,cs);function Me(e){return typeof e=="bigint"?D.default.BigInt(e.toString(10)):e}function ta(e){return D.default.equal(D.default.remainder(e,ri),te)}function Ve(e){return D.default.lessThan(e,te)?D.default.unaryMinus(e):e}function Sr(e,t){return D.default.lessThan(e,t)?-1:D.default.greaterThan(e,t)?1:0}function Yn(e,t){return{quotient:D.default.divide(e,t),remainder:D.default.remainder(e,t)}}var vi,wi,q="slot-epochNanoSeconds",W="slot-iso-date",ct="slot-iso-date-time",ft="slot-time",N="slot-calendar",ea="slot-date-brand",na="slot-year-month-brand",ra="slot-month-day-brand",at="slot-time-zone",$t="slot-years",Rt="slot-months",Wt="slot-weeks",Yt="slot-days",Lt="slot-hours",Nt="slot-minutes",jt="slot-seconds",xt="slot-milliseconds",Bt="slot-microseconds",Gt="slot-nanoseconds",oa="date",ia="ym",aa="md",sa="time",ua="datetime",ca="instant",sn="original",ln="timezone-canonical",po="timezone-original",Ln="calendar-id",da="locale",_o="options",ha=new WeakMap,vo=Symbol.for("@@Temporal__GetSlots");(vi=globalThis)[vo]||(vi[vo]=function(e){return ha.get(e)});var Wr=globalThis[vo],wo=Symbol.for("@@Temporal__CreateSlots");(wi=globalThis)[wo]||(wi[wo]=function(e){ha.set(e,Object.create(null))});var je=globalThis[wo];function Ft(e,...t){if(!e||typeof e!="object")return!1;let n=Wr(e);return!!n&&t.every(r=>r in n)}function d(e,t){let n=Wr(e)?.[t];if(n===void 0)throw new TypeError(`Missing internal slot ${t}`);return n}function Q(e,t,n){let r=Wr(e);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[t])throw new TypeError(`${t} already has set`);r[t]=n}var bo={};function xe(e,t){Object.defineProperty(e.prototype,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0});let n=Object.getOwnPropertyNames(e);for(let o=0;o<n.length;o++){let i=n[o],s=Object.getOwnPropertyDescriptor(e,i);s.configurable&&s.enumerable&&(s.enumerable=!1,Object.defineProperty(e,i,s))}let r=Object.getOwnPropertyNames(e.prototype);for(let o=0;o<r.length;o++){let i=r[o],s=Object.getOwnPropertyDescriptor(e.prototype,i);s.configurable&&s.enumerable&&(s.enumerable=!1,Object.defineProperty(e.prototype,i,s))}Do(t,e),Do(`${t}.prototype`,e.prototype)}function Do(e,t){let n=`%${e}%`;if(bo[n]!==void 0)throw new Error(`intrinsic ${e} already exists`);bo[n]=t}function Tt(e){return bo[e]}function fn(e,t){let n=e;if(n===0)return{div:n,mod:n};let r=Math.sign(n);n=Math.abs(n);let o=Math.trunc(1+Math.log10(n));if(t>=o)return{div:0*r,mod:r*n};if(t===0)return{div:r*n,mod:0*r};let i=n.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-t),10),mod:r*Number.parseInt(i.slice(o-t),10)}}function lo(e,t,n){let r=e,o=n;if(r===0)return o;let i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);let s=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(s+"0".repeat(t),10);let u=s+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(t,"0");return i*Number.parseInt(u,10)}function Gr(e,t){let n=t==="negative";switch(e){case"ceil":return n?"zero":"infinity";case"floor":return n?"infinity":"zero";case"expand":return"infinity";case"trunc":return"zero";case"halfCeil":return n?"half-zero":"half-infinity";case"halfFloor":return n?"half-infinity":"half-zero";case"halfExpand":return"half-infinity";case"halfTrunc":return"half-zero";case"halfEven":return"half-even"}}function Jr(e,t,n,r,o){return o==="zero"?e:o==="infinity"?t:n<0?e:n>0?t:o==="half-zero"?e:o==="half-infinity"?t:r?e:t}var st=class e{constructor(t){this.totalNs=Me(t),this.sec=D.default.toNumber(D.default.divide(this.totalNs,Un)),this.subsec=D.default.toNumber(D.default.remainder(this.totalNs,Un))}static validateNew(t,n){if(D.default.greaterThan(Ve(t),e.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${e.MAX} s`);return new e(t)}static fromEpochNsDiff(t,n){let r=D.default.subtract(Me(t),Me(n));return new e(r)}static fromComponents(t,n,r,o,i,s){let u=D.default.add(D.default.add(D.default.add(D.default.add(D.default.add(D.default.BigInt(s),D.default.multiply(D.default.BigInt(i),hs)),D.default.multiply(D.default.BigInt(o),hr)),D.default.multiply(D.default.BigInt(r),Un)),D.default.multiply(D.default.BigInt(n),ls)),D.default.multiply(D.default.BigInt(t),Qi));return e.validateNew(u,"total")}abs(){return new e(Ve(this.totalNs))}add(t){return e.validateNew(D.default.add(this.totalNs,t.totalNs),"sum")}add24HourDays(t){return e.validateNew(D.default.add(this.totalNs,D.default.multiply(D.default.BigInt(t),Fe)),"sum")}addToEpochNs(t){return D.default.add(Me(t),this.totalNs)}cmp(t){return Sr(this.totalNs,t.totalNs)}divmod(t){let{quotient:n,remainder:r}=Yn(this.totalNs,D.default.BigInt(t));return{quotient:D.default.toNumber(n),remainder:new e(r)}}fdiv(t){let n=Me(t),r=D.default.BigInt(n),{quotient:o,remainder:i}=Yn(this.totalNs,r),s=[],u,l=(D.default.lessThan(this.totalNs,te)?-1:1)*Math.sign(D.default.toNumber(n));for(;!D.default.equal(i,te)&&s.length<50;)i=D.default.multiply(i,us),{quotient:u,remainder:i}=Yn(i,r),s.push(Math.abs(D.default.toNumber(u)));return l*+(Ve(o).toString()+"."+s.join(""))}isZero(){return D.default.equal(this.totalNs,te)}round(t,n){let r=Me(t);if(D.default.equal(r,Gn))return this;let{quotient:o,remainder:i}=Yn(this.totalNs,r),s=D.default.lessThan(this.totalNs,te)?"negative":"positive",u=D.default.multiply(Ve(o),r),l=D.default.add(u,r),h=Sr(Ve(D.default.multiply(i,ri)),r),f=Gr(n,s),y=D.default.equal(Ve(this.totalNs),u)?u:Jr(u,l,h,ta(o),f),v=s==="positive"?y:D.default.unaryMinus(y);return e.validateNew(v,"rounding")}sign(){return this.cmp(new e(te))}subtract(t){return e.validateNew(D.default.subtract(this.totalNs,t.totalNs),"difference")}};st.MAX=D.default.BigInt("9007199254740991999999999"),st.ZERO=new st(te);var bi=/[A-Za-z._][A-Za-z._0-9+-]*/,lr=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${bi.source})(?:\\/(?:${bi.source}))*)`),la=/(?:[+-]\d{6}|\d{4})/,$r=/(?:0[1-9]|1[0-2])/,Eo=/(?:0[1-9]|[12]\d|3[01])/,ms=new RegExp(`(${la.source})(?:-(${$r.source})-(${Eo.source})|(${$r.source})(${Eo.source}))`),ma=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,fa=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,ga=new RegExp(`([zZ])|${fa.source}?`),_n=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,fs=new RegExp([`^${ms.source}`,`(?:(?:[tT]|\\s+)${ma.source}(?:${ga.source})?)?`,`(?:\\[!?(${lr.source})\\])?`,`((?:${_n.source})*)$`].join("")),gs=new RegExp([`^[tT]?${ma.source}`,`(?:${ga.source})?`,`(?:\\[!?${lr.source}\\])?`,`((?:${_n.source})*)$`].join("")),ys=new RegExp(`^(${la.source})-?(${$r.source})(?:\\[!?${lr.source}\\])?((?:${_n.source})*)$`),ps=new RegExp(`^(?:--)?(${$r.source})-?(${Eo.source})(?:\\[!?${lr.source}\\])?((?:${_n.source})*)$`),mo=/(\d+)(?:[.,](\d{1,9}))?/,_s=new RegExp(`(?:${mo.source}H)?(?:${mo.source}M)?(?:${mo.source}S)?`),vs=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${_s.source})?$`,"i"),Ze=864e5,Rr=1e6*Ze,ws=6e10,ya=1e8*Ze,vn=le(ya),Jn=D.default.unaryMinus(vn),bs=D.default.add(D.default.subtract(Jn,Fe),Gn),Ds=D.default.subtract(D.default.add(vn,Fe),Gn),Es=146097*Ze,Di=-271821,Ei=275760,zn=Date.UTC(1847,0,1),Ts=["iso8601","hebrew","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","islamicc","persian","ethiopic","ethioaa","ethiopic-amete-alem","coptic","chinese","dangi","roc","indian","buddhist","japanese","gregory"],Ms=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function gt(e){return typeof e=="object"&&e!==null||typeof e=="function"}function Vr(e){if(typeof e=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(e)}function Xr(e){if(typeof e=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(e)}function V(e){let t=Vr(e);if(t===0)return 0;if(Number.isNaN(t)||t===1/0||t===-1/0)throw new RangeError("invalid number value");let n=Math.trunc(t);return n===0?0:n}function Ti(e,t){let n=V(e);if(n<=0)throw t!==void 0?new RangeError(`property '${t}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return n}function de(e){let t=Vr(e);if(Number.isNaN(t))throw new RangeError("not a number");if(t===1/0||t===-1/0)throw new RangeError("infinity is out of range");if(!function(n){if(typeof n!="number"||Number.isNaN(n)||n===1/0||n===-1/0)return!1;let r=Math.abs(n);return Math.floor(r)===r}(t))throw new RangeError(`unsupported fractional value ${e}`);return t===0?0:t}function Vn(e,t){return String(e).padStart(t,"0")}function _t(e){if(typeof e!="string")throw new TypeError(`expected a string, not ${String(e)}`);return e}function To(e,t){if(gt(e)){let n=e?.toString();if(typeof n=="string"||typeof n=="number")return n;throw new TypeError("Cannot convert object to primitive value")}return e}var Mo=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Is={era:Xr,eraYear:V,year:V,month:Ti,monthCode:function(e){let t=_t(To(e));if(t.length<3||t.length>4||t[0]!=="M"||"0123456789".indexOf(t[1])===-1||"0123456789".indexOf(t[2])===-1||t[1]+t[2]==="00"&&t[3]!=="L"||t[3]!=="L"&&t[3]!==void 0)throw new RangeError(`bad month code ${t}; must match M01-M99 or M00L-M99L`);return t},day:Ti,hour:V,minute:V,second:V,millisecond:V,microsecond:V,nanosecond:V,offset:function(e){let t=_t(To(e));return kn(t),t},timeZone:Ut},Cs={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},wn=[["years","year","date"],["months","month","date"],["weeks","week","date"],["days","day","date"],["hours","hour","time"],["minutes","minute","time"],["seconds","second","time"],["milliseconds","millisecond","time"],["microseconds","microsecond","time"],["nanoseconds","nanosecond","time"]],Mi=Object.fromEntries(wn.map(e=>[e[0],e[1]])),ks=Object.fromEntries(wn.map(([e,t])=>[t,e])),Fn=wn.map(([,e])=>e),bn={day:Rr,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Yr=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Os=Intl.DateTimeFormat,Ii=new Map;function pa(e){let t=tr(e),n=Ii.get(t);return n===void 0&&(n=new Os("en-us",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ii.set(t,n)),n}function bt(e){return Ft(e,q)&&!Ft(e,at,N)}function lt(e){return Ft(e,$t,Rt,Yt,Lt,Nt,jt,xt,Bt,Gt)}function mt(e){return Ft(e,ea)}function yt(e){return Ft(e,ft)}function ut(e){return Ft(e,ct)}function Dt(e){return Ft(e,na)}function Qt(e){return Ft(e,ra)}function tt(e){return Ft(e,q,at,N)}function M(e,t){if(!t(e))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function Mn(e){if(Ft(e,N)||Ft(e,at))throw new TypeError("with() does not support a calendar or timeZone property");if(yt(e))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(e.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(e.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function mr(e,t){return t==="never"||t==="auto"&&e==="iso8601"?"":`[${t==="critical"?"!":""}u-ca=${e}]`}function Kr(e){let t,n,r=!1;for(_n.lastIndex=0;n=_n.exec(e);){let{1:o,2:i,3:s}=n;if(i==="u-ca"){if(t===void 0)t=s,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${e}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${s}`)}return t}function De(e){let t=fs.exec(e);if(!t)throw new RangeError(`invalid RFC 9557 string: ${e}`);let n=Kr(t[16]),r=t[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${e}`);let o=+r,i=+(t[2]??t[4]??1),s=+(t[3]??t[5]??1),u=t[6]!==void 0,l=+(t[6]??0),h=+(t[7]??t[10]??0),f=+(t[8]??t[11]??0);f===60&&(f=59);let y=(t[9]??t[12]??"")+"000000000",v=+y.slice(0,3),b=+y.slice(3,6),I=+y.slice(6,9),R,$=!1;t[13]?(R=void 0,$=!0):t[14]&&(R=t[14]);let x=t[15];return ci(o,i,s,l,h,f,v,b,I),{year:o,month:i,day:s,time:u?{hour:l,minute:h,second:f,millisecond:v,microsecond:b,nanosecond:I}:"start-of-day",tzAnnotation:x,offset:R,z:$,calendar:n}}function _a(e){let t=gs.exec(e),n,r,o,i,s,u,l;if(t){l=Kr(t[10]),n=+(t[1]??0),r=+(t[2]??t[5]??0),o=+(t[3]??t[6]??0),o===60&&(o=59);let h=(t[4]??t[7]??"")+"000000000";if(i=+h.slice(0,3),s=+h.slice(3,6),u=+h.slice(6,9),t[8])throw new RangeError("Z designator not supported for PlainTime")}else{let h,f;if({time:h,z:f,calendar:l}=De(e),h==="start-of-day")throw new RangeError(`time is missing in string: ${e}`);if(f)throw new RangeError("Z designator not supported for PlainTime");({hour:n,minute:r,second:o,millisecond:i,microsecond:s,nanosecond:u}=h)}if(eo(n,r,o,i,s,u),/[tT ][0-9][0-9]/.test(e))return{hour:n,minute:r,second:o,millisecond:i,microsecond:s,nanosecond:u,calendar:l};try{let{month:h,day:f}=ii(e);tn(1972,h,f)}catch{try{let{year:h,month:f}=oi(e);tn(h,f,1)}catch{return{hour:n,minute:r,second:o,millisecond:i,microsecond:s,nanosecond:u,calendar:l}}}throw new RangeError(`invalid RFC 9557 time-only string ${e}; may need a T prefix`)}function oi(e){let t=ys.exec(e),n,r,o,i;if(t){o=Kr(t[3]);let s=t[1];if(s==="-000000")throw new RangeError(`invalid RFC 9557 string: ${e}`);if(n=+s,r=+t[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let s;if({year:n,month:r,calendar:o,day:i,z:s}=De(e),s)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function ii(e){let t=ps.exec(e),n,r,o,i;if(t){if(o=Kr(t[3]),n=+t[1],r=+t[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let s;if({month:n,day:r,calendar:o,year:i,z:s}=De(e),s)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}var va=new RegExp(`^${lr.source}$`,"i"),wa=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function ba(e){let t=$s.test(e)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${t}: ${e}`)}function ze(e){return va.test(e)||ba(e),wa.test(e)?{offsetMinutes:kn(e)/6e10}:{tzName:e}}function Zn(e,t,n,r){let o=e,i=t,s=n;switch(r){case"reject":tn(o,i,s);break;case"constrain":({year:o,month:i,day:s}=Ba(o,i,s))}return{year:o,month:i,day:s}}function Hr(e,t,n,r,o,i,s){let u=e,l=t,h=n,f=r,y=o,v=i;switch(s){case"reject":eo(u,l,h,f,y,v);break;case"constrain":u=Pt(u,0,23),l=Pt(l,0,59),h=Pt(h,0,59),f=Pt(f,0,999),y=Pt(y,0,999),v=Pt(v,0,999)}return{hour:u,minute:l,second:h,millisecond:f,microsecond:y,nanosecond:v}}function Da(e){if(!gt(e))throw new TypeError("invalid duration-like");let t={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0},n=!1;for(let r=0;r<Yr.length;r++){let o=Yr[r],i=e[o];i!==void 0&&(n=!0,t[o]=de(i))}if(!n)throw new TypeError("invalid duration-like");return t}function It({years:e,months:t,weeks:n,days:r},o,i,s){return{years:e,months:s??t,weeks:i??n,days:o??r}}function ot(e,t){return{isoDate:e,time:t}}function nt(e){return Re(e,"overflow",["constrain","reject"],"constrain")}function qn(e){return Re(e,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function me(e,t){return Re(e,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],t)}function Or(e,t){return Re(e,"offset",["prefer","use","ignore","reject"],t)}function fr(e){return Re(e,"calendarName",["auto","always","never","critical"],"auto")}function In(e){let t=e.roundingIncrement;if(t===void 0)return 1;let n=V(t);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${t}`);return n}function Cn(e,t,n){let r=n?t:t-1;if(e>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${e}`);if(t%e!=0)throw new RangeError(`Rounding increment must divide evenly into ${t}`)}function gr(e){let t=e.fractionalSecondDigits;if(t===void 0)return"auto";if(typeof t!="number"){if(Xr(t)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return"auto"}let n=Math.floor(t);if(!Number.isFinite(n)||n<0||n>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return n}function yr(e,t){switch(e){case"minute":return{precision:"minute",unit:"minute",increment:1};case"second":return{precision:0,unit:"second",increment:1};case"millisecond":return{precision:3,unit:"millisecond",increment:1};case"microsecond":return{precision:6,unit:"microsecond",increment:1};case"nanosecond":return{precision:9,unit:"nanosecond",increment:1}}switch(t){case"auto":return{precision:t,unit:"nanosecond",increment:1};case 0:return{precision:t,unit:"second",increment:1};case 1:case 2:case 3:return{precision:t,unit:"millisecond",increment:10**(3-t)};case 4:case 5:case 6:return{precision:t,unit:"microsecond",increment:10**(6-t)};case 7:case 8:case 9:return{precision:t,unit:"nanosecond",increment:10**(9-t)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`)}}var Le=Symbol("~required~");function Vt(e,t,n,r,o=[]){let i=[];for(let h=0;h<wn.length;h++){let f=wn[h],y=f[1],v=f[2];n!=="datetime"&&n!==v||i.push(y)}i=i.concat(o);let s=r;s===Le?s=void 0:s!==void 0&&i.push(s);let u=[];u=u.concat(i);for(let h=0;h<i.length;h++){let f=i[h],y=ks[f];y!==void 0&&u.push(y)}let l=Re(e,t,u,s);if(l===void 0&&r===Le)throw new RangeError(`${t} is required`);return l&&l in Mi?Mi[l]:l}function fo(e){let t=e.relativeTo;if(t===void 0)return{};let n,r,o,i,s,u="option",l=!1;if(gt(t)){if(tt(t))return{zonedRelativeTo:t};if(mt(t))return{plainRelativeTo:t};if(ut(t))return{plainRelativeTo:At(d(t,ct).isoDate,d(t,N))};o=br(t);let h=oe(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=_r(o,h,"constrain")),{offset:s,timeZone:i}=h,s===void 0&&(u="wall")}else{let h,f,y,v,b;if({year:y,month:v,day:b,time:r,calendar:o,tzAnnotation:h,offset:s,z:f}=De(_t(t)),h)i=Ut(h),f?u="exact":s||(u="wall"),l=!0;else if(f)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=Zt(o),n={year:y,month:v,day:b}}return i===void 0?{plainRelativeTo:At(n,o)}:{zonedRelativeTo:Mt(Lr(n,r,u,u==="option"?kn(s):0,i,"compatible","reject",l),i,o)}}function Ie(e){return d(e,$t)!==0?"year":d(e,Rt)!==0?"month":d(e,Wt)!==0?"week":d(e,Yt)!==0?"day":d(e,Lt)!==0?"hour":d(e,Nt)!==0?"minute":d(e,jt)!==0?"second":d(e,xt)!==0?"millisecond":d(e,Bt)!==0?"microsecond":"nanosecond"}function Se(e,t){return Fn.indexOf(e)>Fn.indexOf(t)?t:e}function ge(e){return e==="year"||e==="month"||e==="week"}function Ce(e){return ge(e)||e==="day"?"date":"time"}function Ge(e){return Tt("%calendarImpl%")(e)}function pr(e){return Tt("%calendarImpl%")(d(e,N))}function zt(e,t,n="date"){let r=Object.create(null),o=Ge(e).isoToDate(t,{year:!0,monthCode:!0,day:!0});return r.monthCode=o.monthCode,n!=="month-day"&&n!=="date"||(r.day=o.day),n!=="year-month"&&n!=="date"||(r.year=o.year),r}function oe(e,t,n,r,o){let i=Ge(e).extraFields(n),s=n.concat(r,i),u=Object.create(null),l=!1;s.sort();for(let h=0;h<s.length;h++){let f=s[h],y=t[f];if(y!==void 0)l=!0,u[f]=(0,Is[f])(y);else if(o!=="partial"){if(o.includes(f))throw new TypeError(`required property '${f}' missing or undefined`);u[f]=Cs[f]}}if(o==="partial"&&!l)throw new TypeError("no supported properties found");return u}function Io(e,t="complete"){let n=["hour","microsecond","millisecond","minute","nanosecond","second"],r=!1,o=Object.create(null);for(let i=0;i<n.length;i++){let s=n[i],u=e[s];u!==void 0?(o[s]=V(u),r=!0):t==="complete"&&(o[s]=0)}if(!r)throw new TypeError("invalid time-like");return o}function Nn(e,t){if(gt(e)){if(mt(e))return nt(A(t)),At(d(e,W),d(e,N));if(tt(e)){let l=ue(d(e,at),d(e,q));return nt(A(t)),At(l.isoDate,d(e,N))}if(ut(e))return nt(A(t)),At(d(e,ct).isoDate,d(e,N));let u=br(e);return At(qe(u,oe(u,e,["year","month","monthCode","day"],[],[]),nt(A(t))),u)}let{year:n,month:r,day:o,calendar:i,z:s}=De(_t(e));if(s)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=Zt(i),nt(A(t)),At({year:n,month:r,day:o},i)}function _r(e,t,n){return ot(qe(e,t,n),Hr(t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond,n))}function jn(e,t){let n,r,o;if(gt(e)){if(ut(e))return nt(A(t)),ie(d(e,ct),d(e,N));if(tt(e)){let u=ue(d(e,at),d(e,q));return nt(A(t)),ie(u,d(e,N))}if(mt(e))return nt(A(t)),ie(ot(d(e,W),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),d(e,N));o=br(e);let i=oe(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),s=nt(A(t));({isoDate:n,time:r}=_r(o,i,s))}else{let i,s,u,l;if({year:s,month:u,day:l,time:r,calendar:o,z:i}=De(_t(e)),i)throw new RangeError("Z designator not supported for PlainDateTime");r==="start-of-day"&&(r={deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ci(s,u,l,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=Zt(o),nt(A(t)),n={year:s,month:u,day:l}}return ie(ot(n,r),o)}function se(e){let t=Tt("%Temporal.Duration%");if(lt(e))return new t(d(e,$t),d(e,Rt),d(e,Wt),d(e,Yt),d(e,Lt),d(e,Nt),d(e,jt),d(e,xt),d(e,Bt),d(e,Gt));if(!gt(e))return function(o){let{years:i,months:s,weeks:u,days:l,hours:h,minutes:f,seconds:y,milliseconds:v,microseconds:b,nanoseconds:I}=function(R){let $=vs.exec(R);if(!$)throw new RangeError(`invalid duration: ${R}`);if($.every((g,_)=>_<2||g===void 0))throw new RangeError(`invalid duration: ${R}`);let x=$[1]==="-"?-1:1,z=$[2]===void 0?0:V($[2])*x,F=$[3]===void 0?0:V($[3])*x,H=$[4]===void 0?0:V($[4])*x,X=$[5]===void 0?0:V($[5])*x,et=$[6]===void 0?0:V($[6])*x,pt=$[7],dt=$[8],J=$[9],O=$[10],L=$[11],Y=0,G=0,m=0;if(pt!==void 0){if(dt??J??O??L)throw new RangeError("only the smallest unit can be fractional");m=3600*V((pt+"000000000").slice(0,9))*x}else if(Y=dt===void 0?0:V(dt)*x,J!==void 0){if(O??L)throw new RangeError("only the smallest unit can be fractional");m=60*V((J+"000000000").slice(0,9))*x}else G=O===void 0?0:V(O)*x,L!==void 0&&(m=V((L+"000000000").slice(0,9))*x);let k=m%1e3,a=Math.trunc(m/1e3)%1e3,c=Math.trunc(m/1e6)%1e3;return G+=Math.trunc(m/1e9)%60,Y+=Math.trunc(m/6e10),no(z,F,H,X,et,Y,G,c,a,k),{years:z,months:F,weeks:H,days:X,hours:et,minutes:Y,seconds:G,milliseconds:c,microseconds:a,nanoseconds:k}}(o);return new(Tt("%Temporal.Duration%"))(i,s,u,l,h,f,y,v,b,I)}(_t(e));let n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0},r=Da(e);for(let o=0;o<Yr.length;o++){let i=Yr[o],s=r[i];s!==void 0&&(n[i]=s)}return new t(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function xn(e){let t;if(gt(e)){if(bt(e)||tt(e))return he(d(e,q));t=To(e)}else t=e;let{year:n,month:r,day:o,time:i,offset:s,z:u}=function(R){let $=De(R);if(!$.z&&!$.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return $}(_t(t)),{hour:l=0,minute:h=0,second:f=0,millisecond:y=0,microsecond:v=0,nanosecond:b=0}=i==="start-of-day"?{}:i,I=Qn(n,r,o,l,h,f,y,v,b-(u?0:kn(s)));return pn(I.isoDate),he(Et(I))}function Ci(e,t){if(gt(e)){if(Qt(e))return nt(A(t)),gn(d(e,W),d(e,N));let u;return Ft(e,N)?u=d(e,N):(u=e.calendar,u===void 0&&(u="iso8601"),u=wr(u)),gn(Nr(u,oe(u,e,["year","month","monthCode","day"],[],[]),nt(A(t))),u)}let{month:n,day:r,referenceISOYear:o,calendar:i}=ii(_t(e));if(i===void 0&&(i="iso8601"),i=Zt(i),nt(A(t)),i==="iso8601")return gn({year:1972,month:n,day:r},i);let s={year:o,month:n,day:r};return un(s),s=Nr(i,zt(i,s,"month-day"),"constrain"),gn(s,i)}function Ae(e,t){let n;if(gt(e)){if(yt(e))return nt(A(t)),ke(d(e,ft));if(ut(e))return nt(A(t)),ke(d(e,ct).time);if(tt(e)){let h=ue(d(e,at),d(e,q));return nt(A(t)),ke(h.time)}let{hour:r,minute:o,second:i,millisecond:s,microsecond:u,nanosecond:l}=Io(e);n=Hr(r,o,i,s,u,l,nt(A(t)))}else n=_a(_t(e)),nt(A(t));return ke(n)}function Ea(e){return e===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:d(Ae(e),ft)}function Bn(e,t){if(gt(e)){if(Dt(e))return nt(A(t)),yn(d(e,W),d(e,N));let u=br(e);return yn(Xn(u,oe(u,e,["year","month","monthCode"],[],[]),nt(A(t))),u)}let{year:n,month:r,referenceISODay:o,calendar:i}=oi(_t(e));i===void 0&&(i="iso8601"),i=Zt(i),nt(A(t));let s={year:n,month:r,day:o};return di(s),s=Xn(i,zt(i,s,"year-month"),"constrain"),yn(s,i)}function Lr(e,t,n,r,o,i,s,u){if(t==="start-of-day")return Be(o,e);let l=ot(e,t);if(n==="wall"||s==="ignore")return Ct(o,l,i);if(n==="exact"||s==="use"){let y=Qn(e.year,e.month,e.day,t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond-r);pn(y.isoDate);let v=Et(y);return we(v),v}pn(e);let h=Et(l),f=Kn(o,l);for(let y=0;y<f.length;y++){let v=f[y],b=D.default.toNumber(D.default.subtract(h,v)),I=Ue(b,6e10,"halfExpand");if(b===r||u&&I===r)return v}if(s==="reject"){let y=Co(r),v=Hn(l,"iso8601","auto");throw new RangeError(`Offset ${y} is invalid for ${v} in ${o}`)}return Ra(f,o,l,i)}function Pn(e,t){let n,r,o,i,s,u,l,h=!1,f="option";if(gt(e)){if(tt(e)){let R=A(t);return qn(R),Or(R,"reject"),nt(R),Mt(d(e,q),d(e,at),d(e,N))}s=br(e);let v=oe(s,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=v),i===void 0&&(f="wall");let b=A(t);u=qn(b),l=Or(b,"reject");let I=nt(b);({isoDate:n,time:r}=_r(s,v,I))}else{let v,b,I,R,$;({year:I,month:R,day:$,time:r,tzAnnotation:v,offset:i,z:b,calendar:s}=function(z){let F=De(z);if(!F.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return F}(_t(e))),o=Ut(v),b?f="exact":i||(f="wall"),s||(s="iso8601"),s=Zt(s),h=!0;let x=A(t);u=qn(x),l=Or(x,"reject"),nt(x),n={year:I,month:R,day:$}}let y=0;return f==="option"&&(y=kn(i)),Mt(Lr(n,r,f,y,o,u,l,h),o,s)}function Ta(e,t,n){un(t),je(e),Q(e,W,t),Q(e,N,n),Q(e,ea,!0)}function At(e,t){let n=Tt("%Temporal.PlainDate%"),r=Object.create(n.prototype);return Ta(r,e,t),r}function Ma(e,t,n){en(t),je(e),Q(e,ct,t),Q(e,N,n)}function ie(e,t){let n=Tt("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return Ma(r,e,t),r}function Ia(e,t,n){un(t),je(e),Q(e,W,t),Q(e,N,n),Q(e,ra,!0)}function gn(e,t){let n=Tt("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Ia(r,e,t),r}function Ca(e,t){je(e),Q(e,ft,t)}function ke(e){let t=Tt("%Temporal.PlainTime%"),n=Object.create(t.prototype);return Ca(n,e),n}function ka(e,t,n){di(t),je(e),Q(e,W,t),Q(e,N,n),Q(e,na,!0)}function yn(e,t){let n=Tt("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return ka(r,e,t),r}function Oa(e,t){we(t),je(e),Q(e,q,t)}function he(e){let t=Tt("%Temporal.Instant%"),n=Object.create(t.prototype);return Oa(n,e),n}function Sa(e,t,n,r){we(t),je(e),Q(e,q,t),Q(e,at,n),Q(e,N,r)}function Mt(e,t,n="iso8601"){let r=Tt("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Sa(o,e,t,n),o}function ki(e){return Mo.filter(t=>e[t]!==void 0)}function Qe(e,t,n){let r=ki(n),o=Ge(e).fieldKeysToIgnore(r),i=Object.create(null),s=ki(t);for(let u=0;u<Mo.length;u++){let l,h=Mo[u];s.includes(h)&&!o.includes(h)&&(l=t[h]),r.includes(h)&&(l=n[h]),l!==void 0&&(i[h]=l)}return i}function ne(e,t,n,r){let o=Ge(e).dateAdd(t,n,r);return un(o),o}function vr(e,t,n,r){return Ge(e).dateUntil(t,n,r)}function wr(e){if(gt(e)&&Ft(e,N))return d(e,N);let t=_t(e);try{return Zt(t)}catch{}let n;try{({calendar:n}=De(t))}catch{try{({calendar:n}=_a(t))}catch{try{({calendar:n}=oi(t))}catch{({calendar:n}=ii(t))}}}return n||(n="iso8601"),Zt(n)}function br(e){if(Ft(e,N))return d(e,N);let{calendar:t}=e;return t===void 0?"iso8601":wr(t)}function ve(e,t){return Zt(e)===Zt(t)}function qe(e,t,n){let r=Ge(e);r.resolveFields(t,"date");let o=r.dateToISO(t,n);return un(o),o}function Xn(e,t,n){let r=Ge(e);r.resolveFields(t,"year-month"),t.day=1;let o=r.dateToISO(t,n);return di(o),o}function Nr(e,t,n){let r=Ge(e);r.resolveFields(t,"month-day");let o=r.monthDayToISOReferenceDate(t,n);return un(o),o}function Ut(e){if(gt(e)&&tt(e))return d(e,at);let t=_t(e);if(t==="UTC")return"UTC";let{tzName:n,offsetMinutes:r}=function(i){let{tzAnnotation:s,offset:u,z:l}=function(h){if(va.test(h))return{tzAnnotation:h,offset:void 0,z:!1};try{let{tzAnnotation:f,offset:y,z:v}=De(h);if(v||f||y)return{tzAnnotation:f,offset:y,z:v}}catch{}ba(h)}(i);return s?ze(s):l?ze("UTC"):u?ze(u):void 0}(t);if(r!==void 0)return ai(r);let o=jr(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function $a(e,t){if(e===t)return!0;let n=ze(e).offsetMinutes,r=ze(t).offsetMinutes;if(n===void 0&&r===void 0){let o=jr(t);if(!o)return!1;let i=jr(e);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Oe(e,t){let n=ze(e).offsetMinutes;return n!==void 0?6e10*n:ko(e,t)}function Co(e){let t=e<0?"-":"+",n=Math.abs(e),r=Math.floor(n/36e11),o=Math.floor(n/6e10)%60,i=Math.floor(n/1e9)%60,s=n%1e9;return`${t}${Qr(r,o,i,s,i===0&&s===0?"minute":"auto")}`}function ue(e,t){let n=Oe(e,t),{isoDate:{year:r,month:o,day:i},time:{hour:s,minute:u,second:l,millisecond:h,microsecond:f,nanosecond:y}}=Na(t);return Qn(r,o,i,s,u,l,h,f,y+n)}function Ct(e,t,n){return Ra(Kn(e,t),e,t,n)}function Ra(e,t,n,r){let o=e.length;if(o===1)return e[0];if(o)switch(r){case"compatible":case"earlier":return e[0];case"later":return e[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");let i=Et(n),s=D.default.subtract(i,Fe);we(s);let u=Oe(t,s),l=D.default.add(i,Fe);we(l);let h=Oe(t,l)-u;switch(r){case"earlier":{let f=st.fromComponents(0,0,0,0,0,-h),y=Dn(n.time,f);return Kn(t,ot(Xt(n.isoDate.year,n.isoDate.month,n.isoDate.day+y.deltaDays),y))[0]}case"compatible":case"later":{let f=st.fromComponents(0,0,0,0,0,h),y=Dn(n.time,f),v=Kn(t,ot(Xt(n.isoDate.year,n.isoDate.month,n.isoDate.day+y.deltaDays),y));return v[v.length-1]}}}function Kn(e,t){if(e==="UTC")return pn(t.isoDate),[Et(t)];let n=ze(e).offsetMinutes;if(n!==void 0){let r=Qn(t.isoDate.year,t.isoDate.month,t.isoDate.day,t.time.hour,t.time.minute-n,t.time.second,t.time.millisecond,t.time.microsecond,t.time.nanosecond);pn(r.isoDate);let o=Et(r);return we(o),[o]}return pn(t.isoDate),function(r,o){let i=Et(o),s=D.default.subtract(i,Fe);D.default.lessThan(s,Jn)&&(s=i);let u=D.default.add(i,Fe);D.default.greaterThan(u,vn)&&(u=i);let l=ko(r,s),h=ko(r,u);return(l===h?[l]:[l,h]).map(y=>{let v=D.default.subtract(i,D.default.BigInt(y)),b=function(I,R){let{epochMilliseconds:$,time:{millisecond:x,microsecond:z,nanosecond:F}}=Na(R),{year:H,month:X,day:et,hour:pt,minute:dt,second:J}=ja(I,$);return Qn(H,X,et,pt,dt,J,x,z,F)}(r,v);if(En(o,b)===0)return we(v),v}).filter(y=>y!==void 0)}(e,t)}function Be(e,t){let n=ot(t,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Kn(e,n);if(r.length)return r[0];let o=Et(n),i=D.default.subtract(o,Fe);return we(i),ui(e,i)}function Dr(e){let t;return t=e<0||e>9999?(e<0?"-":"+")+Vn(Math.abs(e),6):Vn(e,4),t}function re(e){return Vn(e,2)}function Ya(e,t){let n;if(t==="auto"){if(e===0)return"";n=Vn(e,9).replace(/0+$/,"")}else{if(t===0)return"";n=Vn(e,9).slice(0,t)}return`.${n}`}function Qr(e,t,n,r,o){let i=`${re(e)}:${re(t)}`;return o==="minute"||(i+=`:${re(n)}`,i+=Ya(r,o)),i}function Oi(e,t,n){let r=t;r===void 0&&(r="UTC");let o=d(e,q),i=Hn(ue(r,o),"iso8601",n,"never"),s="Z";return t!==void 0&&(s=La(Oe(r,o))),`${i}${s}`}function kr(e,t){let n=d(e,$t),r=d(e,Rt),o=d(e,Wt),i=d(e,Yt),s=d(e,Lt),u=d(e,Nt),l=Br(e),h="";n!==0&&(h+=`${Math.abs(n)}Y`),r!==0&&(h+=`${Math.abs(r)}M`),o!==0&&(h+=`${Math.abs(o)}W`),i!==0&&(h+=`${Math.abs(i)}D`);let f="";s!==0&&(f+=`${Math.abs(s)}H`),u!==0&&(f+=`${Math.abs(u)}M`);let y=st.fromComponents(0,0,d(e,jt),d(e,xt),d(e,Bt),d(e,Gt));y.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Ie(e))&&t==="auto"||(f+=`${Math.abs(y.sec)}${Ya(Math.abs(y.subsec),t)}S`);let v=`${l<0?"-":""}P${h}`;return f&&(v=`${v}T${f}`),v}function Si(e,t="auto"){let{year:n,month:r,day:o}=d(e,W);return`${Dr(n)}-${re(r)}-${re(o)}${mr(d(e,N),t)}`}function $i({hour:e,minute:t,second:n,millisecond:r,microsecond:o,nanosecond:i},s){return Qr(e,t,n,1e6*r+1e3*o+i,s)}function Hn(e,t,n,r="auto"){let{isoDate:{year:o,month:i,day:s},time:{hour:u,minute:l,second:h,millisecond:f,microsecond:y,nanosecond:v}}=e;return`${Dr(o)}-${re(i)}-${re(s)}T${Qr(u,l,h,1e6*f+1e3*y+v,n)}${mr(t,r)}`}function Ri(e,t="auto"){let{year:n,month:r,day:o}=d(e,W),i=`${re(r)}-${re(o)}`,s=d(e,N);t!=="always"&&t!=="critical"&&s==="iso8601"||(i=`${Dr(n)}-${i}`);let u=mr(s,t);return u&&(i+=u),i}function Yi(e,t="auto"){let{year:n,month:r,day:o}=d(e,W),i=`${Dr(n)}-${re(r)}`,s=d(e,N);t!=="always"&&t!=="critical"&&s==="iso8601"||(i+=`-${re(o)}`);let u=mr(s,t);return u&&(i+=u),i}function Li(e,t,n="auto",r="auto",o="auto",i=void 0){let s=d(e,q);if(i){let{unit:f,increment:y,roundingMode:v}=i;s=Ro(s,y,f,v)}let u=d(e,at),l=Oe(u,s),h=Hn(ue(u,s),"iso8601",t,"never");return o!=="never"&&(h+=La(l)),r!=="never"&&(h+=`[${r==="critical"?"!":""}${u}]`),h+=mr(d(e,N),n),h}function Ni(e){return wa.test(e)}function kn(e){let t=Rs.exec(e);if(!t)throw new RangeError(`invalid time zone offset: ${e}; must match \xB1HH:MM[:SS.SSSSSSSSS]`);return(t[1]==="-"?-1:1)*(1e9*(60*(60*+t[2]+ +(t[3]||0))+ +(t[4]||0))+ +((t[5]||0)+"000000000").slice(0,9))}var Sn,Ss=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function jr(e){if(Sn===void 0){let i=Intl.supportedValuesOf?.("timeZone");if(i){Sn=new Map;for(let s=0;s<i.length;s++){let u=i[s];Sn.set(tr(u),u)}}else Sn=null}let t=tr(e),n=Sn?.get(t);if(n)return{identifier:n,primaryIdentifier:n};try{n=pa(e).resolvedOptions().timeZone}catch{return}if(t==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Ms.has(e))throw new RangeError(`${e} is a legacy time zone identifier from ICU. Use ${n} instead`);let r=[...t].map((i,s)=>s===0||Ss[t[s-1]]?i.toUpperCase():i).join("").split("/");if(r.length===1)return t==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:n}:{identifier:t.length<=3||/[-0-9]/.test(t)?t.toUpperCase():r[0],primaryIdentifier:n};if(r[0]==="Etc")return{identifier:`Etc/${["Zulu","Greenwich","Universal"].includes(r[1])?r[1]:r[1].toUpperCase()}`,primaryIdentifier:n};if(r[0]==="Us")return{identifier:`US/${r[1]}`,primaryIdentifier:n};let o=new Map([["Act","ACT"],["Lhi","LHI"],["Nsw","NSW"],["Dar_Es_Salaam","Dar_es_Salaam"],["Port_Of_Spain","Port_of_Spain"],["Port-Au-Prince","Port-au-Prince"],["Isle_Of_Man","Isle_of_Man"],["Comodrivadavia","ComodRivadavia"],["Knox_In","Knox_IN"],["Dumontdurville","DumontDUrville"],["Mcmurdo","McMurdo"],["Denoronha","DeNoronha"],["Easterisland","EasterIsland"],["Bajanorte","BajaNorte"],["Bajasur","BajaSur"]]);return r[1]=o.get(r[1])??r[1],r.length>2&&(r[2]=o.get(r[2])??r[2]),{identifier:r.join("/"),primaryIdentifier:n}}function Ke(e,t){let{year:n,month:r,day:o,hour:i,minute:s,second:u}=ja(e,t),l=t%1e3;return l<0&&(l+=1e3),1e6*(si({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:s,second:u,millisecond:l}})-t)}function ko(e,t){return Ke(e,ce(t,"floor"))}function ai(e){let t=e<0?"-":"+",n=Math.abs(e);return`${t}${Qr(Math.floor(n/60),n%60,0,0,"minute")}`}function La(e){return ai(Ue(e,ws,"halfExpand")/6e10)}function si({isoDate:{year:e,month:t,day:n},time:{hour:r,minute:o,second:i,millisecond:s}}){let u=e%400,l=(e-u)/400,h=new Date;return h.setUTCHours(r,o,i,s),h.setUTCFullYear(u,t-1,n),h.getTime()+Es*l}function Et(e){let t=si(e),n=1e3*e.time.microsecond+e.time.nanosecond;return D.default.add(le(t),D.default.BigInt(n))}function Na(e){let t=ce(e,"trunc"),n=D.default.toNumber(D.default.remainder(e,hr));n<0&&(n+=1e6,t-=1);let r=Math.floor(n/1e3)%1e3,o=n%1e3,i=new Date(t);return{epochMilliseconds:t,isoDate:{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()},time:{hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds(),microsecond:r,nanosecond:o}}}function ui(e,t){if(e==="UTC")return null;let n=ce(t,"floor");if(n<zn)return ui(e,le(zn));let r=Date.now(),o=Math.max(n,r)+366*Ze*3,i=n,s=Ke(e,i),u=i,l=s;for(;s===l&&i<o;){if(u=i+2*Ze*7,u>ya)return null;l=Ke(e,u),s===l&&(i=u)}return s===l?null:le(Wa(h=>Ke(e,h),i,u,s,l))}function Oo(e,t){if(e==="UTC")return null;let n=ce(t,"ceil"),r=Date.now(),o=r+366*Ze*3;if(n>o){let h=Oo(e,le(o));if(h===null||D.default.lessThan(h,le(r)))return h}if(e==="Africa/Casablanca"||e==="Africa/El_Aaiun"){let h=Date.UTC(2088,0,1);if(h<n)return Oo(e,le(h))}let i=n-1;if(i<zn)return null;let s=Ke(e,i),u=i,l=s;for(;s===l&&i>zn;){if(u=i-2*Ze*7,u<zn)return null;l=Ke(e,u),s===l&&(i=u)}return s===l?null:le(Wa(h=>Ke(e,h),u,i,l,s))}function ja(e,t){return function(n){let r=n.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${n}`);let o=+r[0],i=+r[1],s=+r[2],u=r[3];if(u[0]==="b"||u[0]==="B")s=1-s;else if(u[0]!=="a"&&u[0]!=="A")throw new RangeError(`Unknown era ${u} in "${n}`);let l=r[4]==="24"?0:+r[4],h=+r[5],f=+r[6];if(!(Number.isFinite(s)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(l)&&Number.isFinite(h)&&Number.isFinite(f)))throw new RangeError(`Invalid number in "${n}`);return{year:s,month:o,day:i,hour:l,minute:h,second:f}}(pa(e).format(t))}function xr(e){return e!==void 0&&!(e%4!=0||e%100==0&&e%400!=0)}function He(e,t){return{standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[xr(e)?"leapyear":"standard"][t-1]}function Br(e){let t=[d(e,$t),d(e,Rt),d(e,Wt),d(e,Yt),d(e,Lt),d(e,Nt),d(e,jt),d(e,xt),d(e,Bt),d(e,Gt)];for(let n=0;n<t.length;n++){let r=t[n];if(r!==0)return r<0?-1:1}return 0}function to(e){let t=["years","months","weeks","days"];for(let n=0;n<t.length;n++){let r=e[t[n]];if(r!==0)return r<0?-1:1}return 0}function xa(e){let t=to(e.date);return t!==0?t:e.time.sign()}function Xe(e,t){let n=e,r=t;if(!Number.isFinite(n)||!Number.isFinite(r))throw new RangeError("infinity is out of range");return r-=1,n+=Math.floor(r/12),r%=12,r<0&&(r+=12),r+=1,{year:n,month:r}}function Xt(e,t,n){let r=e,o=t,i=n;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Xe(r,o));let s=146097;if(Math.abs(i)>s){let h=Math.trunc(i/s);r+=400*h,i-=h*s}let u=0,l=o>2?r:r-1;for(;u=xr(l)?366:365,i<-u;)r-=1,l-=1,i+=u;for(l+=1;u=xr(l)?366:365,i>u;)r+=1,l+=1,i-=u;for(;i<1;)({year:r,month:o}=Xe(r,o-1)),i+=He(r,o);for(;i>He(r,o);)i-=He(r,o),{year:r,month:o}=Xe(r,o+1);return{year:r,month:o,day:i}}function Qn(e,t,n,r,o,i,s,u,l){let h=Pe(r,o,i,s,u,l);return ot(Xt(e,t,n+h.deltaDays),h)}function Pe(e,t,n,r,o,i){let s,u=e,l=t,h=n,f=r,y=o,v=i;({div:s,mod:v}=fn(v,3)),y+=s,v<0&&(y-=1,v+=1e3),{div:s,mod:y}=fn(y,3),f+=s,y<0&&(f-=1,y+=1e3),h+=Math.trunc(f/1e3),f%=1e3,f<0&&(h-=1,f+=1e3),l+=Math.trunc(h/60),h%=60,h<0&&(l-=1,h+=60),u+=Math.trunc(l/60),l%=60,l<0&&(u-=1,l+=60);let b=Math.trunc(u/24);return u%=24,u<0&&(b-=1,u+=24),b+=0,u+=0,l+=0,h+=0,f+=0,y+=0,v+=0,{deltaDays:b,hour:u,minute:l,second:h,millisecond:f,microsecond:y,nanosecond:v}}function ji(e,t){let n=It(e,0);if(to(n)===0)return e.days;let r=d(t,W),o=ne(d(t,N),r,n,"constrain"),i=nn(r.year,r.month-1,r.day),s=nn(o.year,o.month-1,o.day)-i;return e.days+s}function Kt(e){return new(Tt("%Temporal.Duration%"))(-d(e,$t),-d(e,Rt),-d(e,Wt),-d(e,Yt),-d(e,Lt),-d(e,Nt),-d(e,jt),-d(e,xt),-d(e,Bt),-d(e,Gt))}function Pt(e,t,n){return Math.min(n,Math.max(t,e))}function Ba(e,t,n){let r=Pt(t,1,12);return{year:e,month:r,day:Pt(n,1,He(e,r))}}function vt(e,t,n){if(e<t||e>n)throw new RangeError(`value out of range: ${t} <= ${e} <= ${n}`)}function tn(e,t,n){vt(t,1,12),vt(n,1,He(e,t))}function un(e){en(ot(e,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function eo(e,t,n,r,o,i){vt(e,0,23),vt(t,0,59),vt(n,0,59),vt(r,0,999),vt(o,0,999),vt(i,0,999)}function ci(e,t,n,r,o,i,s,u,l){tn(e,t,n),eo(r,o,i,s,u,l)}function en(e){let t=Et(e);(D.default.lessThan(t,bs)||D.default.greaterThan(t,Ds))&&we(t)}function So(e){Et(e)}function we(e){if(D.default.lessThan(e,Jn)||D.default.greaterThan(e,vn))throw new RangeError("date/time value is outside of supported range")}function di({year:e,month:t}){vt(e,Di,Ei),e===Di?vt(t,4,12):e===Ei&&vt(t,1,9)}function no(e,t,n,r,o,i,s,u,l,h){let f=0,y=[e,t,n,r,o,i,s,u,l,h];for(let x=0;x<y.length;x++){let z=y[x];if(z===1/0||z===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(z!==0){let F=z<0?-1:1;if(f!==0&&F!==f)throw new RangeError("mixed-sign values not allowed as duration fields");f=F}}if(Math.abs(e)>=2**32||Math.abs(t)>=2**32||Math.abs(n)>=2**32)throw new RangeError("years, months, and weeks must be < 2\xB3\xB2");let v=fn(u,3),b=fn(l,6),I=fn(h,9),R=fn(1e6*v.mod+1e3*b.mod+I.mod,9).div,$=86400*r+3600*o+60*i+s+v.div+b.div+I.div+R;if(!Number.isSafeInteger($))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function mn(e){return{date:{years:d(e,$t),months:d(e,Rt),weeks:d(e,Wt),days:d(e,Yt)},time:st.fromComponents(d(e,Lt),d(e,Nt),d(e,jt),d(e,xt),d(e,Bt),d(e,Gt))}}function pe(e){let t=st.fromComponents(d(e,Lt),d(e,Nt),d(e,jt),d(e,xt),d(e,Bt),d(e,Gt)).add24HourDays(d(e,Yt));return{date:{years:d(e,$t),months:d(e,Rt),weeks:d(e,Wt),days:0},time:t}}function Pa(e){let t=pe(e),n=Math.trunc(t.time.sec/86400);return no(t.date.years,t.date.months,t.date.weeks,n,0,0,0,0,0,0),{...t.date,days:n}}function ae(e,t){let n=e.time.sign(),r=e.time.abs().subsec,o=0,i=0,s=e.time.abs().sec,u=0,l=0,h=0;switch(t){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,s+=Math.trunc(i/1e3),i%=1e3,u=Math.trunc(s/60),s%=60,l=Math.trunc(u/60),u%=60,h=Math.trunc(l/24),l%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,s+=Math.trunc(i/1e3),i%=1e3,u=Math.trunc(s/60),s%=60,l=Math.trunc(u/60),u%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,s+=Math.trunc(i/1e3),i%=1e3,u=Math.trunc(s/60),s%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,s+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=lo(s,3,Math.trunc(o/1e3)),o%=1e3,s=0;break;case"microsecond":o=lo(s,6,Math.trunc(r/1e3)),r%=1e3,s=0;break;case"nanosecond":r=lo(s,9,r),s=0}return new(Tt("%Temporal.Duration%"))(e.date.years,e.date.months,e.date.weeks,e.date.days+n*h,n*l,n*u,n*s,n*i,n*o,n*r)}function $e(e,t){return to(e),t.sign(),{date:e,time:t}}function nn(e,t,n){return si({isoDate:{year:e,month:t+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/Ze}function pn({year:e,month:t,day:n}){if(Math.abs(nn(e,t-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function hi(e,t){let n=t.hour-e.hour,r=t.minute-e.minute,o=t.second-e.second,i=t.millisecond-e.millisecond,s=t.microsecond-e.microsecond,u=t.nanosecond-e.nanosecond;return st.fromComponents(n,r,o,i,s,u)}function li(e,t,n,r,o){let i=st.fromEpochNsDiff(t,e);return i=Pr(i,n,r,o),$e({years:0,months:0,weeks:0,days:0},i)}function Aa(e,t,n,r){So(e),So(t);let o=hi(e.time,t.time),i=o.sign(),s=be(e.isoDate,t.isoDate),u=t.isoDate;s===i&&(u=Xt(u.year,u.month,u.day+i),o=o.add24HourDays(-i));let l=Se("day",r),h=vr(n,e.isoDate,u,l);return r!==l&&(o=o.add24HourDays(h.days),h.days=0),$e(h,o)}function Ua(e,t,n,r,o){let i=D.default.subtract(t,e);if(D.default.equal(i,te))return{date:{years:0,months:0,weeks:0,days:0},time:st.ZERO};let s=D.default.lessThan(i,te)?-1:1,u=ue(n,e),l=ue(n,t),h,f=0,y=s===1?2:1,v=hi(u.time,l.time);for(v.sign()===-s&&f++;f<=y;f++){h=ot(Xt(l.isoDate.year,l.isoDate.month,l.isoDate.day-f*s),u.time);let I=Ct(n,h,"compatible");if(v=st.fromEpochNsDiff(t,I),v.sign()!==-s)break}let b=Se("day",o);return $e(vr(r,u.isoDate,h.isoDate,b),v)}function za(e,t,n,r,o,i,s,u,l){let h,f,y,v,b=t;switch(u){case"year":{let Y=Ue(b.date.years,s,"trunc");h=Y,f=Y+s*e,y={years:h,months:0,weeks:0,days:0},v={...y,years:f};break}case"month":{let Y=Ue(b.date.months,s,"trunc");h=Y,f=Y+s*e,y=It(b.date,0,0,h),v=It(b.date,0,0,f);break}case"week":{let Y=It(b.date,0,0),G=ne(i,r.isoDate,Y,"constrain"),m=vr(i,G,Xt(G.year,G.month,G.day+b.date.days),"week"),k=Ue(b.date.weeks+m.weeks,s,"trunc");h=k,f=k+s*e,y=It(b.date,0,h),v=It(b.date,0,f);break}case"day":{let Y=Ue(b.date.days,s,"trunc");h=Y,f=Y+s*e,y=It(b.date,h),v=It(b.date,f);break}}let I=ne(i,r.isoDate,y,"constrain"),R=ne(i,r.isoDate,v,"constrain"),$,x,z=ot(I,r.time),F=ot(R,r.time);o?($=Ct(o,z,"compatible"),x=Ct(o,F,"compatible")):($=Et(z),x=Et(F));let H=st.fromEpochNsDiff(n,$),X=st.fromEpochNsDiff(x,$),et=Gr(l,e<0?"negative":"positive"),pt=H.add(H).abs().subtract(X.abs()).sign(),dt=Math.abs(h)/s%2==0,J=H.isZero()?Math.abs(h):H.cmp(X)?Jr(Math.abs(h),Math.abs(f),pt,dt,et):Math.abs(f),O=new st(D.default.add(D.default.multiply(X.totalNs,D.default.BigInt(h)),D.default.multiply(H.totalNs,D.default.BigInt(s*e)))).fdiv(X.totalNs),L=J===Math.abs(f);return b={date:L?v:y,time:st.ZERO},{nudgeResult:{duration:b,nudgedEpochNs:L?x:$,didExpandCalendarUnit:L},total:O}}function ro(e,t,n,r,o,i,s,u,l){let h=e,f=ge(u)||r&&u==="day",y=xa(h)<0?-1:1,v;return f?{nudgeResult:v}=za(y,h,t,n,r,o,s,u,l):v=r?function(b,I,R,$,x,z,F,H){let X=I,et=ne(x,R.isoDate,X.date,"constrain"),pt=ot(et,R.time),dt=ot(Xt(et.year,et.month,et.day+b),R.time),J=Ct($,pt,"compatible"),O=Ct($,dt,"compatible"),L=st.fromEpochNsDiff(O,J);if(L.sign()!==b)throw new RangeError("time zone returned inconsistent Instants");let Y=D.default.BigInt(bn[F]*z),G=X.time.round(Y,H),m=G.subtract(L),k=m.sign()!==-b,a,c;return k?(a=b,G=m.round(Y,H),c=G.addToEpochNs(O)):(a=0,c=G.addToEpochNs(J)),{duration:$e(It(X.date,X.date.days+a),G),nudgedEpochNs:c,didExpandCalendarUnit:k}}(y,h,n,r,o,s,u,l):function(b,I,R,$,x,z){let F=b,H=F.time.add24HourDays(F.date.days),X=H.round(D.default.BigInt($*bn[x]),z),et=X.subtract(H),{quotient:pt}=H.divmod(Rr),{quotient:dt}=X.divmod(Rr),J=Math.sign(dt-pt)===H.sign(),O=et.addToEpochNs(I),L=0,Y=X;return Ce(R)==="date"&&(L=dt,Y=X.add(st.fromComponents(24*-dt,0,0,0,0,0))),{duration:{date:It(F.date,L),time:Y},nudgedEpochNs:O,didExpandCalendarUnit:J}}(h,t,i,s,u,l),h=v.duration,v.didExpandCalendarUnit&&u!=="week"&&(h=function(b,I,R,$,x,z,F,H){let X=I;if(H===F)return X;let et=Fn.indexOf(F);for(let pt=Fn.indexOf(H)-1;pt>=et;pt--){let dt=Fn[pt];if(dt==="week"&&F!=="week")continue;let J;switch(dt){case"year":J={years:X.date.years+b,months:0,weeks:0,days:0};break;case"month":{let Y=X.date.months+b;J=It(X.date,0,0,Y);break}case"week":{let Y=X.date.weeks+b;J=It(X.date,0,Y);break}}let O=ot(ne(z,$.isoDate,J,"constrain"),$.time),L;if(L=x?Ct(x,O,"compatible"):Et(O),Sr(R,L)===-b)break;X={date:J,time:st.ZERO}}return X}(y,h,v.nudgedEpochNs,n,r,o,i,Se(u,"day"))),h}function xi(e,t,n,r,o,i){return ge(i)||r&&i==="day"?za(xa(e)<0?-1:1,e,t,n,r,o,1,i,"trunc").total:Wn(e.time.add24HourDays(e.date.days),i)}function Fa(e,t,n,r,o,i,s){if(En(e,t)==0)return{date:{years:0,months:0,weeks:0,days:0},time:st.ZERO};en(e),en(t);let u=Aa(e,t,n,r);return i==="nanosecond"&&o===1?u:ro(u,Et(t),e,null,n,r,o,i,s)}function Za(e,t,n,r,o,i,s,u){if(Ce(o)==="time")return li(e,t,i,s,u);let l=Ua(e,t,n,r,o);return s==="nanosecond"&&i===1?l:ro(l,t,ue(n,e),n,r,o,i,s,u)}function On(e,t,n,r,o,i){let s=wn.reduce((b,I)=>{let R=I[0],$=I[1],x=I[2];return n!=="datetime"&&x!==n||r.includes($)||b.push($,R),b},[]),u=Vt(t,"largestUnit",n,"auto");if(r.includes(u))throw new RangeError(`largestUnit must be one of ${s.join(", ")}, not ${u}`);let l=In(t),h=me(t,"trunc");e==="since"&&(h=function(b){switch(b){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return b}}(h));let f=Vt(t,"smallestUnit",n,o);if(r.includes(f))throw new RangeError(`smallestUnit must be one of ${s.join(", ")}, not ${f}`);let y=Se(i,f);if(u==="auto"&&(u=y),Se(u,f)!==u)throw new RangeError(`largestUnit ${u} cannot be smaller than smallestUnit ${f}`);let v={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[f];return v!==void 0&&Cn(l,v,!1),{largestUnit:u,roundingIncrement:l,roundingMode:h,smallestUnit:f}}function Bi(e,t,n,r){let o=xn(n),i=On(e,A(r),"time",[],"nanosecond","second"),s=ae(li(d(t,q),d(o,q),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return e==="since"&&(s=Kt(s)),s}function Pi(e,t,n,r){let o=Nn(n),i=d(t,N),s=d(o,N);if(!ve(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=On(e,A(r),"date",[],"day","day"),l=Tt("%Temporal.Duration%"),h=d(t,W),f=d(o,W);if(be(h,f)===0)return new l;let y={date:vr(i,h,f,u.largestUnit),time:st.ZERO};if(u.smallestUnit!=="day"||u.roundingIncrement!==1){let b=ot(h,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=ro(y,Et(ot(f,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),b,null,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode)}let v=ae(y,"day");return e==="since"&&(v=Kt(v)),v}function Ai(e,t,n,r){let o=jn(n),i=d(t,N),s=d(o,N);if(!ve(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=On(e,A(r),"datetime",[],"nanosecond","day"),l=Tt("%Temporal.Duration%"),h=d(t,ct),f=d(o,ct);if(En(h,f)===0)return new l;let y=ae(Fa(h,f,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode),u.largestUnit);return e==="since"&&(y=Kt(y)),y}function Ui(e,t,n,r){let o=Ae(n),i=On(e,A(r),"time",[],"nanosecond","hour"),s=hi(d(t,ft),d(o,ft));s=Pr(s,i.roundingIncrement,i.smallestUnit,i.roundingMode);let u=ae($e({years:0,months:0,weeks:0,days:0},s),i.largestUnit);return e==="since"&&(u=Kt(u)),u}function zi(e,t,n,r){let o=Bn(n),i=d(t,N),s=d(o,N);if(!ve(i,s))throw new RangeError(`cannot compute difference between months of ${i} and ${s} calendars`);let u=On(e,A(r),"date",["week","day"],"month","year"),l=Tt("%Temporal.Duration%");if(be(d(t,W),d(o,W))==0)return new l;let h=zt(i,d(t,W),"year-month");h.day=1;let f=qe(i,h,"constrain"),y=zt(i,d(o,W),"year-month");y.day=1;let v=qe(i,y,"constrain"),b={date:It(vr(i,f,v,u.largestUnit),0,0),time:st.ZERO};if(u.smallestUnit!=="month"||u.roundingIncrement!==1){let R=ot(f,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});b=ro(b,Et(ot(v,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),R,null,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode)}let I=ae(b,"day");return e==="since"&&(I=Kt(I)),I}function Fi(e,t,n,r){let o=Pn(n),i=d(t,N),s=d(o,N);if(!ve(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=On(e,A(r),"datetime",[],"nanosecond","hour"),l=d(t,q),h=d(o,q),f=Tt("%Temporal.Duration%"),y;if(Ce(u.largestUnit)!=="date")y=ae(li(l,h,u.roundingIncrement,u.smallestUnit,u.roundingMode),u.largestUnit);else{let v=d(t,at);if(!$a(v,d(o,at)))throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");if(D.default.equal(l,h))return new f;y=ae(Za(l,h,v,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode),"hour")}return e==="since"&&(y=Kt(y)),y}function Dn({hour:e,minute:t,second:n,millisecond:r,microsecond:o,nanosecond:i},s){let u=n,l=i;return u+=s.sec,l+=s.subsec,Pe(e,t,u,r,o,l)}function $o(e,t){let n=t.addToEpochNs(e);return we(n),n}function An(e,t,n,r,o="constrain"){if(to(r.date)===0)return $o(e,r.time);let i=ue(t,e);return $o(Ct(t,ot(ne(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function Zi(e,t,n){let r=se(n);e==="subtract"&&(r=Kt(r));let o=Se(Ie(t),Ie(r));if(ge(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");let i=pe(t),s=pe(r);return ae($e({years:0,months:0,weeks:0,days:0},i.time.add(s.time)),o)}function qi(e,t,n){let r=se(n);e==="subtract"&&(r=Kt(r));let o=Ie(r);if(Ce(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);let i=pe(r);return he($o(d(t,q),i.time))}function Wi(e,t,n,r){let o=d(t,N),i=se(n);e==="subtract"&&(i=Kt(i));let s=Pa(i),u=nt(A(r));return At(ne(o,d(t,W),s,u),o)}function Gi(e,t,n,r){let o=se(n);e==="subtract"&&(o=Kt(o));let i=nt(A(r)),s=d(t,N),u=pe(o),l=d(t,ct),h=Dn(l.time,u.time),f=It(u.date,h.deltaDays);return no(f.years,f.months,f.weeks,f.days,0,0,0,0,0,0),ie(ot(ne(s,l.isoDate,f,i),h),s)}function Ji(e,t,n){let r=se(n);e==="subtract"&&(r=Kt(r));let o=pe(r),{hour:i,minute:s,second:u,millisecond:l,microsecond:h,nanosecond:f}=Dn(d(t,ft),o.time);return ke(Hr(i,s,u,l,h,f,"reject"))}function Vi(e,t,n,r){let o=se(n);e==="subtract"&&(o=Kt(o));let i=nt(A(r)),s=Br(o),u=d(t,N),l=zt(u,d(t,W),"year-month");l.day=1;let h=qe(u,l,"constrain");if(s<0){let y=ne(u,h,{months:1},"constrain");h=Xt(y.year,y.month,y.day-1)}let f=Pa(o);return un(h),yn(Xn(u,zt(u,ne(u,h,f,i),"year-month"),i),u)}function Xi(e,t,n,r){let o=se(n);e==="subtract"&&(o=Kt(o));let i=nt(A(r)),s=d(t,at),u=d(t,N),l=mn(o);return Mt(An(d(t,q),s,u,l,i),s,u)}function Ue(e,t,n){let r=Math.trunc(e/t),o=e%t,i=e<0?"negative":"positive",s=Math.abs(r),u=s+1,l=Jt(Math.abs(2*o)-t),h=s%2==0,f=Gr(n,i),y=o===0?s:Jr(s,u,l,h,f);return t*(i==="positive"?y:-y)}function Ro(e,t,n,r){let o=bn[n]*t;return function(i,s,u){let l=Me(i),h=Me(s),f=D.default.divide(l,h),y=D.default.remainder(l,h),v=Gr(u,"positive"),b,I;D.default.lessThan(l,te)?(b=D.default.subtract(f,Gn),I=f):(b=f,I=D.default.add(f,Gn));let R=Sr(Ve(D.default.multiply(y,ri)),h)*(D.default.lessThan(l,te)?-1:1)+0,$=D.default.equal(y,te)?f:Jr(b,I,R,ta(b),v);return D.default.multiply($,h)}(e,D.default.BigInt(o),r)}function Yo(e,t,n,r){So(e);let{year:o,month:i,day:s}=e.isoDate,u=Lo(e.time,t,n,r);return ot(Xt(o,i,s+u.deltaDays),u)}function Lo({hour:e,minute:t,second:n,millisecond:r,microsecond:o,nanosecond:i},s,u,l){let h;switch(u){case"day":case"hour":h=1e3*(1e3*(1e3*(60*(60*e+t)+n)+r)+o)+i;break;case"minute":h=1e3*(1e3*(1e3*(60*t+n)+r)+o)+i;break;case"second":h=1e3*(1e3*(1e3*n+r)+o)+i;break;case"millisecond":h=1e3*(1e3*r+o)+i;break;case"microsecond":h=1e3*o+i;break;case"nanosecond":h=i}let f=bn[u],y=Ue(h,f*s,l)/f;switch(u){case"day":return{deltaDays:y,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return Pe(y,0,0,0,0,0);case"minute":return Pe(e,y,0,0,0,0);case"second":return Pe(e,t,y,0,0,0);case"millisecond":return Pe(e,t,n,y,0,0);case"microsecond":return Pe(e,t,n,r,y,0);case"nanosecond":return Pe(e,t,n,r,o,y);default:throw new Error(`Invalid unit ${u}`)}}function Pr(e,t,n,r){let o=bn[n];return e.round(D.default.BigInt(o*t),r)}function Wn(e,t){let n=bn[t];return e.fdiv(D.default.BigInt(n))}function be(e,t){return e.year!==t.year?Jt(e.year-t.year):e.month!==t.month?Jt(e.month-t.month):e.day!==t.day?Jt(e.day-t.day):0}function No(e,t){return e.hour!==t.hour?Jt(e.hour-t.hour):e.minute!==t.minute?Jt(e.minute-t.minute):e.second!==t.second?Jt(e.second-t.second):e.millisecond!==t.millisecond?Jt(e.millisecond-t.millisecond):e.microsecond!==t.microsecond?Jt(e.microsecond-t.microsecond):e.nanosecond!==t.nanosecond?Jt(e.nanosecond-t.nanosecond):0}function En(e,t){let n=be(e.isoDate,t.isoDate);return n!==0?n:No(e.time,t.time)}function qa(e){let t=Ar(e);return globalThis.BigInt!==void 0?globalThis.BigInt(t.toString(10)):t}function ce(e,t){let n=Me(e),{quotient:r,remainder:o}=Yn(n,hr),i=D.default.toNumber(r);return t==="floor"&&D.default.toNumber(o)<0&&(i-=1),t==="ceil"&&D.default.toNumber(o)>0&&(i+=1),i}function le(e){if(!Number.isInteger(e))throw new RangeError("epoch milliseconds must be an integer");return D.default.multiply(D.default.BigInt(e),hr)}function Ar(e){let t=e;if(typeof e=="object"){let n=e[Symbol.toPrimitive];n&&typeof n=="function"&&(t=n.call(e,"number"))}if(typeof t=="number")throw new TypeError("cannot convert number to bigint");return typeof t=="bigint"?D.default.BigInt(t.toString(10)):D.default.BigInt(t)}var jo=(()=>{let e=D.default.BigInt(Date.now()%1e6);return()=>{let t=Date.now(),n=D.default.BigInt(t),r=D.default.add(le(t),e);return e=D.default.remainder(n,hr),D.default.greaterThan(r,vn)?vn:D.default.lessThan(r,Jn)?Jn:r}})();function $n(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function Jt(e){return e<0?-1:e>0?1:e}function A(e){if(e===void 0)return Object.create(null);if(gt(e)&&e!==null)return e;throw new TypeError("Options parameter must be an object, not "+(e===null?"null":typeof e))}function rn(e,t){let n=Object.create(null);return n[e]=t,n}function Re(e,t,n,r){let o=e[t];if(o!==void 0){if(o=Xr(o),!n.includes(o))throw new RangeError(`${t} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===Le)throw new RangeError(`${t} option is required`);return r}function Zt(e){let t=tr(e);if(!Ts.includes(tr(t)))throw new RangeError(`invalid calendar identifier ${t}`);switch(t){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return t}function tr(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return t}function Je(e){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${e==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${e}.compare(obj1, obj2)`}, not obj1 > obj2. When coercing to strings, use \`\${obj}\` or String(obj), not '' + obj. When coercing to numbers, use properties or methods of the object, not \`+obj\`. When concatenating with strings, use \`\${str}\${obj}\` or str.concat(obj), not str + obj. In React, coerce to a string before rendering a Temporal object.`)}var $s=new RegExp(`^${fa.source}$`),Rs=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Wa(e,t,n,r=e(t),o=e(n)){let i=t,s=n,u=r,l=o;for(;s-i>1;){let h=Math.trunc((i+s)/2),f=e(h);f===u?(i=h,u=f):f===l&&(s=h,l=f)}return s}function Ga(e){return[...e]}function Ja(e,t){if(e!=="gregory"&&e!=="iso8601")return;let n=Er[e],r=t.year,{dayOfWeek:o,dayOfYear:i,daysInYear:s}=n.isoToDate(t,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),u=n.getFirstDayOfWeek(),l=n.getMinimalDaysInFirstWeek(),h=(o+7-u)%7,f=(o-i+7001-u)%7,y=Math.floor((i-1+f)/7);if(7-f>=l&&++y,y==0)y=function(v,b,I,R){let $=(R-v-I+1)%7;$<0&&($+=7);let x=Math.floor((I+$-1)/7);return 7-$>=b&&++x,x}(u,l,i+n.isoToDate(n.dateAdd(t,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=s-5){let v=(h+s-i)%7;v<0&&(v+=7),6-v>=l&&i+7-h>s&&(y=1,r++)}return{week:y,year:r}}function Ki(e,t,n,r,o){if(t!==o.year){if(e*(t-o.year)>0)return!0}else if(n!==o.month){if(e*(n-o.month)>0)return!0}else if(r!==o.day&&e*(r-o.day)>0)return!0;return!1}var Er={};function on(e){if(!e.startsWith("M"))throw new RangeError(`Invalid month code: ${e}. Month codes must start with M.`);let t=+e.slice(1);if(Number.isNaN(t))throw new RangeError(`Invalid month code: ${e}`);return t}function _e(e,t=!1){return`M${`${e}`.padStart(2,"0")}${t?"L":""}`}function mi(e,t=void 0,n=12){let{month:r,monthCode:o}=e;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");t==="reject"&&vt(r,1,n),t==="constrain"&&(r=Pt(r,1,n)),o=_e(r)}else{let i=on(o);if(o!==_e(i))throw new RangeError(`Invalid month code: ${o}`);if(r!==void 0&&r!==i)throw new RangeError(`monthCode ${o} and month ${r} must match if both are present`);if(r=i,r<1||r>n)throw new RangeError(`Invalid monthCode: ${o}`)}return{...e,month:r,monthCode:o}}Er.iso8601={resolveFields(e,t){if((t==="date"||t==="year-month")&&e.year===void 0)throw new TypeError("year is required");if((t==="date"||t==="month-day")&&e.day===void 0)throw new TypeError("day is required");Object.assign(e,mi(e))},dateToISO:(e,t)=>Zn(e.year,e.month,e.day,t),monthDayToISOReferenceDate(e,t){let{month:n,day:r}=Zn(e.year??1972,e.month,e.day,t);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(e){let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];t.add(r),r==="month"?t.add("monthCode"):r==="monthCode"&&t.add("month")}return Ga(t)},dateAdd(e,{years:t=0,months:n=0,weeks:r=0,days:o=0},i){let{year:s,month:u,day:l}=e;return s+=t,u+=n,{year:s,month:u}=Xe(s,u),{year:s,month:u,day:l}=Zn(s,u,l,i),l+=o+7*r,Xt(s,u,l)},dateUntil(e,t,n){let r=-be(e,t);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,s=0;if(n==="year"||n==="month"){let f=t.year-e.year;for(f!==0&&(f-=r);!Ki(r,e.year+f,e.month,e.day,t);)i=f,f+=r;let y=r;for(o=Xe(e.year+i,e.month+y);!Ki(r,o.year,o.month,e.day,t);)s=y,y+=r,o=Xe(o.year,o.month+r);n==="month"&&(s+=12*i,i=0)}o=Xe(e.year+i,e.month+s);let u=Ba(o.year,o.month,e.day),l=0,h=nn(t.year,t.month-1,t.day)-nn(u.year,u.month-1,u.day);return n==="week"&&(l=Math.trunc(h/7),h%=7),{years:i,months:s,weeks:l,days:h}},isoToDate({year:e,month:t,day:n},r){let o={era:void 0,eraYear:void 0,year:e,month:t,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=_e(t)),r.dayOfWeek){let i=t+(t<3?10:-2),s=e-(t<3?1:0),u=Math.floor(s/100),l=s-100*u,h=(n+Math.floor(2.6*i-.2)+(l+Math.floor(l/4))+(Math.floor(u/4)-2*u))%7;o.dayOfWeek=h+(h<=0?7:0)}if(r.dayOfYear){let i=n;for(let s=t-1;s>0;s--)i+=He(e,s);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=Ja("iso8601",{year:e,month:t,day:n})),r.daysInMonth&&(o.daysInMonth=He(e,t)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=xr(e),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};var Ht=class e{constructor(t){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,t!==void 0){let n=0;for(let r of t.map.entries()){if(++n>e.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(t){let n=this.map.get(t);return n&&(this.hits++,this.report()),this.calls++,n}set(t,n){this.map.set(t,n),this.misses++,this.report()}report(){}setObject(t){if(e.objectMap.get(t))throw new RangeError("object already cached");e.objectMap.set(t,this),this.report()}static getCacheForObject(t){let n=e.objectMap.get(t);return n||(n=new e,e.objectMap.set(t,n)),n}};function Va({isoYear:e,isoMonth:t,isoDay:n}){return`${Dr(e)}-${re(t)}-${re(n)}T00:00Z`}function go(e,t){return{years:e.year-t.year,months:e.month-t.month,days:e.day-t.day}}Ht.objectMap=new WeakMap,Ht.MAX_CACHE_ENTRIES=1e3;var Ne=class{constructor(){this.eras=[],this.hasEra=!1,this.erasBeginMidYear=!1}getFormatter(){return this.formatter===void 0&&(this.formatter=new Intl.DateTimeFormat(`en-US-u-ca-${this.id}`,{day:"numeric",month:"numeric",year:"numeric",era:"short",timeZone:"UTC"})),this.formatter}getCalendarParts(t){let n=this.getFormatter(),r=new Date(t);if(t==="-271821-04-19T00:00Z"){let o=n.resolvedOptions();n=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return n.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${t}`)}}isoToCalendarDate(t,n){let{year:r,month:o,day:i}=t,s=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),u=n.get(s);if(u)return u;let l=Va({isoYear:r,isoMonth:o,isoDay:i}),h=this.getCalendarParts(l),f={};for(let v=0;v<h.length;v++){let{type:b,value:I}=h[v];if(b!=="year"&&b!=="relatedYear"||(this.hasEra?f.eraYear=+I:f.year=+I),b==="month"){let R=/^([0-9]*)(.*?)$/.exec(I);if(!R||R.length!=3||!R[1]&&!R[2])throw new RangeError(`Unexpected month: ${I}`);if(f.month=R[1]?+R[1]:1,f.month<1)throw new RangeError(`Invalid month ${I} from ${l}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(f.month>13)throw new RangeError(`Invalid month ${I} from ${l}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);R[2]&&(f.monthExtra=R[2])}b==="day"&&(f.day=+I),this.hasEra&&b==="era"&&I!=null&&I!==""&&(f.era=I.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&f.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){let v=this.eras.find(b=>f.era===b.genericName);v&&(f.era=v.code)}if(this.reviseIntlEra){let{era:v,eraYear:b}=this.reviseIntlEra(f,t);f.era=v,f.eraYear=b}this.checkIcuBugs&&this.checkIcuBugs(t);let y=this.adjustCalendarDate(f,n,"constrain",!0);if(y.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(t)}`);if(y.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(t)}`);if(y.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(t)}`);return n.set(s,y),["constrain","reject"].forEach(v=>{let b=JSON.stringify({func:"calendarToIsoDate",year:y.year,month:y.month,day:y.day,overflow:v,id:this.id});n.set(b,t)}),y}validateCalendarDate(t){let{month:n,year:r,day:o,eraYear:i,monthCode:s,monthExtra:u}=t;if(u!==void 0)throw new RangeError("Unexpected `monthExtra` value");if(r===void 0&&i===void 0)throw new TypeError("year or eraYear is required");if(n===void 0&&s===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(s!==void 0){if(typeof s!="string")throw new RangeError("monthCode must be a string, not "+typeof s);if(!/^M([01]?\d)(L?)$/.test(s))throw new RangeError(`Invalid monthCode: ${s}`)}if(this.hasEra&&t.era===void 0!=(t.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(t,n=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=t;this.validateCalendarDate(i);let s=this.monthsInYear(i,n),{month:u,monthCode:l}=i;return{month:u,monthCode:l}=mi(i,r,s),{...i,month:u,monthCode:l}}regulateMonthDayNaive(t,n,r){let o=this.monthsInYear(t,r),{month:i,day:s}=t;return n==="reject"?(vt(i,1,o),vt(s,1,this.maximumMonthLength(t))):(i=Pt(i,1,o),s=Pt(s,1,this.maximumMonthLength({...t,month:i}))),{...t,month:i,day:s}}calendarToIsoDate(t,n="constrain",r){let o=t,i=this.adjustCalendarDate(t,r,n,!1);i=this.regulateMonthDayNaive(i,n,r);let{year:s,month:u,day:l}=i,h=JSON.stringify({func:"calendarToIsoDate",year:s,month:u,day:l,overflow:n,id:this.id}),f,y=r.get(h);if(y||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(f=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:n,id:this.id}),y=r.get(f),y))return y;let v=this.estimateIsoDate({year:s,month:u,day:l}),b=z=>{let F=this.addDaysIso(v,z);if(i.day>this.minimumMonthLength(i)){let H=this.isoToCalendarDate(F,r);for(;H.month!==u||H.year!==s;){if(n==="reject")throw new RangeError(`day ${l} does not exist in month ${u} of year ${s}`);F=this.addDaysIso(F,-1),H=this.isoToCalendarDate(F,r)}}return F},I=0,R=this.isoToCalendarDate(v,r),$=go(i,R);if($.years!==0||$.months!==0||$.days!==0){let z=365*$.years+30*$.months+$.days;v=this.addDaysIso(v,z),R=this.isoToCalendarDate(v,r),$=go(i,R),$.years===0&&$.months===0?v=b($.days):I=this.compareCalendarDates(i,R)}let x=8;for(;I;){v=this.addDaysIso(v,I*x);let z=R;R=this.isoToCalendarDate(v,r);let F=I;if(I=this.compareCalendarDates(i,R),I){if($=go(i,R),$.years===0&&$.months===0)v=b($.days),I=0;else if(F&&I!==F)if(x>1)x/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(R,z)>0&&(v=this.addDaysIso(v,-1)),I=0}}}if(r.set(h,v),f&&r.set(f,v),i.year===void 0||i.month===void 0||i.day===void 0||i.monthCode===void 0||this.hasEra&&(i.era===void 0||i.eraYear===void 0))throw new RangeError("Unexpected missing property");return v}compareCalendarDates(t,n){return t.year!==n.year?Jt(t.year-n.year):t.month!==n.month?Jt(t.month-n.month):t.day!==n.day?Jt(t.day-n.day):0}regulateDate(t,n="constrain",r){let o=this.calendarToIsoDate(t,n,r);return this.isoToCalendarDate(o,r)}addDaysIso(t,n){return Xt(t.year,t.month,t.day+n)}addDaysCalendar(t,n,r){let o=this.calendarToIsoDate(t,"constrain",r),i=this.addDaysIso(o,n);return this.isoToCalendarDate(i,r)}addMonthsCalendar(t,n,r,o){let i=t,{day:s}=i;for(let u=0,l=Math.abs(n);u<l;u++){let{month:h}=i,f=i,y=n<0?-Math.max(s,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),v=this.calendarToIsoDate(i,"constrain",o),b=this.addDaysIso(v,y);if(i=this.isoToCalendarDate(b,o),n>0){let I=this.monthsInYear(f,o);for(;i.month-1!=h%I;)b=this.addDaysIso(b,-1),i=this.isoToCalendarDate(b,o)}i.day!==s&&(i=this.regulateDate({...i,day:s},"constrain",o))}if(r==="reject"&&i.day!==s)throw new RangeError(`Day ${s} does not exist in resulting calendar month`);return i}addCalendar(t,{years:n=0,months:r=0,weeks:o=0,days:i=0},s,u){let{year:l,day:h,monthCode:f}=t,y=this.adjustCalendarDate({year:l+n,monthCode:f,day:h},u),v=this.addMonthsCalendar(y,r,s,u),b=i+7*o;return this.addDaysCalendar(v,b,u)}untilCalendar(t,n,r,o){let i=0,s=0,u=0,l=0;switch(r){case"day":i=this.calendarDaysUntil(t,n,o);break;case"week":{let h=this.calendarDaysUntil(t,n,o);i=h%7,s=(h-i)/7;break}case"month":case"year":{let h=this.compareCalendarDates(n,t);if(!h)return{years:0,months:0,weeks:0,days:0};let f=n.year-t.year,y=n.day-t.day;if(r==="year"&&f){let I=0;n.monthCode>t.monthCode&&(I=1),n.monthCode<t.monthCode&&(I=-1),I||(I=Math.sign(y)),l=I*h<0?f-h:f}let v,b=l?this.addCalendar(t,{years:l},"constrain",o):t;do u+=h,v=b,b=this.addMonthsCalendar(v,h,"constrain",o),b.day!==t.day&&(b=this.regulateDate({...b,day:t.day},"constrain",o));while(this.compareCalendarDates(n,b)*h>=0);u-=h,i=this.calendarDaysUntil(v,n,o);break}}return{years:l,months:u,weeks:s,days:i}}daysInMonth(t,n){let{day:r}=t,o=this.maximumMonthLength(t),i=this.minimumMonthLength(t);if(i===o)return i;let s=r<=o-i?o:i,u=this.calendarToIsoDate(t,"constrain",n),l=this.addDaysIso(u,s),h=this.isoToCalendarDate(l,n),f=this.addDaysIso(l,-h.day);return this.isoToCalendarDate(f,n).day}daysInPreviousMonth(t,n){let{day:r,month:o,year:i}=t,s={year:o>1?i:i-1,month:o,day:1},u=o>1?o-1:this.monthsInYear(s,n);s={...s,month:u};let l=this.minimumMonthLength(s),h=this.maximumMonthLength(s);if(l===h)return h;let f=this.calendarToIsoDate(t,"constrain",n),y=this.addDaysIso(f,-r);return this.isoToCalendarDate(y,n).day}startOfCalendarYear(t){return{year:t.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(t){return{year:t.year,month:t.month,day:1}}calendarDaysUntil(t,n,r){let o=this.calendarToIsoDate(t,"constrain",r),i=this.calendarToIsoDate(n,"constrain",r);return nn(i.year,i.month-1,i.day)-nn(o.year,o.month-1,o.day)}monthDaySearchStartYear(t,n){return 1972}monthDayFromFields(t,n,r){let o,i,s,u,l,{era:h,eraYear:f,year:y,month:v,monthCode:b,day:I}=t;if(v!==void 0&&y===void 0&&(!this.hasEra||h===void 0||f===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(b===void 0||y!==void 0||this.hasEra&&f!==void 0)&&({monthCode:b,day:I}=this.isoToCalendarDate(this.calendarToIsoDate(t,n,r),r));let R={year:this.monthDaySearchStartYear(b,I),month:12,day:31},$=this.isoToCalendarDate(R,r),x=$.monthCode>b||$.monthCode===b&&$.day>=I?$.year:$.year-1;for(let z=0;z<20;z++){let F=this.adjustCalendarDate({day:I,monthCode:b,year:x-z},r),H=this.calendarToIsoDate(F,"constrain",r),X=this.isoToCalendarDate(H,r);if({year:o,month:i,day:s}=H,X.monthCode===b&&X.day===I)return{month:i,day:s,year:o};if(n==="constrain"){let et=this.maxLengthOfMonthCodeInAnyYear(X.monthCode);if(X.monthCode===b&&X.day===et&&I>et)return{month:i,day:s,year:o};(u===void 0||X.monthCode===u.monthCode&&X.day>u.day)&&(u=X,l=H)}}if(n==="constrain"&&l!==void 0)return l;throw new RangeError(`No recent ${this.id} year with monthCode ${b} and day ${I}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}},xo=class extends Ne{constructor(){super(...arguments),this.id="hebrew",this.calendarType="lunisolar",this.months={Tishri:{leap:1,regular:1,monthCode:"M01",days:30},Heshvan:{leap:2,regular:2,monthCode:"M02",days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:"M03",days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:"M04",days:29},Shevat:{leap:5,regular:5,monthCode:"M05",days:30},Adar:{leap:void 0,regular:6,monthCode:"M06",days:29},"Adar I":{leap:6,regular:void 0,monthCode:"M05L",days:30},"Adar II":{leap:7,regular:void 0,monthCode:"M06",days:29},Nisan:{leap:8,regular:7,monthCode:"M07",days:30},Iyar:{leap:9,regular:8,monthCode:"M08",days:29},Sivan:{leap:10,regular:9,monthCode:"M09",days:30},Tamuz:{leap:11,regular:10,monthCode:"M10",days:29},Av:{leap:12,regular:11,monthCode:"M11",days:30},Elul:{leap:13,regular:12,monthCode:"M12",days:29}}}inLeapYear(t){let{year:n}=t;return(7*n+1)%19<7}monthsInYear(t){return this.inLeapYear(t)?13:12}minimumMonthLength(t){return this.minMaxMonthLength(t,"min")}maximumMonthLength(t){return this.minMaxMonthLength(t,"max")}minMaxMonthLength(t,n){let{month:r,year:o}=t,i=this.getMonthCode(o,r),s=Object.entries(this.months).find(l=>l[1].monthCode===i);if(s===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);let u=s[1].days;return typeof u=="number"?u:u[n]}maxLengthOfMonthCodeInAnyYear(t){return["M04","M06","M08","M10","M12"].includes(t)?29:30}estimateIsoDate(t){let{year:n}=t;return{year:n-3760,month:1,day:1}}getMonthCode(t,n){return this.inLeapYear({year:t})?n===6?_e(5,!0):_e(n<6?n:n-1):_e(n)}adjustCalendarDate(t,n,r="constrain",o=!1){let{year:i,month:s,monthCode:u,day:l,monthExtra:h}=t;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(h){let f=this.months[h];if(!f)throw new RangeError(`Unrecognized month from formatToParts: ${h}`);s=this.inLeapYear({year:i})?f.leap:f.regular}return u=this.getMonthCode(i,s),{year:i,month:s,day:l,monthCode:u}}if(this.validateCalendarDate(t),s===void 0)if(u.endsWith("L")){if(u!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${u}`);if(s=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);s=6,u="M06"}}else{s=on(u),this.inLeapYear({year:i})&&s>=6&&s++;let f=this.monthsInYear({year:i});if(s<1||s>f)throw new RangeError(`Invalid monthCode: ${u}`)}else if(r==="reject"?(vt(s,1,this.monthsInYear({year:i})),vt(l,1,this.maximumMonthLength({year:i,month:s}))):(s=Pt(s,1,this.monthsInYear({year:i})),l=Pt(l,1,this.maximumMonthLength({year:i,month:s}))),u===void 0)u=this.getMonthCode(i,s);else if(this.getMonthCode(i,s)!==u)throw new RangeError(`monthCode ${u} doesn't correspond to month ${s} in Hebrew year ${i}`);return{...t,day:l,month:s,monthCode:u,year:i}}},We=class extends Ne{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(t,n){let r={year:t.year,month:1,monthCode:"M01",day:1},o={year:t.year+1,month:1,monthCode:"M01",day:1};return this.calendarDaysUntil(r,o,n)===355}monthsInYear(){return 12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(){return 30}estimateIsoDate(t){let{year:n}=this.adjustCalendarDate(t);return{year:Math.floor(n*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}},Bo=class extends We{constructor(){super(...arguments),this.id="islamic"}},Po=class extends We{constructor(){super(...arguments),this.id="islamic-umalqura"}},Ao=class extends We{constructor(){super(...arguments),this.id="islamic-tbla"}},Uo=class extends We{constructor(){super(...arguments),this.id="islamic-civil"}},zo=class extends We{constructor(){super(...arguments),this.id="islamic-rgsa"}},Fo=class extends We{constructor(){super(...arguments),this.id="islamicc"}},Zo=class extends Ne{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(t,n){return this.daysInMonth({year:t.year,month:12,day:1},n)===30}monthsInYear(){return 12}minimumMonthLength(t){let{month:n}=t;return n===12?29:n<=6?31:30}maximumMonthLength(t){let{month:n}=t;return n===12?30:n<=6?31:30}maxLengthOfMonthCodeInAnyYear(t){return on(t)<=6?31:30}estimateIsoDate(t){let{year:n}=this.adjustCalendarDate(t);return{year:n+621,month:1,day:1}}},qo=class extends Ne{constructor(){super(...arguments),this.id="indian",this.calendarType="solar",this.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},this.vulnerableToBceBug=new Date("0000-01-01T00:00Z").toLocaleDateString("en-US-u-ca-indian",{timeZone:"UTC"})!=="10/11/-79 Saka"}inLeapYear(t){return fi(t.year+78)}monthsInYear(){return 12}minimumMonthLength(t){return this.getMonthInfo(t).length}maximumMonthLength(t){return this.getMonthInfo(t).length}maxLengthOfMonthCodeInAnyYear(t){let n=on(t),r=this.months[n];return r=r.leap??r,r.length}getMonthInfo(t){let{month:n}=t,r=this.months[n];if(r===void 0)throw new RangeError(`Invalid month: ${n}`);return this.inLeapYear(t)&&r.leap&&(r=r.leap),r}estimateIsoDate(t){let n=this.adjustCalendarDate(t),r=this.getMonthInfo(n);return Xt(n.year+78+(r.nextYear?1:0),r.month,r.day+n.day-1)}checkIcuBugs(t){if(this.vulnerableToBceBug&&t.year<1)throw new RangeError(`calendar '${this.id}' is broken for ISO dates before 0001-01-01 (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)`)}};function fi(e){return e%4==0&&(e%100!=0||e%400==0)}var Ur=class extends Ne{constructor(t,n){super(),this.calendarType="solar",this.id=t,this.isoEpoch=n}inLeapYear(t){let{year:n}=this.estimateIsoDate({month:1,day:1,year:t.year});return fi(n)}monthsInYear(){return 12}minimumMonthLength(t){let{month:n}=t;return n===2?this.inLeapYear(t)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(t){return this.minimumMonthLength(t)}maxLengthOfMonthCodeInAnyYear(t){return[31,29,31,30,31,30,31,31,30,31,30,31][on(t)-1]}estimateIsoDate(t){let n=this.adjustCalendarDate(t);return Zn(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}},zr=class extends Ne{constructor(t,n){super(),this.hasEra=!0,this.calendarType="solar",this.id=t;let{eras:r,anchorEra:o}=function(i){let s,u=i;if(u.length===0)throw new RangeError("Invalid era data: eras are required");if(u.length===1&&u[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(u.length===1&&!u[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(u.filter(h=>h.reverseOf!=null).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");u.forEach(h=>{if(h.isAnchor||!h.anchorEpoch&&!h.reverseOf){if(s)throw new RangeError("Invalid era data: cannot have multiple anchor eras");s=h,h.anchorEpoch={year:h.hasYearZero?0:1}}else if(!h.code)throw new RangeError("If era name is blank, it must be the anchor era")}),u=u.filter(h=>h.code),u.forEach(h=>{let{reverseOf:f}=h;if(f){let y=u.find(v=>v.code===f);if(y===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${f}`);h.reverseOf=y,h.anchorEpoch=y.anchorEpoch,h.isoEpoch=y.isoEpoch}h.anchorEpoch.month===void 0&&(h.anchorEpoch.month=1),h.anchorEpoch.day===void 0&&(h.anchorEpoch.day=1)}),u.sort((h,f)=>{if(h.reverseOf)return 1;if(f.reverseOf)return-1;if(!h.isoEpoch||!f.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return f.isoEpoch.year-h.isoEpoch.year});let l=u[u.length-1].reverseOf;if(l&&l!==u[u.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return u.forEach((h,f)=>{h.genericName="era"+(u.length-1-f)}),{eras:u,anchorEra:s||u[0]}}(n);this.anchorEra=o,this.eras=r}inLeapYear(t){let{year:n}=this.estimateIsoDate({month:1,day:1,year:t.year});return fi(n)}monthsInYear(){return 12}minimumMonthLength(t){let{month:n}=t;return n===2?this.inLeapYear(t)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(t){return this.minimumMonthLength(t)}maxLengthOfMonthCodeInAnyYear(t){return[31,29,31,30,31,30,31,31,30,31,30,31][on(t)-1]}completeEraYear(t){let n=(u,l,h)=>{let f=t[u];if(f!=null&&f!=l&&!(h||[]).includes(f)){let y=h?.[0];throw new RangeError(`Input ${u} ${f} doesn't match calculated value ${y?`${l} (also called ${y})`:l}`)}},r=u=>{let l,h={...t,year:u},f=this.eras.find((y,v)=>{if(v===this.eras.length-1){if(y.reverseOf){if(u>0)throw new RangeError(`Signed year ${u} is invalid for era ${y.code}`);return l=y.anchorEpoch.year-u,!0}return l=u-y.anchorEpoch.year+(y.hasYearZero?0:1),!0}return this.compareCalendarDates(h,y.anchorEpoch)>=0&&(l=u-y.anchorEpoch.year+(y.hasYearZero?0:1),!0)});if(!f)throw new RangeError(`Year ${u} was not matched by any era`);return{eraYear:l,era:f.code,eraNames:f.names}},{year:o,eraYear:i,era:s}=t;if(o!=null){let u=r(o);({eraYear:i,era:s}=u),n("era",s,u?.eraNames),n("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(s===void 0)throw new RangeError("era and eraYear must be provided together");let u=this.eras.find(({code:l,names:h=[]})=>l===s||h.includes(s));if(!u)throw new RangeError(`Era ${s} (ISO year ${i}) was not matched by any era`);o=u.reverseOf?u.anchorEpoch.year-i:i+u.anchorEpoch.year-(u.hasYearZero?0:1),n("year",o),{eraYear:i,era:s}=r(o)}}return{...t,year:o,eraYear:i,era:s}}adjustCalendarDate(t,n,r="constrain"){let o=t,{month:i,monthCode:s}=o;return i===void 0&&(o={...o,month:on(s)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(t){let n=this.adjustCalendarDate(t),{year:r,month:o,day:i}=n,{anchorEra:s}=this;return Zn(r+s.isoEpoch.year-(s.hasYearZero?0:1),o,i,"constrain")}},er=class extends zr{constructor(t,n){super(t,n)}isoToCalendarDate(t){let{year:n,month:r,day:o}=t,i=_e(r),s=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:s,month:r,monthCode:i,day:o})}},ye={inLeapYear(e){let{year:t}=e;return(t+1)%4==0},monthsInYear:()=>13,minimumMonthLength(e){let{month:t}=e;return t===13?this.inLeapYear(e)?6:5:30},maximumMonthLength(e){return this.minimumMonthLength(e)},maxLengthOfMonthCodeInAnyYear:e=>e==="M13"?6:30},Wo=class extends Ur{constructor(t,n){super(t,n),this.inLeapYear=ye.inLeapYear,this.monthsInYear=ye.monthsInYear,this.minimumMonthLength=ye.minimumMonthLength,this.maximumMonthLength=ye.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=ye.maxLengthOfMonthCodeInAnyYear}},Fr=class extends zr{constructor(t,n){super(t,n),this.inLeapYear=ye.inLeapYear,this.monthsInYear=ye.monthsInYear,this.minimumMonthLength=ye.minimumMonthLength,this.maximumMonthLength=ye.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=ye.maxLengthOfMonthCodeInAnyYear}},Go=class extends Wo{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}},Jo=class extends Fr{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}},Vo=class extends Fr{constructor(){super("ethiopic",[{code:"ethioaa",names:["ethiopic-amete-alem","mundi"],isoEpoch:{year:-5492,month:7,day:17}},{code:"ethiopic",names:["incar"],isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}},Xo=class extends er{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}},Ko=class extends Ur{constructor(){super("buddhist",{year:-543,month:1,day:1})}},Ho=class extends er{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(t){let{era:n,eraYear:r}=t;return n==="b"&&(n="gregory-inverse"),n==="a"&&(n="gregory"),{era:n,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}},Qo=class extends er{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(t,n){let{era:r,eraYear:o}=t,{year:i}=n;return this.eras.find(s=>s.code===r)?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}},Zr=class extends Ne{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(t,n){let r=this.getMonthList(t.year,n);return Object.entries(r).length===13}monthsInYear(t,n){return this.inLeapYear(t,n)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(t){return["M01L","M09L","M10L","M11L","M12L"].includes(t)?29:30}monthDaySearchStartYear(t,n){let r={M01L:[1651,1651],M02L:[1947,1765],M03L:[1966,1955],M04L:[1963,1944],M05L:[1971,1952],M06L:[1960,1941],M07L:[1968,1938],M08L:[1957,1718],M09L:[1832,1832],M10L:[1870,1870],M11L:[1814,1814],M12L:[1890,1890]}[t]??[1972,1972];return n<30?r[0]:r[1]}getMonthList(t,n){if(t===void 0)throw new TypeError("Missing year");let r=JSON.stringify({func:"getMonthList",calendarYear:t,id:this.id}),o=n.get(r);if(o)return o;let i=this.getFormatter(),s=($,x)=>{let z=Va({isoYear:$,isoMonth:2,isoDay:1}),F=new Date(z);F.setUTCDate(x+1);let H=i.formatToParts(F),X=H.find(J=>J.type==="month").value,et=+H.find(J=>J.type==="day").value,pt=H.find(J=>J.type==="relatedYear"),dt;if(pt===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return dt=+pt.value,{calendarMonthString:X,calendarDay:et,calendarYearToVerify:dt}},u=17,{calendarMonthString:l,calendarDay:h,calendarYearToVerify:f}=s(t,u);l!=="1"&&(u+=29,{calendarMonthString:l,calendarDay:h}=s(t,u)),u-=h-5;let y={},v,b,I=1,R=!1;do({calendarMonthString:l,calendarDay:h,calendarYearToVerify:f}=s(t,u)),v&&(y[b].daysInMonth=v+30-h),f!==t?R=!0:(y[l]={monthIndex:I++},u+=30),v=h,b=l;while(!R);return y[b].daysInMonth=v+30-h,n.set(r,y),y}estimateIsoDate(t){let{year:n,month:r}=t;return{year:n,month:r>=12?12:r+1,day:1}}adjustCalendarDate(t,n,r="constrain",o=!1){let{year:i,month:s,monthExtra:u,day:l,monthCode:h}=t;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(u&&u!=="bis")throw new RangeError(`Unexpected leap month suffix: ${u}`);let f=_e(s,u!==void 0),y=`${s}${u||""}`,v=this.getMonthList(i,n)[y];if(v===void 0)throw new RangeError(`Unmatched month ${y} in Chinese year ${i}`);return s=v.monthIndex,{year:i,month:s,day:l,monthCode:f}}if(this.validateCalendarDate(t),s===void 0){let f=this.getMonthList(i,n),y=h.replace(/^M|L$/g,b=>b==="L"?"bis":"");y[0]==="0"&&(y=y.slice(1));let v=f[y];if(s=v&&v.monthIndex,s===void 0&&h.endsWith("L")&&h!="M13L"&&r==="constrain"){let b=+h.replace(/^M0?|L$/g,"");v=f[b],v&&(s=v.monthIndex,h=_e(b))}if(s===void 0)throw new RangeError(`Unmatched month ${h} in Chinese year ${i}`)}else if(h===void 0){let f=this.getMonthList(i,n),y=Object.entries(f),v=y.length;r==="reject"?(vt(s,1,v),vt(l,1,this.maximumMonthLength())):(s=Pt(s,1,v),l=Pt(l,1,this.maximumMonthLength()));let b=y.find(I=>I[1].monthIndex===s);if(b===void 0)throw new RangeError(`Invalid month ${s} in Chinese year ${i}`);h=_e(+b[0].replace("bis",""),b[0].indexOf("bis")!==-1)}else{let f=this.getMonthList(i,n),y=h.replace(/^M|L$/g,b=>b==="L"?"bis":"");y[0]==="0"&&(y=y.slice(1));let v=f[y];if(!v)throw new RangeError(`Unmatched monthCode ${h} in Chinese year ${i}`);if(s!==v.monthIndex)throw new RangeError(`monthCode ${h} doesn't correspond to month ${s} in Chinese year ${i}`)}return{...t,year:i,month:s,monthCode:h,day:l}}},ti=class extends Zr{constructor(){super(...arguments),this.id="chinese"}},ei=class extends Zr{constructor(){super(...arguments),this.id="dangi"}},ni=class{constructor(t){this.helper=t}extraFields(t){return this.helper.hasEra&&t.includes("year")?["era","eraYear"]:[]}resolveFields(t){if(this.helper.calendarType!=="lunisolar"){let n=new Ht;mi(t,void 0,this.helper.monthsInYear({year:t.year??1972},n))}}dateToISO(t,n){let r=new Ht,o=this.helper.calendarToIsoDate(t,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(t,n){let r=new Ht,o=this.helper.monthDayFromFields(t,n,r);return r.setObject(o),o}fieldKeysToIgnore(t){let n=new Set;for(let r=0;r<t.length;r++){let o=t[r];switch(n.add(o),o){case"era":n.add("eraYear"),n.add("year");break;case"eraYear":n.add("era"),n.add("year");break;case"year":n.add("era"),n.add("eraYear");break;case"month":n.add("monthCode"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"monthCode":n.add("month"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"day":this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"))}}return Ga(n)}dateAdd(t,{years:n,months:r,weeks:o,days:i},s){let u=Ht.getCacheForObject(t),l=this.helper.isoToCalendarDate(t,u),h=this.helper.addCalendar(l,{years:n,months:r,weeks:o,days:i},s,u),f=this.helper.calendarToIsoDate(h,"constrain",u);return Ht.getCacheForObject(f)||new Ht(u).setObject(f),f}dateUntil(t,n,r){let o=Ht.getCacheForObject(t),i=Ht.getCacheForObject(n),s=this.helper.isoToCalendarDate(t,o),u=this.helper.isoToCalendarDate(n,i);return this.helper.untilCalendar(s,u,r,o)}isoToDate(t,n){let r=Ht.getCacheForObject(t),o=this.helper.isoToCalendarDate(t,r);if(n.dayOfWeek&&(o.dayOfWeek=Er.iso8601.isoToDate(t,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){let i=this.helper.startOfCalendarYear(o),s=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=s+1}if(n.weekOfYear&&(o.weekOfYear=Ja(this.helper.id,t)),o.daysInWeek=7,n.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),n.daysInYear){let i=this.helper.startOfCalendarYear(o),s=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,s,r)}return n.monthsInYear&&(o.monthsInYear=this.helper.monthsInYear(o,r)),n.inLeapYear&&(o.inLeapYear=this.helper.inLeapYear(o,r)),o}getFirstDayOfWeek(){return this.helper.getFirstDayOfWeek()}getMinimalDaysInFirstWeek(){return this.helper.getMinimalDaysInFirstWeek()}};for(let e of[xo,Zo,Vo,Go,Jo,ti,ei,Xo,qo,Ko,Ho,Qo,Bo,Po,Ao,Uo,zo,Fo]){let t=new e;Er[t.id]=new ni(t)}Do("calendarImpl",function(e){return Er[e]});var nr=Intl.DateTimeFormat;function cn(e,t){let n=d(e,t);return typeof n=="function"&&(n=new nr(d(e,da),n(d(e,_o))),function(r,o,i){let s=Wr(r);if(s===void 0)throw new TypeError("Missing slots for the given container");if(s[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);s[o]=i}(e,t,n)),n}function Rn(e){return Ft(e,sn)}var an=class{constructor(t=void 0,n=void 0){(function(r,o,i){let s=i!==void 0,u;if(s){let y=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];u=function(b){if(b==null)throw new TypeError(`Expected object not ${b}`);return Object(b)}(i);let v=Object.create(null);for(let b=0;b<y.length;b++){let I=y[b];Object.prototype.hasOwnProperty.call(u,I)&&(v[I]=u[I])}u=v}else u=Object.create(null);let l=new nr(o,u),h=l.resolvedOptions();if(je(r),s){let y=Object.assign(Object.create(null),h);for(let v in y)Object.prototype.hasOwnProperty.call(u,v)||delete y[v];y.hour12=u.hour12,y.hourCycle=u.hourCycle,Q(r,_o,y)}else Q(r,_o,u);Q(r,da,h.locale),Q(r,sn,l),Q(r,ln,h.timeZone),Q(r,Ln,h.calendar),Q(r,oa,Us),Q(r,ia,Ps),Q(r,aa,As),Q(r,sa,Bs),Q(r,ua,zs),Q(r,ca,Fs);let f=s?u.timeZone:void 0;if(f===void 0)Q(r,po,h.timeZone);else{let y=Xr(f);if(y.startsWith("\u2212"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");Q(r,po,Ut(y))}})(this,t,n)}get format(){M(this,Rn);let t=Ls.bind(this);return Object.defineProperties(t,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),t}formatRange(t,n){return M(this,Rn),js.call(this,t,n)}formatToParts(t,...n){return M(this,Rn),Ns.call(this,t,...n)}formatRangeToParts(t,n){return M(this,Rn),xs.call(this,t,n)}resolvedOptions(){return M(this,Rn),Ys.call(this)}};"formatToParts"in nr.prototype||delete an.prototype.formatToParts,"formatRangeToParts"in nr.prototype||delete an.prototype.formatRangeToParts;var ee=function(e=void 0,t=void 0){return new an(e,t)};function Ys(){let e=d(this,sn).resolvedOptions();return e.timeZone=d(this,po),e}function Ls(e,...t){let n,r,o=Tn(e,this);return o.formatter?(n=o.formatter,r=[ce(o.epochNs,"floor")]):(n=d(this,sn),r=[e,...t]),n.format(...r)}function Ns(e,...t){let n,r,o=Tn(e,this);return o.formatter?(n=o.formatter,r=[ce(o.epochNs,"floor")]):(n=d(this,sn),r=[e,...t]),n.formatToParts(...r)}function js(e,t){if(e===void 0||t===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");let n=qr(e),r=qr(t),o,i=[n,r];if(Ye(n)!==Ye(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(Ye(n)){if(!Xa(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");let{epochNs:s,formatter:u}=Tn(n,this),{epochNs:l,formatter:h}=Tn(r,this);u&&(o=u,i=[ce(s,"floor"),ce(l,"floor")])}return o||(o=d(this,sn)),o.formatRange(...i)}function xs(e,t){if(e===void 0||t===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");let n=qr(e),r=qr(t),o,i=[n,r];if(Ye(n)!==Ye(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(Ye(n)){if(!Xa(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");let{epochNs:s,formatter:u}=Tn(n,this),{epochNs:l,formatter:h}=Tn(r,this);u&&(o=u,i=[ce(s,"floor"),ce(l,"floor")])}return o||(o=d(this,sn)),o.formatRangeToParts(...i)}function Tr(e={},t={}){let n=Object.assign({},e),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){let i=r[o];n[i]=i in t?t[i]:n[i],n[i]!==!1&&n[i]!==void 0||delete n[i]}return n}function Bs(e){let t=Tr(e,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(t.timeStyle!=="long"&&t.timeStyle!=="full"||(delete t.timeStyle,Object.assign(t,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!io(t)){if(Mr(e))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(e)}]`);Object.assign(t,{hour:"numeric",minute:"numeric",second:"numeric"})}return t}function Ps(e){let t={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},n=Tr(e,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){let r=n.dateStyle;delete n.dateStyle,Object.assign(n,t[r])}if(!("year"in n||"month"in n||"era"in n)){if(Mr(e))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(e)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function As(e){let t={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=Tr(e,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){let r=n.dateStyle;delete n.dateStyle,Object.assign(n,t[r])}if(!("month"in n)&&!("day"in n)){if(Mr(e))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(e)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function Us(e){let t=Tr(e,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!oo(t)){if(Mr(e))throw new TypeError(`cannot format PlainDate with options [${Object.keys(e)}]`);Object.assign(t,{year:"numeric",month:"numeric",day:"numeric"})}return t}function zs(e){let t=Tr(e,{timeZoneName:!1});if((t.timeStyle==="long"||t.timeStyle==="full")&&(delete t.timeStyle,Object.assign(t,{hour:"numeric",minute:"2-digit",second:"2-digit"}),t.dateStyle)&&(Object.assign(t,{short:{year:"numeric",month:"numeric",day:"numeric"},medium:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{year:"numeric",month:"long",day:"numeric",weekday:"long"}}[t.dateStyle]),delete t.dateStyle),!io(t)&&!oo(t)){if(Mr(e))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(e)}]`);Object.assign(t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return t}function Fs(e){let t=e;return io(t)||oo(t)||(t=Object.assign({},t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),t}function oo(e){return"year"in e||"month"in e||"day"in e||"weekday"in e||"dateStyle"in e||"era"in e}function io(e){return"hour"in e||"minute"in e||"second"in e||"timeStyle"in e||"dayPeriod"in e||"fractionalSecondDigits"in e}function Mr(e){return oo(e)||io(e)||"dateStyle"in e||"timeStyle"in e||"timeZoneName"in e}function Ye(e){return mt(e)||yt(e)||ut(e)||tt(e)||Dt(e)||Qt(e)||bt(e)}function qr(e){return Ye(e)?e:Vr(e)}function Xa(e,t){return!(!Ye(e)||!Ye(t)||yt(e)&&!yt(t)||mt(e)&&!mt(t)||ut(e)&&!ut(t)||tt(e)&&!tt(t)||Dt(e)&&!Dt(t)||Qt(e)&&!Qt(t)||bt(e)&&!bt(t))}function Tn(e,t){if(yt(e)){let n={isoDate:{year:1970,month:1,day:1},time:d(e,ft)};return{epochNs:Ct(d(t,ln),n,"compatible"),formatter:cn(t,sa)}}if(Dt(e)){let n=d(e,N),r=d(t,Ln);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);let o=ot(d(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ct(d(t,ln),o,"compatible"),formatter:cn(t,ia)}}if(Qt(e)){let n=d(e,N),r=d(t,Ln);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);let o=ot(d(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ct(d(t,ln),o,"compatible"),formatter:cn(t,aa)}}if(mt(e)){let n=d(e,N),r=d(t,Ln);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);let o=ot(d(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ct(d(t,ln),o,"compatible"),formatter:cn(t,oa)}}if(ut(e)){let n=d(e,N),r=d(t,Ln);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);let o=d(e,ct);return{epochNs:Ct(d(t,ln),o,"compatible"),formatter:cn(t,ua)}}if(tt(e))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return bt(e)?{epochNs:d(e,q),formatter:cn(t,ca)}:{}}function Ka(e){let t=Object.create(null);return t.years=d(e,$t),t.months=d(e,Rt),t.weeks=d(e,Wt),t.days=d(e,Yt),t.hours=d(e,Lt),t.minutes=d(e,Nt),t.seconds=d(e,jt),t.milliseconds=d(e,xt),t.microseconds=d(e,Bt),t.nanoseconds=d(e,Gt),t}an.prototype.constructor=ee,Object.defineProperty(ee,"prototype",{value:an.prototype,writable:!1,enumerable:!1,configurable:!1}),ee.supportedLocalesOf=nr.supportedLocalesOf,xe(ee,"Intl.DateTimeFormat");var{format:Zs,formatToParts:qs}=Intl.DurationFormat?.prototype??Object.create(null);function gi(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=Ka(se(e));return Zs.call(this,t)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=gi,Intl.DurationFormat.prototype.formatToParts=function(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=Ka(se(e));return qs.call(this,t)});var Vs=Object.freeze({__proto__:null,DateTimeFormat:ee,ModifiedIntlDurationFormatPrototypeFormat:gi}),rr=class{constructor(t){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Oa(this,Ar(t))}get epochMilliseconds(){return M(this,bt),ce(d(this,q),"floor")}get epochNanoseconds(){return M(this,bt),qa(D.default.BigInt(d(this,q)))}add(t){return M(this,bt),qi("add",this,t)}subtract(t){return M(this,bt),qi("subtract",this,t)}until(t,n=void 0){return M(this,bt),Bi("until",this,t,n)}since(t,n=void 0){return M(this,bt),Bi("since",this,t,n)}round(t){if(M(this,bt),t===void 0)throw new TypeError("options parameter is required");let n=typeof t=="string"?rn("smallestUnit",t):A(t),r=In(n),o=me(n,"halfExpand"),i=Vt(n,"smallestUnit","time",Le);return Cn(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),he(Ro(d(this,q),r,i,o))}equals(t){M(this,bt);let n=xn(t),r=d(this,q),o=d(n,q);return D.default.equal(D.default.BigInt(r),D.default.BigInt(o))}toString(t=void 0){M(this,bt);let n=A(t),r=gr(n),o=me(n,"trunc"),i=Vt(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let s=n.timeZone;s!==void 0&&(s=Ut(s));let{precision:u,unit:l,increment:h}=yr(i,r);return Oi(he(Ro(d(this,q),h,l,o)),s,u)}toJSON(){return M(this,bt),Oi(this,void 0,"auto")}toLocaleString(t=void 0,n=void 0){return M(this,bt),new ee(t,n).format(this)}valueOf(){Je("Instant")}toZonedDateTimeISO(t){M(this,bt);let n=Ut(t);return Mt(d(this,q),n,"iso8601")}static fromEpochMilliseconds(t){return he(le(Vr(t)))}static fromEpochNanoseconds(t){return he(Ar(t))}static from(t){return xn(t)}static compare(t,n){let r=xn(t),o=xn(n),i=d(r,q),s=d(o,q);return D.default.lessThan(i,s)?-1:D.default.greaterThan(i,s)?1:0}};xe(rr,"Temporal.Instant");var or=class{constructor(t,n,r,o="iso8601"){let i=V(t),s=V(n),u=V(r),l=Zt(o===void 0?"iso8601":_t(o));tn(i,s,u),Ta(this,{year:i,month:s,day:u},l)}get calendarId(){return M(this,mt),d(this,N)}get era(){return kt(this,"era")}get eraYear(){return kt(this,"eraYear")}get year(){return kt(this,"year")}get month(){return kt(this,"month")}get monthCode(){return kt(this,"monthCode")}get day(){return kt(this,"day")}get dayOfWeek(){return kt(this,"dayOfWeek")}get dayOfYear(){return kt(this,"dayOfYear")}get weekOfYear(){return kt(this,"weekOfYear")?.week}get yearOfWeek(){return kt(this,"weekOfYear")?.year}get daysInWeek(){return kt(this,"daysInWeek")}get daysInMonth(){return kt(this,"daysInMonth")}get daysInYear(){return kt(this,"daysInYear")}get monthsInYear(){return kt(this,"monthsInYear")}get inLeapYear(){return kt(this,"inLeapYear")}with(t,n=void 0){if(M(this,mt),!gt(t))throw new TypeError("invalid argument");Mn(t);let r=d(this,N),o=zt(r,d(this,W));return o=Qe(r,o,oe(r,t,["year","month","monthCode","day"],[],"partial")),At(qe(r,o,nt(A(n))),r)}withCalendar(t){M(this,mt);let n=wr(t);return At(d(this,W),n)}add(t,n=void 0){return M(this,mt),Wi("add",this,t,n)}subtract(t,n=void 0){return M(this,mt),Wi("subtract",this,t,n)}until(t,n=void 0){return M(this,mt),Pi("until",this,t,n)}since(t,n=void 0){return M(this,mt),Pi("since",this,t,n)}equals(t){M(this,mt);let n=Nn(t);return be(d(this,W),d(n,W))===0&&ve(d(this,N),d(n,N))}toString(t=void 0){return M(this,mt),Si(this,fr(A(t)))}toJSON(){return M(this,mt),Si(this)}toLocaleString(t=void 0,n=void 0){return M(this,mt),new ee(t,n).format(this)}valueOf(){Je("PlainDate")}toPlainDateTime(t=void 0){M(this,mt);let n=Ea(t);return ie(ot(d(this,W),n),d(this,N))}toZonedDateTime(t){let n,r;if(M(this,mt),gt(t)){let s=t.timeZone;s===void 0?n=Ut(t):(n=Ut(s),r=t.plainTime)}else n=Ut(t);let o=d(this,W),i;return r===void 0?i=Be(n,o):(r=Ae(r),i=Ct(n,ot(o,d(r,ft)),"compatible")),Mt(i,n,d(this,N))}toPlainYearMonth(){M(this,mt);let t=d(this,N);return yn(Xn(t,zt(t,d(this,W)),"constrain"),t)}toPlainMonthDay(){M(this,mt);let t=d(this,N);return gn(Nr(t,zt(t,d(this,W)),"constrain"),t)}static from(t,n=void 0){return Nn(t,n)}static compare(t,n){let r=Nn(t),o=Nn(n);return be(d(r,W),d(o,W))}};function kt(e,t){M(e,mt);let n=d(e,W);return pr(e).isoToDate(n,{[t]:!0})[t]}xe(or,"Temporal.PlainDate");var ir=class{constructor(t,n,r,o=0,i=0,s=0,u=0,l=0,h=0,f="iso8601"){let y=V(t),v=V(n),b=V(r),I=o===void 0?0:V(o),R=i===void 0?0:V(i),$=s===void 0?0:V(s),x=u===void 0?0:V(u),z=l===void 0?0:V(l),F=h===void 0?0:V(h),H=Zt(f===void 0?"iso8601":_t(f));ci(y,v,b,I,R,$,x,z,F),Ma(this,{isoDate:{year:y,month:v,day:b},time:{hour:I,minute:R,second:$,millisecond:x,microsecond:z,nanosecond:F}},H)}get calendarId(){return M(this,ut),d(this,N)}get year(){return Ot(this,"year")}get month(){return Ot(this,"month")}get monthCode(){return Ot(this,"monthCode")}get day(){return Ot(this,"day")}get hour(){return dn(this,"hour")}get minute(){return dn(this,"minute")}get second(){return dn(this,"second")}get millisecond(){return dn(this,"millisecond")}get microsecond(){return dn(this,"microsecond")}get nanosecond(){return dn(this,"nanosecond")}get era(){return Ot(this,"era")}get eraYear(){return Ot(this,"eraYear")}get dayOfWeek(){return Ot(this,"dayOfWeek")}get dayOfYear(){return Ot(this,"dayOfYear")}get weekOfYear(){return Ot(this,"weekOfYear")?.week}get yearOfWeek(){return Ot(this,"weekOfYear")?.year}get daysInWeek(){return Ot(this,"daysInWeek")}get daysInYear(){return Ot(this,"daysInYear")}get daysInMonth(){return Ot(this,"daysInMonth")}get monthsInYear(){return Ot(this,"monthsInYear")}get inLeapYear(){return Ot(this,"inLeapYear")}with(t,n=void 0){if(M(this,ut),!gt(t))throw new TypeError("invalid argument");Mn(t);let r=d(this,N),o=d(this,ct),i={...zt(r,o.isoDate),...o.time};return i=Qe(r,i,oe(r,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),ie(_r(r,i,nt(A(n))),r)}withPlainTime(t=void 0){M(this,ut);let n=Ea(t);return ie(ot(d(this,ct).isoDate,n),d(this,N))}withCalendar(t){M(this,ut);let n=wr(t);return ie(d(this,ct),n)}add(t,n=void 0){return M(this,ut),Gi("add",this,t,n)}subtract(t,n=void 0){return M(this,ut),Gi("subtract",this,t,n)}until(t,n=void 0){return M(this,ut),Ai("until",this,t,n)}since(t,n=void 0){return M(this,ut),Ai("since",this,t,n)}round(t){if(M(this,ut),t===void 0)throw new TypeError("options parameter is required");let n=typeof t=="string"?rn("smallestUnit",t):A(t),r=In(n),o=me(n,"halfExpand"),i=Vt(n,"smallestUnit","time",Le,["day"]),s={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];Cn(r,s,s===1);let u=d(this,ct);return ie(r===1&&i==="nanosecond"?u:Yo(u,r,i,o),d(this,N))}equals(t){M(this,ut);let n=jn(t);return En(d(this,ct),d(n,ct))===0&&ve(d(this,N),d(n,N))}toString(t=void 0){M(this,ut);let n=A(t),r=fr(n),o=gr(n),i=me(n,"trunc"),s=Vt(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let{precision:u,unit:l,increment:h}=yr(s,o),f=Yo(d(this,ct),h,l,i);return en(f),Hn(f,d(this,N),u,r)}toJSON(){return M(this,ut),Hn(d(this,ct),d(this,N),"auto")}toLocaleString(t=void 0,n=void 0){return M(this,ut),new ee(t,n).format(this)}valueOf(){Je("PlainDateTime")}toZonedDateTime(t,n=void 0){M(this,ut);let r=Ut(t),o=qn(A(n));return Mt(Ct(r,d(this,ct),o),r,d(this,N))}toPlainDate(){return M(this,ut),At(d(this,ct).isoDate,d(this,N))}toPlainTime(){return M(this,ut),ke(d(this,ct).time)}static from(t,n=void 0){return jn(t,n)}static compare(t,n){let r=jn(t),o=jn(n);return En(d(r,ct),d(o,ct))}};function Ot(e,t){M(e,ut);let n=d(e,ct).isoDate;return pr(e).isoToDate(n,{[t]:!0})[t]}function dn(e,t){return M(e,ut),d(e,ct).time[t]}xe(ir,"Temporal.PlainDateTime");var ar=class e{constructor(t=0,n=0,r=0,o=0,i=0,s=0,u=0,l=0,h=0,f=0){let y=t===void 0?0:de(t),v=n===void 0?0:de(n),b=r===void 0?0:de(r),I=o===void 0?0:de(o),R=i===void 0?0:de(i),$=s===void 0?0:de(s),x=u===void 0?0:de(u),z=l===void 0?0:de(l),F=h===void 0?0:de(h),H=f===void 0?0:de(f);no(y,v,b,I,R,$,x,z,F,H),je(this),Q(this,$t,y),Q(this,Rt,v),Q(this,Wt,b),Q(this,Yt,I),Q(this,Lt,R),Q(this,Nt,$),Q(this,jt,x),Q(this,xt,z),Q(this,Bt,F),Q(this,Gt,H)}get years(){return M(this,lt),d(this,$t)}get months(){return M(this,lt),d(this,Rt)}get weeks(){return M(this,lt),d(this,Wt)}get days(){return M(this,lt),d(this,Yt)}get hours(){return M(this,lt),d(this,Lt)}get minutes(){return M(this,lt),d(this,Nt)}get seconds(){return M(this,lt),d(this,jt)}get milliseconds(){return M(this,lt),d(this,xt)}get microseconds(){return M(this,lt),d(this,Bt)}get nanoseconds(){return M(this,lt),d(this,Gt)}get sign(){return M(this,lt),Br(this)}get blank(){return M(this,lt),Br(this)===0}with(t){M(this,lt);let n=Da(t),{years:r=d(this,$t),months:o=d(this,Rt),weeks:i=d(this,Wt),days:s=d(this,Yt),hours:u=d(this,Lt),minutes:l=d(this,Nt),seconds:h=d(this,jt),milliseconds:f=d(this,xt),microseconds:y=d(this,Bt),nanoseconds:v=d(this,Gt)}=n;return new e(r,o,i,s,u,l,h,f,y,v)}negated(){return M(this,lt),Kt(this)}abs(){return M(this,lt),new e(Math.abs(d(this,$t)),Math.abs(d(this,Rt)),Math.abs(d(this,Wt)),Math.abs(d(this,Yt)),Math.abs(d(this,Lt)),Math.abs(d(this,Nt)),Math.abs(d(this,jt)),Math.abs(d(this,xt)),Math.abs(d(this,Bt)),Math.abs(d(this,Gt)))}add(t){return M(this,lt),Zi("add",this,t)}subtract(t){return M(this,lt),Zi("subtract",this,t)}round(t){if(M(this,lt),t===void 0)throw new TypeError("options parameter is required");let n=Ie(this),r=typeof t=="string"?rn("smallestUnit",t):A(t),o=Vt(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:s}=fo(r),u=In(r),l=me(r,"halfExpand"),h=Vt(r,"smallestUnit","datetime",void 0),f=!0;h||(f=!1,h="nanosecond");let y=Se(n,h),v=!0;if(o||(v=!1,o=y),o==="auto"&&(o=y),!f&&!v)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Se(o,h)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${h}`);let b={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[h];if(b!==void 0&&Cn(u,b,!1),u>1&&Ce(h)==="date"&&o!==h)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(s){let R=mn(this),$=d(s,at),x=d(s,N),z=d(s,q);return R=Za(z,An(z,$,x,R),$,x,o,u,h,l),Ce(o)==="date"&&(o="hour"),ae(R,o)}if(i){let R=pe(this),$=Dn({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},R.time),x=d(i,W),z=d(i,N),F=ne(z,x,It(R.date,$.deltaDays),"constrain");return R=Fa(ot(x,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ot(F,$),z,o,u,h,l),ae(R,o)}if(ge(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(ge(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let I=pe(this);if(h==="day"){let{quotient:R,remainder:$}=I.time.divmod(Rr),x=I.date.days+R+Wn($,"day");x=Ue(x,u,l),I=$e({years:0,months:0,weeks:0,days:x},st.ZERO)}else I=$e({years:0,months:0,weeks:0,days:0},Pr(I.time,u,h,l));return ae(I,o)}total(t){if(M(this,lt),t===void 0)throw new TypeError("options argument is required");let n=typeof t=="string"?rn("unit",t):A(t),{plainRelativeTo:r,zonedRelativeTo:o}=fo(n),i=Vt(n,"unit","datetime",Le);if(o){let u=mn(this),l=d(o,at),h=d(o,N),f=d(o,q);return function(y,v,b,I,R){return Ce(R)==="time"?Wn(st.fromEpochNsDiff(v,y),R):xi(Ua(y,v,b,I,R),v,ue(b,y),b,I,R)}(f,An(f,l,h,u),l,h,i)}if(r){let u=pe(this),l=Dn({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},u.time),h=d(r,W),f=d(r,N),y=ne(f,h,It(u.date,l.deltaDays),"constrain");return function(v,b,I,R){if(En(v,b)==0)return 0;en(v),en(b);let $=Aa(v,b,I,R);return R==="nanosecond"?D.default.toNumber($.time.totalNs):xi($,Et(b),v,null,I,R)}(ot(h,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ot(y,l),f,i)}let s=Ie(this);if(ge(s))throw new RangeError(`a starting point is required for ${s}s total`);if(ge(i))throw new RangeError(`a starting point is required for ${i}s total`);return Wn(pe(this).time,i)}toString(t=void 0){M(this,lt);let n=A(t),r=gr(n),o=me(n,"trunc"),i=Vt(n,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');let{precision:s,unit:u,increment:l}=yr(i,r);if(u==="nanosecond"&&l===1)return kr(this,s);let h=Ie(this),f=mn(this),y=Pr(f.time,l,u,o);return f=$e(f.date,y),kr(ae(f,Se(h,"second")),s)}toJSON(){return M(this,lt),kr(this,"auto")}toLocaleString(t=void 0,n=void 0){if(M(this,lt),typeof Intl.DurationFormat=="function"){let r=new Intl.DurationFormat(t,n);return gi.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),kr(this,"auto")}valueOf(){Je("Duration")}static from(t){return se(t)}static compare(t,n,r=void 0){let o=se(t),i=se(n),s=A(r),{plainRelativeTo:u,zonedRelativeTo:l}=fo(s);if(d(o,$t)===d(i,$t)&&d(o,Rt)===d(i,Rt)&&d(o,Wt)===d(i,Wt)&&d(o,Yt)===d(i,Yt)&&d(o,Lt)===d(i,Lt)&&d(o,Nt)===d(i,Nt)&&d(o,jt)===d(i,jt)&&d(o,xt)===d(i,xt)&&d(o,Bt)===d(i,Bt)&&d(o,Gt)===d(i,Gt))return 0;let h=Ie(o),f=Ie(i),y=mn(o),v=mn(i);if(l&&(Ce(h)==="date"||Ce(f)==="date")){let x=d(l,at),z=d(l,N),F=d(l,q),H=An(F,x,z,y),X=An(F,x,z,v);return Jt(D.default.toNumber(D.default.subtract(H,X)))}let b=y.date.days,I=v.date.days;if(ge(h)||ge(f)){if(!u)throw new RangeError("A starting point is required for years, months, or weeks comparison");b=ji(y.date,u),I=ji(v.date,u)}let R=y.time.add24HourDays(b),$=v.time.add24HourDays(I);return R.cmp($)}};xe(ar,"Temporal.Duration");var sr=class{constructor(t,n,r="iso8601",o=1972){let i=V(t),s=V(n),u=Zt(r===void 0?"iso8601":_t(r)),l=V(o);tn(l,i,s),Ia(this,{year:l,month:i,day:s},u)}get monthCode(){return Hi(this,"monthCode")}get day(){return Hi(this,"day")}get calendarId(){return M(this,Qt),d(this,N)}with(t,n=void 0){if(M(this,Qt),!gt(t))throw new TypeError("invalid argument");Mn(t);let r=d(this,N),o=zt(r,d(this,W),"month-day");return o=Qe(r,o,oe(r,t,["year","month","monthCode","day"],[],"partial")),gn(Nr(r,o,nt(A(n))),r)}equals(t){M(this,Qt);let n=Ci(t);return be(d(this,W),d(n,W))===0&&ve(d(this,N),d(n,N))}toString(t=void 0){return M(this,Qt),Ri(this,fr(A(t)))}toJSON(){return M(this,Qt),Ri(this)}toLocaleString(t=void 0,n=void 0){return M(this,Qt),new ee(t,n).format(this)}valueOf(){Je("PlainMonthDay")}toPlainDate(t){if(M(this,Qt),!gt(t))throw new TypeError("argument should be an object");let n=d(this,N);return At(qe(n,Qe(n,zt(n,d(this,W),"month-day"),oe(n,t,["year"],[],[])),"constrain"),n)}static from(t,n=void 0){return Ci(t,n)}};function Hi(e,t){M(e,Qt);let n=d(e,W);return pr(e).isoToDate(n,{[t]:!0})[t]}function yo(e){return ue(e,jo())}xe(sr,"Temporal.PlainMonthDay");var Ha={instant:()=>he(jo()),plainDateTimeISO:(e=$n())=>ie(yo(Ut(e)),"iso8601"),plainDateISO:(e=$n())=>At(yo(Ut(e)).isoDate,"iso8601"),plainTimeISO:(e=$n())=>ke(yo(Ut(e)).time),timeZoneId:()=>$n(),zonedDateTimeISO:(e=$n())=>{let t=Ut(e);return Mt(jo(),t,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(Ha,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});var ur=class e{constructor(t=0,n=0,r=0,o=0,i=0,s=0){let u=t===void 0?0:V(t),l=n===void 0?0:V(n),h=r===void 0?0:V(r),f=o===void 0?0:V(o),y=i===void 0?0:V(i),v=s===void 0?0:V(s);eo(u,l,h,f,y,v),Ca(this,{hour:u,minute:l,second:h,millisecond:f,microsecond:y,nanosecond:v})}get hour(){return M(this,yt),d(this,ft).hour}get minute(){return M(this,yt),d(this,ft).minute}get second(){return M(this,yt),d(this,ft).second}get millisecond(){return M(this,yt),d(this,ft).millisecond}get microsecond(){return M(this,yt),d(this,ft).microsecond}get nanosecond(){return M(this,yt),d(this,ft).nanosecond}with(t,n=void 0){if(M(this,yt),!gt(t))throw new TypeError("invalid argument");Mn(t);let r=Io(t,"partial"),o=Io(this),{hour:i,minute:s,second:u,millisecond:l,microsecond:h,nanosecond:f}=Object.assign(o,r),y=nt(A(n));return{hour:i,minute:s,second:u,millisecond:l,microsecond:h,nanosecond:f}=Hr(i,s,u,l,h,f,y),new e(i,s,u,l,h,f)}add(t){return M(this,yt),Ji("add",this,t)}subtract(t){return M(this,yt),Ji("subtract",this,t)}until(t,n=void 0){return M(this,yt),Ui("until",this,t,n)}since(t,n=void 0){return M(this,yt),Ui("since",this,t,n)}round(t){if(M(this,yt),t===void 0)throw new TypeError("options parameter is required");let n=typeof t=="string"?rn("smallestUnit",t):A(t),r=In(n),o=me(n,"halfExpand"),i=Vt(n,"smallestUnit","time",Le);return Cn(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),ke(Lo(d(this,ft),r,i,o))}equals(t){M(this,yt);let n=Ae(t);return No(d(this,ft),d(n,ft))===0}toString(t=void 0){M(this,yt);let n=A(t),r=gr(n),o=me(n,"trunc"),i=Vt(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let{precision:s,unit:u,increment:l}=yr(i,r);return $i(Lo(d(this,ft),l,u,o),s)}toJSON(){return M(this,yt),$i(d(this,ft),"auto")}toLocaleString(t=void 0,n=void 0){return M(this,yt),new ee(t,n).format(this)}valueOf(){Je("PlainTime")}static from(t,n=void 0){return Ae(t,n)}static compare(t,n){let r=Ae(t),o=Ae(n);return No(d(r,ft),d(o,ft))}};xe(ur,"Temporal.PlainTime");var cr=class{constructor(t,n,r="iso8601",o=1){let i=V(t),s=V(n),u=Zt(r===void 0?"iso8601":_t(r)),l=V(o);tn(i,s,l),ka(this,{year:i,month:s,day:l},u)}get year(){return Te(this,"year")}get month(){return Te(this,"month")}get monthCode(){return Te(this,"monthCode")}get calendarId(){return M(this,Dt),d(this,N)}get era(){return Te(this,"era")}get eraYear(){return Te(this,"eraYear")}get daysInMonth(){return Te(this,"daysInMonth")}get daysInYear(){return Te(this,"daysInYear")}get monthsInYear(){return Te(this,"monthsInYear")}get inLeapYear(){return Te(this,"inLeapYear")}with(t,n=void 0){if(M(this,Dt),!gt(t))throw new TypeError("invalid argument");Mn(t);let r=d(this,N),o=zt(r,d(this,W),"year-month");return o=Qe(r,o,oe(r,t,["year","month","monthCode"],[],"partial")),yn(Xn(r,o,nt(A(n))),r)}add(t,n=void 0){return M(this,Dt),Vi("add",this,t,n)}subtract(t,n=void 0){return M(this,Dt),Vi("subtract",this,t,n)}until(t,n=void 0){return M(this,Dt),zi("until",this,t,n)}since(t,n=void 0){return M(this,Dt),zi("since",this,t,n)}equals(t){M(this,Dt);let n=Bn(t);return be(d(this,W),d(n,W))===0&&ve(d(this,N),d(n,N))}toString(t=void 0){return M(this,Dt),Yi(this,fr(A(t)))}toJSON(){return M(this,Dt),Yi(this)}toLocaleString(t=void 0,n=void 0){return M(this,Dt),new ee(t,n).format(this)}valueOf(){Je("PlainYearMonth")}toPlainDate(t){if(M(this,Dt),!gt(t))throw new TypeError("argument should be an object");let n=d(this,N);return At(qe(n,Qe(n,zt(n,d(this,W),"year-month"),oe(n,t,["day"],[],[])),"constrain"),n)}static from(t,n=void 0){return Bn(t,n)}static compare(t,n){let r=Bn(t),o=Bn(n);return be(d(r,W),d(o,W))}};function Te(e,t){M(e,Dt);let n=d(e,W);return pr(e).isoToDate(n,{[t]:!0})[t]}xe(cr,"Temporal.PlainYearMonth");var Ws=ee.prototype.resolvedOptions,dr=class{constructor(t,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");let o=Ar(t),i=_t(n),{tzName:s,offsetMinutes:u}=ze(i);if(u===void 0){let l=jr(s);if(!l)throw new RangeError(`unknown time zone ${s}`);i=l.identifier}else i=ai(u);Sa(this,o,i,Zt(r===void 0?"iso8601":_t(r)))}get calendarId(){return M(this,tt),d(this,N)}get timeZoneId(){return M(this,tt),d(this,at)}get year(){return St(this,"year")}get month(){return St(this,"month")}get monthCode(){return St(this,"monthCode")}get day(){return St(this,"day")}get hour(){return hn(this,"hour")}get minute(){return hn(this,"minute")}get second(){return hn(this,"second")}get millisecond(){return hn(this,"millisecond")}get microsecond(){return hn(this,"microsecond")}get nanosecond(){return hn(this,"nanosecond")}get era(){return St(this,"era")}get eraYear(){return St(this,"eraYear")}get epochMilliseconds(){return M(this,tt),ce(d(this,q),"floor")}get epochNanoseconds(){return M(this,tt),qa(d(this,q))}get dayOfWeek(){return St(this,"dayOfWeek")}get dayOfYear(){return St(this,"dayOfYear")}get weekOfYear(){return St(this,"weekOfYear")?.week}get yearOfWeek(){return St(this,"weekOfYear")?.year}get hoursInDay(){M(this,tt);let t=d(this,at),n=fe(this).isoDate,r=Xt(n.year,n.month,n.day+1),o=Be(t,n),i=Be(t,r);return Wn(st.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return St(this,"daysInWeek")}get daysInMonth(){return St(this,"daysInMonth")}get daysInYear(){return St(this,"daysInYear")}get monthsInYear(){return St(this,"monthsInYear")}get inLeapYear(){return St(this,"inLeapYear")}get offset(){return M(this,tt),Co(Oe(d(this,at),d(this,q)))}get offsetNanoseconds(){return M(this,tt),Oe(d(this,at),d(this,q))}with(t,n=void 0){if(M(this,tt),!gt(t))throw new TypeError("invalid zoned-date-time-like");Mn(t);let r=d(this,N),o=d(this,at),i=Oe(o,d(this,q)),s=fe(this),u={...zt(r,s.isoDate),...s.time,offset:Co(i)};u=Qe(r,u,oe(r,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));let l=A(n),h=qn(l),f=Or(l,"prefer"),y=_r(r,u,nt(l)),v=kn(u.offset);return Mt(Lr(y.isoDate,y.time,"option",v,o,h,f,!1),o,r)}withPlainTime(t=void 0){M(this,tt);let n=d(this,at),r=d(this,N),o=fe(this).isoDate,i;return i=t===void 0?Be(n,o):Ct(n,ot(o,d(Ae(t),ft)),"compatible"),Mt(i,n,r)}withTimeZone(t){M(this,tt);let n=Ut(t);return Mt(d(this,q),n,d(this,N))}withCalendar(t){M(this,tt);let n=wr(t);return Mt(d(this,q),d(this,at),n)}add(t,n=void 0){return M(this,tt),Xi("add",this,t,n)}subtract(t,n=void 0){return M(this,tt),Xi("subtract",this,t,n)}until(t,n=void 0){return M(this,tt),Fi("until",this,t,n)}since(t,n=void 0){return M(this,tt),Fi("since",this,t,n)}round(t){if(M(this,tt),t===void 0)throw new TypeError("options parameter is required");let n=typeof t=="string"?rn("smallestUnit",t):A(t),r=In(n),o=me(n,"halfExpand"),i=Vt(n,"smallestUnit","time",Le,["day"]),s={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(Cn(r,s,s===1),i==="nanosecond"&&r===1)return Mt(d(this,q),d(this,at),d(this,N));let u=d(this,at),l=d(this,q),h=fe(this),f;if(i==="day"){let y=h.isoDate,v=Xt(y.year,y.month,y.day+1),b=Be(u,y),I=Be(u,v),R=D.default.subtract(I,b);f=st.fromEpochNsDiff(l,b).round(R,o).addToEpochNs(b)}else{let y=Yo(h,r,i,o),v=Oe(u,l);f=Lr(y.isoDate,y.time,"option",v,u,"compatible","prefer",!1)}return Mt(f,u,d(this,N))}equals(t){M(this,tt);let n=Pn(t),r=d(this,q),o=d(n,q);return!!D.default.equal(D.default.BigInt(r),D.default.BigInt(o))&&!!$a(d(this,at),d(n,at))&&ve(d(this,N),d(n,N))}toString(t=void 0){M(this,tt);let n=A(t),r=fr(n),o=gr(n),i=function(v){return Re(v,"offset",["auto","never"],"auto")}(n),s=me(n,"trunc"),u=Vt(n,"smallestUnit","time",void 0);if(u==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let l=function(v){return Re(v,"timeZoneName",["auto","never","critical"],"auto")}(n),{precision:h,unit:f,increment:y}=yr(u,o);return Li(this,h,r,l,i,{unit:f,increment:y,roundingMode:s})}toLocaleString(t=void 0,n=void 0){M(this,tt);let r=A(n),o=Object.create(null);if(function(l,h,f,y){if(h==null)return;let v=Reflect.ownKeys(h);for(let b=0;b<v.length;b++){let I=v[b];if(!f.some(R=>Object.is(R,I))&&Object.prototype.propertyIsEnumerable.call(h,I)){let R=h[I];l[I]=R}}}(o,r,["timeZone"]),r.timeZone!==void 0)throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");if(o.year===void 0&&o.month===void 0&&o.day===void 0&&o.era===void 0&&o.weekday===void 0&&o.dateStyle===void 0&&o.hour===void 0&&o.minute===void 0&&o.second===void 0&&o.fractionalSecondDigits===void 0&&o.timeStyle===void 0&&o.dayPeriod===void 0&&o.timeZoneName===void 0&&(o.timeZoneName="short"),o.timeZone=d(this,at),Ni(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");let i=new ee(t,o),s=Ws.call(i).calendar,u=d(this,N);if(u!=="iso8601"&&s!=="iso8601"&&!ve(s,u))throw new RangeError(`cannot format ZonedDateTime with calendar ${u} in locale with calendar ${s}`);return i.format(he(d(this,q)))}toJSON(){return M(this,tt),Li(this,"auto")}valueOf(){Je("ZonedDateTime")}startOfDay(){M(this,tt);let t=d(this,at);return Mt(Be(t,fe(this).isoDate),t,d(this,N))}getTimeZoneTransition(t){M(this,tt);let n=d(this,at);if(t===void 0)throw new TypeError("options parameter is required");let r=Re(typeof t=="string"?rn("direction",t):A(t),"direction",["next","previous"],Le);if(r===void 0)throw new TypeError("direction option is required");if(Ni(n)||n==="UTC")return null;let o=d(this,q),i=r==="next"?ui(n,o):Oo(n,o);return i===null?null:Mt(i,n,d(this,N))}toInstant(){return M(this,tt),he(d(this,q))}toPlainDate(){return M(this,tt),At(fe(this).isoDate,d(this,N))}toPlainTime(){return M(this,tt),ke(fe(this).time)}toPlainDateTime(){return M(this,tt),ie(fe(this),d(this,N))}static from(t,n=void 0){return Pn(t,n)}static compare(t,n){let r=Pn(t),o=Pn(n),i=d(r,q),s=d(o,q);return D.default.lessThan(D.default.BigInt(i),D.default.BigInt(s))?-1:D.default.greaterThan(D.default.BigInt(i),D.default.BigInt(s))?1:0}};function fe(e){return ue(d(e,at),d(e,q))}function St(e,t){M(e,tt);let n=fe(e).isoDate;return pr(e).isoToDate(n,{[t]:!0})[t]}function hn(e,t){return M(e,tt),fe(e).time[t]}xe(dr,"Temporal.ZonedDateTime");var ao=Object.freeze({__proto__:null,Duration:ar,Instant:rr,Now:Ha,PlainDate:or,PlainDateTime:ir,PlainMonthDay:sr,PlainTime:ur,PlainYearMonth:cr,ZonedDateTime:dr}),Xs=class{toTemporalInstant(){return he(le(Date.prototype.valueOf.call(this)))}}.prototype.toTemporalInstant,Gs=[rr,or,ir,ar,sr,ur,cr,dr];for(let e of Gs){let t=Object.getOwnPropertyDescriptor(e,"prototype");(t.configurable||t.enumerable||t.writable)&&(t.configurable=!1,t.enumerable=!1,t.writable=!1,Object.defineProperty(e,"prototype",t))}var Ir=()=>{let{lang:e}=document.documentElement,t={iso639:"fr",bcp47:"fr-FR"};return e.includes("en")&&(t={iso639:"en",bcp47:"en-US"}),t},eu=Ir().bcp47,nu=Ir().iso639;window.FinsweetAttributes=window.FinsweetAttributes||[];window.FinsweetAttributes.push(["list",async e=>{console.log("LANGUAGE:",Ir()),console.log("FSList instances:",e);let t=ao.PlainDate.from("2023-10-02"),n=ao.PlainDate.from("2023-10-03");console.log("Date 1:",ao.PlainDate.compare(t,n))}]);})();
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@influence-society-web/yuna-frontend",
3
+ "version": "1.0.1",
4
+ "description": "An Influence Society site",
5
+ "homepage": "https://github.com/finsweet/client-influence-society#readme",
6
+ "license": "ISC",
7
+ "keywords": [],
8
+ "author": {
9
+ "name": "Finsweet",
10
+ "url": "https://www.finsweet.com/"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/finsweet/client-influence-society.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/finsweet/client-influence-society/issues"
18
+ },
19
+ "type": "module",
20
+ "main": "src/index.ts",
21
+ "module": "src/index.ts",
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "scripts": {
26
+ "dev": "cross-env NODE_ENV=development node ./bin/build.js",
27
+ "build": "cross-env NODE_ENV=production node ./bin/build.js",
28
+ "lint": "eslint --ignore-path .gitignore ./src && prettier --check ./src",
29
+ "check": "tsc --noEmit",
30
+ "format": "prettier --write ./src",
31
+ "test": "pnpm playwright test",
32
+ "test:headed": "pnpm playwright test --headed",
33
+ "update": "pnpm update -i -L"
34
+ },
35
+ "devDependencies": {
36
+ "@types/google.maps": "^3.58.0",
37
+ "@types/intl-tel-input": "^18.1.4"
38
+ },
39
+ "dependencies": {
40
+ "@easepick/bundle": "^1.2.1",
41
+ "@finsweet/attributes-cmsload": "^1.12.0",
42
+ "@googlemaps/js-api-loader": "^1.16.8",
43
+ "@js-temporal/polyfill": "^0.5.1",
44
+ "@vue/reactivity": "^3.5.14",
45
+ "flatpickr": "^4.6.13",
46
+ "intl-tel-input": "^19.2.15",
47
+ "js-loading-overlay": "^1.2.0",
48
+ "just-debounce": "^1.1.0",
49
+ "moment": "^2.30.1",
50
+ "moment-timezone": "^0.5.46"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ }
55
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ /* eslint-disable no-console */
2
+ window.Webflow ||= [];
3
+ window.Webflow.push(async () => {});