PageSourceSearch

https://test.softdeluxe.cz/app/chunk-M2NudE1L.js

js softdeluxe.cz collected 2026-09-24 14:58:47 UTC 163,322 bytes, 5 lines download raw bytes

1import{$ as El,Dr as QN,I as Cl,Jl as y,Ul as B,Ut as Jb,Wl as C,Ys as pN,os as kFe,ql as x}from"./chunk-C_7cTzh5.js";var D=C(B((mo,fo)=>{"use strict";(function(e,t){typeof mo==`object`&&typeof fo<`u`?fo.exports=t():typeof define==`function`&&define.amd?define(t):(e=e||self,e.JSBI=t())})(mo,function(){"use strict";var e=Math.imul,t=Math.clz32;function n(O,j){(j==null||j>O.length)&&(j=O.length);for(var Y=0,G=Array(j);Y<j;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,j,Y){return j=g(j),L(O,I()?Reflect.construct(j,Y||[],g(O).constructor):j.apply(O,Y))}function s(O,j){if(!(O instanceof j))throw new TypeError(`Cannot call a class as a function`)}function u(O,j,Y){if(I())return Reflect.construct.apply(null,arguments);var G=[null];G.push.apply(G,j);var m=new(O.bind.apply(O,G));return Y&&z(m,Y.prototype),m}function l(O,j){for(var Y,G=0;G<j.length;G++)Y=j[G],Y.enumerable=Y.enumerable||!1,Y.configurable=!0,`value`in Y&&(Y.writable=!0),Object.defineProperty(O,V(Y.key),Y)}function d(O,j,Y){return j&&l(O.prototype,j),Y&&l(O,Y),Object.defineProperty(O,"prototype",{writable:!1}),O}function f(O,j){var Y=typeof Symbol<`u`&&O[Symbol.iterator]||O[`@@iterator`];if(!Y){if(Array.isArray(O)||(Y=pt(O))||j&&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(y){throw y},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2In 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 y=Y.next();return a=y.done,y},e:function(y){c=!0,k=y},f:function(){try{a||Y.return==null||Y.return()}finally{if(c)throw k}}}}function g(O){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)},g(O)}function v(O,j){if(typeof j!=`function`&&j!==null)throw new TypeError(`Super expression must either be null or a function`);O.prototype=Object.create(j&&j.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),j&&z(O,j)}function b(O){try{return Function.toString.call(O).indexOf(`[native code]`)!==-1}catch(j){return typeof O==`function`}}function I(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(j){}return(I=function(){return!!O})()}function R(O,j){var Y=O==null?null:typeof Symbol<`u`&&O[Symbol.iterator]||O[`@@iterator`];if(Y!=null){var G,m,k,a,c=[],y=!0,p=!1;try{if(k=(Y=Y.call(O)).next,j===0){if(Object(Y)!==Y)return;y=!1}else for(;!(y=(G=k.call(Y)).done)&&(c.push(G.value),c.length!==j);y=!0);}catch(_){p=!0,m=_}finally{try{if(!y&&Y.return!=null&&(a=Y.return(),Object(a)!==a))return}finally{if(p)throw m}}return c}}function $(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L(O,j){if(j&&(typeof j==`object`||typeof j==`function`))return j;if(j!==void 0)throw new TypeError(`Derived constructors may only return object or undefined`);return o(O)}function z(O,j){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Y,G){return Y.__proto__=G,Y},z(O,j)}function F(O,j){return r(O)||R(O,j)||pt(O,j)||$()}function K(O,j){if(typeof O!=`object`||!O)return O;var Y=O[Symbol.toPrimitive];if(Y!==void 0){var G=Y.call(O,j||`default`);if(typeof G!=`object`)return G;throw new TypeError(`@@toPrimitive must return a primitive value.`)}return(j===`string`?String:Number)(O)}function V(O){var j=K(O,`string`);return typeof j==`symbol`?j:j+``}function et(O){"@babel/helpers - typeof";return et=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(j){return typeof j}:function(j){return j&&typeof Symbol==`function`&&j.constructor===Symbol&&j!==Symbol.prototype?`symbol`:typeof j},et(O)}function pt(O,j){if(O){if(typeof O==`string`)return n(O,j);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,j):void 0}}function ht(O){var j=typeof Map==`function`?new Map:void 0;return ht=function(Y){function G(){return u(Y,arguments,g(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(j!==void 0){if(j.has(Y))return j.get(Y);j.set(Y,G)}return G.prototype=Object.create(Y.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),z(G,Y)},ht(O)}var J=(function(O){var j=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),d(m,[{key:`toDebugString`,value:function(){var a,c=[`BigInt[`],y=f(this);try{for(y.s();!(a=y.n()).done;){var p=a.value;c.push((p&&(p>>>0).toString(16))+`, `)}}catch(_){y.e(_)}finally{y.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)==0?m.__toStringBasePowerOfTwo(this,a):m.__toStringGeneric(this,a,!1)}},{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,y){y>this.length&&(y=this.length);for(var p=32767&a,_=a>>>15,w=0,M=c,E=0;E<y;E++){var S=this.__digit(E),C=32767&S,B=S>>>15,U=m.__imul(C,p),P=m.__imul(C,_),x=m.__imul(B,p),Z=m.__imul(B,_),X=M+U+w;w=X>>>30,X&=1073741823,X+=((32767&P)<<15)+((32767&x)<<15),w+=X>>>30,M=Z+(P>>
3>15)+(x>>>15),this.__setDigit(E,1073741823&X)}if(w!==0||M!==0)throw new Error(`implementation bug`)}},{key:`__inplaceAdd`,value:function(a,c,y){for(var p,_=0,w=0;w<y;w++)p=this.__halfDigit(c+w)+a.__halfDigit(w)+_,_=p>>>15,this.__setHalfDigit(c+w,32767&p);return _}},{key:`__inplaceSub`,value:function(a,c,y){var p=y-1>>>1,_=0;if(1&c){c>>=1;for(var w=this.__digit(c),M=32767&w,E=0;E<p;E++){var S=a.__digit(E),C=(w>>>15)-(32767&S)-_;_=1&C>>>15,this.__setDigit(c+E,(32767&C)<<15|32767&M),w=this.__digit(c+E+1),M=(32767&w)-(S>>>15)-_,_=1&M>>>15}var B=a.__digit(E),U=(w>>>15)-(32767&B)-_;_=1&U>>>15,this.__setDigit(c+E,(32767&U)<<15|32767&M);var P=B>>>15;if(c+E+1>=this.length)throw new RangeError(`out of bounds`);!(1&y)&&(w=this.__digit(c+E+1),M=(32767&w)-P-_,_=1&M>>>15,this.__setDigit(c+a.length,1073709056&w|32767&M))}else{c>>=1;for(var x=0;x<a.length-1;x++){var Z=this.__digit(c+x),X=a.__digit(x),rt=(32767&Z)-(32767&X)-_;_=1&rt>>>15;var it=(Z>>>15)-(X>>>15)-_;_=1&it>>>15,this.__setDigit(c+x,(32767&it)<<15|32767&rt)}var dt=this.__digit(c+x),bt=a.__digit(x),Gt=(32767&dt)-(32767&bt)-_;_=1&Gt>>>15;var Te=0;!(1&y)&&(Te=(dt>>>15)-(bt>>>15)-_,_=1&Te>>>15),this.__setDigit(c+x,(32767&Te)<<15|32767&Gt)}return _}},{key:`__inplaceRightShift`,value:function(a){if(a!==0){for(var c,y=this.__digit(0)>>>a,p=this.length-1,_=0;_<p;_++)c=this.__digit(_+1),this.__setDigit(_,1073741823&c<<30-a|y),y=c>>>a;this.__setDigit(p,y)}}},{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 y=a>>>1,p=this.__digit(y),_=1&a?32767&p|c<<15:1073709056&p|32767&c;this.__setDigit(y,_)}}],[{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 y=m.__fromString(a);if(y===null)throw new SyntaxError(`Cannot convert `+a+` to a BigInt`);return y}if(typeof a==`boolean`)return a===!0?m.__oneDigit(1,!1):m.__zero();if(et(a)===`object`){if(a.constructor===m)return a;var p=m.__toPrimitive(a);return m.BigInt(p)}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 y=a.__unsignedDigit(0);return a.sign?-y:y}var p=a.__digit(c-1),_=m.__clz30(p),w=30*c-_;if(1024<w)return a.sign?-Infinity:Infinity;var M=w-1,E=p,S=c-1,C=_+3,B=C===32?0:E<<C;B>>>=12;var U=C-12,P=12<=C?0:E<<20+C,x=20+C;for(0<U&&0<S&&(S--,E=a.__digit(S),B|=E>>>30-U,P=E<<U+2,x=U+2);0<x&&0<S;)S--,E=a.__digit(S),P|=30<=x?E<<x-30:E>>>30-x,x-=30;var Z=m.__decideRounding(a,x,S,E);if((Z===1||Z===0&&(1&P)==1)&&(P=P+1>>>0,P===0&&(B++,B>>>20!=0&&(B=0,M++,1023<M))))return a.sign?-Infinity:Infinity;var X=a.sign?-2147483648:0;return M=M+1023<<20,m.__kBitConversionInts[m.__kBitConversionIntHigh]=X|M|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))==0?m.unaryMinus(a):a;if(1<c.length)throw new RangeError(`BigInt too big`);var y=c.__unsignedDigit(0);if(y===1)return a;if(y>=m.__kMaxLengthBits)throw new RangeError(`BigInt too big`);if(a.length===1&&a.__digit(0)===2){var p=1+(0|y/30),w=new m(p,a.sign&&(1&y)!=0);w.__initializeDigits();var M=1<<y%30;return w.__setDigit(p-1,M),w}var E=null,S=a;for(1&y&&(E=a),y>>=1;y!==0;y>>=1)S=m.multiply(S,S),1&y&&(E===null?E=S:E=m.multiply(E,S));return E}},{key:`multiply`,value:function(a,c){if(a.length===0)return a;
3if(c.length===0)return c;var y=a.length+c.length;30<=a.__clzmsd()+c.__clzmsd()&&y--;var p=new m(y,a.sign!==c.sign);p.__initializeDigits();for(var _=0;_<a.length;_++)m.__multiplyAccumulate(c,a.__digit(_),p,_);return p.__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 y,p=a.sign!==c.sign,_=c.__unsignedDigit(0);if(c.length===1&&32767>=_){if(_===1)return p===a.sign?a:m.unaryMinus(a);y=m.__absoluteDivSmall(a,_,null)}else y=m.__absoluteDivLarge(a,c,!0,!1);return y.sign=p,y.__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 y=c.__unsignedDigit(0);if(c.length===1&&32767>=y){if(y===1)return m.__zero();var p=m.__absoluteModSmall(a,y);return p===0?m.__zero():m.__oneDigit(p,a.sign)}var _=m.__absoluteDivLarge(a,c,!1,!0);return _.sign=a.sign,_.__trim()}},{key:`add`,value:function(a,c){var y=a.sign;return y===c.sign?m.__absoluteAdd(a,c,y):0<=m.__absoluteCompare(a,c)?m.__absoluteSub(a,c,y):m.__absoluteSub(c,a,!y)}},{key:`subtract`,value:function(a,c){var y=a.sign;return y===c.sign?0<=m.__absoluteCompare(a,c)?m.__absoluteSub(a,c,y):m.__absoluteSub(c,a,!y):m.__absoluteAdd(a,c,y)}},{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 y=0;y<a.length;y++)if(a.__digit(y)!==c.__digit(y))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 y=Y(a.length,c.length)+1,p=m.__absoluteSubOne(a,y),_=m.__absoluteSubOne(c);return p=m.__absoluteOr(p,_,p),m.__absoluteAddOne(p,!0,p).__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 y=Y(a.length,c.length),p=m.__absoluteSubOne(a,y),_=m.__absoluteSubOne(c);return m.__absoluteXor(p,_,p).__trim()}var w=Y(a.length,c.length)+1;if(a.sign){var M=[c,a];a=M[0],c=M[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 y=Y(a.length,c.length);if(!a.sign&&!c.sign)return m.__absoluteOr(a,c).__trim();if(a.sign&&c.sign){var p=m.__absoluteSubOne(a,y),_=m.__absoluteSubOne(c);return p=m.__absoluteAnd(p,_,p),m.__absoluteAddOne(p,!0,p).__trim()}if(a.sign){var w=[c,a];a=w[0],c=w[1]}var M=m.__absoluteSubOne(c,y);return M=m.__absoluteAndNot(M,a,M),m.__absoluteAddOne(M,!0,M).__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 y=0|(a+29)/30;if(c.length<y)return c;var p=c.__unsignedDigit(y-1),_=1<<(a-1)%30;if(c.length===y&&p<_)return c;if(!((p&_)===_))return m.__truncateToNBits(a,c);if(!c.sign)return m.__truncateAndSubFromPowerOfTwo(a,c,!0);if((p&_-1)==0){for(var M=y-2;0<=M;
3M--)if(c.__digit(M)!==0)return m.__truncateAndSubFromPowerOfTwo(a,c,!1);return c.length===y&&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 y=0|(a+29)/30;if(c.length<y)return c;var p=a%30;if(c.length==y){if(p===0)return c;if(!(c.__digit(y-1)>>>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 y=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return m.asIntN(64,m.DataViewGetBigUint64(a,c,y))}},{key:`DataViewGetBigUint64`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0&&arguments[2],_=F(y?[4,0]:[0,4],2),w=_[0],M=_[1],E=a.getUint32(c+w,y),S=a.getUint32(c+M,y),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,y){var p=3<arguments.length&&arguments[3]!==void 0&&arguments[3];m.DataViewSetBigUint64(a,c,y,p)}},{key:`DataViewSetBigUint64`,value:function(a,c,y){var p=3<arguments.length&&arguments[3]!==void 0&&arguments[3];y=m.asUintN(64,y);var _=0,w=0;if(0<y.length&&(w=y.__digit(0),1<y.length)){var M=y.__digit(1);w|=M<<30,_=M>>>2,2<y.length&&(_|=y.__digit(2)<<28)}var S=F(p?[4,0]:[0,4],2),C=S[0],B=S[1];a.setUint32(c+C,_,p),a.setUint32(c+B,w,p)}},{key:`__zero`,value:function(){return new m(0,!1)}},{key:`__oneDigit`,value:function(a,c){var y=new m(1,c);return y.__setDigit(0,a),y}},{key:`__decideRounding`,value:function(a,c,y,p){if(0<c)return-1;var _;if(0>c)_=-c-1;else{if(y===0)return-1;y--,p=a.__digit(y),_=29}var w=1<<_;if((p&w)==0)return-1;if(w-=1,(p&w)!=0)return 1;for(;0<y;)if(y--,a.__digit(y)!==0)return 1;return 0}},{key:`__fromDouble`,value:function(a){var c=0>a;m.__kBitConversionDouble[0]=a;var y,_=(2047&m.__kBitConversionInts[m.__kBitConversionIntHigh]>>>20)-1023,w=(0|_/30)+1,M=new m(w,c),S=1048575&m.__kBitConversionInts[m.__kBitConversionIntHigh]|1048576,C=m.__kBitConversionInts[m.__kBitConversionIntLow],B=20,U=_%30,P=0;if(U<B){var x=B-U;P=x+32,y=S>>>x,S=S<<32-x|C>>>x,C<<=32-x}else if(U===B)P=32,y=S,S=C,C=0;else{var Z=U-B;P=32-Z,y=S<<Z|C>>>32-Z,S=C<<Z,C=0}M.__setDigit(w-1,y);for(var X=w-2;0<=X;X--)0<P?(P-=30,y=S>>>2,S=S<<30|C>>>2,C<<=30):y=0,M.__setDigit(X,y);return M.__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,y=0,p=a.length,_=0;if(_===p)return m.__zero();
3for(var w=a.charCodeAt(_);m.__isWhitespace(w);){if(++_===p)return m.__zero();w=a.charCodeAt(_)}if(w===43){if(++_===p)return null;w=a.charCodeAt(_),y=1}else if(w===45){if(++_===p)return null;w=a.charCodeAt(_),y=-1}if(c===0){if(c=10,w===48){if(++_===p)return m.__zero();if(w=a.charCodeAt(_),w===88||w===120){if(c=16,++_===p)return null;w=a.charCodeAt(_)}else if(w===79||w===111){if(c=8,++_===p)return null;w=a.charCodeAt(_)}else if(w===66||w===98){if(c=2,++_===p)return null;w=a.charCodeAt(_)}}}else if(c===16&&w===48){if(++_===p)return m.__zero();if(w=a.charCodeAt(_),w===88||w===120){if(++_===p)return null;w=a.charCodeAt(_)}}if(y!==0&&c!==10)return null;for(;w===48;){if(++_===p)return m.__zero();w=a.charCodeAt(_)}var M=p-_,E=m.__kMaxBitsPerChar[c],S=m.__kBitsPerCharTableMultiplier-1;if(M>1073741824/E)return null;var U=new m(0|((E*M+S>>>m.__kBitsPerCharTableShift)+29)/30,!1),P=10>c?c:10,x=10<c?c-10:0;if((c&c-1)==0){E>>=m.__kBitsPerCharTableShift;var Z=[],X=[],rt=!1;do{for(var it,dt=0,bt=0;;){if(it=void 0,w-48>>>0<P)it=w-48;else if((32|w)-97>>>0<x)it=(32|w)-87;else{rt=!0;break}if(bt+=E,dt=dt<<E|it,++_===p){rt=!0;break}if(w=a.charCodeAt(_),30<bt+E)break}Z.push(dt),X.push(bt)}while(!rt);m.__fillFromParts(U,Z,X)}else{U.__initializeDigits();var Gt=!1,Te=0;do{for(var Sr,co=0,ho=1;;){if(Sr=void 0,w-48>>>0<P)Sr=w-48;else if((32|w)-97>>>0<x)Sr=(32|w)-87;else{Gt=!0;break}var vi=ho*c;if(1073741823<vi)break;if(ho=vi,co=co*c+Sr,Te++,++_===p){Gt=!0;break}w=a.charCodeAt(_)}S=30*m.__kBitsPerCharTableMultiplier-1;var is=0|(E*Te+S>>>m.__kBitsPerCharTableShift)/30;U.__inplaceMultiplyAdd(ho,co,is)}while(!Gt)}if(_!==p){if(!m.__isWhitespace(w))return null;for(_++;_<p;_++)if(w=a.charCodeAt(_),!m.__isWhitespace(w))return null}return U.sign=y===-1,U.__trim()}},{key:`__fillFromParts`,value:function(a,c,y){for(var p=0,_=0,w=0,M=c.length-1;0<=M;M--){var E=c[M],S=y[M];_|=E<<w,w+=S,w===30?(a.__setDigit(p++,_),w=0,_=0):30<w&&(a.__setDigit(p++,1073741823&_),w-=30,_=E>>>S-w)}if(_!==0){if(p>=a.length)throw new Error(`implementation bug`);a.__setDigit(p++,_)}for(;p<a.length;p++)a.__setDigit(p,0)}},{key:`__toStringBasePowerOfTwo`,value:function(a,c){var y=a.length,p=c-1;p=(85&p>>>1)+(85&p),p=(51&p>>>2)+(51&p),p=(15&p>>>4)+(15&p);var _=p,w=c-1,M=a.__digit(y-1),E=m.__clz30(M),C=0|(30*y-E+_-1)/_;if(a.sign&&C++,268435456<C)throw new Error(`string too long`);for(var B=Array(C),U=C-1,P=0,x=0,Z=0;Z<y-1;Z++){var X=a.__digit(Z),rt=(P|X<<x)&w;B[U--]=m.__kConversionChars[rt];var it=_-x;for(P=X>>>it,x=30-it;x>=_;)B[U--]=m.__kConversionChars[P&w],P>>>=_,x-=_}var dt=(P|M<<x)&w;for(B[U--]=m.__kConversionChars[dt],P=M>>>_-x;P!==0;)B[U--]=m.__kConversionChars[P&w],P>>>=_;if(a.sign&&(B[U--]=`-`),U!==-1)throw new Error(`implementation bug`);return B.join(``)}},{key:`__toStringGeneric`,value:function(a,c,y){var p=a.length;if(p===0)return``;if(p===1){var _=a.__unsignedDigit(0).toString(c);return y===!1&&a.sign&&(_=`-`+_),_}var w=30*p-m.__clz30(a.__digit(p-1)),E=m.__kMaxBitsPerChar[c]-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)),x=P.__unsignedDigit(0);if(P.length===1&&32767>=x){C=new m(a.length,!1),C.__initializeDigits();for(var Z,X=0,rt=2*a.length-1;0<=rt;rt--)Z=X<<15|a.__halfDigit(rt),C.__setHalfDigit(rt,0|Z/x),X=0|Z%x;B=X.toString(c)}else{var it=m.__absoluteDivLarge(a,P,!0,!0);C=it.quotient;var dt=it.remainder.__trim();B=m.__toStringGeneric(dt,c,!0)}C.__trim();for(var bt=m.__toStringGeneric(C,c,!0);B.length<U;)B=`0`+B;return y===!1&&a.sign&&(bt=`-`+bt),bt+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 y=a.sign;if(y!==c.sign)return m.__unequalSign(y);var p=m.__absoluteCompare(a,c);return 0<p?m.__absoluteGreater(y):0>p?m.__absoluteLess(y):0}},{key:`__compareToNumber`,value:function(a,c){if(m.__isOneDigitInt(c)){var y=a.sign,p=0>c;if(y!==p)return m.__unequalSign(y);if(a.length===0){if(p)throw new Error(`implementation bug`);return c===0?0:-1}if(1<a.length)return m.__absoluteGreater(y);var _=j(c),w=a.__unsignedDigit(0);return w>_?m.__absoluteGreater(y):w<_?m.__absoluteLess(y):0}return m.__compareToDouble(a,c)}},{key:`__compareToDouble`,value:function(a,c){if(c!==c)return c;if(c===Infinity)return-1;if(c===-Infinity)return 1;var y=a.sign;if(y!==0>c)return m.__unequalSign(y);if(c===0)throw new Error(`implementation bug: should be handled elsewhere`);if(a.length===0)return-1;m.__kBitConversionDouble[0]=c;var _=2047&m.__kBitConversionInts[m.__kBitConversionIntHigh]>>>20;if(_==2047)throw new Error(`implementation bug: handled elsewhere`);var w=_-1023;if(0>w)return m.__absoluteGreater(y);var M=a.length,E=a.__digit(M-1),S=m.__clz30(E),C=30*M-S,B=w+1;if(C<B)return m.__absoluteLess(y);if(C>B)return m.__absoluteGreater(y);var P=1048576|1048575&m.__kBitConversionInts[m.__kBitConversionIntHigh],x=m.__kBitConversionInts[m.__kBitConversionIntLow],Z=20,X=29-S;if(X!==(0|(C-1)%30))throw new Error(`implementation bug`);var rt,it=0;
3if(X<Z){var dt=Z-X;it=dt+32,rt=P>>>dt,P=P<<32-dt|x>>>dt,x<<=32-dt}else if(X===Z)it=32,rt=P,P=x,x=0;else{var bt=X-Z;it=32-bt,rt=P<<bt|x>>>32-bt,P=x<<bt,x=0}if(E>>>=0,rt>>>=0,E>rt)return m.__absoluteGreater(y);if(E<rt)return m.__absoluteLess(y);for(var Gt=M-2;0<=Gt;Gt--){0<it?(it-=30,rt=P>>>2,P=P<<30|x>>>2,x<<=30):rt=0;var Te=a.__unsignedDigit(Gt);if(Te>rt)return m.__absoluteGreater(y);if(Te<rt)return m.__absoluteLess(y)}if(P!==0||x!==0){if(it===0)throw new Error(`implementation bug`);return m.__absoluteLess(y)}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)===j(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,y){if(a=m.__toPrimitive(a),c=m.__toPrimitive(c),typeof a==`string`&&typeof c==`string`)switch(y){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),y);if(typeof a==`string`&&m.__isBigInt(c))return a=m.__fromString(a),a!==null&&m.__comparisonResultToBool(m.__compareToBigInt(a,c),y);if(a=m.__toNumeric(a),c=m.__toNumeric(c),m.__isBigInt(a)){if(m.__isBigInt(c))return m.__comparisonResultToBool(m.__compareToBigInt(a,c),y);if(typeof c!=`number`)throw new Error(`implementation bug`);return m.__comparisonResultToBool(m.__compareToNumber(a,c),y)}if(typeof a!=`number`)throw new Error(`implementation bug`);if(m.__isBigInt(c))return m.__comparisonResultToBool(m.__compareToNumber(c,a),2^y);if(typeof c!=`number`)throw new Error(`implementation bug`);return y===0?a<c:y===1?a<=c:y===2?a>c:y===3?a>=c:void 0}},{key:`__absoluteAdd`,value:function(a,c,y){if(a.length<c.length)return m.__absoluteAdd(c,a,y);if(a.length===0)return a;if(c.length===0)return a.sign===y?a:m.unaryMinus(a);var p=a.length;(a.__clzmsd()===0||c.length===a.length&&c.__clzmsd()===0)&&p++;for(var _,w=new m(p,y),M=0,E=0;E<c.length;E++)_=a.__digit(E)+c.__digit(E)+M,M=_>>>30,w.__setDigit(E,1073741823&_);for(;E<a.length;E++){var S=a.__digit(E)+M;M=S>>>30,w.__setDigit(E,1073741823&S)}return E<w.length&&w.__setDigit(E,M),w.__trim()}},{key:`__absoluteSub`,value:function(a,c,y){if(a.length===0)return a;if(c.length===0)return a.sign===y?a:m.unaryMinus(a);for(var p,_=new m(a.length,y),w=0,M=0;M<c.length;M++)p=a.__digit(M)-c.__digit(M)-w,w=1&p>>>30,_.__setDigit(M,1073741823&p);for(;M<a.length;M++){var E=a.__digit(M)-w;w=1&E>>>30,_.__setDigit(M,1073741823&E)}return _.__trim()}},{key:`__absoluteAddOne`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,p=a.length;y===null?y=new m(p,c):y.sign=c;for(var _,w=1,M=0;M<p;M++)_=a.__digit(M)+w,w=_>>>30,y.__setDigit(M,1073741823&_);return w!==0&&y.__setDigitGrow(p,1),y}},{key:`__absoluteSubOne`,value:function(a,c){var y=a.length;c=c||y;for(var p,_=new m(c,!1),w=1,M=0;M<y;M++)p=a.__digit(M)-w,w=1&p>>>30,_.__setDigit(M,1073741823&p);if(w!==0)throw new Error(`implementation bug`);for(var E=y;E<c;E++)_.__setDigit(E,0);return _}},{key:`__absoluteAnd`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,p=a.length,_=c.length,w=_;if(p<_){w=p;var M=a,E=p;a=c,p=_,c=M,_=E}var S=w;y===null?y=new m(S,!1):S=y.length;for(var C=0;C<w;C++)y.__setDigit(C,a.__digit(C)&c.__digit(C));for(;C<S;C++)y.__setDigit(C,0);return y}},{key:`__absoluteAndNot`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,p=a.length,_=c.length,w=_;p<_&&(w=p);var M=p;y===null?y=new m(M,!1):M=y.length;for(var E=0;E<w;E++)y.__setDigit(E,a.__digit(E)&~c.__digit(E));for(;E<p;E++)y.__setDigit(E,a.__digit(E));for(;E<M;E++)y.__setDigit(E,0);return y}},{key:`__absoluteOr`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,p=a.length,_=c.length,w=_;if(p<_){w=p;var M=a,E=p;a=c,p=_,c=M,_=E}var S=p;y===null?y=new m(S,!1):S=y.length;for(var C=0;C<w;C++)y.__setDigit(C,a.__digit(C)|c.__digit(C));for(;C<p;C++)y.__setDigit(C,a.__digit(C));for(;C<S;C++)y.__setDigit(C,0);return y}},{key:`__absoluteXor`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null,p=a.length,_=c.length,w=_;if(p<_){w=p;var M=a,E=p;a=c,p=_,c=M,_=E}var S=p;y===null?y=new m(S,!1):S=y.length;for(var C=0;C<w;C++)y.__setDigit(C,a.__digit(C)^c.__digit(C));for(;C<p;C++)y.__setDigit(C,a.__digit(C));for(;C<S;C++)y.__setDigit(C,0);return y}},{key:`__absoluteCompare`,value:function(a,c){var y=a.length-c.length;if(y!=0)return y;for(var p=a.length-1;0<=p&&a.__digit(p)===c.__digit(p);)p--;return 0>p?0:a.__unsignedDigit(p)>c.__unsignedDigit(p)?1:-1}},{key:`__multiplyAccumulate`,value:function(a,c,y,p){if(c!==0){for(var _=32767&c,w=c>>>15,M=0,E=0,S=0;S<a.length;S++,p++){var C=y.__digit(p),B=a.__digit(S),U=32767&B,P=B>>>15,x=m.__imul(U,_),Z=m.__imul(U,w),X=m.__imul(P,_),rt=m.__imul(P,w);C+=E+x+M,M=C>>>30,C&=1073741823,C+=((32767&Z)<<15)+((32767&X)<<15),M+=C>>>30,E=rt+(Z>>>15)+(X>>>15),y.__setDigit(p,1073741823&C)}for(;M!==0||E!==0;p++){var it=y.__digit(p);it+=M+E,E=0,M=it>>>30,y.__setDigit(p,1073741823&it)}}}},{key:`__internalMultiplyAdd`,value:function(a,c,y,p,_){for(var w=y,M=0,E=0;E<p;E++){var S=a.__digit(E),C=m.__imul(32767&S,c),B=m.__imul(S>>>15,c),U=C+((32767&B)<<15)+M+w;w=U>>>30,M=B>>>15,_.__setDigit(E,1073741823&U)}if(_.length>p)for(_.__setDigit(p++,w+M);p<_.length;)_.__setDigit(p++,0);else if(w+M!==0)throw new Error(`implementation bug`)}},{key:`__absoluteDivSmall`,value:function(a,c){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;y===null&&(y=new m(a.length,!1));for(var p=0,_=2*a.length-1;0<=_;_-=2){var w=(p<<15|a.__halfDigit(_))>>>0,M=0|w/c;p=0|w%c,w=(p<<15|a.__halfDigit(_-1))>>>0;var E=0|w/c;p=0|w%c,y.__setDigit(_>>>1,M<<15|E)}return y}},{key:`__absoluteModSmall`,value:function(a,c){for(var y,p=0,_=2*a.length-1;0<=_;_--)y=(p<<15|a.__halfDigit(_))>>>0,p=0|y%c;return p}},{key:`__absoluteDivLarge`,value:function(a,c,y,p){var _=c.__halfDigitLength(),w=c.length,M=a.__halfDigitLength()-_,E=null;y&&(E=new m(M+2>>>1,!1),E.__initializeDigits());var S=new m(_+2>>>1,!1);S.__initializeDigits();
3var C=m.__clz15(c.__halfDigit(_-1));0<C&&(c=m.__specialLeftShift(c,C,0));for(var B=m.__specialLeftShift(a,C,1),U=c.__halfDigit(_-1),P=0,x=M;0<=x;x--){var Z=32767,X=B.__halfDigit(x+_);if(X!==U){var rt=(X<<15|B.__halfDigit(x+_-1))>>>0;Z=0|rt/U;for(var it=0|rt%U,dt=c.__halfDigit(_-2),bt=B.__halfDigit(x+_-2);m.__imul(Z,dt)>>>0>(it<<16|bt)>>>0&&(Z--,it+=U,!(32767<it)););}m.__internalMultiplyAdd(c,Z,0,w,S);var Gt=B.__inplaceSub(S,x,_+1);Gt!==0&&(Gt=B.__inplaceAdd(c,x,_),B.__setHalfDigit(x+_,32767&B.__halfDigit(x+_)+Gt),Z--),y&&(1&x?P=Z<<15:E.__setDigit(x>>>1,P|Z))}if(p)return B.__inplaceRightShift(C),y?{quotient:E,remainder:B}:B;if(y)return E;throw new Error(`unreachable`)}},{key:`__clz15`,value:function(a){return m.__clz30(a)-15}},{key:`__specialLeftShift`,value:function(a,c,y){var p=a.length,w=new m(p+y,!1);if(c===0){for(var M=0;M<p;M++)w.__setDigit(M,a.__digit(M));return 0<y&&w.__setDigit(p,0),w}for(var E,S=0,C=0;C<p;C++)E=a.__digit(C),w.__setDigit(C,1073741823&E<<c|S),S=E>>>30-c;return 0<y&&w.__setDigit(p,S),w}},{key:`__leftShiftByAbsolute`,value:function(a,c){var y=m.__toShiftAmount(c);if(0>y)throw new RangeError(`BigInt too big`);var p=0|y/30,_=y%30,w=a.length,M=_!==0&&a.__digit(w-1)>>>30-_!=0,E=w+p+(M?1:0),S=new m(E,a.sign);if(_===0){for(var C=0;C<p;C++)S.__setDigit(C,0);for(;C<E;C++)S.__setDigit(C,a.__digit(C-p))}else{for(var B=0,U=0;U<p;U++)S.__setDigit(U,0);for(var P,x=0;x<w;x++)P=a.__digit(x),S.__setDigit(x+p,1073741823&P<<_|B),B=P>>>30-_;if(M)S.__setDigit(w+p,B);else if(B!==0)throw new Error(`implementation bug`)}return S.__trim()}},{key:`__rightShiftByAbsolute`,value:function(a,c){var y=a.length,p=a.sign,_=m.__toShiftAmount(c);if(0>_)return m.__rightShiftByMaximum(p);var w=0|_/30,M=_%30,E=y-w;if(0>=E)return m.__rightShiftByMaximum(p);var S=!1;if(p){var C=(1<<M)-1;if((a.__digit(w)&C)!=0)S=!0;else for(var B=0;B<w;B++)if(a.__digit(B)!==0){S=!0;break}}if(S&&M===0)~a.__digit(y-1)==0&&E++;var x=new m(E,p);if(M===0){x.__setDigit(E-1,0);for(var Z=w;Z<y;Z++)x.__setDigit(Z-w,a.__digit(Z))}else{for(var X,rt=a.__digit(w)>>>M,it=y-w-1,dt=0;dt<it;dt++)X=a.__digit(dt+w+1),x.__setDigit(dt,1073741823&X<<30-M|rt),rt=X>>>M;x.__setDigit(it,rt)}return S&&(x=m.__absoluteAddOne(x,!0,x)),x.__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;
3if(typeof Symbol<`u`&&et(Symbol.toPrimitive)===`symbol`&&a[Symbol.toPrimitive]){var y=a[Symbol.toPrimitive](c);if(et(y)!==`object`)return y;throw new TypeError(`Cannot convert object to primitive value`)}var p=a.valueOf;if(p){var _=p.call(a);if(et(_)!==`object`)return _}var w=a.toString;if(w){var M=w.call(a);if(et(M)!==`object`)return M}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 y=0|(a+29)/30,p=new m(y,c.sign),_=y-1,w=0;w<_;w++)p.__setDigit(w,c.__digit(w));var M=c.__digit(_);if(a%30!=0){var E=32-a%30;M=M<<E>>>E}return p.__setDigit(_,M),p.__trim()}},{key:`__truncateAndSubFromPowerOfTwo`,value:function(a,c,y){for(var p=Math.min,_,w=0|(a+29)/30,M=new m(w,y),E=0,S=w-1,C=0,B=p(S,c.length);E<B;E++)_=0-c.__digit(E)-C,C=1&_>>>30,M.__setDigit(E,1073741823&_);for(;E<S;E++)M.__setDigit(E,0|1073741823&-C);var U,P=S<c.length?c.__digit(S):0,x=a%30;if(x===0)U=0-P-C,U&=1073741823;else{var Z=32-x;P=P<<Z>>>Z;var X=1<<32-Z;U=X-P-C,U&=X-1}return M.__setDigit(S,U),M.__trim()}},{key:`__digitPow`,value:function(a,c){for(var y=1;0<c;)1&c&&(y*=a),c>>>=1,a*=a;return y}},{key:`__detectBigEndian`,value:function(){return m.__kBitConversionDouble[0]=-0,m.__kBitConversionInts[0]!==0}},{key:`__isOneDigitInt`,value:function(a){return(1073741823&a)===a}}])})(ht(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 j=Math.LN2,Y=Math.log;return O===0?30:0|29-(0|Y(O>>>0)/j)},J.__imul=e||function(O,j){return 0|O*j},J})})(),1);var ne=D.default.BigInt(0);var Xn=D.default.BigInt(1);var ai=D.default.BigInt(2);var us=D.default.BigInt(10);var cs=D.default.BigInt(24);var hs=D.default.BigInt(60);var ds=D.default.BigInt(1e3);var yr=D.default.BigInt(1e6);var qn=D.default.BigInt(1e9);var oa=D.default.multiply(D.default.BigInt(3600),qn);var ls=D.default.multiply(hs,qn);var qe=D.default.multiply(oa,cs);function Ce(e){return typeof e==`bigint`?D.default.BigInt(e.toString(10)):e}function ia(e){return D.default.equal(D.default.remainder(e,ai),ne)}function Xe(e){return D.default.lessThan(e,ne)?D.default.unaryMinus(e):e}function Yr(e,t){return D.default.lessThan(e,t)?-1:D.default.greaterThan(e,t)?1:0}function Ln(e,t){return{quotient:D.default.divide(e,t),remainder:D.default.remainder(e,t)}}var Mi;var Ti;var q=`slot-epochNanoSeconds`;var W=`slot-iso-date`;var ct=`slot-iso-date-time`;var ft=`slot-time`;var N=`slot-calendar`;var aa=`slot-date-brand`;var sa=`slot-year-month-brand`;var ua=`slot-month-day-brand`;var at=`slot-time-zone`;var Yt=`slot-years`;var jt=`slot-months`;var Jt=`slot-weeks`;var Nt=`slot-days`;var xt=`slot-hours`;var Lt=`slot-minutes`;var Bt=`slot-seconds`;var Pt=`slot-milliseconds`;var At=`slot-microseconds`;var Ht=`slot-nanoseconds`;var ca=`date`;var ha=`ym`;var da=`md`;var la=`time`;var ma=`datetime`;var fa=`instant`;var cn=`original`;var fn=`timezone-canonical`;var wo=`timezone-original`;var Bn=`calendar-id`;var ya=`locale`;var bo=`options`;var ga=new WeakMap;var Do=Symbol.for(`@@Temporal__GetSlots`);(Mi=globalThis)[Do]||(Mi[Do]=function(e){return ga.get(e)});var Hr=globalThis[Do];var Eo=Symbol.for(`@@Temporal__CreateSlots`);(Ti=globalThis)[Eo]||(Ti[Eo]=function(e){ga.set(e,Object.create(null))});var Be=globalThis[Eo];function qt(e,...t){if(!e||typeof e!=`object`)return!1;let n=Hr(e);return!!n&&t.every((r=>r in n))}function h(e,t){let n=Hr(e)?.[t];if(n===void 0)throw new TypeError(`Missing internal slot ${t}`);return n}function Q(e,t,n){let r=Hr(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 Mo={};function Pe(e,t){Object.defineProperty(e.prototype,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,
3configurable:!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))}To(t,e),To(`${t}.prototype`,e.prototype)}function To(e,t){let n=`%${e}%`;if(Mo[n]!==void 0)throw new Error(`intrinsic ${e} already exists`);Mo[n]=t}function It(e){return Mo[e]}function gn(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 yo(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 Vr(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 Xr(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=Ce(t),this.sec=D.default.toNumber(D.default.divide(this.totalNs,qn)),this.subsec=D.default.toNumber(D.default.remainder(this.totalNs,qn))}static validateNew(t,n){if(D.default.greaterThan(Xe(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(Ce(t),Ce(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),ds)),D.default.multiply(D.default.BigInt(o),yr)),D.default.multiply(D.default.BigInt(r),qn)),D.default.multiply(D.default.BigInt(n),ls)),D.default.multiply(D.default.BigInt(t),oa));return e.validateNew(u,`total`)}abs(){return new e(Xe(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),qe)),`sum`)}addToEpochNs(t){return D.default.add(Ce(t),this.totalNs)}cmp(t){return Yr(this.totalNs,t.totalNs)}divmod(t){let{quotient:n,remainder:r}=Ln(this.totalNs,D.default.BigInt(t));return{quotient:D.default.toNumber(n),remainder:new e(r)}}fdiv(t){let n=Ce(t),r=D.default.BigInt(n),{quotient:o,remainder:i}=Ln(this.totalNs,r),s=[],u,l=(D.default.lessThan(this.totalNs,ne)?-1:1)*Math.sign(D.default.toNumber(n));for(;!D.default.equal(i,ne)&&s.length<50;)i=D.default.multiply(i,us),{quotient:u,remainder:i}=Ln(i,r),s.push(Math.abs(D.default.toNumber(u)));return l*+(Xe(o).toString()+`.`+s.join(``))}isZero(){return D.default.equal(this.totalNs,ne)}round(t,n){let r=Ce(t);if(D.default.equal(r,Xn))return this;let{quotient:o,remainder:i}=Ln(this.totalNs,r),s=D.default.lessThan(this.totalNs,ne)?`negative`:`positive`,u=D.default.multiply(Xe(o),r),l=D.default.add(u,r),d=Yr(Xe(D.default.multiply(i,ai)),r),f=Vr(n,s),g=D.default.equal(Xe(this.totalNs),u)?u:Xr(u,l,d,ia(o),f),v=s===`positive`?g:D.default.unaryMinus(g);return e.validateNew(v,`rounding`)}sign(){return this.cmp(new e(ne))}subtract(t){return e.validateNew(D.default.subtract(this.totalNs,t.totalNs),`difference`)}};st.MAX=D.default.BigInt(`9007199254740991999999999`),st.ZERO=new st(ne);var Ii=/[A-Za-z._][A-Za-z._0-9+-]*/;var gr=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${Ii.source})(?:\\/(?:${Ii.source}))*)`);var _a=/(?:[+-]\d{6}|\d{4})/;var jr=/(?:0[1-9]|1[0-2])/;var Io=/(?:0[1-9]|[12]\d|3[01])/;var ms=new RegExp(`(${_a.source})(?:-(${jr.source})-(${Io.source})|(${jr.source})(${Io.source}))`);var pa=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/;var va=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/;var wa=new RegExp(`([zZ])|${va.source}?`);var wn=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g;var fs=new RegExp([`^${ms.source}`,`(?:(?:[tT]|\\s+)${pa.source}(?:${wa.source})?)?`,`(?:\\[!?(${gr.source})\\])?`,`((?:${wn.source})*)$`].join(``));var ys=new RegExp([`^[tT]?${pa.source}`,`(?:${wa.source})?`,`(?:\\[!?${gr.source}\\])?`,`((?:${wn.source})*)$`].join(``));var gs=new RegExp(`^(${_a.source})-?(${jr.source})(?:\\[!?${gr.source}\\])?((?:${wn.source})*)$`);var _s=new RegExp(`^(?:--)?(${jr.source})-?(${Io.source})(?:\\[!?${gr.source}\\])?((?:${wn.source})*)$`);var go=/(\d+)(?:[.,](\d{1,9}))?/;var ps=new RegExp(`(?:${go.source}H)?(?:${go.source}M)?(?:${go.source}S)?`);var vs=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${ps.source})?$`,`i`);var We=864e5;var Nr=1e6*We;var ws=6e10;var ba=1e8*We;var bn=fe(ba);var Kn=D.default.unaryMinus(bn);var bs=D.default.add(D.default.subtract(Kn,qe),Xn);var Ds=D.default.subtract(D.default.add(bn,qe),Xn);var Es=146097*We;var Ci=-271821;var ki=275760;var Wn=Date.UTC(1847,0,1);var Ms=[`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`];var Ts=new Set([`ACT`,`AET`,`AGT`,`ART`,`AST`,`BET`,`BST`,`CAT`,`CNT`,`CST`,`CTT`,`EAT`,`ECT`,`IET`,`IST`,`JST`,`MIT`,`NET`,`NST`,`PLT`,`PNT`,`PRT`,`P
3ST`,`SST`,`VST`]);function yt(e){return typeof e==`object`&&e!==null||typeof e==`function`}function Kr(e){if(typeof e==`bigint`)throw new TypeError(`Cannot convert BigInt to number`);return Number(e)}function Qr(e){if(typeof e==`symbol`)throw new TypeError(`Cannot convert a Symbol value to a String`);return String(e)}function H(e){let t=Kr(e);if(t===0)return 0;if(Number.isNaN(t)||t===Infinity||t===-Infinity)throw new RangeError(`invalid number value`);let n=Math.trunc(t);return n===0?0:n}function Oi(e,t){let n=H(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 le(e){let t=Kr(e);if(Number.isNaN(t))throw new RangeError(`not a number`);if(t===Infinity||t===-Infinity)throw new RangeError(`infinity is out of range`);if(!(function(n){if(typeof n!=`number`||Number.isNaN(n)||n===Infinity||n===-Infinity)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 Qn(e,t){return String(e).padStart(t,`0`)}function vt(e){if(typeof e!=`string`)throw new TypeError(`expected a string, not ${String(e)}`);return e}function Co(e,t){if(yt(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 ko=[`era`,`eraYear`,`year`,`month`,`monthCode`,`day`,`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`,`timeZone`];var Is={era:Qr,eraYear:H,year:H,month:Oi,monthCode:function(e){let t=vt(Co(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:Oi,hour:H,minute:H,second:H,millisecond:H,microsecond:H,nanosecond:H,offset:function(e){let t=vt(Co(e));return Sn(t),t},timeZone:Ft};var Cs={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};var Dn=[[`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`]];var Si=Object.fromEntries(Dn.map((e=>[e[0],e[1]])));var ks=Object.fromEntries(Dn.map((([e,t])=>[t,e])));var Gn=Dn.map((([,e])=>e));var En={day:Nr,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1};var xr=[`days`,`hours`,`microseconds`,`milliseconds`,`minutes`,`months`,`nanoseconds`,`seconds`,`weeks`,`years`];var Os=Intl.DateTimeFormat;var $i=new Map;function Da(e){let t=or(e),n=$i.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`}),$i.set(t,n)),n}function Et(e){return qt(e,q)&&!qt(e,at,N)}function lt(e){return qt(e,Yt,jt,Nt,xt,Lt,Bt,Pt,At,Ht)}function mt(e){return qt(e,aa)}function gt(e){return qt(e,ft)}function ut(e){return qt(e,ct)}function Mt(e){return qt(e,sa)}function ee(e){return qt(e,ua)}function tt(e){return qt(e,q,at,N)}function T(e,t){if(!t(e))throw new TypeError(`invalid receiver: method called with the wrong type of this-object`)}function Cn(e){if(qt(e,N)||qt(e,at))throw new TypeError(`with() does not support a calendar or timeZone property`);if(gt(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 _r(e,t){return t===`never`||t===`auto`&&e===`iso8601`?``:`[${t===`critical`?`!`:``}u-ca=${e}]`}function to(e){let t,n,r=!1;for(wn.lastIndex=0;n=wn.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 Me(e){let t=fs.exec(e);if(!t)throw new RangeError(`invalid RFC 9557 string: ${e}`);let n=to(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),d=+(t[7]??t[10]??0),f=+(t[8]??t[11]??0);f===60&&(f=59);let g=(t[9]??t[12]??``)+`000000000`,v=+g.slice(0,3),b=+g.slice(3,6),I=+g.slice(6,9),R,$=!1;t[13]?(R=void 0,$=!0):t[14]&&(R=t[14]);let L=t[15];return li(o,i,s,l,d,f,v,b,I),{year:o,month:i,day:s,time:u?{hour:l,minute:d,second:f,millisecond:v,microsecond:b,nanosecond:I}:`start-of-day`,tzAnnotation:L,offset:R,z:$,calendar:n}}function Ea(e){let t=ys.exec(e),n,r,o,i,s,u,l;if(t){l=to(t[10]),n=+(t[1]??0),r=+(t[2]??t[5]??0),o=+(t[3]??t[6]??0),o===60&&(o=59);let d=(t[4]??t[7]??``)+`000000000`;if(i=+d.slice(0,3),s=+d.slice(3,6),u=+d.slice(6,9),t[8])throw new RangeError(`Z designator not supported for PlainTime`)}else{let d,f;if({time:d,z:f,calendar:l}=Me(e),d===`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}=d)}if(oo(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:d,day:f}=ui(e);nn(1972,d,f)}catch(d){try{let{year:f,month:g}=si(e);nn(f,g,1)}catch(f){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 si(e){let t=gs.exec(e),n,r,o,i;if(t){o=to(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}=Me(e),s)throw new RangeError(`Z designator not supported for PlainYearMonth`)}return{year:n,month:r,calendar:o,referenceISODay:i}}function ui(e){let t=_s.exec(e),n,r,o,i;if(t){if(o=to(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}=Me(e),s)throw new RangeError(`Z designator not supported for PlainMonthDay`)}return{month:n,day:r,calendar:o,referenceISOYear:i}}var Ma=new RegExp(`^${gr.source}$`,`i`);
3var Ta=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function Ia(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 Ma.test(e)||Ia(e),Ta.test(e)?{offsetMinutes:Sn(e)/6e10}:{tzName:e}}function Jn(e,t,n,r){let o=e,i=t,s=n;switch(r){case`reject`:nn(o,i,s);break;case`constrain`:({year:o,month:i,day:s}=Fa(o,i,s))}return{year:o,month:i,day:s}}function eo(e,t,n,r,o,i,s){let u=e,l=t,d=n,f=r,g=o,v=i;switch(s){case`reject`:oo(u,l,d,f,g,v);break;case`constrain`:u=Ut(u,0,23),l=Ut(l,0,59),d=Ut(d,0,59),f=Ut(f,0,999),g=Ut(g,0,999),v=Ut(v,0,999)}return{hour:u,minute:l,second:d,millisecond:f,microsecond:g,nanosecond:v}}function Ca(e){if(!yt(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<xr.length;r++){let o=xr[r],i=e[o];i!==void 0&&(n=!0,t[o]=le(i))}if(!n)throw new TypeError(`invalid duration-like`);return t}function kt({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 je(e,`overflow`,[`constrain`,`reject`],`constrain`)}function Hn(e){return je(e,`disambiguation`,[`compatible`,`earlier`,`later`,`reject`],`compatible`)}function ye(e,t){return je(e,`roundingMode`,[`ceil`,`floor`,`expand`,`trunc`,`halfCeil`,`halfFloor`,`halfExpand`,`halfTrunc`,`halfEven`],t)}function Rr(e,t){return je(e,`offset`,[`prefer`,`use`,`ignore`,`reject`],t)}function pr(e){return je(e,`calendarName`,[`auto`,`always`,`never`,`critical`],`auto`)}function kn(e){let t=e.roundingIncrement;if(t===void 0)return 1;let n=H(t);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${t}`);return n}function On(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 vr(e){let t=e.fractionalSecondDigits;if(t===void 0)return`auto`;if(typeof t!=`number`){if(Qr(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 wr(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 xe=Symbol(`~required~`);function Xt(e,t,n,r,o=[]){let i=[];for(let d=0;d<Dn.length;d++){let f=Dn[d],g=f[1],v=f[2];n!==`datetime`&&n!==v||i.push(g)}i=i.concat(o);let s=r;s===xe?s=void 0:s!==void 0&&i.push(s);let u=[];u=u.concat(i);for(let d=0;d<i.length;d++){let g=ks[i[d]];g!==void 0&&u.push(g)}let l=je(e,t,u,s);if(l===void 0&&r===xe)throw new RangeError(`${t} is required`);return l&&l in Si?Si[l]:l}function _o(e){let t=e.relativeTo;if(t===void 0)return{};let n,r,o,i,s,u=`option`,l=!1;if(yt(t)){if(tt(t))return{zonedRelativeTo:t};if(mt(t))return{plainRelativeTo:t};if(ut(t))return{plainRelativeTo:zt(h(t,ct).isoDate,h(t,N))};o=Tr(t);let d=ae(o,t,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`,`timeZone`],[]);({isoDate:n,time:r}=Dr(o,d,`constrain`)),{offset:s,timeZone:i}=d,s===void 0&&(u=`wall`)}else{let d,f,g,v,b;if({year:g,month:v,day:b,time:r,calendar:o,tzAnnotation:d,offset:s,z:f}=Me(vt(t)),d)i=Ft(d),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=Wt(o),n={year:g,month:v,day:b}}return i===void 0?{plainRelativeTo:zt(n,o)}:{zonedRelativeTo:Ct(Lr(n,r,u,u===`option`?Sn(s):0,i,`compatible`,`reject`,l),i,o)}}function ke(e){return h(e,Yt)!==0?`year`:h(e,jt)!==0?`month`:h(e,Jt)!==0?`week`:h(e,
3Nt)!==0?`day`:h(e,xt)!==0?`hour`:h(e,Lt)!==0?`minute`:h(e,Bt)!==0?`second`:h(e,Pt)!==0?`millisecond`:h(e,At)!==0?`microsecond`:`nanosecond`}function Re(e,t){return Gn.indexOf(e)>Gn.indexOf(t)?t:e}function _e(e){return e===`year`||e===`month`||e===`week`}function Oe(e){return _e(e)||e===`day`?`date`:`time`}function He(e){return It(`%calendarImpl%`)(e)}function br(e){return It(`%calendarImpl%`)(h(e,N))}function Zt(e,t,n=`date`){let r=Object.create(null),o=He(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 ae(e,t,n,r,o){let i=He(e).extraFields(n),s=n.concat(r,i),u=Object.create(null),l=!1;s.sort();for(let d=0;d<s.length;d++){let f=s[d],g=t[f];if(g!==void 0)l=!0,u[f]=(0,Is[f])(g);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 Oo(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]=H(u),r=!0):t===`complete`&&(o[s]=0)}if(!r)throw new TypeError(`invalid time-like`);return o}function Pn(e,t){if(yt(e)){if(mt(e))return nt(A(t)),zt(h(e,W),h(e,N));if(tt(e)){let l=he(h(e,at),h(e,q));return nt(A(t)),zt(l.isoDate,h(e,N))}if(ut(e))return nt(A(t)),zt(h(e,ct).isoDate,h(e,N));let u=Tr(e);return zt(Ge(u,ae(u,e,[`year`,`month`,`monthCode`,`day`],[],[]),nt(A(t))),u)}let{year:n,month:r,day:o,calendar:i,z:s}=Me(vt(e));if(s)throw new RangeError(`Z designator not supported for PlainDate`);return i||(i=`iso8601`),i=Wt(i),nt(A(t)),zt({year:n,month:r,day:o},i)}function Dr(e,t,n){return ot(Ge(e,t,n),eo(t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond,n))}function An(e,t){let n,r,o;if(yt(e)){if(ut(e))return nt(A(t)),se(h(e,ct),h(e,N));if(tt(e)){let u=he(h(e,at),h(e,q));return nt(A(t)),se(u,h(e,N))}if(mt(e))return nt(A(t)),se(ot(h(e,W),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),h(e,N));o=Tr(e);let i=ae(o,e,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],[]),s=nt(A(t));({isoDate:n,time:r}=Dr(o,i,s))}else{let i,s,u,l;if({year:s,month:u,day:l,time:r,calendar:o,z:i}=Me(vt(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}),li(s,u,l,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o=`iso8601`),o=Wt(o),nt(A(t)),n={year:s,month:u,day:l}}return se(ot(n,r),o)}function ce(e){let t=It(`%Temporal.Duration%`);if(lt(e))return new t(h(e,Yt),h(e,jt),h(e,Jt),h(e,Nt),h(e,xt),h(e,Lt),h(e,Bt),h(e,Pt),h(e,At),h(e,Ht));if(!yt(e))return(function(o){let{years:i,months:s,weeks:u,days:l,hours:d,minutes:f,seconds:g,milliseconds:v,microseconds:b,nanoseconds:I}=(function(R){let $=vs.exec(R);if(!$)throw new RangeError(`invalid duration: ${R}`);if($.every(((y,p)=>p<2||y===void 0)))throw new RangeError(`invalid duration: ${R}`);let L=$[1]===`-`?-1:1,z=$[2]===void 0?0:H($[2])*L,F=$[3]===void 0?0:H($[3])*L,K=$[4]===void 0?0:H($[4])*L,V=$[5]===void 0?0:H($[5])*L,et=$[6]===void 0?0:H($[6])*L,pt=$[7],ht=$[8],J=$[9],O=$[10],j=$[11],Y=0,G=0,m=0;if(pt!==void 0){if(ht??J??O??j)throw new RangeError(`only the smallest unit can be fractional`);m=3600*H((pt+`000000000`).slice(0,9))*L}else if(Y=ht===void 0?0:H(ht)*L,J!==void 0){if(O??j)throw new RangeError(`only the smallest unit can be fractional`);m=60*H((J+`000000000`).slice(0,9))*L}else G=O===void 0?0:H(O)*L,j!==void 0&&(m=H((j+`000000000`).slice(0,9))*L);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),io(z,F,K,V,et,Y,G,c,a,k),{years:z,months:F,weeks:K,days:V,hours:et,minutes:Y,seconds:G,milliseconds:c,microseconds:a,nanoseconds:k}})(o);return new(It(`%Temporal.Duration%`))(i,s,u,l,d,f,g,v,b,I)})(vt(e));let n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0},r=Ca(e);for(let o=0;o<xr.length;o++){let i=xr[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 Un(e){let t;if(yt(e)){if(Et(e)||tt(e))return me(h(e,q));t=Co(e)}else t=e;let{year:n,month:r,day:o,time:i,offset:s,z:u}=(function(R){let $=Me(R);if(!$.z&&!$.offset)throw new RangeError(`Temporal.Instant requires a time zone offset`);return $})(vt(t)),{hour:l=0,minute:d=0,second:f=0,millisecond:g=0,microsecond:v=0,nanosecond:b=0}=i===`start-of-day`?{}:i,I=rr(n,r,o,l,d,f,g,v,b-(u?0:Sn(s)));return vn(I.isoDate),me(Tt(I))}function Ri(e,t){if(yt(e)){if(ee(e))return nt(A(t)),_n(h(e,W),h(e,N));let u;return qt(e,N)?u=h(e,N):(u=e.calendar,u===void 0&&(u=`iso8601`),u=Mr(u)),_n(Br(u,ae(u,e,[`year`,`month`,`monthCode`,`day`],[],[]),nt(A(t))),u)}let{month:n,day:r,referenceISOYear:o,calendar:i}=ui(vt(e));if(i===void 0&&(i=`iso8601`),i=Wt(i),nt(A(t)),i===`iso8601`)return _n({year:1972,month:n,day:r},i);let s={year:o,month:n,day:r};return hn(s),s=Br(i,Zt(i,s,`month-day`),`constrain`),_n(s,i)}function ze(e,t){let n;if(yt(e)){if(gt(e))return nt(A(t)),Se(h(e,ft));if(ut(e))return nt(A(t)),Se(h(e,ct).time);if(tt(e)){let d=he(h(e,at),h(e,q));return nt(A(t)),Se(d.time)}
3let{hour:r,minute:o,second:i,millisecond:s,microsecond:u,nanosecond:l}=Oo(e);n=eo(r,o,i,s,u,l,nt(A(t)))}else n=Ea(vt(e)),nt(A(t));return Se(n)}function ka(e){return e===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:h(ze(e),ft)}function zn(e,t){if(yt(e)){if(Mt(e))return nt(A(t)),pn(h(e,W),h(e,N));let u=Tr(e);return pn(tr(u,ae(u,e,[`year`,`month`,`monthCode`],[],[]),nt(A(t))),u)}let{year:n,month:r,referenceISODay:o,calendar:i}=si(vt(e));i===void 0&&(i=`iso8601`),i=Wt(i),nt(A(t));let s={year:n,month:r,day:o};return mi(s),s=tr(i,Zt(i,s,`year-month`),`constrain`),pn(s,i)}function Lr(e,t,n,r,o,i,s,u){if(t===`start-of-day`)return Ae(o,e);let l=ot(e,t);if(n===`wall`||s===`ignore`)return Ot(o,l,i);if(n===`exact`||s===`use`){let g=rr(e.year,e.month,e.day,t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond-r);vn(g.isoDate);let v=Tt(g);return De(v),v}vn(e);let d=Tt(l),f=er(o,l);for(let g=0;g<f.length;g++){let v=f[g],b=D.default.toNumber(D.default.subtract(d,v)),I=Fe(b,6e10,`halfExpand`);if(b===r||u&&I===r)return v}if(s===`reject`){let g=So(r),v=nr(l,`iso8601`,`auto`);throw new RangeError(`Offset ${g} is invalid for ${v} in ${o}`)}return La(f,o,l,i)}function Fn(e,t){let n,r,o,i,s,u,l,d=!1,f=`option`;if(yt(e)){if(tt(e)){let R=A(t);return Hn(R),Rr(R,`reject`),nt(R),Ct(h(e,q),h(e,at),h(e,N))}s=Tr(e);let v=ae(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=Hn(b),l=Rr(b,`reject`);let I=nt(b);({isoDate:n,time:r}=Dr(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=Me(z);if(!F.tzAnnotation)throw new RangeError(`Temporal.ZonedDateTime requires a time zone ID in brackets`);return F})(vt(e))),o=Ft(v),b?f=`exact`:i||(f=`wall`),s||(s=`iso8601`),s=Wt(s),d=!0;let L=A(t);u=Hn(L),l=Rr(L,`reject`),nt(L),n={year:I,month:R,day:$}}let g=0;return f===`option`&&(g=Sn(i)),Ct(Lr(n,r,f,g,o,u,l,d),o,s)}function Oa(e,t,n){hn(t),Be(e),Q(e,W,t),Q(e,N,n),Q(e,aa,!0)}function zt(e,t){let n=It(`%Temporal.PlainDate%`),r=Object.create(n.prototype);return Oa(r,e,t),r}function Sa(e,t,n){rn(t),Be(e),Q(e,ct,t),Q(e,N,n)}function se(e,t){let n=It(`%Temporal.PlainDateTime%`),r=Object.create(n.prototype);return Sa(r,e,t),r}function $a(e,t,n){hn(t),Be(e),Q(e,W,t),Q(e,N,n),Q(e,ua,!0)}function _n(e,t){let n=It(`%Temporal.PlainMonthDay%`),r=Object.create(n.prototype);return $a(r,e,t),r}function Ra(e,t){Be(e),Q(e,ft,t)}function Se(e){let t=It(`%Temporal.PlainTime%`),n=Object.create(t.prototype);return Ra(n,e),n}function Ya(e,t,n){mi(t),Be(e),Q(e,W,t),Q(e,N,n),Q(e,sa,!0)}function pn(e,t){let n=It(`%Temporal.PlainYearMonth%`),r=Object.create(n.prototype);return Ya(r,e,t),r}function ja(e,t){De(t),Be(e),Q(e,q,t)}function me(e){let t=It(`%Temporal.Instant%`),n=Object.create(t.prototype);return ja(n,e),n}function Na(e,t,n,r){De(t),Be(e),Q(e,q,t),Q(e,at,n),Q(e,N,r)}function Ct(e,t,n=`iso8601`){let r=It(`%Temporal.ZonedDateTime%`),o=Object.create(r.prototype);return Na(o,e,t,n),o}function Yi(e){return ko.filter((t=>e[t]!==void 0))}function en(e,t,n){let r=Yi(n),o=He(e).fieldKeysToIgnore(r),i=Object.create(null),s=Yi(t);for(let u=0;u<ko.length;u++){let l,d=ko[u];s.includes(d)&&!o.includes(d)&&(l=t[d]),r.includes(d)&&(l=n[d]),l!==void 0&&(i[d]=l)}return i}function oe(e,t,n,r){let o=He(e).dateAdd(t,n,r);return hn(o),o}function Er(e,t,n,r){return He(e).dateUntil(t,n,r)}function Mr(e){if(yt(e)&&qt(e,N))return h(e,N);let t=vt(e);try{return Wt(t)}catch(r){}let n;try{({calendar:n}=Me(t))}catch(r){try{({calendar:n}=Ea(t))}catch(o){try{({calendar:n}=si(t))}catch(i){({calendar:n}=ui(t))}}}return n||(n=`iso8601`),Wt(n)}function Tr(e){if(qt(e,N))return h(e,N);let{calendar:t}=e;return t===void 0?`iso8601`:Mr(t)}function be(e,t){return Wt(e)===Wt(t)}function Ge(e,t,n){let r=He(e);r.resolveFields(t,`date`);let o=r.dateToISO(t,n);return hn(o),o}function tr(e,t,n){let r=He(e);r.resolveFields(t,`year-month`),t.day=1;let o=r.dateToISO(t,n);return mi(o),o}function Br(e,t,n){let r=He(e);r.resolveFields(t,`month-day`);let o=r.monthDayToISOReferenceDate(t,n);return hn(o),o}function Ft(e){if(yt(e)&&tt(e))return h(e,at);let t=vt(e);if(t===`UTC`)return`UTC`;let{tzName:n,offsetMinutes:r}=(function(i){let{tzAnnotation:s,offset:u,z:l}=(function(d){if(Ma.test(d))return{tzAnnotation:d,offset:void 0,z:!1};try{let{tzAnnotation:f,offset:g,z:v}=Me(d);if(v||f||g)return{tzAnnotation:f,offset:g,z:v}}catch(f){}Ia(d)})(i);return s?Ze(s):l?Ze(`UTC`):u?Ze(u):void 0})(t);if(r!==void 0)return ci(r);let o=Pr(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function xa(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=Pr(t);if(!o)return!1;let i=Pr(e);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function $e(e,t){let n=Ze(e).offsetMinutes;return n!==void 0?6e10*n:$o(e,t)}function So(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}${no(r,o,i,s,i===0&&s===0?`minute`:`auto`)}`}function he(e,t){let n=$e(e,t),{isoDate:{year:r,month:o,day:i},time:{hour:s,minute:u,second:l,millisecond:d,microsecond:f,nanosecond:g}}=Aa(t);return rr(r,o,i,s,u,l,d,f,g+n)}function Ot(e,t,n){return La(er(e,t),e,t,n)}function La(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=Tt(n),s=D.default.subtract(i,qe);De(s);let u=$e(t,s),l=D.default.add(i,qe);De(l);let d=$e(t,l)-u;switch(r){case`earlier`:{let f=st.fromComponents(0,0,0,0,0,-d),g=Mn(n.time,f);return er(t,ot(Kt(n.isoDate.year,n.isoDate.month,n.isoDate.day+g.deltaDays),g))[0]}case`compatible`:case`later`:{let f=st.fromComponents(0,0,0,0,0,d),g=Mn(n.time,f),v=er(t,ot(Kt(n.isoDate.year,n.isoDate.month,n.isoDate.day+g.deltaDays),g));return v[v.length-1]}}}function er(e,t){if(e===`UTC`)return vn(t.isoDate),[Tt(t)];let n=Ze(e).offsetMinutes;if(n!==void 0){let r=rr(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);vn(r.isoDate);let o=Tt(r);return De(o),[o]}return vn(t.isoDate),(function(r,o){let i=Tt(o),s=D.default.subtract(i,qe);D.default.lessThan(s,Kn)&&(s=i);let u=D.default.add(i,qe);D.default.greaterThan(u,bn)&&(u=i);let l=$o(r,s),d=$o(r,u);return(l===d?[l]:[l,d]).map((g=>{let v=D.default.subtract(i,D.default.BigInt(g));if(Tn(o,(function(I,R){let{epochMilliseconds:$,time:{millisecond:L,microsecond:z,nanosecond:F}}=Aa(R),{year:K,month:V,day:et,hour:pt,minute:ht,second:J}=Ua(I,$);return rr(K,V,et,pt,ht,J,L,z,F)})(r,v))===0)return De(v),v})).filter((g=>g!==void 0))})(e,t)}function Ae(e,t){let n=ot(t,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=er(e,n);if(r.length)return r[0];let o=Tt(n),i=D.default.subtract(o,qe);return De(i),di(e,i)}function Ir(e){let t;return t=e<0||e>9999?(e<0?`-`:`+`)+Qn(Math.abs(e),6):Qn(e,4),t}function ie(e){return Qn(e,2)}function Ba(e,t){let n;if(t===`auto`){if(e===0)return``;n=Qn(e,9).replace(/0+$/,``)}else{if(t===0)return``;n=Qn(e,9).slice(0,t)}return`.${n}`}function no(e,t,n,r,o){let i=`${ie(e)}:${ie(t)}`;return o===`minute`||(i+=`:${ie(n)}`,i+=Ba(r,o)),i}function ji(e,t,n){let r=t;r===void 0&&(r=`UTC`);let o=h(e,q),i=nr(he(r,o),`iso8601`,n,`never`),s=`Z`;return t!==void 0&&(s=Pa($e(r,o))),`${i}${s}`}function $r(e,t){let n=h(e,Yt),r=h(e,jt),o=h(e,Jt),i=h(e,Nt),s=h(e,xt),u=h(e,Lt),l=Ur(e),d=``;
3n!==0&&(d+=`${Math.abs(n)}Y`),r!==0&&(d+=`${Math.abs(r)}M`),o!==0&&(d+=`${Math.abs(o)}W`),i!==0&&(d+=`${Math.abs(i)}D`);let f=``;s!==0&&(f+=`${Math.abs(s)}H`),u!==0&&(f+=`${Math.abs(u)}M`);let g=st.fromComponents(0,0,h(e,Bt),h(e,Pt),h(e,At),h(e,Ht));g.isZero()&&![`second`,`millisecond`,`microsecond`,`nanosecond`].includes(ke(e))&&t===`auto`||(f+=`${Math.abs(g.sec)}${Ba(Math.abs(g.subsec),t)}S`);let v=`${l<0?`-`:``}P${d}`;return f&&(v=`${v}T${f}`),v}function Ni(e,t=`auto`){let{year:n,month:r,day:o}=h(e,W);return`${Ir(n)}-${ie(r)}-${ie(o)}${_r(h(e,N),t)}`}function xi({hour:e,minute:t,second:n,millisecond:r,microsecond:o,nanosecond:i},s){return no(e,t,n,1e6*r+1e3*o+i,s)}function nr(e,t,n,r=`auto`){let{isoDate:{year:o,month:i,day:s},time:{hour:u,minute:l,second:d,millisecond:f,microsecond:g,nanosecond:v}}=e;return`${Ir(o)}-${ie(i)}-${ie(s)}T${no(u,l,d,1e6*f+1e3*g+v,n)}${_r(t,r)}`}function Li(e,t=`auto`){let{year:n,month:r,day:o}=h(e,W),i=`${ie(r)}-${ie(o)}`,s=h(e,N);t!==`always`&&t!==`critical`&&s===`iso8601`||(i=`${Ir(n)}-${i}`);let u=_r(s,t);return u&&(i+=u),i}function Bi(e,t=`auto`){let{year:n,month:r,day:o}=h(e,W),i=`${Ir(n)}-${ie(r)}`,s=h(e,N);t!==`always`&&t!==`critical`&&s===`iso8601`||(i+=`-${ie(o)}`);let u=_r(s,t);return u&&(i+=u),i}function Pi(e,t,n=`auto`,r=`auto`,o=`auto`,i=void 0){let s=h(e,q);if(i){let{unit:f,increment:g,roundingMode:v}=i;s=No(s,g,f,v)}let u=h(e,at),l=$e(u,s),d=nr(he(u,s),`iso8601`,t,`never`);return o!==`never`&&(d+=Pa(l)),r!==`never`&&(d+=`[${r===`critical`?`!`:``}${u}]`),d+=_r(h(e,N),n),d}function Ai(e){return Ta.test(e)}function Sn(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 jn;var Ss=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function Pr(e){if(jn===void 0){let i=Intl.supportedValuesOf?.(`timeZone`);if(i){jn=new Map;for(let s=0;s<i.length;s++){let u=i[s];jn.set(or(u),u)}}else jn=null}let t=or(e),n=jn?.get(t);if(n)return{identifier:n,primaryIdentifier:n};try{n=Da(e).resolvedOptions().timeZone}catch(i){return}if(t===`antarctica/south_pole`&&(n=`Antarctica/McMurdo`),Ts.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 Qe(e,t){let{year:n,month:r,day:o,hour:i,minute:s,second:u}=Ua(e,t),l=t%1e3;return l<0&&(l+=1e3),1e6*(hi({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:s,second:u,millisecond:l}})-t)}function $o(e,t){return Qe(e,de(t,`floor`))}function ci(e){let t=e<0?`-`:`+`,n=Math.abs(e);return`${t}${no(Math.floor(n/60),n%60,0,0,`minute`)}`}function Pa(e){return ci(Fe(e,ws,`halfExpand`)/6e10)}function hi({isoDate:{year:e,month:t,day:n},time:{hour:r,minute:o,second:i,millisecond:s}}){let u=e%400,l=(e-u)/400,d=new Date;return d.setUTCHours(r,o,i,s),d.setUTCFullYear(u,t-1,n),d.getTime()+Es*l}function Tt(e){let t=hi(e),n=1e3*e.time.microsecond+e.time.nanosecond;return D.default.add(fe(t),D.default.BigInt(n))}function Aa(e){let t=de(e,`trunc`),n=D.default.toNumber(D.default.remainder(e,yr));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 di(e,t){if(e===`UTC`)return null;let n=de(t,`floor`);if(n<Wn)return di(e,fe(Wn));let o=Math.max(n,Date.now())+366*We*3,i=n,s=Qe(e,i),u=i,l=s;for(;s===l&&i<o;){if(u=i+2*We*7,u>ba)return null;l=Qe(e,u),s===l&&(i=u)}return s===l?null:fe(Xa((d=>Qe(e,d)),i,u,s,l))}function Ro(e,t){if(e===`UTC`)return null;let n=de(t,`ceil`),r=Date.now(),o=r+366*We*3;if(n>o){let d=Ro(e,fe(o));if(d===null||D.default.lessThan(d,fe(r)))return d}if(e===`Africa/Casablanca`||e===`Africa/El_Aaiun`){let d=Date.UTC(2088,0,1);if(d<n)return Ro(e,fe(d))}let i=n-1;if(i<Wn)return null;let s=Qe(e,i),u=i,l=s;for(;s===l&&i>Wn;){if(u=i-2*We*7,u<Wn)return null;l=Qe(e,u),s===l&&(i=u)}return s===l?null:fe(Xa((d=>Qe(e,d)),u,i,l,s))}function Ua(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],d=+r[5],f=+r[6];if(!(Number.isFinite(s)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(l)&&Number.isFinite(d)&&Number.isFinite(f)))throw new RangeError(`Invalid number in "${n}`);return{year:s,month:o,day:i,hour:l,minute:d,second:f}})(Da(e).format(t))}function Ar(e){return e!==void 0&&!(e%4!=0||e%100==0&&e%400!=0)}function tn(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]}[Ar(e)?`leapyear`:`standard`][t-1]}function Ur(e){let t=[h(e,Yt),h(e,jt),h(e,Jt),h(e,Nt),h(e,xt),h(e,Lt),h(e,Bt),h(e,Pt),h(e,At),h(e,Ht)];for(let n=0;n<t.length;n++){let r=t[n];if(r!==0)return r<0?-1:1}return 0}function ro(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 za(e){let t=ro(e.date);return t!==0?t:e.time.sign()}function Ke(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 Kt(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}=Ke(r,o));let s=146097;if(Math.abs(i)>s){let d=Math.trunc(i/s);r+=400*d,i-=d*s}let u=0,l=o>2?r:r-1;for(;u=Ar(l)?366:365,i<-u;)r-=1,l-=1,i+=u;for(l+=1;u=Ar(l)?366:365,i>u;)r+=1,l+=1,i-=u;for(;i<1;)({year:r,month:o}=Ke(r,o-1)),i+=tn(r,o);for(;i>tn(r,o);)i-=tn(r,o),{year:r,month:o}=Ke(r,o+1);return{year:r,month:o,day:i}}function rr(e,t,n,r,o,i,s,u,l){let d=Ue(r,o,i,s,u,l);return ot(Kt(e,t,n+d.deltaDays),d)}function Ue(e,t,n,r,o,i){let s,u=e,l=t,d=n,f=r,g=o,v=i;({div:s,mod:v}=gn(v,3)),g+=s,v<0&&(g-=1,v+=1e3),{div:s,mod:g}=gn(g,3),f+=s,g<0&&(f-=1,g+=1e3),d+=Math.trunc(f/1e3),f%=1e3,f<0&&(d-=1,f+=1e3),l+=Math.trunc(d/60),d%=60,d<0&&(l-=1,d+=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,d+=0,f+=0,g+=0,v+=0,{deltaDays:b,hour:u,minute:l,second:d,millisecond:f,microsecond:g,nanosecond:v}}function Ui(e,t){let n=kt(e,0);if(ro(n)===0)return e.days;let r=h(t,W),o=oe(h(t,N),r,n,`constrain`),i=on(r.year,r.month-1,r.day),s=on(o.year,o.month-1,o.day)-i;return e.days+s}function Qt(e){return new(It(`%Temporal.Duration%`))(-h(e,Yt),-h(e,jt),-h(e,Jt),-h(e,Nt),-h(e,xt),-h(e,Lt),-h(e,Bt),-h(e,Pt),-h(e,At),-h(e,Ht))}function Ut(e,t,n){return Math.min(n,Math.max(t,e))}
3function Fa(e,t,n){let r=Ut(t,1,12);return{year:e,month:r,day:Ut(n,1,tn(e,r))}}function wt(e,t,n){if(e<t||e>n)throw new RangeError(`value out of range: ${t} <= ${e} <= ${n}`)}function nn(e,t,n){wt(t,1,12),wt(n,1,tn(e,t))}function hn(e){rn(ot(e,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function oo(e,t,n,r,o,i){wt(e,0,23),wt(t,0,59),wt(n,0,59),wt(r,0,999),wt(o,0,999),wt(i,0,999)}function li(e,t,n,r,o,i,s,u,l){nn(e,t,n),oo(r,o,i,s,u,l)}function rn(e){let t=Tt(e);(D.default.lessThan(t,bs)||D.default.greaterThan(t,Ds))&&De(t)}function Yo(e){Tt(e)}function De(e){if(D.default.lessThan(e,Kn)||D.default.greaterThan(e,bn))throw new RangeError(`date/time value is outside of supported range`)}function mi({year:e,month:t}){wt(e,Ci,ki),e===Ci?wt(t,4,12):e===ki&&wt(t,1,9)}function io(e,t,n,r,o,i,s,u,l,d){let f=0,g=[e,t,n,r,o,i,s,u,l,d];for(let L=0;L<g.length;L++){let z=g[L];if(z===Infinity||z===-Infinity)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³²`);let v=gn(u,3),b=gn(l,6),I=gn(d,9),R=gn(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 yn(e){return{date:{years:h(e,Yt),months:h(e,jt),weeks:h(e,Jt),days:h(e,Nt)},time:st.fromComponents(h(e,xt),h(e,Lt),h(e,Bt),h(e,Pt),h(e,At),h(e,Ht))}}function ve(e){let t=st.fromComponents(h(e,xt),h(e,Lt),h(e,Bt),h(e,Pt),h(e,At),h(e,Ht)).add24HourDays(h(e,Nt));return{date:{years:h(e,Yt),months:h(e,jt),weeks:h(e,Jt),days:0},time:t}}function Za(e){let t=ve(e),n=Math.trunc(t.time.sec/86400);return io(t.date.years,t.date.months,t.date.weeks,n,0,0,0,0,0,0),y(x({},t.date),{days:n})}function ue(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,d=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,d=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=yo(s,3,Math.trunc(o/1e3)),o%=1e3,s=0;break;case`microsecond`:o=yo(s,6,Math.trunc(r/1e3)),r%=1e3,s=0;break;case`nanosecond`:r=yo(s,9,r),s=0}return new(It(`%Temporal.Duration%`))(e.date.years,e.date.months,e.date.weeks,e.date.days+n*d,n*l,n*u,n*s,n*i,n*o,n*r)}function Ye(e,t){return ro(e),t.sign(),{date:e,time:t}}function on(e,t,n){return hi({isoDate:{year:e,month:t+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/We}function vn({year:e,month:t,day:n}){if(Math.abs(on(e,t-1,n))>1e8)throw new RangeError(`date/time value is outside the supported range`)}function fi(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 yi(e,t,n,r,o){let i=st.fromEpochNsDiff(t,e);return i=zr(i,n,r,o),Ye({years:0,months:0,weeks:0,days:0},i)}function qa(e,t,n,r){Yo(e),Yo(t);let o=fi(e.time,t.time),i=o.sign(),s=Ee(e.isoDate,t.isoDate),u=t.isoDate;s===i&&(u=Kt(u.year,u.month,u.day+i),o=o.add24HourDays(-i));let l=Re(`day`,r),d=Er(n,e.isoDate,u,l);return r!==l&&(o=o.add24HourDays(d.days),d.days=0),Ye(d,o)}function Wa(e,t,n,r,o){let i=D.default.subtract(t,e);if(D.default.equal(i,ne))return{date:{years:0,months:0,weeks:0,days:0},time:st.ZERO};let s=D.default.lessThan(i,ne)?-1:1,u=he(n,e),l=he(n,t),d,f=0,g=s===1?2:1,v=fi(u.time,l.time);for(v.sign()===-s&&f++;f<=g;
3f++){d=ot(Kt(l.isoDate.year,l.isoDate.month,l.isoDate.day-f*s),u.time);let I=Ot(n,d,`compatible`);if(v=st.fromEpochNsDiff(t,I),v.sign()!==-s)break}let b=Re(`day`,o);return Ye(Er(r,u.isoDate,d.isoDate,b),v)}function Ga(e,t,n,r,o,i,s,u,l){let d,f,g,v,b=t;switch(u){case`year`:{let Y=Fe(b.date.years,s,`trunc`);d=Y,f=Y+s*e,g={years:d,months:0,weeks:0,days:0},v=y(x({},g),{years:f});break}case`month`:{let Y=Fe(b.date.months,s,`trunc`);d=Y,f=Y+s*e,g=kt(b.date,0,0,d),v=kt(b.date,0,0,f);break}case`week`:{let Y=kt(b.date,0,0),G=oe(i,r.isoDate,Y,`constrain`),m=Er(i,G,Kt(G.year,G.month,G.day+b.date.days),`week`),k=Fe(b.date.weeks+m.weeks,s,`trunc`);d=k,f=k+s*e,g=kt(b.date,0,d),v=kt(b.date,0,f);break}case`day`:{let Y=Fe(b.date.days,s,`trunc`);d=Y,f=Y+s*e,g=kt(b.date,d),v=kt(b.date,f);break}}let I=oe(i,r.isoDate,g,`constrain`),R=oe(i,r.isoDate,v,`constrain`),$,L,z=ot(I,r.time),F=ot(R,r.time);o?($=Ot(o,z,`compatible`),L=Ot(o,F,`compatible`)):($=Tt(z),L=Tt(F));let K=st.fromEpochNsDiff(n,$),V=st.fromEpochNsDiff(L,$),et=Vr(l,e<0?`negative`:`positive`),pt=K.add(K).abs().subtract(V.abs()).sign(),ht=Math.abs(d)/s%2==0,J=K.isZero()?Math.abs(d):K.cmp(V)?Xr(Math.abs(d),Math.abs(f),pt,ht,et):Math.abs(f),O=new st(D.default.add(D.default.multiply(V.totalNs,D.default.BigInt(d)),D.default.multiply(K.totalNs,D.default.BigInt(s*e)))).fdiv(V.totalNs),j=J===Math.abs(f);return b={date:j?v:g,time:st.ZERO},{nudgeResult:{duration:b,nudgedEpochNs:j?L:$,didExpandCalendarUnit:j},total:O}}function ao(e,t,n,r,o,i,s,u,l){let d=e,f=_e(u)||r&&u===`day`,g=za(d)<0?-1:1,v;return f?{nudgeResult:v}=Ga(g,d,t,n,r,o,s,u,l):v=r?(function(b,I,R,$,L,z,F,K){let V=I,et=oe(L,R.isoDate,V.date,`constrain`),pt=ot(et,R.time),ht=ot(Kt(et.year,et.month,et.day+b),R.time),J=Ot($,pt,`compatible`),O=Ot($,ht,`compatible`),j=st.fromEpochNsDiff(O,J);if(j.sign()!==b)throw new RangeError(`time zone returned inconsistent Instants`);let Y=D.default.BigInt(En[F]*z),G=V.time.round(Y,K),m=G.subtract(j),k=m.sign()!==-b,a,c;return k?(a=b,G=m.round(Y,K),c=G.addToEpochNs(O)):(a=0,c=G.addToEpochNs(J)),{duration:Ye(kt(V.date,V.date.days+a),G),nudgedEpochNs:c,didExpandCalendarUnit:k}})(g,d,n,r,o,s,u,l):(function(b,I,R,$,L,z){let F=b,K=F.time.add24HourDays(F.date.days),V=K.round(D.default.BigInt($*En[L]),z),et=V.subtract(K),{quotient:pt}=K.divmod(Nr),{quotient:ht}=V.divmod(Nr),J=Math.sign(ht-pt)===K.sign(),O=et.addToEpochNs(I),j=0,Y=V;return Oe(R)===`date`&&(j=ht,Y=V.add(st.fromComponents(24*-ht,0,0,0,0,0))),{duration:{date:kt(F.date,j),time:Y},nudgedEpochNs:O,didExpandCalendarUnit:J}})(d,t,i,s,u,l),d=v.duration,v.didExpandCalendarUnit&&u!==`week`&&(d=(function(b,I,R,$,L,z,F,K){let V=I;if(K===F)return V;let et=Gn.indexOf(F);for(let pt=Gn.indexOf(K)-1;pt>=et;pt--){let ht=Gn[pt];if(ht===`week`&&F!==`week`)continue;let J;switch(ht){case`year`:J={years:V.date.years+b,months:0,weeks:0,days:0};break;case`month`:{let Y=V.date.months+b;J=kt(V.date,0,0,Y);break}case`week`:{let Y=V.date.weeks+b;J=kt(V.date,0,Y);break}}let O=ot(oe(z,$.isoDate,J,`constrain`),$.time),j;if(j=L?Ot(L,O,`compatible`):Tt(O),Yr(R,j)===-b)break;V={date:J,time:st.ZERO}}return V})(g,d,v.nudgedEpochNs,n,r,o,i,Re(u,`day`))),d}function zi(e,t,n,r,o,i){return _e(i)||r&&i===`day`?Ga(za(e)<0?-1:1,e,t,n,r,o,1,i,`trunc`).total:Vn(e.time.add24HourDays(e.date.days),i)}function Ja(e,t,n,r,o,i,s){if(Tn(e,t)==0)return{date:{years:0,months:0,weeks:0,days:0},time:st.ZERO};rn(e),rn(t);let u=qa(e,t,n,r);return i===`nanosecond`&&o===1?u:ao(u,Tt(t),e,null,n,r,o,i,s)}function Ha(e,t,n,r,o,i,s,u){if(Oe(o)===`time`)return yi(e,t,i,s,u);let l=Wa(e,t,n,r,o);return s===`nanosecond`&&i===1?l:ao(l,t,he(n,e),n,r,o,i,s,u)}function $n(e,t,n,r,o,i){let s=Dn.reduce(((b,I)=>{let R=I[0],$=I[1],L=I[2];return n!==`datetime`&&L!==n||r.includes($)||b.push($,R),b}),[]),u=Xt(t,`largestUnit`,n,`auto`);if(r.includes(u))throw new RangeError(`largestUnit must be one of ${s.join(`, `)}, not ${u}`);let l=kn(t),d=ye(t,`trunc`);e===`since`&&(d=(function(b){switch(b){case`ceil`:return`floor`;case`floor`:return`ceil`;case`halfCeil`:return`halfFloor`;case`halfFloor`:return`halfCeil`;default:return b}})(d));let f=Xt(t,`smallestUnit`,n,o);if(r.includes(f))throw new RangeError(`smallestUnit must be one of ${s.join(`, `)}, not ${f}`);let g=Re(i,f);if(u===`auto`&&(u=g),Re(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&&On(l,v,!1),{largestUnit:u,roundingIncrement:l,roundingMode:d,smallestUnit:f}}function Fi(e,t,n,r){let o=Un(n),i=$n(e,A(r),`time`,[],`nanosecond`,`second`),s=ue(yi(h(t,q),h(o,q),i.roun
3dingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return e===`since`&&(s=Qt(s)),s}function Zi(e,t,n,r){let o=Pn(n),i=h(t,N),s=h(o,N);if(!be(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=$n(e,A(r),`date`,[],`day`,`day`),l=It(`%Temporal.Duration%`),d=h(t,W),f=h(o,W);if(Ee(d,f)===0)return new l;let g={date:Er(i,d,f,u.largestUnit),time:st.ZERO};if(u.smallestUnit!==`day`||u.roundingIncrement!==1){let b=ot(d,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});g=ao(g,Tt(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=ue(g,`day`);return e===`since`&&(v=Qt(v)),v}function qi(e,t,n,r){let o=An(n),i=h(t,N),s=h(o,N);if(!be(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=$n(e,A(r),`datetime`,[],`nanosecond`,`day`),l=It(`%Temporal.Duration%`),d=h(t,ct),f=h(o,ct);if(Tn(d,f)===0)return new l;let g=ue(Ja(d,f,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode),u.largestUnit);return e===`since`&&(g=Qt(g)),g}function Wi(e,t,n,r){let o=ze(n),i=$n(e,A(r),`time`,[],`nanosecond`,`hour`),s=fi(h(t,ft),h(o,ft));s=zr(s,i.roundingIncrement,i.smallestUnit,i.roundingMode);let u=ue(Ye({years:0,months:0,weeks:0,days:0},s),i.largestUnit);return e===`since`&&(u=Qt(u)),u}function Gi(e,t,n,r){let o=zn(n),i=h(t,N),s=h(o,N);if(!be(i,s))throw new RangeError(`cannot compute difference between months of ${i} and ${s} calendars`);let u=$n(e,A(r),`date`,[`week`,`day`],`month`,`year`),l=It(`%Temporal.Duration%`);if(Ee(h(t,W),h(o,W))==0)return new l;let d=Zt(i,h(t,W),`year-month`);d.day=1;let f=Ge(i,d,`constrain`),g=Zt(i,h(o,W),`year-month`);g.day=1;let v=Ge(i,g,`constrain`),b={date:kt(Er(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=ao(b,Tt(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=ue(b,`day`);return e===`since`&&(I=Qt(I)),I}function Ji(e,t,n,r){let o=Fn(n),i=h(t,N),s=h(o,N);if(!be(i,s))throw new RangeError(`cannot compute difference between dates of ${i} and ${s} calendars`);let u=$n(e,A(r),`datetime`,[],`nanosecond`,`hour`),l=h(t,q),d=h(o,q),f=It(`%Temporal.Duration%`),g;if(Oe(u.largestUnit)!==`date`)g=ue(yi(l,d,u.roundingIncrement,u.smallestUnit,u.roundingMode),u.largestUnit);else{let v=h(t,at);if(!xa(v,h(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,d))return new f;g=ue(Ha(l,d,v,i,u.largestUnit,u.roundingIncrement,u.smallestUnit,u.roundingMode),`hour`)}return e===`since`&&(g=Qt(g)),g}function Mn({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,Ue(e,t,u,r,o,l)}function jo(e,t){let n=t.addToEpochNs(e);return De(n),n}function Zn(e,t,n,r,o=`constrain`){if(ro(r.date)===0)return jo(e,r.time);let i=he(t,e);return jo(Ot(t,ot(oe(n,i.isoDate,r.date,o),i.time),`compatible`),r.time)}function Hi(e,t,n){let r=ce(n);e===`subtract`&&(r=Qt(r));let o=Re(ke(t),ke(r));if(_e(o))throw new RangeError(`For years, months, or weeks arithmetic, use date arithmetic relative to a starting point`);let i=ve(t),s=ve(r);return ue(Ye({years:0,months:0,weeks:0,days:0},i.time.add(s.time)),o)}function Vi(e,t,n){let r=ce(n);e===`subtract`&&(r=Qt(r));let o=ke(r);if(Oe(o)===`date`)throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);let i=ve(r);return me(jo(h(t,q),i.time))}function Xi(e,t,n,r){let o=h(t,N),i=ce(n);e===`subtract`&&(i=Qt(i));let s=Za(i),u=nt(A(r));return zt(oe(o,h(t,W),s,u),o)}function Ki(e,t,n,r){let o=ce(n);e===`subtract`&&(o=Qt(o));let i=nt(A(r)),s=h(t,N),u=ve(o),l=h(t,ct),d=Mn(l.time,u.time),f=kt(u.date,d.deltaDays);return io(f.years,f.months,f.weeks,f.days,0,0,0,0,0,0),se(ot(oe(s,l.isoDate,f,i),d),s)}function Qi(e,t,n){let r=ce(n);e===`subtract`&&(r=Qt(r));let o=ve(r),{hour:i,minute:s,second:u,millisecond:l,microsecond:d,nanosecond:f}=Mn(h(t,ft),o.time);return Se(eo(i,s,u,l,d,f,`reject`))}function ta(e,t,n,r){let o=ce(n);e===`subtract`&&(o=Qt(o));let i=nt(A(r)),s=Ur(o),u=h(t,N),l=Zt(u,h(t,W),`year-month`);l.day=1;let d=Ge(u,l,`constrain`);if(s<0){let g=oe(u,d,{months:1},`constrain`);d=Kt(g.year,g.month,g.day-1)}let f=Za(o);return hn(d),pn(tr(u,Zt(u,oe(u,d,f,i),`year-month`),i),u)}function ea(e,t,n,r){let o=ce(n);e===`subtract`&&(o=Qt(o));let i=nt(A(r)),s=h(t,at),u=h(t,N),l=yn(o);return Ct(Zn(h(t,q),s,u,l,i),s,u)}function Fe(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=Vt(Math.abs(2*o)-t),d=s%2==0,f=Vr(n,i),g=o===0?s:Xr(s,u,l,d,f);return t*(i===`positive`?g:-g)}function No(e,t,n,r){let o=En[n]*t;return(function(i,s,u){let l=Ce(i),d=Ce(s),f=D.default.divide(l,d),g=D.default.remainder(l,d),v=Vr(u,`positive`),b,I;D.default.lessThan(l,ne)?(b=D.default.subtract(f,Xn),I=f):(b=f,I=D.default.add(f,Xn));let R=Yr(Xe(D.default.multiply(g,ai)),d)*(D.default.lessThan(l,ne)?-1:1)+0,$=D.default.equal(g,ne)?f
3:Xr(b,I,R,ia(b),v);return D.default.multiply($,d)})(e,D.default.BigInt(o),r)}function xo(e,t,n,r){Yo(e);let{year:o,month:i,day:s}=e.isoDate,u=Lo(e.time,t,n,r);return ot(Kt(o,i,s+u.deltaDays),u)}function Lo({hour:e,minute:t,second:n,millisecond:r,microsecond:o,nanosecond:i},s,u,l){let d;switch(u){case`day`:case`hour`:d=1e3*(1e3*(1e3*(60*(60*e+t)+n)+r)+o)+i;break;case`minute`:d=1e3*(1e3*(1e3*(60*t+n)+r)+o)+i;break;case`second`:d=1e3*(1e3*(1e3*n+r)+o)+i;break;case`millisecond`:d=1e3*(1e3*r+o)+i;break;case`microsecond`:d=1e3*o+i;break;case`nanosecond`:d=i}let f=En[u],g=Fe(d,f*s,l)/f;switch(u){case`day`:return{deltaDays:g,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case`hour`:return Ue(g,0,0,0,0,0);case`minute`:return Ue(e,g,0,0,0,0);case`second`:return Ue(e,t,g,0,0,0);case`millisecond`:return Ue(e,t,n,g,0,0);case`microsecond`:return Ue(e,t,n,r,g,0);case`nanosecond`:return Ue(e,t,n,r,o,g);default:throw new Error(`Invalid unit ${u}`)}}function zr(e,t,n,r){let o=En[n];return e.round(D.default.BigInt(o*t),r)}function Vn(e,t){let n=En[t];return e.fdiv(D.default.BigInt(n))}function Ee(e,t){return e.year!==t.year?Vt(e.year-t.year):e.month!==t.month?Vt(e.month-t.month):e.day!==t.day?Vt(e.day-t.day):0}function Bo(e,t){return e.hour!==t.hour?Vt(e.hour-t.hour):e.minute!==t.minute?Vt(e.minute-t.minute):e.second!==t.second?Vt(e.second-t.second):e.millisecond!==t.millisecond?Vt(e.millisecond-t.millisecond):e.microsecond!==t.microsecond?Vt(e.microsecond-t.microsecond):e.nanosecond!==t.nanosecond?Vt(e.nanosecond-t.nanosecond):0}function Tn(e,t){let n=Ee(e.isoDate,t.isoDate);return n!==0?n:Bo(e.time,t.time)}function Va(e){let t=Fr(e);return globalThis.BigInt!==void 0?globalThis.BigInt(t.toString(10)):t}function de(e,t){let{quotient:r,remainder:o}=Ln(Ce(e),yr),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 fe(e){if(!Number.isInteger(e))throw new RangeError(`epoch milliseconds must be an integer`);return D.default.multiply(D.default.BigInt(e),yr)}function Fr(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 Po=(()=>{let e=D.default.BigInt(Date.now()%1e6);return()=>{let t=Date.now(),n=D.default.BigInt(t),r=D.default.add(fe(t),e);return e=D.default.remainder(n,yr),D.default.greaterThan(r,bn)?bn:D.default.lessThan(r,Kn)?Kn:r}})();function Nn(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function Vt(e){return e<0?-1:e>0?1:e}function A(e){if(e===void 0)return Object.create(null);if(yt(e)&&e!==null)return e;throw new TypeError(`Options parameter must be an object, not `+(e===null?`null`:typeof e))}function an(e,t){let n=Object.create(null);return n[e]=t,n}function je(e,t,n,r){let o=e[t];if(o!==void 0){if(o=Qr(o),!n.includes(o))throw new RangeError(`${t} must be one of ${n.join(`, `)}, not ${o}`);return o}if(r===xe)throw new RangeError(`${t} option is required`);return r}function Wt(e){let t=or(e);if(!Ms.includes(or(t)))throw new RangeError(`invalid calendar identifier ${t}`);switch(t){case`ethiopic-amete-alem`:return`ethioaa`;case`islamicc`:return`islamic-civil`}return t}function or(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 Ve(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(`^${va.source}$`);
3var Rs=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Xa(e,t,n,r=e(t),o=e(n)){let i=t,s=n,u=r,l=o;for(;s-i>1;){let d=Math.trunc((i+s)/2),f=e(d);f===u?(i=d,u=f):f===l&&(s=d,l=f)}return s}function Ka(e){return[...e]}function Qa(e,t){if(e!==`gregory`&&e!==`iso8601`)return;let n=Cr[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(),d=(o+7-u)%7,f=(o-i+7001-u)%7,g=Math.floor((i-1+f)/7);if(7-f>=l&&++g,g==0)g=(function(v,b,I,R){let $=(R-v-I+1)%7;$<0&&($+=7);let L=Math.floor((I+$-1)/7);return 7-$>=b&&++L,L})(u,l,i+n.isoToDate(n.dateAdd(t,{years:-1},`constrain`),{daysInYear:!0}).daysInYear,o),r--;else if(i>=s-5){let v=(d+s-i)%7;v<0&&(v+=7),6-v>=l&&i+7-d>s&&(g=1,r++)}return{week:g,year:r}}function na(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 Cr={};function sn(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 we(e,t=!1){return`M${`${e}`.padStart(2,`0`)}${t?`L`:``}`}function gi(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`);
3t===`reject`&&wt(r,1,n),t===`constrain`&&(r=Ut(r,1,n)),o=we(r)}else{let i=sn(o);if(o!==we(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 y(x({},e),{month:r,monthCode:o})}Cr.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,gi(e))},dateToISO:(e,t)=>Jn(e.year,e.month,e.day,t),monthDayToISOReferenceDate(e,t){let{month:n,day:r}=Jn(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 Ka(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}=Ke(s,u),{year:s,month:u,day:l}=Jn(s,u,l,i),l+=o+7*r,Kt(s,u,l)},dateUntil(e,t,n){let r=-Ee(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);!na(r,e.year+f,e.month,e.day,t);)i=f,f+=r;let g=r;for(o=Ke(e.year+i,e.month+g);!na(r,o.year,o.month,e.day,t);)s=g,g+=r,o=Ke(o.year,o.month+r);n===`month`&&(s+=12*i,i=0)}o=Ke(e.year+i,e.month+s);let u=Fa(o.year,o.month,e.day),l=0,d=on(t.year,t.month-1,t.day)-on(u.year,u.month-1,u.day);return n===`week`&&(l=Math.trunc(d/7),d%=7),{years:i,months:s,weeks:l,days:d}},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=we(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,d=(n+Math.floor(2.6*i-.2)+(l+Math.floor(l/4))+(Math.floor(u/4)-2*u))%7;o.dayOfWeek=d+(d<=0?7:0)}if(r.dayOfYear){let i=n;for(let s=t-1;s>0;s--)i+=tn(e,s);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=Qa(`iso8601`,{year:e,month:t,day:n})),r.daysInMonth&&(o.daysInMonth=tn(e,t)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=Ar(e),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};var te=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 ts({isoYear:e,isoMonth:t,isoDay:n}){return`${Ir(e)}-${ie(t)}-${ie(n)}T00:00Z`}function po(e,t){return{years:e.year-t.year,months:e.month-t.month,days:e.day-t.day}}te.objectMap=new WeakMap,te.MAX_CACHE_ENTRIES=1e3;var Le=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,y(x({},o),{timeZone:`Etc/GMT+1`})),r=new Date(`-271821-04-20T00:00Z`)}try{return n.formatToParts(r)}catch(o){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=ts({isoYear:r,isoMonth:o,isoDay:i}),d=this.getCalendarParts(l),f={};for(let v=0;v<d.length;v++){let{type:b,value:I}=d[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.`);
3if(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 g=this.adjustCalendarDate(f,n,`constrain`,!0);if(g.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(t)}`);if(g.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(t)}`);if(g.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(t)}`);return n.set(s,g),[`constrain`,`reject`].forEach((v=>{let b=JSON.stringify({func:`calendarToIsoDate`,year:g.year,month:g.month,day:g.day,overflow:v,id:this.id});n.set(b,t)})),g}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}=gi(i,r,s),y(x({},i),{month:u,monthCode:l})}regulateMonthDayNaive(t,n,r){let o=this.monthsInYear(t,r),{month:i,day:s}=t;return n===`reject`?(wt(i,1,o),wt(s,1,this.maximumMonthLength(t))):(i=Ut(i,1,o),s=Ut(s,1,this.maximumMonthLength(y(x({},t),{month:i})))),y(x({},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,d=JSON.stringify({func:`calendarToIsoDate`,year:s,month:u,day:l,overflow:n,id:this.id}),f,g=r.get(d);if(g||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}),g=r.get(f),g))return g;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 K=this.isoToCalendarDate(F,r);for(;K.month!==u||K.year!==s;){if(n===`reject`)throw new RangeError(`day ${l} does not exist in month ${u} of year ${s}`);F=this.addDaysIso(F,-1),K=this.isoToCalendarDate(F,r)}}return F},I=0,R=this.isoToCalendarDate(v,r),$=po(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),$=po(i,R),$.years===0&&$.months===0?v=b($.days):I=this.compareCalendarDates(i,R)}let L=8;for(;I;){v=this.addDaysIso(v,I*L);let z=R;R=this.isoToCalendarDate(v,r);let F=I;if(I=this.compareCalendarDates(i,R),I){if($=po(i,R),$.years===0&&$.months===0)v=b($.days),I=0;else if(F&&I!==F)if(L>1)L/=2;else{if(n===`reject`)throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify(x({},o))}`);this.compareCalendarDates(R,z)>0&&(v=this.addDaysIso(v,-1)),I=0}}}if(r.set(d,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?Vt(t.year-n.year):t.month!==n.month?Vt(t.month-n.month):t.day!==n.day?Vt(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 Kt(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:d}=i,f=i,g=n<0?-Math.max(s,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),v=this.calendarToIsoDate(i,`constrain`,o),b=this.addDaysIso(v,g);if(i=this.isoToCalendarDate(b,o),n>0){let I=this.monthsInYear(f,o);for(;i.month-1!=d%I;)b=this.addDaysIso(b,-1),i=this.isoToCalendarDate(b,o)}i.day!==s&&(i=this.regulateDate(y(x({},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:d,monthCode:f}=t,g=this.adjustCalendarDate({year:l+n,monthCode:f,day:d},u),v=this.addMonthsCalendar(g,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 d=this.calendarDaysUntil(t,n,o);i=d%7,s=(d-i)/7;break}case`month`:case`year`:{let d=this.compareCalendarDates(n,t);if(!d)return{years:0,months:0,weeks:0,days:0};let f=n.year-t.year,g=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(g)),l=I*d<0?f-d:f}let v,b=l?this.addCalendar(t,{years:l},`constrain`,o):t;do u+=d,v=b,b=this.addMonthsCalendar(v,d,`constrain`,o),b.day!==t.day&&(b=this.regulateDate(y(x({},b),{day:t.day}
3),`constrain`,o));while(this.compareCalendarDates(n,b)*d>=0);u-=d,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),d=this.isoToCalendarDate(l,n),f=this.addDaysIso(l,-d.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=y(x({},s),{month:u});let l=this.minimumMonthLength(s),d=this.maximumMonthLength(s);if(l===d)return d;let f=this.calendarToIsoDate(t,`constrain`,n),g=this.addDaysIso(f,-r);return this.isoToCalendarDate(g,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 on(i.year,i.month-1,i.day)-on(o.year,o.month-1,o.day)}monthDaySearchStartYear(t,n){return 1972}monthDayFromFields(t,n,r){let o,i,s,u,l,{era:d,eraYear:f,year:g,month:v,monthCode:b,day:I}=t;if(v!==void 0&&g===void 0&&(!this.hasEra||d===void 0||f===void 0))throw new TypeError(`when month is present, year (or era and eraYear) are required`);(b===void 0||g!==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),L=$.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:L-z},r),K=this.calendarToIsoDate(F,`constrain`,r),V=this.isoToCalendarDate(K,r);if({year:o,month:i,day:s}=K,V.monthCode===b&&V.day===I)return{month:i,day:s,year:o};if(n===`constrain`){let et=this.maxLengthOfMonthCodeInAnyYear(V.monthCode);if(V.monthCode===b&&V.day===et&&I>et)return{month:i,day:s,year:o};(u===void 0||V.monthCode===u.monthCode&&V.day>u.day)&&(u=V,l=K)}}if(n===`constrain`&&l!==void 0)return l;throw new RangeError(`No recent ${this.id} year with monthCode ${b} and day ${I}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}};var Ao=class extends Le{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?we(5,!0):we(n<6?n:n-1):we(n)}adjustCalendarDate(t,n,r=`constrain`,o=!1){let{year:i,month:s,monthCode:u,day:l,monthExtra:d}=t;if(i===void 0)throw new TypeError(`Missing property: year`);if(o){if(d){let f=this.months[d];if(!f)throw new RangeError(`Unrecognized month from formatToParts: ${d}`);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 invali
3d in year ${i} which is not a leap year`);s=6,u=`M06`}}else{s=sn(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`?(wt(s,1,this.monthsInYear({year:i})),wt(l,1,this.maximumMonthLength({year:i,month:s}))):(s=Ut(s,1,this.monthsInYear({year:i})),l=Ut(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 y(x({},t),{day:l,month:s,monthCode:u,year:i})}};var Je=class extends Le{constructor(){super(...arguments),this.calendarType=`lunar`,this.DAYS_PER_ISLAMIC_YEAR=354.3666666666667,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}}};var Uo=class extends Je{constructor(){super(...arguments),this.id=`islamic`}};var zo=class extends Je{constructor(){super(...arguments),this.id=`islamic-umalqura`}};var Fo=class extends Je{constructor(){super(...arguments),this.id=`islamic-tbla`}};var Zo=class extends Je{constructor(){super(...arguments),this.id=`islamic-civil`}};var qo=class extends Je{constructor(){super(...arguments),this.id=`islamic-rgsa`}};var Wo=class extends Je{constructor(){super(...arguments),this.id=`islamicc`}};var Go=class extends Le{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 sn(t)<=6?31:30}estimateIsoDate(t){let{year:n}=this.adjustCalendarDate(t);return{year:n+621,month:1,day:1}}};var Jo=class extends Le{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 _i(t.year+78)}monthsInYear(){return 12}minimumMonthLength(t){return this.getMonthInfo(t).length}maximumMonthLength(t){return this.getMonthInfo(t).length}maxLengthOfMonthCodeInAnyYear(t){let n=sn(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 Kt(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 _i(e){return e%4==0&&(e%100!=0||e%400==0)}var Zr=class extends Le{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 _i(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][sn(t)-1]}estimateIsoDate(t){let n=this.adjustCalendarDate(t);return Jn(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,`constrain`)}};var qr=class extends Le{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((d=>d.reverseOf!=null)).length>1)throw new RangeError(`Invalid era data: only one era can count years backwards`);u.forEach((d=>
3{if(d.isAnchor||!d.anchorEpoch&&!d.reverseOf){if(s)throw new RangeError(`Invalid era data: cannot have multiple anchor eras`);s=d,d.anchorEpoch={year:d.hasYearZero?0:1}}else if(!d.code)throw new RangeError(`If era name is blank, it must be the anchor era`)})),u=u.filter((d=>d.code)),u.forEach((d=>{let{reverseOf:f}=d;if(f){let g=u.find((v=>v.code===f));if(g===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${f}`);d.reverseOf=g,d.anchorEpoch=g.anchorEpoch,d.isoEpoch=g.isoEpoch}d.anchorEpoch.month===void 0&&(d.anchorEpoch.month=1),d.anchorEpoch.day===void 0&&(d.anchorEpoch.day=1)})),u.sort(((d,f)=>{if(d.reverseOf)return 1;if(f.reverseOf)return-1;if(!d.isoEpoch||!f.isoEpoch)throw new RangeError(`Invalid era data: missing ISO epoch`);return f.isoEpoch.year-d.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(((d,f)=>{d.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 _i(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][sn(t)-1]}completeEraYear(t){let n=(u,l,d)=>{let f=t[u];if(f!=null&&f!=l&&!(d||[]).includes(f)){let g=d?.[0];throw new RangeError(`Input ${u} ${f} doesn't match calculated value ${g?`${l} (also called ${g})`:l}`)}},r=u=>{let l,d=y(x({},t),{year:u}),f=this.eras.find(((g,v)=>{if(v===this.eras.length-1){if(g.reverseOf){if(u>0)throw new RangeError(`Signed year ${u} is invalid for era ${g.code}`);return l=g.anchorEpoch.year-u,!0}return l=u-g.anchorEpoch.year+(g.hasYearZero?0:1),!0}return this.compareCalendarDates(d,g.anchorEpoch)>=0&&(l=u-g.anchorEpoch.year+(g.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:d=[]})=>l===s||d.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 y(x({},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=y(x({},o),{month:sn(s)})),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(t){let{year:r,month:o,day:i}=this.adjustCalendarDate(t),{anchorEra:s}=this;return Jn(r+s.isoEpoch.year-(s.hasYearZero?0:1),o,i,`constrain`)}};var ir=class extends qr{constructor(t,n){super(t,n)}isoToCalendarDate(t){let{year:n,month:r,day:o}=t,i=we(r),s=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:s,month:r,monthCode:i,day:o})}};var pe={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};var Ho=class extends Zr{constructor(t,n){super(t,n),this.inLeapYear=pe.inLeapYear,this.monthsInYear=pe.monthsInYear,this.minimumMonthLength=pe.minimumMonthLength,this.maximumMonthLength=pe.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=pe.maxLengthOfMonthCodeInAnyYear}};var Wr=class extends qr{constructor(t,n){super(t,n),this.inLeapYear=pe.inLeapYear,this.monthsInYear=pe.monthsInYear,this.minimumMonthLength=pe.minimumMonthLength,this.maximumMonthLength=pe.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=pe.maxLengthOfMonthCodeInAnyYear}};var Vo=class extends Ho{constructor(){super(`ethioaa`,{year:-5492,month:7,day:17})}};var Xo=class extends Wr{constructor(){super(`coptic`,[{code:`coptic`,isoEpoch:{year:284,month:8,day:29}},{code:`coptic-inverse`,reverseOf:`coptic`}])}};var Ko=class extends Wr{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}}])}};var Qo=class extends ir{constructor(){super(`roc`,[{code:`roc`,names:[`minguo`],isoEpoch:{year:1912,month:1,day:1}},{code:`roc-inverse`,names:[`before-roc`],reverseOf:`roc`}])}};var ti=class extends Zr{constructor(){super(`buddhist`,{year:-543,month:1,day:1})}};var ei=class extends ir{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}};var ni=class extends ir{constructor(){super(`japanese`,[{code:`reiwa`,isoEp
3och:{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}}};var Gr=class extends Le{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=($,L)=>{let z=ts({isoYear:$,isoMonth:2,isoDay:1}),F=new Date(z);F.setUTCDate(L+1);let K=i.formatToParts(F),V=K.find((J=>J.type===`month`)).value,et=+K.find((J=>J.type===`day`)).value,pt=K.find((J=>J.type===`relatedYear`)),ht;if(pt===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return ht=+pt.value,{calendarMonthString:V,calendarDay:et,calendarYearToVerify:ht}},u=17,{calendarMonthString:l,calendarDay:d,calendarYearToVerify:f}=s(t,u);l!==`1`&&(u+=29,{calendarMonthString:l,calendarDay:d}=s(t,u)),u-=d-5;let g={},v,b,I=1,R=!1;do({calendarMonthString:l,calendarDay:d,calendarYearToVerify:f}=s(t,u)),v&&(g[b].daysInMonth=v+30-d),f!==t?R=!0:(g[l]={monthIndex:I++},u+=30),v=d,b=l;while(!R);return g[b].daysInMonth=v+30-d,n.set(r,g),g}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:d}=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=we(s,u!==void 0),g=`${s}${u||``}`,v=this.getMonthList(i,n)[g];if(v===void 0)throw new RangeError(`Unmatched month ${g} 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),g=d.replace(/^M|L$/g,(b=>b===`L`?`bis`:``));g[0]===`0`&&(g=g.slice(1));let v=f[g];if(s=v&&v.monthIndex,s===void 0&&d.endsWith(`L`)&&d!=`M13L`&&r===`constrain`){let b=+d.replace(/^M0?|L$/g,``);v=f[b],v&&(s=v.monthIndex,d=we(b))}if(s===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`)}else if(d===void 0){let f=this.getMonthList(i,n),g=Object.entries(f),v=g.length;r===`reject`?(wt(s,1,v),wt(l,1,this.maximumMonthLength())):(s=Ut(s,1,v),l=Ut(l,1,this.maximumMonthLength()));let b=g.find((I=>I[1].monthIndex===s));if(b===void 0)throw new RangeError(`Invalid month ${s} in Chinese year ${i}`);d=we(+b[0].replace(`bis`,``),b[0].indexOf(`bis`)!==-1)}else{let f=this.getMonthList(i,n),g=d.replace(/^M|L$/g,(b=>b===`L`?`bis`:``));g[0]===`0`&&(g=g.slice(1));let v=f[g];if(!v)throw new RangeError(`Unmatched monthCode ${d} in Chinese year ${i}`);if(s!==v.monthIndex)throw new RangeError(`monthCode ${d} doesn't correspond to month ${s} in Chinese year ${i}`)}return y(x({},t),{year:i,month:s,monthCode:d,day:l})}};var ri=class extends Gr{constructor(){super(...arguments),this.id=`chinese`}};var oi=class extends Gr{constructor(){super(...arguments),this.id=`dangi`}};var ii=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 te;gi(t,void 0,this.helper.monthsInYear({year:t.year??1972},n))}}dateToISO(t,n){let r=new te,o=this.helper.calendarToIsoDate(t,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(t,n){let r=new te,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 Ka(n)}dateAdd(t,{years:n,months:r,weeks:o,days:i},s){let u=te.getCacheForObject(t),l=this.helper.isoToCalendarDate(t,u),d=this.helper.addCalendar(l,{years:n,months:r,weeks:o,days:i},s,u),f=this.helper.calendarToIsoDate(d,`constrain`,u);return te.getCacheForObject(f)||new te(u).setObject(f),f}dateUntil(t,n,r){let o=te.getCacheForObject(t),i=te.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=te.getCacheForObject(t),o=this.helper.isoToCalendarDate(t,r);
3if(n.dayOfWeek&&(o.dayOfWeek=Cr.iso8601.isoToDate(t,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){let i=this.helper.startOfCalendarYear(o);o.dayOfYear=this.helper.calendarDaysUntil(i,o,r)+1}if(n.weekOfYear&&(o.weekOfYear=Qa(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[Ao,Go,Ko,Vo,Xo,ri,oi,Qo,Jo,ti,ei,ni,Uo,zo,Fo,Zo,qo,Wo]){let t=new e;Cr[t.id]=new ii(t)}To(`calendarImpl`,(function(e){return Cr[e]}));var ar=Intl.DateTimeFormat;function dn(e,t){let n=h(e,t);return typeof n==`function`&&(n=new ar(h(e,ya),n(h(e,bo))),(function(r,o,i){let s=Hr(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 xn(e){return qt(e,cn)}var un=class{constructor(t=void 0,n=void 0){(function(r,o,i){let s=i!==void 0,u;if(s){let g=[`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<g.length;b++){let I=g[b];Object.prototype.hasOwnProperty.call(u,I)&&(v[I]=u[I])}u=v}else u=Object.create(null);let l=new ar(o,u),d=l.resolvedOptions();if(Be(r),s){let g=Object.assign(Object.create(null),d);for(let v in g)Object.prototype.hasOwnProperty.call(u,v)||delete g[v];g.hour12=u.hour12,g.hourCycle=u.hourCycle,Q(r,bo,g)}else Q(r,bo,u);Q(r,ya,d.locale),Q(r,cn,l),Q(r,fn,d.timeZone),Q(r,Bn,d.calendar),Q(r,ca,Us),Q(r,ha,Ps),Q(r,da,As),Q(r,la,Bs),Q(r,ma,zs),Q(r,fa,Fs);let f=s?u.timeZone:void 0;if(f===void 0)Q(r,wo,d.timeZone);else{let g=Qr(f);if(g.startsWith(`−`))throw new RangeError(`Unicode minus (U+2212) is not supported in time zone offsets`);Q(r,wo,Ft(g))}})(this,t,n)}get format(){T(this,xn);let t=js.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 T(this,xn),xs.call(this,t,n)}formatToParts(t,...n){return T(this,xn),Ns.call(this,t,...n)}formatRangeToParts(t,n){return T(this,xn),Ls.call(this,t,n)}resolvedOptions(){return T(this,xn),Ys.call(this)}};`formatToParts`in ar.prototype||delete un.prototype.formatToParts,`formatRangeToParts`in ar.prototype||delete un.prototype.formatRangeToParts;var re=function(e=void 0,t=void 0){return new un(e,t)};function Ys(){let e=h(this,cn).resolvedOptions();return e.timeZone=h(this,wo),e}function js(e,...t){let n,r,o=In(e,this);return o.formatter?(n=o.formatter,r=[de(o.epochNs,`floor`)]):(n=h(this,cn),r=[e,...t]),n.format(...r)}function Ns(e,...t){let n,r,o=In(e,this);return o.formatter?(n=o.formatter,r=[de(o.epochNs,`floor`)]):(n=h(this,cn),r=[e,...t]),n.formatToParts(...r)}function xs(e,t){if(e===void 0||t===void 0)throw new TypeError(`Intl.DateTimeFormat.formatRange requires two values`);let n=Jr(e),r=Jr(t),o,i=[n,r];if(Ne(n)!==Ne(r))throw new TypeError(`Intl.DateTimeFormat.formatRange accepts two values of the same type`);if(Ne(n)){if(!es(n,r))throw new TypeError(`Intl.DateTimeFormat.formatRange accepts two values of the same type`);let{epochNs:s,formatter:u}=In(n,this),{epochNs:l,formatter:d}=In(r,this);u&&(o=u,i=[de(s,`floor`),de(l,`floor`)])}return o||(o=h(this,cn)),o.formatRange(...i)}function Ls(e,t){if(e===void 0||t===void 0)throw new TypeError(`Intl.DateTimeFormat.formatRange requires two values`);let n=Jr(e),r=Jr(t),o,i=[n,r];if(Ne(n)!==Ne(r))throw new TypeError(`Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type`);if(Ne(n)){if(!es(n,r))throw new TypeError(`Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type`);let{epochNs:s,formatter:u}=In(n,this),{epochNs:l,formatter:d}=In(r,this);u&&(o=u,i=[de(s,`floor`),de(l,`floor`)])}return o||(o=h(this,cn)),o.formatRangeToParts(...i)}function kr(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=kr(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`})),!uo(t)){if(Or(e))throw new TypeError(`cannot format Temporal.PlainTime with options [${Ob
3ject.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=kr(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(Or(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=kr(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(Or(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=kr(e,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!so(t)){if(Or(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=kr(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),!uo(t)&&!so(t)){if(Or(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 uo(t)||so(t)||(t=Object.assign({},t,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`})),t}function so(e){return`year`in e||`month`in e||`day`in e||`weekday`in e||`dateStyle`in e||`era`in e}function uo(e){return`hour`in e||`minute`in e||`second`in e||`timeStyle`in e||`dayPeriod`in e||`fractionalSecondDigits`in e}function Or(e){return so(e)||uo(e)||`dateStyle`in e||`timeStyle`in e||`timeZoneName`in e}function Ne(e){return mt(e)||gt(e)||ut(e)||tt(e)||Mt(e)||ee(e)||Et(e)}function Jr(e){return Ne(e)?e:Kr(e)}function es(e,t){return!(!Ne(e)||!Ne(t)||gt(e)&&!gt(t)||mt(e)&&!mt(t)||ut(e)&&!ut(t)||tt(e)&&!tt(t)||Mt(e)&&!Mt(t)||ee(e)&&!ee(t)||Et(e)&&!Et(t))}function In(e,t){if(gt(e)){let n={isoDate:{year:1970,month:1,day:1},time:h(e,ft)};return{epochNs:Ot(h(t,fn),n,`compatible`),formatter:dn(t,la)}}if(Mt(e)){let n=h(e,N),r=h(t,Bn);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);let o=ot(h(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ot(h(t,fn),o,`compatible`),formatter:dn(t,ha)}}if(ee(e)){let n=h(e,N),r=h(t,Bn);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);let o=ot(h(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ot(h(t,fn),o,`compatible`),formatter:dn(t,da)}}if(mt(e)){let n=h(e,N),r=h(t,Bn);if(n!==`iso8601`&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);let o=ot(h(e,W),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ot(h(t,fn),o,`compatible`),formatter:dn(t,ca)}}if(ut(e)){let n=h(e,N),r=h(t,Bn);if(n!==`iso8601`&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);let o=h(e,ct);return{epochNs:Ot(h(t,fn),o,`compatible`),formatter:dn(t,ma)}}if(tt(e))throw new TypeError(`Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleStr
3ing() instead.`);return Et(e)?{epochNs:h(e,q),formatter:dn(t,fa)}:{}}function ns(e){let t=Object.create(null);return t.years=h(e,Yt),t.months=h(e,jt),t.weeks=h(e,Jt),t.days=h(e,Nt),t.hours=h(e,xt),t.minutes=h(e,Lt),t.seconds=h(e,Bt),t.milliseconds=h(e,Pt),t.microseconds=h(e,At),t.nanoseconds=h(e,Ht),t}un.prototype.constructor=re,Object.defineProperty(re,"prototype",{value:un.prototype,writable:!1,enumerable:!1,configurable:!1}),re.supportedLocalesOf=ar.supportedLocalesOf,Pe(re,`Intl.DateTimeFormat`);var{format:Zs,formatToParts:qs}=Intl.DurationFormat?.prototype??Object.create(null);function pi(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=ns(ce(e));return Zs.call(this,t)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=pi,Intl.DurationFormat.prototype.formatToParts=function(e){Intl.DurationFormat.prototype.resolvedOptions.call(this);let t=ns(ce(e));return qs.call(this,t)});Object.freeze({__proto__:null,DateTimeFormat:re,ModifiedIntlDurationFormatPrototypeFormat:pi});var sr=class{constructor(t){if(arguments.length<1)throw new TypeError(`missing argument: epochNanoseconds is required`);ja(this,Fr(t))}get epochMilliseconds(){return T(this,Et),de(h(this,q),`floor`)}get epochNanoseconds(){return T(this,Et),Va(D.default.BigInt(h(this,q)))}add(t){return T(this,Et),Vi(`add`,this,t)}subtract(t){return T(this,Et),Vi(`subtract`,this,t)}until(t,n=void 0){return T(this,Et),Fi(`until`,this,t,n)}since(t,n=void 0){return T(this,Et),Fi(`since`,this,t,n)}round(t){if(T(this,Et),t===void 0)throw new TypeError(`options parameter is required`);let n=typeof t==`string`?an(`smallestUnit`,t):A(t),r=kn(n),o=ye(n,`halfExpand`),i=Xt(n,`smallestUnit`,`time`,xe);return On(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),me(No(h(this,q),r,i,o))}equals(t){T(this,Et);let n=Un(t),r=h(this,q),o=h(n,q);return D.default.equal(D.default.BigInt(r),D.default.BigInt(o))}toString(t=void 0){T(this,Et);let n=A(t),r=vr(n),o=ye(n,`trunc`),i=Xt(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=Ft(s));let{precision:u,unit:l,increment:d}=wr(i,r);return ji(me(No(h(this,q),d,l,o)),s,u)}toJSON(){return T(this,Et),ji(this,void 0,`auto`)}toLocaleString(t=void 0,n=void 0){return T(this,Et),new re(t,n).format(this)}valueOf(){Ve(`Instant`)}toZonedDateTimeISO(t){T(this,Et);let n=Ft(t);return Ct(h(this,q),n,`iso8601`)}static fromEpochMilliseconds(t){return me(fe(Kr(t)))}static fromEpochNanoseconds(t){return me(Fr(t))}static from(t){return Un(t)}static compare(t,n){let r=Un(t),o=Un(n),i=h(r,q),s=h(o,q);return D.default.lessThan(i,s)?-1:D.default.greaterThan(i,s)?1:0}};Pe(sr,`Temporal.Instant`);var ur=class{constructor(t,n,r,o=`iso8601`){let i=H(t),s=H(n),u=H(r),l=Wt(o===void 0?`iso8601`:vt(o));nn(i,s,u),Oa(this,{year:i,month:s,day:u},l)}get calendarId(){return T(this,mt),h(this,N)}get era(){return St(this,`era`)}get eraYear(){return St(this,`eraYear`)}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 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 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`)}with(t,n=void 0){if(T(this,mt),!yt(t))throw new TypeError(`invalid argument`);Cn(t);let r=h(this,N),o=Zt(r,h(this,W));return o=en(r,o,ae(r,t,[`year`,`month`,`monthCode`,`day`],[],`partial`)),zt(Ge(r,o,nt(A(n))),r)}withCalendar(t){T(this,mt);let n=Mr(t);return zt(h(this,W),n)}add(t,n=void 0){return T(this,mt),Xi(`add`,this,t,n)}subtract(t,n=void 0){return T(this,mt),Xi(`subtract`,this,t,n)}until(t,n=void 0){return T(this,mt),Zi(`until`,this,t,n)}since(t,n=void 0){return T(this,mt),Zi(`since`,this,t,n)}equals(t){T(this,mt);let n=Pn(t);return Ee(h(this,W),h(n,W))===0&&be(h(this,N),h(n,N))}toString(t=void 0){return T(this,mt),Ni(this,pr(A(t)))}toJSON(){return T(this,mt),Ni(this)}
3toLocaleString(t=void 0,n=void 0){return T(this,mt),new re(t,n).format(this)}valueOf(){Ve(`PlainDate`)}toPlainDateTime(t=void 0){T(this,mt);let n=ka(t);return se(ot(h(this,W),n),h(this,N))}toZonedDateTime(t){let n,r;if(T(this,mt),yt(t)){let s=t.timeZone;s===void 0?n=Ft(t):(n=Ft(s),r=t.plainTime)}else n=Ft(t);let o=h(this,W),i;return r===void 0?i=Ae(n,o):(r=ze(r),i=Ot(n,ot(o,h(r,ft)),`compatible`)),Ct(i,n,h(this,N))}toPlainYearMonth(){T(this,mt);let t=h(this,N);return pn(tr(t,Zt(t,h(this,W)),`constrain`),t)}toPlainMonthDay(){T(this,mt);let t=h(this,N);return _n(Br(t,Zt(t,h(this,W)),`constrain`),t)}static from(t,n=void 0){return Pn(t,n)}static compare(t,n){let r=Pn(t),o=Pn(n);return Ee(h(r,W),h(o,W))}};function St(e,t){T(e,mt);let n=h(e,W);return br(e).isoToDate(n,{[t]:!0})[t]}Pe(ur,`Temporal.PlainDate`);var cr=class{constructor(t,n,r,o=0,i=0,s=0,u=0,l=0,d=0,f=`iso8601`){let g=H(t),v=H(n),b=H(r),I=o===void 0?0:H(o),R=i===void 0?0:H(i),$=s===void 0?0:H(s),L=u===void 0?0:H(u),z=l===void 0?0:H(l),F=d===void 0?0:H(d),K=Wt(f===void 0?`iso8601`:vt(f));li(g,v,b,I,R,$,L,z,F),Sa(this,{isoDate:{year:g,month:v,day:b},time:{hour:I,minute:R,second:$,millisecond:L,microsecond:z,nanosecond:F}},K)}get calendarId(){return T(this,ut),h(this,N)}get year(){return $t(this,`year`)}get month(){return $t(this,`month`)}get monthCode(){return $t(this,`monthCode`)}get day(){return $t(this,`day`)}get hour(){return ln(this,`hour`)}get minute(){return ln(this,`minute`)}get second(){return ln(this,`second`)}get millisecond(){return ln(this,`millisecond`)}get microsecond(){return ln(this,`microsecond`)}get nanosecond(){return ln(this,`nanosecond`)}get era(){return $t(this,`era`)}get eraYear(){return $t(this,`eraYear`)}get dayOfWeek(){return $t(this,`dayOfWeek`)}get dayOfYear(){return $t(this,`dayOfYear`)}get weekOfYear(){return $t(this,`weekOfYear`)?.week}get yearOfWeek(){return $t(this,`weekOfYear`)?.year}get daysInWeek(){return $t(this,`daysInWeek`)}get daysInYear(){return $t(this,`daysInYear`)}get daysInMonth(){return $t(this,`daysInMonth`)}get monthsInYear(){return $t(this,`monthsInYear`)}get inLeapYear(){return $t(this,`inLeapYear`)}with(t,n=void 0){if(T(this,ut),!yt(t))throw new TypeError(`invalid argument`);Cn(t);let r=h(this,N),o=h(this,ct),i=x(x({},Zt(r,o.isoDate)),o.time);return i=en(r,i,ae(r,t,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`],`partial`)),se(Dr(r,i,nt(A(n))),r)}withPlainTime(t=void 0){T(this,ut);let n=ka(t);return se(ot(h(this,ct).isoDate,n),h(this,N))}withCalendar(t){T(this,ut);let n=Mr(t);return se(h(this,ct),n)}add(t,n=void 0){return T(this,ut),Ki(`add`,this,t,n)}subtract(t,n=void 0){return T(this,ut),Ki(`subtract`,this,t,n)}until(t,n=void 0){return T(this,ut),qi(`until`,this,t,n)}since(t,n=void 0){return T(this,ut),qi(`since`,this,t,n)}round(t){if(T(this,ut),t===void 0)throw new TypeError(`options parameter is required`);let n=typeof t==`string`?an(`smallestUnit`,t):A(t),r=kn(n),o=ye(n,`halfExpand`),i=Xt(n,`smallestUnit`,`time`,xe,[`day`]),s={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];On(r,s,s===1);let u=h(this,ct);return se(r===1&&i===`nanosecond`?u:xo(u,r,i,o),h(this,N))}equals(t){T(this,ut);let n=An(t);return Tn(h(this,ct),h(n,ct))===0&&be(h(this,N),h(n,N))}toString(t=void 0){T(this,ut);let n=A(t),r=pr(n),o=vr(n),i=ye(n,`trunc`),s=Xt(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:d}=wr(s,o),f=xo(h(this,ct),d,l,i);return rn(f),nr(f,h(this,N),u,r)}toJSON(){return T(this,ut),nr(h(this,ct),h(this,N),`auto`)}toLocaleString(t=void 0,n=void 0){return T(this,ut),new re(t,n).format(this)}valueOf(){Ve(`PlainDateTime`)}toZonedDateTime(t,n=void 0){T(this,ut);let r=Ft(t),o=Hn(A(n));return Ct(Ot(r,h(this,ct),o),r,h(this,N))}toPlainDate(){return T(this,ut),zt(h(this,ct).isoDate,h(this,N))}toPlainTime(){return T(this,ut),Se(h(this,ct).time)}static from(t,n=void 0){return An(t,n)}static compare(t,n){let r=An(t),o=An(n);return Tn(h(r,ct),h(o,ct))}};function $t(e,t){T(e,ut);let n=h(e,ct).isoDate;return br(e).isoToDate(n,{[t]:!0})[t]}function ln(e,t){return T(e,ut),h(e,ct).time[t]}Pe(cr,`Temporal.PlainDateTime`);var hr=class e{constructor(t=0,n=0,r=0,o=0,i=0,s=0,u=0,l=0,d=0,f=0){let g=t===void 0?0:le(t),v=n===void 0?0:le(n),b=r===void 0?0:le(r),I=o===void 0?0:le(o),R=i===void 0?0:le(i),$=s===void 0?0:le(s),L=u===void 0?0:le(u),z=l===void 0?0:le(l),F=d===void 0?0:le(d),K=f===void 0?0:le(f);io(g,v,b,I,R,$,L,z,F,K),Be(this),Q(this,Yt,g),Q(this,jt,v),Q(this,Jt,b),Q(this,Nt,I),Q(this,xt,R),Q(this,Lt,$),Q(this,Bt,L),Q(this,Pt,z),Q(this,At,F),Q(this,Ht,K)}get years(){return T(this,lt),h(this,Yt)}get months(){return T(this,lt),h(this,jt)}get weeks(){return T(this,lt),h(this,Jt)}get days(){return T(this,lt),h(this,Nt)}get hours(){return T(this,lt),h(this,xt)}get minutes(){return T(this,lt),h(this,Lt)}get seconds(){return T(this,lt),h(this,Bt)}get milliseconds(){return T(this,lt),h(this,Pt)}get microseconds(){return T(this,lt),h(this,At)}get nanoseconds(){return T(this,lt),h(this,Ht)}get sign(){return T(this,lt),Ur(this)}get blank(){return T(this,lt),Ur(this)===0}with(t){T(this,lt);let{years:r=h(this,Yt),months:o=h(this,jt),weeks:i=h(this,Jt),days:s=h(this,Nt),hours:u=h(this,xt),minutes:l=h(this,Lt),seconds:d=h(this,Bt),milliseconds:f=h(this,Pt),microseconds:g=h(this,At),nanoseconds:v=h(this,Ht)}=Ca(t);return new e(r,o,i,s,u,l,d,f,g,v)}negated(){return T(this,lt),Qt(this)}abs(){return T(this,lt),new e(Math.abs(h(this,Yt)),Math.abs(h(this,jt)),Math.abs(h(this,Jt)),Math.abs(h(this,Nt)),Math.abs(h(this,xt)),Math.abs(h(this,Lt)),Math.abs(h(this,Bt)),Math.abs(h(this,Pt)),Math.abs(h(this,At)),Math.abs(h(this,Ht)))}add(t){return T(this,lt),Hi(`add`,this,t)}subtract(t){return T(this,lt),Hi(`subtract`,this,t)}round(t){if(T(this,lt),t===void 0)throw new TypeError(`options parameter is required`);let n=ke(this),r=typeof t==`string`?an(`smallestUnit`,t):A(t),o=Xt(r,`largestUnit`,`datetime`,void 0,[`auto`]),{plainRelativeTo:i,zonedRelativeTo:s}=_o(r),u=kn(r),l=ye(r,`halfExpand`),d=Xt(r,`smallestUnit`,`datetime`,void 0),f=!0;d||(f=!1,d=`nanosecond`);let g=Re(n,d),v=!0;if(o||(v=!1,o=g),o===`auto`&&(o=g),!f&&!v)throw new RangeError(`at least one of smallestUnit or largestUnit is required`);if(Re(o,d)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${d}`);let b={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[d];if(b!==void 0&&On(u,b,!1),u>1&&Oe(d)===`date`&&o!==d)throw new RangeError(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`);if(s){let R=yn(this),$=h(s,at),L=h(s,N),z=h(s,q);return R=Ha(z,Zn(z,$,L,R),$,L,o,u,d,l),Oe(o)===`date`&&(o=`hour`),ue(R,o)}if(i){let R=ve(this),$=Mn({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},R.time),L=h(i,W),z=h(i,N),F=oe(z,L,kt(R.date,$.deltaDays),`constrain`);return R=Ja(ot(L,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ot(F,$),z,o,u,d,l),ue(R,o)}if(_e(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(_e(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let I=ve(this);if(d===`day`){let{quotient:R,remainder:$}=I.time.divmod(Nr),L=I.date.days+R+Vn($,`day`);L=Fe(L,u,l),I=Ye({years:0,months:0,weeks:0,days:L},st.ZERO)}else I=Ye({years:0,months:0,weeks:0,days:0},zr(I.time,u,d,l));return ue(I,o)}total(t){if(T(this,lt),t===void 0)throw new TypeError(`options argument is required`);let n=typeof t==`string`?an(`unit`,t):A(t),{plainRelativeTo:r,zonedRelativeTo:o}=_o(n),i=Xt(n,`unit`,`datetime`,xe);if(o){let u=yn(this),l=h(o,at),d=h(o,N),f=h(o,q);
3return(function(g,v,b,I,R){return Oe(R)===`time`?Vn(st.fromEpochNsDiff(v,g),R):zi(Wa(g,v,b,I,R),v,he(b,g),b,I,R)})(f,Zn(f,l,d,u),l,d,i)}if(r){let u=ve(this),l=Mn({deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},u.time),d=h(r,W),f=h(r,N),g=oe(f,d,kt(u.date,l.deltaDays),`constrain`);return(function(v,b,I,R){if(Tn(v,b)==0)return 0;rn(v),rn(b);let $=qa(v,b,I,R);return R===`nanosecond`?D.default.toNumber($.time.totalNs):zi($,Tt(b),v,null,I,R)})(ot(d,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ot(g,l),f,i)}let s=ke(this);if(_e(s))throw new RangeError(`a starting point is required for ${s}s total`);if(_e(i))throw new RangeError(`a starting point is required for ${i}s total`);return Vn(ve(this).time,i)}toString(t=void 0){T(this,lt);let n=A(t),r=vr(n),o=ye(n,`trunc`),i=Xt(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}=wr(i,r);if(u===`nanosecond`&&l===1)return $r(this,s);let d=ke(this),f=yn(this),g=zr(f.time,l,u,o);return f=Ye(f.date,g),$r(ue(f,Re(d,`second`)),s)}toJSON(){return T(this,lt),$r(this,`auto`)}toLocaleString(t=void 0,n=void 0){if(T(this,lt),typeof Intl.DurationFormat==`function`){let r=new Intl.DurationFormat(t,n);return pi.call(r,this)}return console.warn(`Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat.`),$r(this,`auto`)}valueOf(){Ve(`Duration`)}static from(t){return ce(t)}static compare(t,n,r=void 0){let o=ce(t),i=ce(n),{plainRelativeTo:u,zonedRelativeTo:l}=_o(A(r));if(h(o,Yt)===h(i,Yt)&&h(o,jt)===h(i,jt)&&h(o,Jt)===h(i,Jt)&&h(o,Nt)===h(i,Nt)&&h(o,xt)===h(i,xt)&&h(o,Lt)===h(i,Lt)&&h(o,Bt)===h(i,Bt)&&h(o,Pt)===h(i,Pt)&&h(o,At)===h(i,At)&&h(o,Ht)===h(i,Ht))return 0;let d=ke(o),f=ke(i),g=yn(o),v=yn(i);if(l&&(Oe(d)===`date`||Oe(f)===`date`)){let L=h(l,at),z=h(l,N),F=h(l,q),K=Zn(F,L,z,g),V=Zn(F,L,z,v);return Vt(D.default.toNumber(D.default.subtract(K,V)))}let b=g.date.days,I=v.date.days;if(_e(d)||_e(f)){if(!u)throw new RangeError(`A starting point is required for years, months, or weeks comparison`);b=Ui(g.date,u),I=Ui(v.date,u)}let R=g.time.add24HourDays(b),$=v.time.add24HourDays(I);return R.cmp($)}};Pe(hr,`Temporal.Duration`);var dr=class{constructor(t,n,r=`iso8601`,o=1972){let i=H(t),s=H(n),u=Wt(r===void 0?`iso8601`:vt(r)),l=H(o);nn(l,i,s),$a(this,{year:l,month:i,day:s},u)}get monthCode(){return ra(this,`monthCode`)}get day(){return ra(this,`day`)}get calendarId(){return T(this,ee),h(this,N)}with(t,n=void 0){if(T(this,ee),!yt(t))throw new TypeError(`invalid argument`);Cn(t);let r=h(this,N),o=Zt(r,h(this,W),`month-day`);return o=en(r,o,ae(r,t,[`year`,`month`,`monthCode`,`day`],[],`partial`)),_n(Br(r,o,nt(A(n))),r)}equals(t){T(this,ee);let n=Ri(t);return Ee(h(this,W),h(n,W))===0&&be(h(this,N),h(n,N))}toString(t=void 0){return T(this,ee),Li(this,pr(A(t)))}toJSON(){return T(this,ee),Li(this)}toLocaleString(t=void 0,n=void 0){return T(this,ee),new re(t,n).format(this)}valueOf(){Ve(`PlainMonthDay`)}toPlainDate(t){if(T(this,ee),!yt(t))throw new TypeError(`argument should be an object`);let n=h(this,N);return zt(Ge(n,en(n,Zt(n,h(this,W),`month-day`),ae(n,t,[`year`],[],[])),`constrain`),n)}static from(t,n=void 0){return Ri(t,n)}};function ra(e,t){T(e,ee);let n=h(e,W);return br(e).isoToDate(n,{[t]:!0})[t]}function vo(e){return he(e,Po())}Pe(dr,`Temporal.PlainMonthDay`);var rs={instant:()=>me(Po()),plainDateTimeISO:(e=Nn())=>se(vo(Ft(e)),`iso8601`),plainDateISO:(e=Nn())=>zt(vo(Ft(e)).isoDate,`iso8601`),plainTimeISO:(e=Nn())=>Se(vo(Ft(e)).time),timeZoneId:()=>Nn(),zonedDateTimeISO:(e=Nn())=>{let t=Ft(e);return Ct(Po(),t,`iso8601`)},[Symbol.toStringTag]:`Temporal.Now`};Object.defineProperty(rs,Symbol.toStringTag,{value:`Temporal.Now`,writable:!1,enumerable:!1,configurable:!0});var lr=class e{constructor(t=0,n=0,r=0,o=0,i=0,s=0){let u=t===void 0?0:H(t),l=n===void 0?0:H(n),d=r===void 0?0:H(r),f=o===void 0?0:H(o),g=i===void 0?0:H(i),v=s===void 0?0:H(s);oo(u,l,d,f,g,v),Ra(this,{hour:u,minute:l,second:d,millisecond:f,microsecond:g,nanosecond:v})}get hour(){return T(this,gt),h(this,ft).hour}get minute(){return T(this,gt),h(this,ft).minute}get second(){return T(this,gt),h(this,ft).second}get millisecond(){return T(this,gt),h(this,ft).millisecond}get microsecond(){return T(this,gt),h(this,ft).microsecond}get nanosecond(){return T(this,gt),h(this,ft).nanosecond}with(t,n=void 0){if(T(this,gt),!yt(t))throw new TypeError(`invalid argument`);Cn(t);let r=Oo(t,`partial`),o=Oo(this),{hour:i,minute:s,second:u,millisecond:l,microsecond:d,nanosecond:f}=Object.assign(o,r),g=nt(A(n));return{hour:i,minute:s,second:u,millisecond:l,microsecond:d,nanosecond:f}=eo(i,s,u,l,d,f,g),new e(i,s,u,l,d,f)}add(t){return T(this,gt),Qi(`add`,this,t)}subtract(t){return T(this,gt),Qi(`subtract`,this,t)}until(t,n=void 0){return T(this,gt),Wi(`until`,this,t,n)}since(t,n=void 0){return T(this,gt),Wi(`since`,this,t,n)}round(t){if(T(this,gt),t===void 0)throw new TypeError(`options parameter is required`);let n=typeof t==`string`?an(`smallestUnit`,t):A(t),r=kn(n),o=ye(n,`halfExpand`),i=Xt(n,`smallestUnit`,`time`,xe);return On(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Se(Lo(h(this,ft),r,i,o))}equals(t){T(this,gt);let n=ze(t);return Bo(h(this,ft),h(n,ft))===0}toString(t=void 0){T(this,gt);let n=A(t),r=vr(n),o=ye(n,`trunc`),i=Xt(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}=wr(i,r);return xi(Lo(h(this,ft),l,u,o),s)}toJSON(){return T(this,gt),xi(h(this,ft),`auto`)}
3toLocaleString(t=void 0,n=void 0){return T(this,gt),new re(t,n).format(this)}valueOf(){Ve(`PlainTime`)}static from(t,n=void 0){return ze(t,n)}static compare(t,n){let r=ze(t),o=ze(n);return Bo(h(r,ft),h(o,ft))}};Pe(lr,`Temporal.PlainTime`);var mr=class{constructor(t,n,r=`iso8601`,o=1){let i=H(t),s=H(n),u=Wt(r===void 0?`iso8601`:vt(r)),l=H(o);nn(i,s,l),Ya(this,{year:i,month:s,day:l},u)}get year(){return Ie(this,`year`)}get month(){return Ie(this,`month`)}get monthCode(){return Ie(this,`monthCode`)}get calendarId(){return T(this,Mt),h(this,N)}get era(){return Ie(this,`era`)}get eraYear(){return Ie(this,`eraYear`)}get daysInMonth(){return Ie(this,`daysInMonth`)}get daysInYear(){return Ie(this,`daysInYear`)}get monthsInYear(){return Ie(this,`monthsInYear`)}get inLeapYear(){return Ie(this,`inLeapYear`)}with(t,n=void 0){if(T(this,Mt),!yt(t))throw new TypeError(`invalid argument`);Cn(t);let r=h(this,N),o=Zt(r,h(this,W),`year-month`);return o=en(r,o,ae(r,t,[`year`,`month`,`monthCode`],[],`partial`)),pn(tr(r,o,nt(A(n))),r)}add(t,n=void 0){return T(this,Mt),ta(`add`,this,t,n)}subtract(t,n=void 0){return T(this,Mt),ta(`subtract`,this,t,n)}until(t,n=void 0){return T(this,Mt),Gi(`until`,this,t,n)}since(t,n=void 0){return T(this,Mt),Gi(`since`,this,t,n)}equals(t){T(this,Mt);let n=zn(t);return Ee(h(this,W),h(n,W))===0&&be(h(this,N),h(n,N))}toString(t=void 0){return T(this,Mt),Bi(this,pr(A(t)))}toJSON(){return T(this,Mt),Bi(this)}toLocaleString(t=void 0,n=void 0){return T(this,Mt),new re(t,n).format(this)}valueOf(){Ve(`PlainYearMonth`)}toPlainDate(t){if(T(this,Mt),!yt(t))throw new TypeError(`argument should be an object`);let n=h(this,N);return zt(Ge(n,en(n,Zt(n,h(this,W),`year-month`),ae(n,t,[`day`],[],[])),`constrain`),n)}static from(t,n=void 0){return zn(t,n)}static compare(t,n){let r=zn(t),o=zn(n);return Ee(h(r,W),h(o,W))}};function Ie(e,t){T(e,Mt);let n=h(e,W);return br(e).isoToDate(n,{[t]:!0})[t]}Pe(mr,`Temporal.PlainYearMonth`);var Ws=re.prototype.resolvedOptions;var fr=class{constructor(t,n,r=`iso8601`){if(arguments.length<1)throw new TypeError(`missing argument: epochNanoseconds is required`);let o=Fr(t),i=vt(n),{tzName:s,offsetMinutes:u}=Ze(i);if(u===void 0){let l=Pr(s);if(!l)throw new RangeError(`unknown time zone ${s}`);i=l.identifier}else i=ci(u);Na(this,o,i,Wt(r===void 0?`iso8601`:vt(r)))}get calendarId(){return T(this,tt),h(this,N)}get timeZoneId(){return T(this,tt),h(this,at)}get year(){return Rt(this,`year`)}get month(){return Rt(this,`month`)}get monthCode(){return Rt(this,`monthCode`)}get day(){return Rt(this,`day`)}get hour(){return mn(this,`hour`)}get minute(){return mn(this,`minute`)}get second(){return mn(this,`second`)}get millisecond(){return mn(this,`millisecond`)}get microsecond(){return mn(this,`microsecond`)}get nanosecond(){return mn(this,`nanosecond`)}get era(){return Rt(this,`era`)}get eraYear(){return Rt(this,`eraYear`)}get epochMilliseconds(){return T(this,tt),de(h(this,q),`floor`)}get epochNanoseconds(){return T(this,tt),Va(h(this,q))}get dayOfWeek(){return Rt(this,`dayOfWeek`)}get dayOfYear(){return Rt(this,`dayOfYear`)}get weekOfYear(){return Rt(this,`weekOfYear`)?.week}get yearOfWeek(){return Rt(this,`weekOfYear`)?.year}get hoursInDay(){T(this,tt);let t=h(this,at),n=ge(this).isoDate,r=Kt(n.year,n.month,n.day+1),o=Ae(t,n),i=Ae(t,r);return Vn(st.fromEpochNsDiff(i,o),`hour`)}get daysInWeek(){return Rt(this,`daysInWeek`)}get daysInMonth(){return Rt(this,`daysInMonth`)}get daysInYear(){return Rt(this,`daysInYear`)}get monthsInYear(){return Rt(this,`monthsInYear`)}get inLeapYear(){return Rt(this,`inLeapYear`)}get offset(){return T(this,tt),So($e(h(this,at),h(this,q)))}get offsetNanoseconds(){return T(this,tt),$e(h(this,at),h(this,q))}with(t,n=void 0){if(T(this,tt),!yt(t))throw new TypeError(`invalid zoned-date-time-like`);Cn(t);let r=h(this,N),o=h(this,at),i=$e(o,h(this,q)),s=ge(this),u=y(x(x({},Zt(r,s.isoDate)),s.time),{offset:So(i)});u=en(r,u,ae(r,t,[`year`,`month`,`monthCode`,`day`],[`hour`,`minute`,`second`,`millisecond`,`microsecond`,`nanosecond`,`offset`],`partial`));let l=A(n),d=Hn(l),f=Rr(l,`prefer`),g=Dr(r,u,nt(l)),v=Sn(u.offset);return Ct(Lr(g.isoDate,g.time,`option`,v,o,d,f,!1),o,r)}withPlainTime(t=void 0){T(this,tt);let n=h(this,at),r=h(this,N),o=ge(this).isoDate,i;return i=t===void 0?Ae(n,o):Ot(n,ot(o,h(ze(t),ft)),`compatible`),Ct(i,n,r)}withTimeZone(t){T(this,tt);let n=Ft(t);return Ct(h(this,q),n,h(this,N))}withCalendar(t){T(this,tt);let n=Mr(t);return Ct(h(this,q),h(this,at),n)}add(t,n=void 0){return T(this,tt),ea(`add`,this,t,n)}subtract(t,n=void 0){return T(this,tt),ea(`subtract`,this,t,n)}until(t,n=void 0){return T(this,tt),Ji(`until`,this,t,n)}since(t,n=void 0){return T(this,tt),Ji(`since`,this,t,n)}round(t){if(T(this,tt),t===void 0)throw new TypeError(`options parameter is required`);let n=typeof t==`string`?an(`smallestUnit`,t):A(t),r=kn(n),o=ye(n,`halfExpand`),i=Xt(n,`smallestUnit`,`time`,xe,[`day`]),s={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(On(r,s,s===1),i===`nanosecond`&&r===1)return Ct(h(this,q),h(this,at),h(this,N));let u=h(this,at),l=h(this,q),d=ge(this),f;if(i===`day`){let g=d.isoDate,v=Kt(g.year,g.month,g.day+1),b=Ae(u,g),I=Ae(u,v),R=D.default.subtract(I,b);
3f=st.fromEpochNsDiff(l,b).round(R,o).addToEpochNs(b)}else{let g=xo(d,r,i,o),v=$e(u,l);f=Lr(g.isoDate,g.time,`option`,v,u,`compatible`,`prefer`,!1)}return Ct(f,u,h(this,N))}equals(t){T(this,tt);let n=Fn(t),r=h(this,q),o=h(n,q);return!!D.default.equal(D.default.BigInt(r),D.default.BigInt(o))&&!!xa(h(this,at),h(n,at))&&be(h(this,N),h(n,N))}toString(t=void 0){T(this,tt);let n=A(t),r=pr(n),o=vr(n),i=(function(v){return je(v,`offset`,[`auto`,`never`],`auto`)})(n),s=ye(n,`trunc`),u=Xt(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 je(v,`timeZoneName`,[`auto`,`never`,`critical`],`auto`)})(n),{precision:d,unit:f,increment:g}=wr(u,o);return Pi(this,d,r,l,i,{unit:f,increment:g,roundingMode:s})}toLocaleString(t=void 0,n=void 0){T(this,tt);let r=A(n),o=Object.create(null);if((function(l,d,f,g){if(d==null)return;let v=Reflect.ownKeys(d);for(let b=0;b<v.length;b++){let I=v[b];if(!f.some((R=>Object.is(R,I)))&&Object.prototype.propertyIsEnumerable.call(d,I))l[I]=d[I]}})(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=h(this,at),Ai(o.timeZone))throw new RangeError(`toLocaleString does not currently support offset time zones`);let i=new re(t,o),s=Ws.call(i).calendar,u=h(this,N);if(u!==`iso8601`&&s!==`iso8601`&&!be(s,u))throw new RangeError(`cannot format ZonedDateTime with calendar ${u} in locale with calendar ${s}`);return i.format(me(h(this,q)))}toJSON(){return T(this,tt),Pi(this,`auto`)}valueOf(){Ve(`ZonedDateTime`)}startOfDay(){T(this,tt);let t=h(this,at);return Ct(Ae(t,ge(this).isoDate),t,h(this,N))}getTimeZoneTransition(t){T(this,tt);let n=h(this,at);if(t===void 0)throw new TypeError(`options parameter is required`);let r=je(typeof t==`string`?an(`direction`,t):A(t),`direction`,[`next`,`previous`],xe);if(r===void 0)throw new TypeError(`direction option is required`);if(Ai(n)||n===`UTC`)return null;let o=h(this,q),i=r===`next`?di(n,o):Ro(n,o);return i===null?null:Ct(i,n,h(this,N))}toInstant(){return T(this,tt),me(h(this,q))}toPlainDate(){return T(this,tt),zt(ge(this).isoDate,h(this,N))}toPlainTime(){return T(this,tt),Se(ge(this).time)}toPlainDateTime(){return T(this,tt),se(ge(this),h(this,N))}static from(t,n=void 0){return Fn(t,n)}static compare(t,n){let r=Fn(t),o=Fn(n),i=h(r,q),s=h(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 ge(e){return he(h(e,at),h(e,q))}function Rt(e,t){T(e,tt);let n=ge(e).isoDate;return br(e).isoToDate(n,{[t]:!0})[t]}function mn(e,t){return T(e,tt),ge(e).time[t]}Pe(fr,`Temporal.ZonedDateTime`);var os=Object.freeze({__proto__:null,Duration:hr,Instant:sr,Now:rs,PlainDate:ur,PlainDateTime:cr,PlainMonthDay:dr,PlainTime:lr,PlainYearMonth:mr,ZonedDateTime:fr});(class{toTemporalInstant(){return me(fe(Date.prototype.valueOf.call(this)))}}).prototype.toTemporalInstant;var Gs=[sr,ur,cr,hr,dr,lr,mr,fr];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))}function Js(e){return El(QN(e),kFe)}function au(e){return El(QN(e),`dd.MM.yyyy`)}function su(e){return El(QN(e),`MMMM yyyy`,{locale:pN})}function uu(e){return El(QN(e),`yyyy-MM-dd HH:mm`)}function cu(e,t){return Jb(`${Js(e)} ${t}`,`yyyy-MM-dd HH:mm:ss`,new Date)}function hu(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function du(e){let t=Vs(e.getFullYear()),n=Cl(t,1),r=Cl(t,-2),o=s=>s.getDate()==e.getDate()&&s.getMonth()==e.getMonth(),i=(s,u)=>o(new Date(e.getFullYear(),s-1,u));return o(t)||o(n)||o(r)||i(1,1)||i(5,1)||i(5,8)||i(7,5)||i(7,6)||i(9,28)||i(10,28)||i(11,17)||i(12,24)||i(12,25)||i(12,26)}function Hs(e){let t=Math.floor,n=e%19,r=t(e/100),o=(r-t(r/4)-t((8*r+13)/25)+19*n+15)%30,i=o-t(o/28)*(1-t(29/(o+1))*t((21-n)/11)),u=i-(e+t(e/4)+i+2-r+t(r/4))%7,l=3+t((u+40)/44);return{month:l,day:u+28-31*t(l/4)}}function Vs(e){let{month:t,day:n}=Hs(e);return new Date(e,t-1,n)}function lu(e){let t=os.Now.timeZoneId(),n=e.toZonedDateTime(t).epochMilliseconds;return new Date(n)}export{hu as a,su as c,du as i,uu as l,au as n,lu as o,cu as r,os as s,Js as t};
4//# debugId=e778f3ea-15aa-5edb-af15-f2d723ee2a95
5//# sourceMappingURL=chunk-M2NudE1L.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.