@js-smart/react-kit 5.22.0 → 5.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),Fe=require("react"),cu=require("@emotion/styled"),lu=require("@emotion/react"),W=require("@mui/material"),uu=require("react-dom");function du(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ge=du(Fe),Za=t=>t,fu=()=>{let t=Za;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Za}}},hu=fu();function gn(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function Rn(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":gn(7));return t.charAt(0).toUpperCase()+t.slice(1)}function mu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wo={exports:{}},Eo={exports:{}},le={};var Ga;function gu(){if(Ga)return le;Ga=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function O(E){if(typeof E=="object"&&E!==null){var S=E.$$typeof;switch(S){case e:switch(E=E.type,E){case c:case l:case r:case i:case o:case d:return E;default:switch(E=E&&E.$$typeof,E){case s:case u:case p:case y:case a:return E;default:return S}}case n:return S}}}function C(E){return O(E)===l}return le.AsyncMode=c,le.ConcurrentMode=l,le.ContextConsumer=s,le.ContextProvider=a,le.Element=e,le.ForwardRef=u,le.Fragment=r,le.Lazy=p,le.Memo=y,le.Portal=n,le.Profiler=i,le.StrictMode=o,le.Suspense=d,le.isAsyncMode=function(E){return C(E)||O(E)===c},le.isConcurrentMode=C,le.isContextConsumer=function(E){return O(E)===s},le.isContextProvider=function(E){return O(E)===a},le.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},le.isForwardRef=function(E){return O(E)===u},le.isFragment=function(E){return O(E)===r},le.isLazy=function(E){return O(E)===p},le.isMemo=function(E){return O(E)===y},le.isPortal=function(E){return O(E)===n},le.isProfiler=function(E){return O(E)===i},le.isStrictMode=function(E){return O(E)===o},le.isSuspense=function(E){return O(E)===d},le.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===l||E===i||E===o||E===d||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===y||E.$$typeof===a||E.$$typeof===s||E.$$typeof===u||E.$$typeof===v||E.$$typeof===w||E.$$typeof===D||E.$$typeof===g)},le.typeOf=O,le}var ue={};var Ka;function yu(){return Ka||(Ka=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function O(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===i||A===o||A===d||A===h||typeof A=="object"&&A!==null&&(A.$$typeof===p||A.$$typeof===y||A.$$typeof===a||A.$$typeof===s||A.$$typeof===u||A.$$typeof===v||A.$$typeof===w||A.$$typeof===D||A.$$typeof===g)}function C(A){if(typeof A=="object"&&A!==null){var ht=A.$$typeof;switch(ht){case e:var Un=A.type;switch(Un){case c:case l:case r:case i:case o:case d:return Un;default:var vr=Un&&Un.$$typeof;switch(vr){case s:case u:case p:case y:case a:return vr;default:return ht}}case n:return ht}}}var E=c,S=l,P=s,z=a,j=e,ae=u,B=r,b=p,k=y,x=n,Y=i,Z=o,pe=d,at=!1;function cn(A){return at||(at=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(A)||C(A)===c}function $(A){return C(A)===l}function I(A){return C(A)===s}function J(A){return C(A)===a}function H(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function L(A){return C(A)===u}function ne(A){return C(A)===r}function G(A){return C(A)===p}function q(A){return C(A)===y}function ee(A){return C(A)===n}function oe(A){return C(A)===i}function te(A){return C(A)===o}function xe(A){return C(A)===d}ue.AsyncMode=E,ue.ConcurrentMode=S,ue.ContextConsumer=P,ue.ContextProvider=z,ue.Element=j,ue.ForwardRef=ae,ue.Fragment=B,ue.Lazy=b,ue.Memo=k,ue.Portal=x,ue.Profiler=Y,ue.StrictMode=Z,ue.Suspense=pe,ue.isAsyncMode=cn,ue.isConcurrentMode=$,ue.isContextConsumer=I,ue.isContextProvider=J,ue.isElement=H,ue.isForwardRef=L,ue.isFragment=ne,ue.isLazy=G,ue.isMemo=q,ue.isPortal=ee,ue.isProfiler=oe,ue.isStrictMode=te,ue.isSuspense=xe,ue.isValidElementType=O,ue.typeOf=C})()),ue}var Xa;function Dc(){return Xa||(Xa=1,process.env.NODE_ENV==="production"?Eo.exports=gu():Eo.exports=yu()),Eo.exports}var Oi,Qa;function pu(){if(Qa)return Oi;Qa=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Oi=o()?Object.assign:function(i,a){for(var s,c=r(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)e.call(s,d)&&(c[d]=s[d]);if(t){l=t(s);for(var h=0;h<l.length;h++)n.call(s,l[h])&&(c[l[h]]=s[l[h]])}}return c},Oi}var Si,Ja;function pa(){if(Ja)return Si;Ja=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Si=t,Si}var Mi,es;function Oc(){return es||(es=1,Mi=Function.call.bind(Object.prototype.hasOwnProperty)),Mi}var xi,ts;function bu(){if(ts)return xi;ts=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=pa(),n={},r=Oc();t=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var d;try{if(typeof i[u]!="function"){var h=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=i[u](a,u,c,s,null,e)}catch(p){d=p}if(d&&!(d instanceof Error)&&t((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var y=l?l():"";t("Failed "+s+" type: "+d.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xi=o,xi}var $i,ns;function vu(){if(ns)return $i;ns=1;var t=Dc(),e=pu(),n=pa(),r=Oc(),o=bu(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return $i=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d($){var I=$&&(l&&$[l]||$[u]);if(typeof I=="function")return I}var h="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:D(),arrayOf:O,element:C(),elementType:E(),instanceOf:S,node:ae(),objectOf:z,oneOf:P,oneOfType:j,shape:b,exact:k};function p($,I){return $===I?$!==0||1/$===1/I:$!==$&&I!==I}function g($,I){this.message=$,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function v($){if(process.env.NODE_ENV!=="production")var I={},J=0;function H(ne,G,q,ee,oe,te,xe){if(ee=ee||h,te=te||q,xe!==n){if(c){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ht=ee+":"+q;!I[ht]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[ht]=!0,J++)}}return G[q]==null?ne?G[q]===null?new g("The "+oe+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new g("The "+oe+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:$(G,q,ee,oe,te)}var L=H.bind(null,!1);return L.isRequired=H.bind(null,!0),L}function w($){function I(J,H,L,ne,G,q){var ee=J[H],oe=Z(ee);if(oe!==$){var te=pe(ee);return new g("Invalid "+ne+" `"+G+"` of type "+("`"+te+"` supplied to `"+L+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return v(I)}function D(){return v(a)}function O($){function I(J,H,L,ne,G){if(typeof $!="function")return new g("Property `"+G+"` of component `"+L+"` has invalid PropType notation inside arrayOf.");var q=J[H];if(!Array.isArray(q)){var ee=Z(q);return new g("Invalid "+ne+" `"+G+"` of type "+("`"+ee+"` supplied to `"+L+"`, expected an array."))}for(var oe=0;oe<q.length;oe++){var te=$(q,oe,L,ne,G+"["+oe+"]",n);if(te instanceof Error)return te}return null}return v(I)}function C(){function $(I,J,H,L,ne){var G=I[J];if(!s(G)){var q=Z(G);return new g("Invalid "+L+" `"+ne+"` of type "+("`"+q+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v($)}function E(){function $(I,J,H,L,ne){var G=I[J];if(!t.isValidElementType(G)){var q=Z(G);return new g("Invalid "+L+" `"+ne+"` of type "+("`"+q+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v($)}function S($){function I(J,H,L,ne,G){if(!(J[H]instanceof $)){var q=$.name||h,ee=cn(J[H]);return new g("Invalid "+ne+" `"+G+"` of type "+("`"+ee+"` supplied to `"+L+"`, expected ")+("instance of `"+q+"`."))}return null}return v(I)}function P($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function I(J,H,L,ne,G){for(var q=J[H],ee=0;ee<$.length;ee++)if(p(q,$[ee]))return null;var oe=JSON.stringify($,function(xe,A){var ht=pe(A);return ht==="symbol"?String(A):A});return new g("Invalid "+ne+" `"+G+"` of value `"+String(q)+"` "+("supplied to `"+L+"`, expected one of "+oe+"."))}return v(I)}function z($){function I(J,H,L,ne,G){if(typeof $!="function")return new g("Property `"+G+"` of component `"+L+"` has invalid PropType notation inside objectOf.");var q=J[H],ee=Z(q);if(ee!=="object")return new g("Invalid "+ne+" `"+G+"` of type "+("`"+ee+"` supplied to `"+L+"`, expected an object."));for(var oe in q)if(r(q,oe)){var te=$(q,oe,L,ne,G+"."+oe,n);if(te instanceof Error)return te}return null}return v(I)}function j($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<$.length;I++){var J=$[I];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+at(J)+" at index "+I+"."),a}function H(L,ne,G,q,ee){for(var oe=[],te=0;te<$.length;te++){var xe=$[te],A=xe(L,ne,G,q,ee,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&oe.push(A.data.expectedType)}var ht=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new g("Invalid "+q+" `"+ee+"` supplied to "+("`"+G+"`"+ht+"."))}return v(H)}function ae(){function $(I,J,H,L,ne){return x(I[J])?null:new g("Invalid "+L+" `"+ne+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v($)}function B($,I,J,H,L){return new g(($||"React class")+": "+I+" type `"+J+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+L+"`.")}function b($){function I(J,H,L,ne,G){var q=J[H],ee=Z(q);if(ee!=="object")return new g("Invalid "+ne+" `"+G+"` of type `"+ee+"` "+("supplied to `"+L+"`, expected `object`."));for(var oe in $){var te=$[oe];if(typeof te!="function")return B(L,ne,G,oe,pe(te));var xe=te(q,oe,L,ne,G+"."+oe,n);if(xe)return xe}return null}return v(I)}function k($){function I(J,H,L,ne,G){var q=J[H],ee=Z(q);if(ee!=="object")return new g("Invalid "+ne+" `"+G+"` of type `"+ee+"` "+("supplied to `"+L+"`, expected `object`."));var oe=e({},J[H],$);for(var te in oe){var xe=$[te];if(r($,te)&&typeof xe!="function")return B(L,ne,G,te,pe(xe));if(!xe)return new g("Invalid "+ne+" `"+G+"` key `"+te+"` supplied to `"+L+"`.\nBad object: "+JSON.stringify(J[H],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys($),null," "));var A=xe(q,te,L,ne,G+"."+te,n);if(A)return A}return null}return v(I)}function x($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(x);if($===null||s($))return!0;var I=d($);if(I){var J=I.call($),H;if(I!==$.entries){for(;!(H=J.next()).done;)if(!x(H.value))return!1}else for(;!(H=J.next()).done;){var L=H.value;if(L&&!x(L[1]))return!1}}else return!1;return!0;default:return!1}}function Y($,I){return $==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function Z($){var I=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":Y(I,$)?"symbol":I}function pe($){if(typeof $>"u"||$===null)return""+$;var I=Z($);if(I==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return I}function at($){var I=pe($);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function cn($){return!$.constructor||!$.constructor.name?h:$.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},$i}var Ri,rs;function wu(){if(rs)return Ri;rs=1;var t=pa();function e(){}function n(){}return n.resetWarningCache=e,Ri=function(){function r(a,s,c,l,u,d){if(d!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},Ri}var os;function Eu(){if(os)return wo.exports;if(os=1,process.env.NODE_ENV!=="production"){var t=Dc(),e=!0;wo.exports=vu()(t.isElement,e)}else wo.exports=wu()();return wo.exports}var _u=Eu();const se=mu(_u);function Sc(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Sc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Mc(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Sc(t))&&(r&&(r+=" "),r+=e);return r}function Tu(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+e(l),s=!1,n&&n[l]&&(a+=" "+n[l]))}r[o]=a}return r}var _o={exports:{}},he={};var is;function Cu(){if(is)return he;is=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function p(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case n:case o:case r:case c:case l:case h:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case d:case u:return g;case i:return g;default:return v}}case e:return v}}}return he.ContextConsumer=i,he.ContextProvider=a,he.Element=t,he.ForwardRef=s,he.Fragment=n,he.Lazy=d,he.Memo=u,he.Portal=e,he.Profiler=o,he.StrictMode=r,he.Suspense=c,he.SuspenseList=l,he.isContextConsumer=function(g){return p(g)===i},he.isContextProvider=function(g){return p(g)===a},he.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},he.isForwardRef=function(g){return p(g)===s},he.isFragment=function(g){return p(g)===n},he.isLazy=function(g){return p(g)===d},he.isMemo=function(g){return p(g)===u},he.isPortal=function(g){return p(g)===e},he.isProfiler=function(g){return p(g)===o},he.isStrictMode=function(g){return p(g)===r},he.isSuspense=function(g){return p(g)===c},he.isSuspenseList=function(g){return p(g)===l},he.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===l||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===y||g.getModuleId!==void 0)},he.typeOf=p,he}var me={};var as;function Du(){return as||(as=1,process.env.NODE_ENV!=="production"&&(function(){function t(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case i:case o:case l:case u:case y:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case h:case d:return g;case a:return g;default:return v}}case n:return v}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");me.ContextConsumer=a,me.ContextProvider=s,me.Element=e,me.ForwardRef=c,me.Fragment=r,me.Lazy=h,me.Memo=d,me.Portal=n,me.Profiler=i,me.StrictMode=o,me.Suspense=l,me.SuspenseList=u,me.isContextConsumer=function(g){return t(g)===a},me.isContextProvider=function(g){return t(g)===s},me.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},me.isForwardRef=function(g){return t(g)===c},me.isFragment=function(g){return t(g)===r},me.isLazy=function(g){return t(g)===h},me.isMemo=function(g){return t(g)===d},me.isPortal=function(g){return t(g)===n},me.isProfiler=function(g){return t(g)===i},me.isStrictMode=function(g){return t(g)===o},me.isSuspense=function(g){return t(g)===l},me.isSuspenseList=function(g){return t(g)===u},me.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===l||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===s||g.$$typeof===a||g.$$typeof===c||g.$$typeof===p||g.getModuleId!==void 0)},me.typeOf=t})()),me}var ss;function Ou(){return ss||(ss=1,process.env.NODE_ENV==="production"?_o.exports=Cu():_o.exports=Du()),_o.exports}var Ao=Ou();function Zt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function xc(t){if(ge.isValidElement(t)||Ao.isValidElementType(t)||!Zt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=xc(t[n])}),e}function pt(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Zt(t)&&Zt(e)&&Object.keys(e).forEach(o=>{ge.isValidElement(e[o])||Ao.isValidElementType(e[o])?r[o]=e[o]:Zt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Zt(t[o])?r[o]=pt(t[o],e[o],n):n.clone?r[o]=Zt(e[o])?xc(e[o]):e[o]:r[o]=e[o]}),r}function Nr(t,e){return e?pt(t,e,{clone:!1}):t}const wn=process.env.NODE_ENV!=="production"?se.oneOfType([se.number,se.string,se.object,se.array]):{};function cs(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function Su(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function Mu(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:gn(18,`(${e})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function xu(t){const e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>e(t.breakpoints.up(...s),a),i.down=(...s)=>e(t.breakpoints.down(...s),a),i.between=(...s)=>e(t.breakpoints.between(...s),a),i.only=(...s)=>e(t.breakpoints.only(...s),a),i.not=(...s)=>{const c=e(t.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const Xo={xs:0,sm:600,md:900,lg:1200,xl:1536},ls={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Xo[t]}px)`},$u={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:Xo[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function rn(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||ls;return e.reduce((a,s,c)=>(a[i.up(i.keys[c])]=n(e[c]),a),{})}if(typeof e=="object"){const i=r.breakpoints||ls;return Object.keys(e).reduce((a,s)=>{if(Su(i.keys,s)){const c=Mu(r.containerQueries?r:$u,s);c&&(a[c]=n(e[s],s))}else if(Object.keys(i.values||Xo).includes(s)){const c=i.up(s);a[c]=n(e[s],s)}else{const c=s;a[c]=e[c]}return a},{})}return n(e)}function Ru(t={}){return t.keys?.reduce((n,r)=>{const o=t.up(r);return n[o]={},n},{})||{}}function us(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function Qo(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function Io(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=Qo(t,n)||r,e&&(o=e(o,r,t)),o}function Me(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=a=>{if(a[e]==null)return null;const s=a[e],c=a.theme,l=Qo(c,r)||{};return rn(a,s,d=>{let h=Io(l,o,d);return d===h&&typeof d=="string"&&(h=Io(l,o,`${e}${d==="default"?"":Rn(d)}`,d)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:wn}:{},i.filterProps=[e],i}function ku(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const Au={m:"margin",p:"padding"},Iu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ds={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pu=ku(t=>{if(t.length>2)if(ds[t])t=ds[t];else return[t];const[e,n]=t.split(""),r=Au[e],o=Iu[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Jo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ei=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Nu=[...Jo,...ei];function eo(t,e,n,r){const o=Qo(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),Rt=require("react"),bl=require("@emotion/styled"),wl=require("@emotion/react"),U=require("@mui/material"),Lo=require("@tanstack/react-router");function vl(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const jt=vl(Rt),Ma=t=>t,El=()=>{let t=Ma;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Ma}}},Tl=El();function dn(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function Mn(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":dn(7));return t.charAt(0).toUpperCase()+t.slice(1)}function _l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ho={exports:{}},fo={exports:{}},ce={};var xa;function Cl(){if(xa)return ce;xa=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function M(T){if(typeof T=="object"&&T!==null){var k=T.$$typeof;switch(k){case e:switch(T=T.type,T){case c:case l:case r:case i:case o:case d:return T;default:switch(T=T&&T.$$typeof,T){case s:case u:case b:case y:case a:return T;default:return k}}case n:return k}}}function C(T){return M(T)===l}return ce.AsyncMode=c,ce.ConcurrentMode=l,ce.ContextConsumer=s,ce.ContextProvider=a,ce.Element=e,ce.ForwardRef=u,ce.Fragment=r,ce.Lazy=b,ce.Memo=y,ce.Portal=n,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=d,ce.isAsyncMode=function(T){return C(T)||M(T)===c},ce.isConcurrentMode=C,ce.isContextConsumer=function(T){return M(T)===s},ce.isContextProvider=function(T){return M(T)===a},ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},ce.isForwardRef=function(T){return M(T)===u},ce.isFragment=function(T){return M(T)===r},ce.isLazy=function(T){return M(T)===b},ce.isMemo=function(T){return M(T)===y},ce.isPortal=function(T){return M(T)===n},ce.isProfiler=function(T){return M(T)===i},ce.isStrictMode=function(T){return M(T)===o},ce.isSuspense=function(T){return M(T)===d},ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===l||T===i||T===o||T===d||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===b||T.$$typeof===y||T.$$typeof===a||T.$$typeof===s||T.$$typeof===u||T.$$typeof===w||T.$$typeof===v||T.$$typeof===D||T.$$typeof===g)},ce.typeOf=M,ce}var le={};var Oa;function Dl(){return Oa||(Oa=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function M(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===i||A===o||A===d||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===b||A.$$typeof===y||A.$$typeof===a||A.$$typeof===s||A.$$typeof===u||A.$$typeof===w||A.$$typeof===v||A.$$typeof===D||A.$$typeof===g)}function C(A){if(typeof A=="object"&&A!==null){var xt=A.$$typeof;switch(xt){case e:var uo=A.type;switch(uo){case c:case l:case r:case i:case o:case d:return uo;default:var Da=uo&&uo.$$typeof;switch(Da){case s:case u:case b:case y:case a:return Da;default:return xt}}case n:return xt}}}var T=c,k=l,F=s,G=a,N=e,ae=u,q=r,p=b,R=y,O=n,j=i,H=o,pe=d,ct=!1;function hr(A){return ct||(ct=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(A)||C(A)===c}function $(A){return C(A)===l}function I(A){return C(A)===s}function J(A){return C(A)===a}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function W(A){return C(A)===u}function ne(A){return C(A)===r}function K(A){return C(A)===b}function Q(A){return C(A)===y}function re(A){return C(A)===n}function ue(A){return C(A)===i}function oe(A){return C(A)===o}function tt(A){return C(A)===d}le.AsyncMode=T,le.ConcurrentMode=k,le.ContextConsumer=F,le.ContextProvider=G,le.Element=N,le.ForwardRef=ae,le.Fragment=q,le.Lazy=p,le.Memo=R,le.Portal=O,le.Profiler=j,le.StrictMode=H,le.Suspense=pe,le.isAsyncMode=hr,le.isConcurrentMode=$,le.isContextConsumer=I,le.isContextProvider=J,le.isElement=X,le.isForwardRef=W,le.isFragment=ne,le.isLazy=K,le.isMemo=Q,le.isPortal=re,le.isProfiler=ue,le.isStrictMode=oe,le.isSuspense=tt,le.isValidElementType=M,le.typeOf=C})()),le}var $a;function qs(){return $a||($a=1,process.env.NODE_ENV==="production"?fo.exports=Cl():fo.exports=Dl()),fo.exports}var fi,Sa;function Ml(){if(Sa)return fi;Sa=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fi=o()?Object.assign:function(i,a){for(var s,c=r(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)e.call(s,d)&&(c[d]=s[d]);if(t){l=t(s);for(var m=0;m<l.length;m++)n.call(s,l[m])&&(c[l[m]]=s[l[m]])}}return c},fi}var mi,ka;function Qi(){if(ka)return mi;ka=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mi=t,mi}var gi,Ra;function Ws(){return Ra||(Ra=1,gi=Function.call.bind(Object.prototype.hasOwnProperty)),gi}var yi,Aa;function xl(){if(Aa)return yi;Aa=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Qi(),n={},r=Ws();t=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var d;try{if(typeof i[u]!="function"){var m=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=i[u](a,u,c,s,null,e)}catch(b){d=b}if(d&&!(d instanceof Error)&&t((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var y=l?l():"";t("Failed "+s+" type: "+d.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},yi=o,yi}var pi,Ia;function Ol(){if(Ia)return pi;Ia=1;var t=qs(),e=Ml(),n=Qi(),r=Ws(),o=xl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return pi=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d($){var I=$&&(l&&$[l]||$[u]);if(typeof I=="function")return I}var m="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:D(),arrayOf:M,element:C(),elementType:T(),instanceOf:k,node:ae(),objectOf:G,oneOf:F,oneOfType:N,shape:p,exact:R};function b($,I){return $===I?$!==0||1/$===1/I:$!==$&&I!==I}function g($,I){this.message=$,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function w($){if(process.env.NODE_ENV!=="production")var I={},J=0;function X(ne,K,Q,re,ue,oe,tt){if(re=re||m,oe=oe||Q,tt!==n){if(c){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xt=re+":"+Q;!I[xt]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[xt]=!0,J++)}}return K[Q]==null?ne?K[Q]===null?new g("The "+ue+" `"+oe+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new g("The "+ue+" `"+oe+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:$(K,Q,re,ue,oe)}var W=X.bind(null,!1);return W.isRequired=X.bind(null,!0),W}function v($){function I(J,X,W,ne,K,Q){var re=J[X],ue=H(re);if(ue!==$){var oe=pe(re);return new g("Invalid "+ne+" `"+K+"` of type "+("`"+oe+"` supplied to `"+W+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return w(I)}function D(){return w(a)}function M($){function I(J,X,W,ne,K){if(typeof $!="function")return new g("Property `"+K+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var Q=J[X];if(!Array.isArray(Q)){var re=H(Q);return new g("Invalid "+ne+" `"+K+"` of type "+("`"+re+"` supplied to `"+W+"`, expected an array."))}for(var ue=0;ue<Q.length;ue++){var oe=$(Q,ue,W,ne,K+"["+ue+"]",n);if(oe instanceof Error)return oe}return null}return w(I)}function C(){function $(I,J,X,W,ne){var K=I[J];if(!s(K)){var Q=H(K);return new g("Invalid "+W+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return w($)}function T(){function $(I,J,X,W,ne){var K=I[J];if(!t.isValidElementType(K)){var Q=H(K);return new g("Invalid "+W+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return w($)}function k($){function I(J,X,W,ne,K){if(!(J[X]instanceof $)){var Q=$.name||m,re=hr(J[X]);return new g("Invalid "+ne+" `"+K+"` of type "+("`"+re+"` supplied to `"+W+"`, expected ")+("instance of `"+Q+"`."))}return null}return w(I)}function F($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function I(J,X,W,ne,K){for(var Q=J[X],re=0;re<$.length;re++)if(b(Q,$[re]))return null;var ue=JSON.stringify($,function(tt,A){var xt=pe(A);return xt==="symbol"?String(A):A});return new g("Invalid "+ne+" `"+K+"` of value `"+String(Q)+"` "+("supplied to `"+W+"`, expected one of "+ue+"."))}return w(I)}function G($){function I(J,X,W,ne,K){if(typeof $!="function")return new g("Property `"+K+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var Q=J[X],re=H(Q);if(re!=="object")return new g("Invalid "+ne+" `"+K+"` of type "+("`"+re+"` supplied to `"+W+"`, expected an object."));for(var ue in Q)if(r(Q,ue)){var oe=$(Q,ue,W,ne,K+"."+ue,n);if(oe instanceof Error)return oe}return null}return w(I)}function N($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<$.length;I++){var J=$[I];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ct(J)+" at index "+I+"."),a}function X(W,ne,K,Q,re){for(var ue=[],oe=0;oe<$.length;oe++){var tt=$[oe],A=tt(W,ne,K,Q,re,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&ue.push(A.data.expectedType)}var xt=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new g("Invalid "+Q+" `"+re+"` supplied to "+("`"+K+"`"+xt+"."))}return w(X)}function ae(){function $(I,J,X,W,ne){return O(I[J])?null:new g("Invalid "+W+" `"+ne+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return w($)}function q($,I,J,X,W){return new g(($||"React class")+": "+I+" type `"+J+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function p($){function I(J,X,W,ne,K){var Q=J[X],re=H(Q);if(re!=="object")return new g("Invalid "+ne+" `"+K+"` of type `"+re+"` "+("supplied to `"+W+"`, expected `object`."));for(var ue in $){var oe=$[ue];if(typeof oe!="function")return q(W,ne,K,ue,pe(oe));var tt=oe(Q,ue,W,ne,K+"."+ue,n);if(tt)return tt}return null}return w(I)}function R($){function I(J,X,W,ne,K){var Q=J[X],re=H(Q);if(re!=="object")return new g("Invalid "+ne+" `"+K+"` of type `"+re+"` "+("supplied to `"+W+"`, expected `object`."));var ue=e({},J[X],$);for(var oe in ue){var tt=$[oe];if(r($,oe)&&typeof tt!="function")return q(W,ne,K,oe,pe(tt));if(!tt)return new g("Invalid "+ne+" `"+K+"` key `"+oe+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(J[X],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var A=tt(Q,oe,W,ne,K+"."+oe,n);if(A)return A}return null}return w(I)}function O($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(O);if($===null||s($))return!0;var I=d($);if(I){var J=I.call($),X;if(I!==$.entries){for(;!(X=J.next()).done;)if(!O(X.value))return!1}else for(;!(X=J.next()).done;){var W=X.value;if(W&&!O(W[1]))return!1}}else return!1;return!0;default:return!1}}function j($,I){return $==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function H($){var I=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":j(I,$)?"symbol":I}function pe($){if(typeof $>"u"||$===null)return""+$;var I=H($);if(I==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return I}function ct($){var I=pe($);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function hr($){return!$.constructor||!$.constructor.name?m:$.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},pi}var bi,Pa;function $l(){if(Pa)return bi;Pa=1;var t=Qi();function e(){}function n(){}return n.resetWarningCache=e,bi=function(){function r(a,s,c,l,u,d){if(d!==t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},bi}var Na;function Sl(){if(Na)return ho.exports;if(Na=1,process.env.NODE_ENV!=="production"){var t=qs(),e=!0;ho.exports=Ol()(t.isElement,e)}else ho.exports=$l()();return ho.exports}var kl=Sl();const ie=_l(kl);function Vs(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Vs(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Hs(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Vs(t))&&(r&&(r+=" "),r+=e);return r}function Rl(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+e(l),s=!1,n&&n[l]&&(a+=" "+n[l]))}r[o]=a}return r}var mo={exports:{}},fe={};var ja;function Al(){if(ja)return fe;ja=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case n:case o:case r:case c:case l:case m:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case d:case u:return g;case i:return g;default:return w}}case e:return w}}}return fe.ContextConsumer=i,fe.ContextProvider=a,fe.Element=t,fe.ForwardRef=s,fe.Fragment=n,fe.Lazy=d,fe.Memo=u,fe.Portal=e,fe.Profiler=o,fe.StrictMode=r,fe.Suspense=c,fe.SuspenseList=l,fe.isContextConsumer=function(g){return b(g)===i},fe.isContextProvider=function(g){return b(g)===a},fe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},fe.isForwardRef=function(g){return b(g)===s},fe.isFragment=function(g){return b(g)===n},fe.isLazy=function(g){return b(g)===d},fe.isMemo=function(g){return b(g)===u},fe.isPortal=function(g){return b(g)===e},fe.isProfiler=function(g){return b(g)===o},fe.isStrictMode=function(g){return b(g)===r},fe.isSuspense=function(g){return b(g)===c},fe.isSuspenseList=function(g){return b(g)===l},fe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===l||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===u||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===y||g.getModuleId!==void 0)},fe.typeOf=b,fe}var me={};var La;function Il(){return La||(La=1,process.env.NODE_ENV!=="production"&&(function(){function t(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case e:switch(g=g.type,g){case r:case i:case o:case l:case u:case y:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case m:case d:return g;case a:return g;default:return w}}case n:return w}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");me.ContextConsumer=a,me.ContextProvider=s,me.Element=e,me.ForwardRef=c,me.Fragment=r,me.Lazy=m,me.Memo=d,me.Portal=n,me.Profiler=i,me.StrictMode=o,me.Suspense=l,me.SuspenseList=u,me.isContextConsumer=function(g){return t(g)===a},me.isContextProvider=function(g){return t(g)===s},me.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},me.isForwardRef=function(g){return t(g)===c},me.isFragment=function(g){return t(g)===r},me.isLazy=function(g){return t(g)===m},me.isMemo=function(g){return t(g)===d},me.isPortal=function(g){return t(g)===n},me.isProfiler=function(g){return t(g)===i},me.isStrictMode=function(g){return t(g)===o},me.isSuspense=function(g){return t(g)===l},me.isSuspenseList=function(g){return t(g)===u},me.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===l||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===d||g.$$typeof===s||g.$$typeof===a||g.$$typeof===c||g.$$typeof===b||g.getModuleId!==void 0)},me.typeOf=t})()),me}var Ya;function Pl(){return Ya||(Ya=1,process.env.NODE_ENV==="production"?mo.exports=Al():mo.exports=Il()),mo.exports}var To=Pl();function Vt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Zs(t){if(jt.isValidElement(t)||To.isValidElementType(t)||!Vt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=Zs(t[n])}),e}function ht(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Vt(t)&&Vt(e)&&Object.keys(e).forEach(o=>{jt.isValidElement(e[o])||To.isValidElementType(e[o])?r[o]=e[o]:Vt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Vt(t[o])?r[o]=ht(t[o],e[o],n):n.clone?r[o]=Vt(e[o])?Zs(e[o]):e[o]:r[o]=e[o]}),r}function xr(t,e){return e?ht(t,e,{clone:!1}):t}const yn=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.string,ie.object,ie.array]):{};function za(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function Nl(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function jl(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:dn(18,`(${e})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function Ll(t){const e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>e(t.breakpoints.up(...s),a),i.down=(...s)=>e(t.breakpoints.down(...s),a),i.between=(...s)=>e(t.breakpoints.between(...s),a),i.only=(...s)=>e(t.breakpoints.only(...s),a),i.not=(...s)=>{const c=e(t.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const Yo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ua={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Yo[t]}px)`},Yl={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:Yo[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function en(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||Ua;return e.reduce((a,s,c)=>(a[i.up(i.keys[c])]=n(e[c]),a),{})}if(typeof e=="object"){const i=r.breakpoints||Ua;return Object.keys(e).reduce((a,s)=>{if(Nl(i.keys,s)){const c=jl(r.containerQueries?r:Yl,s);c&&(a[c]=n(e[s],s))}else if(Object.keys(i.values||Yo).includes(s)){const c=i.up(s);a[c]=n(e[s],s)}else{const c=s;a[c]=e[c]}return a},{})}return n(e)}function zl(t={}){return t.keys?.reduce((n,r)=>{const o=t.up(r);return n[o]={},n},{})||{}}function Fa(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function zo(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function _o(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=zo(t,n)||r,e&&(o=e(o,r,t)),o}function Me(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=a=>{if(a[e]==null)return null;const s=a[e],c=a.theme,l=zo(c,r)||{};return en(a,s,d=>{let m=_o(l,o,d);return d===m&&typeof d=="string"&&(m=_o(l,o,`${e}${d==="default"?"":Mn(d)}`,d)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:yn}:{},i.filterProps=[e],i}function Ul(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const Fl={m:"margin",p:"padding"},ql={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wl=Ul(t=>{if(t.length>2)if(qa[t])t=qa[t];else return[t];const[e,n]=t.split(""),r=Fl[e],o=ql[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Uo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vl=[...Uo,...Fo];function Vr(t,e,n,r){const o=zo(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
4
4
  `)):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join(`
5
5
  `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${e}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
6
- `)),()=>{})}function ba(t){return eo(t,"spacing",8,"spacing")}function to(t,e){return typeof e=="string"||e==null?e:t(e)}function Lu(t,e){return n=>t.reduce((r,o)=>(r[o]=to(e,n),r),{})}function ju(t,e,n,r){if(!e.includes(n))return null;const o=Pu(n),i=Lu(o,r),a=t[n];return rn(t,a,i)}function $c(t,e){const n=ba(t.theme);return Object.keys(t).map(r=>ju(t,e,r,n)).reduce(Nr,{})}function De(t){return $c(t,Jo)}De.propTypes=process.env.NODE_ENV!=="production"?Jo.reduce((t,e)=>(t[e]=wn,t),{}):{};De.filterProps=Jo;function Oe(t){return $c(t,ei)}Oe.propTypes=process.env.NODE_ENV!=="production"?ei.reduce((t,e)=>(t[e]=wn,t),{}):{};Oe.filterProps=ei;process.env.NODE_ENV!=="production"&&Nu.reduce((t,e)=>(t[e]=wn,t),{});function ti(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?Nr(o,e[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function _t(t){return typeof t!="number"?t:`${t}px solid`}function xt(t,e){return Me({prop:t,themeKey:"borders",transform:e})}const Yu=xt("border",_t),zu=xt("borderTop",_t),Uu=xt("borderRight",_t),Fu=xt("borderBottom",_t),Vu=xt("borderLeft",_t),Wu=xt("borderColor"),qu=xt("borderTopColor"),Hu=xt("borderRightColor"),Bu=xt("borderBottomColor"),Zu=xt("borderLeftColor"),Gu=xt("outline",_t),Ku=xt("outlineColor"),ni=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=eo(t.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:to(e,r)});return rn(t,t.borderRadius,n)}return null};ni.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wn}:{};ni.filterProps=["borderRadius"];ti(Yu,zu,Uu,Fu,Vu,Wu,qu,Hu,Bu,Zu,ni,Gu,Ku);const ri=t=>{if(t.gap!==void 0&&t.gap!==null){const e=eo(t.theme,"spacing",8,"gap"),n=r=>({gap:to(e,r)});return rn(t,t.gap,n)}return null};ri.propTypes=process.env.NODE_ENV!=="production"?{gap:wn}:{};ri.filterProps=["gap"];const oi=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=eo(t.theme,"spacing",8,"columnGap"),n=r=>({columnGap:to(e,r)});return rn(t,t.columnGap,n)}return null};oi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wn}:{};oi.filterProps=["columnGap"];const ii=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=eo(t.theme,"spacing",8,"rowGap"),n=r=>({rowGap:to(e,r)});return rn(t,t.rowGap,n)}return null};ii.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wn}:{};ii.filterProps=["rowGap"];const Xu=Me({prop:"gridColumn"}),Qu=Me({prop:"gridRow"}),Ju=Me({prop:"gridAutoFlow"}),ed=Me({prop:"gridAutoColumns"}),td=Me({prop:"gridAutoRows"}),nd=Me({prop:"gridTemplateColumns"}),rd=Me({prop:"gridTemplateRows"}),od=Me({prop:"gridTemplateAreas"}),id=Me({prop:"gridArea"});ti(ri,oi,ii,Xu,Qu,Ju,ed,td,nd,rd,od,id);function tr(t,e){return e==="grey"?e:t}const ad=Me({prop:"color",themeKey:"palette",transform:tr}),sd=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tr}),cd=Me({prop:"backgroundColor",themeKey:"palette",transform:tr});ti(ad,sd,cd);function gt(t){return t<=1&&t!==0?`${t*100}%`:t}const ld=Me({prop:"width",transform:gt}),va=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{const r=t.theme?.breakpoints?.values?.[n]||Xo[n];return r?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:gt(n)}};return rn(t,t.maxWidth,e)}return null};va.filterProps=["maxWidth"];const ud=Me({prop:"minWidth",transform:gt}),dd=Me({prop:"height",transform:gt}),fd=Me({prop:"maxHeight",transform:gt}),hd=Me({prop:"minHeight",transform:gt});Me({prop:"size",cssProperty:"width",transform:gt});Me({prop:"size",cssProperty:"height",transform:gt});const md=Me({prop:"boxSizing"});ti(ld,va,ud,dd,fd,hd,md);const ai={border:{themeKey:"borders",transform:_t},borderTop:{themeKey:"borders",transform:_t},borderRight:{themeKey:"borders",transform:_t},borderBottom:{themeKey:"borders",transform:_t},borderLeft:{themeKey:"borders",transform:_t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ni},color:{themeKey:"palette",transform:tr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tr},backgroundColor:{themeKey:"palette",transform:tr},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:De},mt:{style:De},mr:{style:De},mb:{style:De},ml:{style:De},mx:{style:De},my:{style:De},margin:{style:De},marginTop:{style:De},marginRight:{style:De},marginBottom:{style:De},marginLeft:{style:De},marginX:{style:De},marginY:{style:De},marginInline:{style:De},marginInlineStart:{style:De},marginInlineEnd:{style:De},marginBlock:{style:De},marginBlockStart:{style:De},marginBlockEnd:{style:De},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ri},rowGap:{style:ii},columnGap:{style:oi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gt},maxWidth:{style:va},minWidth:{transform:gt},height:{transform:gt},maxHeight:{transform:gt},minHeight:{transform:gt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gd(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function yd(t,e){return typeof t=="function"?t(e):t}function pd(){function t(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:u,style:d}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const h=Qo(o,l)||{};return d?d(a):rn(a,r,p=>{let g=Io(h,u,p);return p===g&&typeof p=="string"&&(g=Io(h,u,`${n}${p==="default"?"":Rn(p)}`,p)),c===!1?g:{[c]:g}})}function e(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??ai;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Ru(o.breakpoints),d=Object.keys(u);let h=u;return Object.keys(l).forEach(y=>{const p=yd(l[y],o);if(p!=null)if(typeof p=="object")if(a[y])h=Nr(h,t(y,p,o,a));else{const g=rn({theme:o},p,v=>({[y]:v}));gd(g,p)?h[y]=e({sx:p,theme:o,nested:!0}):h=Nr(h,g)}else h=Nr(h,t(y,p,o,a))}),!i&&o.modularCssLayers?{"@layer sx":cs(o,us(d,h))}:cs(o,us(d,h))}return Array.isArray(r)?r.map(s):s(r)}return e}const or=pd();or.filterProps=["sx"];function bd(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function wd(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ed=/[A-Z]|^ms/g,_d=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rc=function(e){return e.charCodeAt(1)===45},fs=function(e){return e!=null&&typeof e!="boolean"},ki=wd(function(t){return Rc(t)?t:t.replace(Ed,"-$&").toLowerCase()}),hs=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(_d,function(r,o,i){return dn={name:o,styles:i,next:dn},o})}return vd[e]!==1&&!Rc(e)&&typeof n=="number"&&n!==0?n+"px":n};function Po(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return dn={name:o.name,styles:o.styles,next:dn},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dn={name:a.name,styles:a.styles,next:dn},a=a.next;var s=i.styles+";";return s}return Td(t,e,n)}}var c=n;return c}function Td(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Po(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;fs(s)&&(r+=ki(i)+":"+hs(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var c=0;c<a.length;c++)fs(a[c])&&(r+=ki(i)+":"+hs(i,a[c])+";");else{var l=Po(t,e,a);switch(i){case"animation":case"animationName":{r+=ki(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var ms=/label:\s*([^\s;{]+)\s*(;|$)/g,dn;function Cd(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";dn=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Po(n,e,i);else{var a=i;o+=a[0]}for(var s=1;s<t.length;s++)if(o+=Po(n,e,t[s]),r){var c=i;o+=c[s]}ms.lastIndex=0;for(var l="",u;(u=ms.exec(o))!==null;)l+="-"+u[1];var d=bd(o)+l;return{name:d,styles:o,next:dn}}function Dd(t,e){const n=cu(t,e);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof t=="string"?`"${t}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
7
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Od(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const gs=[];function Mn(t){return gs[0]=t,Cd(gs)}const Sd=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Md(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=Sd(e),a=Object.keys(i);function s(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function l(h,y){const p=a.indexOf(y);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:y)-r/100}${n})`}function u(h){return a.indexOf(h)+1<a.length?l(h,a[a.indexOf(h)+1]):s(h)}function d(h){const y=a.indexOf(h);return y===0?s(a[1]):y===a.length-1?c(a[y]):l(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:n,...o}}const xd={borderRadius:4};function kc(t=8,e=ba({spacing:t})){if(t.mui)return t;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function $d(t,e){const n=this;if(n.vars){if(!n.colorSchemes?.[t]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(t);return r==="&"?e:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:e})}return n.palette.mode===t?e:{}}function wa(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=t,s=Md(n),c=kc(o);let l=pt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...xd,...i}},a);return l=xu(l),l.applyStyles=$d,l=e.reduce((u,d)=>pt(u,d),l),l.unstable_sxConfig={...ai,...a?.unstable_sxConfig},l.unstable_sx=function(d){return or({sx:d,theme:this})},l}function Rd(t){return Object.keys(t).length===0}function kd(t=null){const e=ge.useContext(lu.ThemeContext);return!e||Rd(e)?t:e}const Ad=wa();function Id(t=Ad){return kd(t)}const Pd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ea(t,e,n="Mui"){const r=Pd[e];return r?`${n}-${r}`:`${hu.generate(t)}-${e}`}function Nd(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Ea(t,o,n)}),r}function Ac(t,e=""){return t.displayName||t.name||e}function ys(t,e,n){const r=Ac(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function Ld(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return Ac(t,"Component");if(typeof t=="object")switch(t.$$typeof){case Ao.ForwardRef:return ys(t,t.render,"ForwardRef");case Ao.Memo:return ys(t,t.type,"memo");default:return}}}function Ic(t){const{variants:e,...n}=t,r={variants:e,style:Mn(n),isProcessed:!0};return r.style===n||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Mn(o.style))}),r}const jd=wa();function Ai(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function On(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function Yd(t){return t?(e,n)=>n[t]:null}function zd(t,e,n){t.theme=Wd(t.theme)?n:t.theme[e]||t.theme}function xo(t,e,n){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(o=>xo(t,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?On(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?On(Mn(a),n):a}return Pc(t,r.variants,[o],n)}return r?.isProcessed?n?On(Mn(r.style),n):r.style:n?On(Mn(r),n):r}function Pc(t,e,n=[],r=void 0){let o;e:for(let i=0;i<e.length;i+=1){const a=e[i];if(typeof a.props=="function"){if(o??={...t,...t.ownerState,ownerState:t.ownerState},!a.props(o))continue}else for(const s in a.props)if(t[s]!==a.props[s]&&t.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...t,...t.ownerState,ownerState:t.ownerState},n.push(r?On(Mn(a.style(o)),r):a.style(o))):n.push(r?On(Mn(a.style),r):a.style)}return n}function Ud(t={}){const{themeId:e,defaultTheme:n=jd,rootShouldForwardProp:r=Ai,slotShouldForwardProp:o=Ai}=t;function i(s){zd(s,e,n)}return(s,c={})=>{Od(s,S=>S.filter(P=>P!==or));const{name:l,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:y=Yd(Nc(u)),...p}=c,g=l&&l.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,w=h||!1;let D=Ai;u==="Root"||u==="root"?D=r:u?D=o:qd(s)&&(D=void 0);const O=Dd(s,{shouldForwardProp:D,label:Vd(l,u),...p}),C=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(z){return xo(z,S,z.theme.modularCssLayers?g:void 0)};if(Zt(S)){const P=Ic(S);return function(j){return P.variants?xo(j,P,j.theme.modularCssLayers?g:void 0):j.theme.modularCssLayers?On(P.style,g):P.style}}return S},E=(...S)=>{const P=[],z=S.map(C),j=[];if(P.push(i),l&&y&&j.push(function(k){const Y=k.theme.components?.[l]?.styleOverrides;if(!Y)return null;const Z={};for(const pe in Y)Z[pe]=xo(k,Y[pe],k.theme.modularCssLayers?"theme":void 0);return y(k,Z)}),l&&!v&&j.push(function(k){const Y=k.theme?.components?.[l]?.variants;return Y?Pc(k,Y,[],k.theme.modularCssLayers?"theme":void 0):null}),w||j.push(or),Array.isArray(z[0])){const b=z.shift(),k=new Array(P.length).fill(""),x=new Array(j.length).fill("");let Y;Y=[...k,...b,...x],Y.raw=[...k,...b.raw,...x],P.unshift(Y)}const ae=[...P,...z,...j],B=O(...ae);return s.muiName&&(B.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(B.displayName=Fd(l,u,s)),B};return O.withConfig&&(E.withConfig=O.withConfig),E}}function Fd(t,e,n){return t?`${t}${Rn(e||"")}`:`Styled(${Ld(n)})`}function Vd(t,e){let n;return process.env.NODE_ENV!=="production"&&t&&(n=`${t}-${Nc(e||"Root")}`),n}function Wd(t){for(const e in t)return!1;return!0}function qd(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Nc(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Bi(t,e,n=!1){const r={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const i=o;if(i==="components"||i==="slots")r[i]={...t[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=t[i],s=e[i];if(!s)r[i]=a||{};else if(!a)r[i]=s;else{r[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;r[i][l]=Bi(a[l],s[l],n)}}}else i==="className"&&n&&e.className?r.className=Mc(t?.className,e?.className):i==="style"&&n&&e.style?r.style={...t?.style,...e?.style}:r[i]===void 0&&(r[i]=t[i])}return r}function Hd(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function _a(t,e=0,n=1){return process.env.NODE_ENV!=="production"&&(t<e||t>n)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`),Hd(t,e,n)}function Bd(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&t.length!==t.trim().length&&console.error(`MUI: The color: "${t}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yn(t){if(t.type)return t;if(t.charAt(0)==="#")return yn(Bd(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${t}\` color.
8
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:gn(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
9
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:gn(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Zd=t=>{const e=yn(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Or=(t,e)=>{try{return Zd(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function si(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function Lc(t){t=yn(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=(l,u=(l+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(s+="a",c.push(e[3])),si({type:s,values:c})}function Zi(t){t=yn(t);let e=t.type==="hsl"||t.type==="hsla"?yn(Lc(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function ps(t,e){const n=Zi(t),r=Zi(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jc(t,e){return t=yn(t),e=_a(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,si(t)}function Cn(t,e,n){try{return jc(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function ci(t,e){if(t=yn(t),e=_a(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return si(t)}function de(t,e,n){try{return ci(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function li(t,e){if(t=yn(t),e=_a(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return si(t)}function fe(t,e,n){try{return li(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Gd(t,e=.15){return Zi(t)>.5?ci(t,e):li(t,e)}function To(t,e,n){try{return Gd(t,e)}catch{return t}}const Kd=ge.createContext(void 0);process.env.NODE_ENV!=="production"&&(se.node,se.object);function Xd(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Bi(o.defaultProps,r,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Bi(o,r,e.components.mergeClassNameAndStyle):r}function Qd({props:t,name:e}){const n=ge.useContext(Kd);return Xd({props:t,name:e,theme:{components:n}})}const bs={theme:void 0};function Jd(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(bs.theme=o.theme,i=Ic(t(bs)),e=i,n=o.theme),i}}function ef(t=""){function e(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const vs=(t,e,n,r=[])=>{let o=t;e.forEach((i,a)=>{a===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},tf=(t,e,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!n||n&&!n([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,s],Array.isArray(c)?[...a,s]:a):e([...i,s],c,a))})}r(t)},nf=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Ii(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},a={};return tf(t,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=nf(s,c);Object.assign(o,{[u]:d}),vs(i,s,`var(${u})`,l),vs(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function rf(t,e={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=e,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=t,{vars:u,css:d,varsWithDefaults:h}=Ii(l,e);let y=h;const p={},{[c]:g,...v}=a;if(Object.entries(v||{}).forEach(([C,E])=>{const{vars:S,css:P,varsWithDefaults:z}=Ii(E,e);y=pt(y,z),p[C]={css:P,vars:S}}),g){const{css:C,vars:E,varsWithDefaults:S}=Ii(g,e);y=pt(y,S),p[c]={css:C,vars:E}}function w(C,E){let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),C){if(S==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":E}};if(S)return t.defaultColorScheme===C?`:root, ${S.replace("%s",String(C))}`:S.replace("%s",String(C))}return":root"}return{vars:y,generateThemeVars:()=>{let C={...u};return Object.entries(p).forEach(([,{vars:E}])=>{C=pt(C,E)}),C},generateStyleSheets:()=>{const C=[],E=t.defaultColorScheme||"light";function S(j,ae){Object.keys(ae).length&&C.push(typeof j=="string"?{[j]:{...ae}}:j)}S(n(void 0,{...d}),d);const{[E]:P,...z}=p;if(P){const{css:j}=P,ae=a[E]?.palette?.mode,B=!r&&ae?{colorScheme:ae,...j}:{...j};S(n(E,{...B}),B)}return Object.entries(z).forEach(([j,{css:ae}])=>{const B=a[j]?.palette?.mode,b=!r&&B?{colorScheme:B,...ae}:{...ae};S(n(j,{...b}),b)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function of(t){return function(n){return t==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const Vr={black:"#000",white:"#fff"},af={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Vn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Wn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Yc(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vr.white,default:Vr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const zc=Yc();function Uc(){return{text:{primary:Vr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Gi=Uc();function ws(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=li(t.main,o):e==="dark"&&(t.dark=ci(t.main,i)))}function Es(t,e,n,r,o){const i=o.light||o,a=o.dark||o*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(a*100).toFixed(0)}%)`))}function sf(t="light"){return t==="dark"?{main:qn[200],light:qn[50],dark:qn[400]}:{main:qn[700],light:qn[400],dark:qn[800]}}function cf(t="light"){return t==="dark"?{main:Vn[200],light:Vn[50],dark:Vn[400]}:{main:Vn[500],light:Vn[300],dark:Vn[700]}}function lf(t="light"){return t==="dark"?{main:Wn[500],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[400],dark:Wn[800]}}function uf(t="light"){return t==="dark"?{main:Hn[400],light:Hn[300],dark:Hn[700]}:{main:Hn[700],light:Hn[500],dark:Hn[900]}}function df(t="light"){return t==="dark"?{main:Bn[400],light:Bn[300],dark:Bn[700]}:{main:Bn[800],light:Bn[500],dark:Bn[900]}}function ff(t="light"){return t==="dark"?{main:wr[400],light:wr[300],dark:wr[700]}:{main:"#ed6c02",light:wr[500],dark:wr[900]}}function hf(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function Ta(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=t,a=t.primary||sf(e),s=t.secondary||cf(e),c=t.error||lf(e),l=t.info||uf(e),u=t.success||df(e),d=t.warning||ff(e);function h(v){if(o)return hf(v);const w=ps(v,Gi.text.primary)>=n?Gi.text.primary:zc.text.primary;if(process.env.NODE_ENV!=="production"){const D=ps(v,w);D<3&&console.error([`MUI: The contrast ratio of ${D}:1 for ${w} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
10
- `))}return w}const y=({color:v,name:w,mainShade:D=500,lightShade:O=300,darkShade:C=700})=>{if(v={...v},!v.main&&v[D]&&(v.main=v[D]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
11
- The color object needs to have a \`main\` property or a \`${D}\` property.`:gn(11,w?` (${w})`:"",D));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
12
- \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
6
+ `)),()=>{})}function Ji(t){return Vr(t,"spacing",8,"spacing")}function Hr(t,e){return typeof e=="string"||e==null?e:t(e)}function Hl(t,e){return n=>t.reduce((r,o)=>(r[o]=Hr(e,n),r),{})}function Zl(t,e,n,r){if(!e.includes(n))return null;const o=Wl(n),i=Hl(o,r),a=t[n];return en(t,a,i)}function Bs(t,e){const n=Ji(t.theme);return Object.keys(t).map(r=>Zl(t,e,r,n)).reduce(xr,{})}function _e(t){return Bs(t,Uo)}_e.propTypes=process.env.NODE_ENV!=="production"?Uo.reduce((t,e)=>(t[e]=yn,t),{}):{};_e.filterProps=Uo;function Ce(t){return Bs(t,Fo)}Ce.propTypes=process.env.NODE_ENV!=="production"?Fo.reduce((t,e)=>(t[e]=yn,t),{}):{};Ce.filterProps=Fo;process.env.NODE_ENV!=="production"&&Vl.reduce((t,e)=>(t[e]=yn,t),{});function qo(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?xr(o,e[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?t.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pt(t){return typeof t!="number"?t:`${t}px solid`}function Ct(t,e){return Me({prop:t,themeKey:"borders",transform:e})}const Bl=Ct("border",pt),Gl=Ct("borderTop",pt),Kl=Ct("borderRight",pt),Xl=Ct("borderBottom",pt),Ql=Ct("borderLeft",pt),Jl=Ct("borderColor"),eu=Ct("borderTopColor"),tu=Ct("borderRightColor"),nu=Ct("borderBottomColor"),ru=Ct("borderLeftColor"),ou=Ct("outline",pt),iu=Ct("outlineColor"),Wo=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Vr(t.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Hr(e,r)});return en(t,t.borderRadius,n)}return null};Wo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yn}:{};Wo.filterProps=["borderRadius"];qo(Bl,Gl,Kl,Xl,Ql,Jl,eu,tu,nu,ru,Wo,ou,iu);const Vo=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Vr(t.theme,"spacing",8,"gap"),n=r=>({gap:Hr(e,r)});return en(t,t.gap,n)}return null};Vo.propTypes=process.env.NODE_ENV!=="production"?{gap:yn}:{};Vo.filterProps=["gap"];const Ho=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Vr(t.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Hr(e,r)});return en(t,t.columnGap,n)}return null};Ho.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yn}:{};Ho.filterProps=["columnGap"];const Zo=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Vr(t.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Hr(e,r)});return en(t,t.rowGap,n)}return null};Zo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yn}:{};Zo.filterProps=["rowGap"];const au=Me({prop:"gridColumn"}),su=Me({prop:"gridRow"}),cu=Me({prop:"gridAutoFlow"}),lu=Me({prop:"gridAutoColumns"}),uu=Me({prop:"gridAutoRows"}),du=Me({prop:"gridTemplateColumns"}),hu=Me({prop:"gridTemplateRows"}),fu=Me({prop:"gridTemplateAreas"}),mu=Me({prop:"gridArea"});qo(Vo,Ho,Zo,au,su,cu,lu,uu,du,hu,fu,mu);function Bn(t,e){return e==="grey"?e:t}const gu=Me({prop:"color",themeKey:"palette",transform:Bn}),yu=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bn}),pu=Me({prop:"backgroundColor",themeKey:"palette",transform:Bn});qo(gu,yu,pu);function ut(t){return t<=1&&t!==0?`${t*100}%`:t}const bu=Me({prop:"width",transform:ut}),ea=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{const r=t.theme?.breakpoints?.values?.[n]||Yo[n];return r?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ut(n)}};return en(t,t.maxWidth,e)}return null};ea.filterProps=["maxWidth"];const wu=Me({prop:"minWidth",transform:ut}),vu=Me({prop:"height",transform:ut}),Eu=Me({prop:"maxHeight",transform:ut}),Tu=Me({prop:"minHeight",transform:ut});Me({prop:"size",cssProperty:"width",transform:ut});Me({prop:"size",cssProperty:"height",transform:ut});const _u=Me({prop:"boxSizing"});qo(bu,ea,wu,vu,Eu,Tu,_u);const Bo={border:{themeKey:"borders",transform:pt},borderTop:{themeKey:"borders",transform:pt},borderRight:{themeKey:"borders",transform:pt},borderBottom:{themeKey:"borders",transform:pt},borderLeft:{themeKey:"borders",transform:pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wo},color:{themeKey:"palette",transform:Bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bn},backgroundColor:{themeKey:"palette",transform:Bn},p:{style:Ce},pt:{style:Ce},pr:{style:Ce},pb:{style:Ce},pl:{style:Ce},px:{style:Ce},py:{style:Ce},padding:{style:Ce},paddingTop:{style:Ce},paddingRight:{style:Ce},paddingBottom:{style:Ce},paddingLeft:{style:Ce},paddingX:{style:Ce},paddingY:{style:Ce},paddingInline:{style:Ce},paddingInlineStart:{style:Ce},paddingInlineEnd:{style:Ce},paddingBlock:{style:Ce},paddingBlockStart:{style:Ce},paddingBlockEnd:{style:Ce},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vo},rowGap:{style:Zo},columnGap:{style:Ho},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ut},maxWidth:{style:ea},minWidth:{transform:ut},height:{transform:ut},maxHeight:{transform:ut},minHeight:{transform:ut},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cu(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function Du(t,e){return typeof t=="function"?t(e):t}function Mu(){function t(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:u,style:d}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const m=zo(o,l)||{};return d?d(a):en(a,r,b=>{let g=_o(m,u,b);return b===g&&typeof b=="string"&&(g=_o(m,u,`${n}${b==="default"?"":Mn(b)}`,b)),c===!1?g:{[c]:g}})}function e(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Bo;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=zl(o.breakpoints),d=Object.keys(u);let m=u;return Object.keys(l).forEach(y=>{const b=Du(l[y],o);if(b!=null)if(typeof b=="object")if(a[y])m=xr(m,t(y,b,o,a));else{const g=en({theme:o},b,w=>({[y]:w}));Cu(g,b)?m[y]=e({sx:b,theme:o,nested:!0}):m=xr(m,g)}else m=xr(m,t(y,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":za(o,Fa(d,m))}:za(o,Fa(d,m))}return Array.isArray(r)?r.map(s):s(r)}return e}const Xn=Mu();Xn.filterProps=["sx"];function xu(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ou={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function $u(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Su=/[A-Z]|^ms/g,ku=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gs=function(e){return e.charCodeAt(1)===45},Wa=function(e){return e!=null&&typeof e!="boolean"},wi=$u(function(t){return Gs(t)?t:t.replace(Su,"-$&").toLowerCase()}),Va=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ku,function(r,o,i){return sn={name:o,styles:i,next:sn},o})}return Ou[e]!==1&&!Gs(e)&&typeof n=="number"&&n!==0?n+"px":n};function Co(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return sn={name:o.name,styles:o.styles,next:sn},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)sn={name:a.name,styles:a.styles,next:sn},a=a.next;var s=i.styles+";";return s}return Ru(t,e,n)}}var c=n;return c}function Ru(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Co(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;Wa(s)&&(r+=wi(i)+":"+Va(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var c=0;c<a.length;c++)Wa(a[c])&&(r+=wi(i)+":"+Va(i,a[c])+";");else{var l=Co(t,e,a);switch(i){case"animation":case"animationName":{r+=wi(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Ha=/label:\s*([^\s;{]+)\s*(;|$)/g,sn;function Au(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";sn=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Co(n,e,i);else{var a=i;o+=a[0]}for(var s=1;s<t.length;s++)if(o+=Co(n,e,t[s]),r){var c=i;o+=c[s]}Ha.lastIndex=0;for(var l="",u;(u=Ha.exec(o))!==null;)l+="-"+u[1];var d=xu(o)+l;return{name:d,styles:o,next:sn}}function Iu(t,e){const n=bl(t,e);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof t=="string"?`"${t}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
7
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Pu(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Za=[];function _n(t){return Za[0]=t,Au(Za)}const Nu=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function ju(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=Nu(e),a=Object.keys(i);function s(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-r/100}${n})`}function l(m,y){const b=a.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n}) and (max-width:${(b!==-1&&typeof e[a[b]]=="number"?e[a[b]]:y)-r/100}${n})`}function u(m){return a.indexOf(m)+1<a.length?l(m,a[a.indexOf(m)+1]):s(m)}function d(m){const y=a.indexOf(m);return y===0?s(a[1]):y===a.length-1?c(a[y]):l(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:n,...o}}const Lu={borderRadius:4};function Ks(t=8,e=Ji({spacing:t})){if(t.mui)return t;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=e(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Yu(t,e){const n=this;if(n.vars){if(!n.colorSchemes?.[t]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(t);return r==="&"?e:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:e})}return n.palette.mode===t?e:{}}function ta(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=t,s=ju(n),c=Ks(o);let l=ht({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Lu,...i}},a);return l=Ll(l),l.applyStyles=Yu,l=e.reduce((u,d)=>ht(u,d),l),l.unstable_sxConfig={...Bo,...a?.unstable_sxConfig},l.unstable_sx=function(d){return Xn({sx:d,theme:this})},l}function zu(t){return Object.keys(t).length===0}function Uu(t=null){const e=jt.useContext(wl.ThemeContext);return!e||zu(e)?t:e}const Fu=ta();function qu(t=Fu){return Uu(t)}const Wu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function na(t,e,n="Mui"){const r=Wu[e];return r?`${n}-${r}`:`${Tl.generate(t)}-${e}`}function Vu(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=na(t,o,n)}),r}function Xs(t,e=""){return t.displayName||t.name||e}function Ba(t,e,n){const r=Xs(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function Hu(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return Xs(t,"Component");if(typeof t=="object")switch(t.$$typeof){case To.ForwardRef:return Ba(t,t.render,"ForwardRef");case To.Memo:return Ba(t,t.type,"memo");default:return}}}function Qs(t){const{variants:e,...n}=t,r={variants:e,style:_n(n),isProcessed:!0};return r.style===n||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=_n(o.style))}),r}const Zu=ta();function vi(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function En(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function Bu(t){return t?(e,n)=>n[t]:null}function Gu(t,e,n){t.theme=Ju(t.theme)?n:t.theme[e]||t.theme}function wo(t,e,n){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(o=>wo(t,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?En(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?En(_n(a),n):a}return Js(t,r.variants,[o],n)}return r?.isProcessed?n?En(_n(r.style),n):r.style:n?En(_n(r),n):r}function Js(t,e,n=[],r=void 0){let o;e:for(let i=0;i<e.length;i+=1){const a=e[i];if(typeof a.props=="function"){if(o??={...t,...t.ownerState,ownerState:t.ownerState},!a.props(o))continue}else for(const s in a.props)if(t[s]!==a.props[s]&&t.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...t,...t.ownerState,ownerState:t.ownerState},n.push(r?En(_n(a.style(o)),r):a.style(o))):n.push(r?En(_n(a.style),r):a.style)}return n}function Ku(t={}){const{themeId:e,defaultTheme:n=Zu,rootShouldForwardProp:r=vi,slotShouldForwardProp:o=vi}=t;function i(s){Gu(s,e,n)}return(s,c={})=>{Pu(s,k=>k.filter(F=>F!==Xn));const{name:l,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:y=Bu(ec(u)),...b}=c,g=l&&l.startsWith("Mui")||u?"components":"custom",w=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=m||!1;let D=vi;u==="Root"||u==="root"?D=r:u?D=o:ed(s)&&(D=void 0);const M=Iu(s,{shouldForwardProp:D,label:Qu(l,u),...b}),C=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(G){return wo(G,k,G.theme.modularCssLayers?g:void 0)};if(Vt(k)){const F=Qs(k);return function(N){return F.variants?wo(N,F,N.theme.modularCssLayers?g:void 0):N.theme.modularCssLayers?En(F.style,g):F.style}}return k},T=(...k)=>{const F=[],G=k.map(C),N=[];if(F.push(i),l&&y&&N.push(function(R){const j=R.theme.components?.[l]?.styleOverrides;if(!j)return null;const H={};for(const pe in j)H[pe]=wo(R,j[pe],R.theme.modularCssLayers?"theme":void 0);return y(R,H)}),l&&!w&&N.push(function(R){const j=R.theme?.components?.[l]?.variants;return j?Js(R,j,[],R.theme.modularCssLayers?"theme":void 0):null}),v||N.push(Xn),Array.isArray(G[0])){const p=G.shift(),R=new Array(F.length).fill(""),O=new Array(N.length).fill("");let j;j=[...R,...p,...O],j.raw=[...R,...p.raw,...O],F.unshift(j)}const ae=[...F,...G,...N],q=M(...ae);return s.muiName&&(q.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(q.displayName=Xu(l,u,s)),q};return M.withConfig&&(T.withConfig=M.withConfig),T}}function Xu(t,e,n){return t?`${t}${Mn(e||"")}`:`Styled(${Hu(n)})`}function Qu(t,e){let n;return process.env.NODE_ENV!=="production"&&t&&(n=`${t}-${ec(e||"Root")}`),n}function Ju(t){for(const e in t)return!1;return!0}function ed(t){return typeof t=="string"&&t.charCodeAt(0)>96}function ec(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Oi(t,e,n=!1){const r={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const i=o;if(i==="components"||i==="slots")r[i]={...t[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=t[i],s=e[i];if(!s)r[i]=a||{};else if(!a)r[i]=s;else{r[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;r[i][l]=Oi(a[l],s[l],n)}}}else i==="className"&&n&&e.className?r.className=Hs(t?.className,e?.className):i==="style"&&n&&e.style?r.style={...t?.style,...e?.style}:r[i]===void 0&&(r[i]=t[i])}return r}function td(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function ra(t,e=0,n=1){return process.env.NODE_ENV!=="production"&&(t<e||t>n)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`),td(t,e,n)}function nd(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&t.length!==t.trim().length&&console.error(`MUI: The color: "${t}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function hn(t){if(t.type)return t;if(t.charAt(0)==="#")return hn(nd(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${t}\` color.
8
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:dn(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
9
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:dn(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const rd=t=>{const e=hn(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},pr=(t,e)=>{try{return rd(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function Go(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function tc(t){t=hn(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=(l,u=(l+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(s+="a",c.push(e[3])),Go({type:s,values:c})}function $i(t){t=hn(t);let e=t.type==="hsl"||t.type==="hsla"?hn(tc(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Ga(t,e){const n=$i(t),r=$i(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nc(t,e){return t=hn(t),e=ra(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Go(t)}function wn(t,e,n){try{return nc(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Ko(t,e){if(t=hn(t),e=ra(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Go(t)}function de(t,e,n){try{return Ko(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function Xo(t,e){if(t=hn(t),e=ra(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Go(t)}function he(t,e,n){try{return Xo(t,e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),t}}function od(t,e=.15){return $i(t)>.5?Ko(t,e):Xo(t,e)}function go(t,e,n){try{return od(t,e)}catch{return t}}const id=jt.createContext(void 0);process.env.NODE_ENV!=="production"&&(ie.node,ie.object);function ad(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Oi(o.defaultProps,r,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Oi(o,r,e.components.mergeClassNameAndStyle):r}function sd({props:t,name:e}){const n=jt.useContext(id);return ad({props:t,name:e,theme:{components:n}})}const Ka={theme:void 0};function cd(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(Ka.theme=o.theme,i=Qs(t(Ka)),e=i,n=o.theme),i}}function ld(t=""){function e(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const Xa=(t,e,n,r=[])=>{let o=t;e.forEach((i,a)=>{a===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},ud=(t,e,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!n||n&&!n([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,s],Array.isArray(c)?[...a,s]:a):e([...i,s],c,a))})}r(t)},dd=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Ei(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},a={};return ud(t,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=dd(s,c);Object.assign(o,{[u]:d}),Xa(i,s,`var(${u})`,l),Xa(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function hd(t,e={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=e,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=t,{vars:u,css:d,varsWithDefaults:m}=Ei(l,e);let y=m;const b={},{[c]:g,...w}=a;if(Object.entries(w||{}).forEach(([C,T])=>{const{vars:k,css:F,varsWithDefaults:G}=Ei(T,e);y=ht(y,G),b[C]={css:F,vars:k}}),g){const{css:C,vars:T,varsWithDefaults:k}=Ei(g,e);y=ht(y,k),b[c]={css:C,vars:T}}function v(C,T){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),C){if(k==="media")return t.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":T}};if(k)return t.defaultColorScheme===C?`:root, ${k.replace("%s",String(C))}`:k.replace("%s",String(C))}return":root"}return{vars:y,generateThemeVars:()=>{let C={...u};return Object.entries(b).forEach(([,{vars:T}])=>{C=ht(C,T)}),C},generateStyleSheets:()=>{const C=[],T=t.defaultColorScheme||"light";function k(N,ae){Object.keys(ae).length&&C.push(typeof N=="string"?{[N]:{...ae}}:N)}k(n(void 0,{...d}),d);const{[T]:F,...G}=b;if(F){const{css:N}=F,ae=a[T]?.palette?.mode,q=!r&&ae?{colorScheme:ae,...N}:{...N};k(n(T,{...q}),q)}return Object.entries(G).forEach(([N,{css:ae}])=>{const q=a[N]?.palette?.mode,p=!r&&q?{colorScheme:q,...ae}:{...ae};k(n(N,{...p}),p)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function fd(t){return function(n){return t==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const Ir={black:"#000",white:"#fff"},md={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Nn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},jn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},fr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ln={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},zn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function rc(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ir.white,default:Ir.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const oc=rc();function ic(){return{text:{primary:Ir.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ir.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Si=ic();function Qa(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Xo(t.main,o):e==="dark"&&(t.dark=Ko(t.main,i)))}function Ja(t,e,n,r,o){const i=o.light||o,a=o.dark||o*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(a*100).toFixed(0)}%)`))}function gd(t="light"){return t==="dark"?{main:Ln[200],light:Ln[50],dark:Ln[400]}:{main:Ln[700],light:Ln[400],dark:Ln[800]}}function yd(t="light"){return t==="dark"?{main:Nn[200],light:Nn[50],dark:Nn[400]}:{main:Nn[500],light:Nn[300],dark:Nn[700]}}function pd(t="light"){return t==="dark"?{main:jn[500],light:jn[300],dark:jn[700]}:{main:jn[700],light:jn[400],dark:jn[800]}}function bd(t="light"){return t==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[700],light:Yn[500],dark:Yn[900]}}function wd(t="light"){return t==="dark"?{main:zn[400],light:zn[300],dark:zn[700]}:{main:zn[800],light:zn[500],dark:zn[900]}}function vd(t="light"){return t==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:"#ed6c02",light:fr[500],dark:fr[900]}}function Ed(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function oa(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=t,a=t.primary||gd(e),s=t.secondary||yd(e),c=t.error||pd(e),l=t.info||bd(e),u=t.success||wd(e),d=t.warning||vd(e);function m(w){if(o)return Ed(w);const v=Ga(w,Si.text.primary)>=n?Si.text.primary:oc.text.primary;if(process.env.NODE_ENV!=="production"){const D=Ga(w,v);D<3&&console.error([`MUI: The contrast ratio of ${D}:1 for ${v} on ${w}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
10
+ `))}return v}const y=({color:w,name:v,mainShade:D=500,lightShade:M=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[D]&&(w.main=w[D]),!w.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
11
+ The color object needs to have a \`main\` property or a \`${D}\` property.`:dn(11,v?` (${v})`:"",D));if(typeof w.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
12
+ \`color.main\` should be a string, but \`${JSON.stringify(w.main)}\` was provided instead.
13
13
 
14
14
  Did you intend to use one of the following approaches?
15
15
 
@@ -21,14 +21,14 @@ const theme1 = createTheme({ palette: {
21
21
 
22
22
  const theme2 = createTheme({ palette: {
23
23
  primary: { main: green[500] },
24
- } });`:gn(12,w?` (${w})`:"",JSON.stringify(v.main)));return o?(Es(o,v,"light",O,r),Es(o,v,"dark",C,r)):(ws(v,"light",O,r),ws(v,"dark",C,r)),v.contrastText||(v.contrastText=h(v.main)),v};let p;return e==="light"?p=Yc():e==="dark"&&(p=Uc()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${e}\` is not supported.`)),pt({common:{...Vr},mode:e,primary:y({color:a,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:d,name:"warning"}),info:y({color:l,name:"info"}),success:y({color:u,name:"success"}),grey:af,contrastThreshold:n,getContrastText:h,augmentColor:y,tonalOffset:r,...p},i)}function mf(t){const e={};return Object.entries(t).forEach(r=>{const[o,i]=r;typeof i=="object"&&(e[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),e}function gf(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function yf(t){return Math.round(t*1e5)/1e5}const _s={textTransform:"uppercase"},Ts='"Roboto", "Helvetica", "Arial", sans-serif';function pf(t,e){const{fontFamily:n=Ts,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof e=="function"?e(t):e;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,y=u||(v=>`${v/c*h}rem`),p=(v,w,D,O,C)=>({fontFamily:n,fontWeight:v,fontSize:y(w),lineHeight:D,...n===Ts?{letterSpacing:`${yf(O/w)}em`}:{},...C,...l}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(i,48,1.167,0),h4:p(i,34,1.235,.25),h5:p(i,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(i,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(i,16,1.5,.15),body2:p(i,14,1.43,.15),button:p(a,14,1.75,.4,_s),caption:p(i,12,1.66,.4),overline:p(i,12,2.66,1,_s),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pt({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}const bf=.2,vf=.14,wf=.12;function we(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${bf})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${vf})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${wf})`].join(",")}const Ef=["none",we(0,2,1,-1,0,1,1,0,0,1,3,0),we(0,3,1,-2,0,2,2,0,0,1,5,0),we(0,3,3,-2,0,3,4,0,0,1,8,0),we(0,2,4,-1,0,4,5,0,0,1,10,0),we(0,3,5,-1,0,5,8,0,0,1,14,0),we(0,3,5,-1,0,6,10,0,0,1,18,0),we(0,4,5,-2,0,7,10,1,0,2,16,1),we(0,5,5,-3,0,8,10,1,0,3,14,2),we(0,5,6,-3,0,9,12,1,0,3,16,2),we(0,6,6,-3,0,10,14,1,0,4,18,3),we(0,6,7,-4,0,11,15,1,0,4,20,3),we(0,7,8,-4,0,12,17,2,0,5,22,4),we(0,7,8,-4,0,13,19,2,0,5,24,4),we(0,7,9,-4,0,14,21,2,0,5,26,4),we(0,8,9,-5,0,15,22,2,0,6,28,5),we(0,8,10,-5,0,16,24,2,0,6,30,5),we(0,8,11,-5,0,17,26,2,0,6,32,5),we(0,9,11,-5,0,18,28,2,0,7,34,6),we(0,9,12,-6,0,19,29,2,0,7,36,6),we(0,10,13,-6,0,20,31,3,0,8,38,7),we(0,10,13,-6,0,21,33,3,0,8,40,7),we(0,10,14,-6,0,22,35,3,0,8,42,7),we(0,11,14,-7,0,23,36,3,0,9,44,8),we(0,11,15,-7,0,24,38,3,0,9,46,8)],_f={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Tf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cs(t){return`${Math.round(t)}ms`}function Cf(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function Df(t){const e={..._f,...t.easing},n={...Tf,...t.duration};return{getAutoHeightDuration:Cf,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=e.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=h=>typeof h=="string",d=h=>!Number.isNaN(parseFloat(h));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
25
- `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Cs(a)} ${s} ${typeof c=="string"?c:Cs(c)}`).join(",")},...t,easing:e,duration:n}}const Of={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Sf(t){return Zt(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Fc(t={}){const e={...t};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!Sf(s)||a.startsWith("unstable_")?delete r[a]:Zt(s)&&(r[a]={...s},n(r[a]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
24
+ } });`:dn(12,v?` (${v})`:"",JSON.stringify(w.main)));return o?(Ja(o,w,"light",M,r),Ja(o,w,"dark",C,r)):(Qa(w,"light",M,r),Qa(w,"dark",C,r)),w.contrastText||(w.contrastText=m(w.main)),w};let b;return e==="light"?b=rc():e==="dark"&&(b=ic()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${e}\` is not supported.`)),ht({common:{...Ir},mode:e,primary:y({color:a,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:d,name:"warning"}),info:y({color:l,name:"info"}),success:y({color:u,name:"success"}),grey:md,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...b},i)}function Td(t){const e={};return Object.entries(t).forEach(r=>{const[o,i]=r;typeof i=="object"&&(e[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),e}function _d(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function Cd(t){return Math.round(t*1e5)/1e5}const es={textTransform:"uppercase"},ts='"Roboto", "Helvetica", "Arial", sans-serif';function Dd(t,e){const{fontFamily:n=ts,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof e=="function"?e(t):e;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,y=u||(w=>`${w/c*m}rem`),b=(w,v,D,M,C)=>({fontFamily:n,fontWeight:w,fontSize:y(v),lineHeight:D,...n===ts?{letterSpacing:`${Cd(M/v)}em`}:{},...C,...l}),g={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,es),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,es),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}const Md=.2,xd=.14,Od=.12;function be(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Md})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${xd})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Od})`].join(",")}const $d=["none",be(0,2,1,-1,0,1,1,0,0,1,3,0),be(0,3,1,-2,0,2,2,0,0,1,5,0),be(0,3,3,-2,0,3,4,0,0,1,8,0),be(0,2,4,-1,0,4,5,0,0,1,10,0),be(0,3,5,-1,0,5,8,0,0,1,14,0),be(0,3,5,-1,0,6,10,0,0,1,18,0),be(0,4,5,-2,0,7,10,1,0,2,16,1),be(0,5,5,-3,0,8,10,1,0,3,14,2),be(0,5,6,-3,0,9,12,1,0,3,16,2),be(0,6,6,-3,0,10,14,1,0,4,18,3),be(0,6,7,-4,0,11,15,1,0,4,20,3),be(0,7,8,-4,0,12,17,2,0,5,22,4),be(0,7,8,-4,0,13,19,2,0,5,24,4),be(0,7,9,-4,0,14,21,2,0,5,26,4),be(0,8,9,-5,0,15,22,2,0,6,28,5),be(0,8,10,-5,0,16,24,2,0,6,30,5),be(0,8,11,-5,0,17,26,2,0,6,32,5),be(0,9,11,-5,0,18,28,2,0,7,34,6),be(0,9,12,-6,0,19,29,2,0,7,36,6),be(0,10,13,-6,0,20,31,3,0,8,38,7),be(0,10,13,-6,0,21,33,3,0,8,40,7),be(0,10,14,-6,0,22,35,3,0,8,42,7),be(0,11,14,-7,0,23,36,3,0,9,44,8),be(0,11,15,-7,0,24,38,3,0,9,46,8)],Sd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ns(t){return`${Math.round(t)}ms`}function Rd(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function Ad(t){const e={...Sd,...t.easing},n={...kd,...t.duration};return{getAutoHeightDuration:Rd,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=e.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=m=>typeof m=="string",d=m=>!Number.isNaN(parseFloat(m));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
25
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:ns(a)} ${s} ${typeof c=="string"?c:ns(c)}`).join(",")},...t,easing:e,duration:n}}const Id={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Pd(t){return Vt(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function ac(t={}){const e={...t};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!Pd(s)||a.startsWith("unstable_")?delete r[a]:Vt(s)&&(r[a]={...s},n(r[a]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
26
26
 
27
27
  const theme = ${JSON.stringify(e,null,2)};
28
28
 
29
29
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
30
30
  theme.transitions = createTransitions(theme.transitions || {});
31
31
 
32
- export default theme;`}function Ds(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const Mf=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let n=0;for(let r=0;r<e.length;r+=1)n+=+e[r];return n};function xf(t){Object.assign(t,{alpha(e,n){const r=this||t;return r.colorSpace?`oklch(from ${e} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:jc(e,Mf(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${Ds(n)})`:li(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${Ds(n)})`:ci(e,n)}})}function Ki(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":gn(20));const d=Ta({...i,colorSpace:l}),h=wa(t);let y=pt(h,{mixins:gf(h.breakpoints,r),palette:d,shadows:Ef.slice(),typography:pf(d,s),transitions:Df(a),zIndex:{...Of}});if(y=pt(y,u),y=e.reduce((p,g)=>pt(p,g),y),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,w)=>{let D;for(D in v){const O=v[D];if(p.includes(D)&&Object.keys(O).length>0){if(process.env.NODE_ENV!=="production"){const C=Ea("",D);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${D}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:O}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
- `))}v[D]={}}}};Object.keys(y.components).forEach(v=>{const w=y.components[v].styleOverrides;w&&v.startsWith("Mui")&&g(w,v)})}return y.unstable_sxConfig={...ai,...u?.unstable_sxConfig},y.unstable_sx=function(g){return or({sx:g,theme:this})},y.toRuntimeSource=Fc,xf(y),y}function $f(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Rf=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=$f(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Vc(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Wc(t){return t==="dark"?Rf:[]}function kf(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=t,a=Ta({...e,colorSpace:o});return{palette:a,opacity:{...Vc(a.mode),...n},overlays:r||Wc(a.mode),...i}}function Af(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const If=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Pf=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const a={};return If(t.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",e)]:a,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function Nf(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function T(t,e,n){!t[e]&&n&&(t[e]=n)}function Sr(t){return typeof t!="string"||!t.startsWith("hsl")?t:Lc(t)}function qt(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Or(Sr(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
34
- To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Lf(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const At=t=>{try{return t()}catch{}},jf=(t="mui")=>ef(t);function Pi(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=kf({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=Ki({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...Vc(i),...n?.opacity},overlays:n?.overlays||Wc(i)},s}function Yf(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Af,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),y=jf(i),{[h]:p,light:g,dark:v,...w}=n,D={...w};let O=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:gn(21,h));let C;a&&(C="oklch");const E=Pi(C,D,O,u,h);g&&!D.light&&Pi(C,D,g,void 0,"light"),v&&!D.dark&&Pi(C,D,v,void 0,"dark");let S={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...mf(E.typography),...E.font},spacing:Lf(u.spacing)};Object.keys(S.colorSchemes).forEach(B=>{const b=S.colorSchemes[B].palette,k=Y=>{const Z=Y.split("-"),pe=Z[1],at=Z[2];return y(Y,b[pe][at])};b.mode==="light"&&(T(b.common,"background","#fff"),T(b.common,"onBackground","#000")),b.mode==="dark"&&(T(b.common,"background","#000"),T(b.common,"onBackground","#fff"));function x(Y,Z,pe){if(C){let at;return Y===Cn&&(at=`transparent ${((1-pe)*100).toFixed(0)}%`),Y===de&&(at=`#000 ${(pe*100).toFixed(0)}%`),Y===fe&&(at=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${Z}, ${at})`}return Y(Z,pe)}if(Nf(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){T(b.Alert,"errorColor",x(de,b.error.light,.6)),T(b.Alert,"infoColor",x(de,b.info.light,.6)),T(b.Alert,"successColor",x(de,b.success.light,.6)),T(b.Alert,"warningColor",x(de,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-main")),T(b.Alert,"infoFilledBg",k("palette-info-main")),T(b.Alert,"successFilledBg",k("palette-success-main")),T(b.Alert,"warningFilledBg",k("palette-warning-main")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.main))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.main))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.main))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.main))),T(b.Alert,"errorStandardBg",x(fe,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(fe,b.info.light,.9)),T(b.Alert,"successStandardBg",x(fe,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(fe,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-100")),T(b.Avatar,"defaultBg",k("palette-grey-400")),T(b.Button,"inheritContainedBg",k("palette-grey-300")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-A100")),T(b.Chip,"defaultBorder",k("palette-grey-400")),T(b.Chip,"defaultAvatarColor",k("palette-grey-700")),T(b.Chip,"defaultIconColor",k("palette-grey-700")),T(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),T(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),T(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),T(b.LinearProgress,"primaryBg",x(fe,b.primary.main,.62)),T(b.LinearProgress,"secondaryBg",x(fe,b.secondary.main,.62)),T(b.LinearProgress,"errorBg",x(fe,b.error.main,.62)),T(b.LinearProgress,"infoBg",x(fe,b.info.main,.62)),T(b.LinearProgress,"successBg",x(fe,b.success.main,.62)),T(b.LinearProgress,"warningBg",x(fe,b.warning.main,.62)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),T(b.Slider,"primaryTrack",x(fe,b.primary.main,.62)),T(b.Slider,"secondaryTrack",x(fe,b.secondary.main,.62)),T(b.Slider,"errorTrack",x(fe,b.error.main,.62)),T(b.Slider,"infoTrack",x(fe,b.info.main,.62)),T(b.Slider,"successTrack",x(fe,b.success.main,.62)),T(b.Slider,"warningTrack",x(fe,b.warning.main,.62));const Y=C?x(de,b.background.default,.6825):To(b.background.default,.8);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?Gi.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-400")),T(b.StepContent,"border",k("palette-grey-400")),T(b.Switch,"defaultColor",k("palette-common-white")),T(b.Switch,"defaultDisabledColor",k("palette-grey-100")),T(b.Switch,"primaryDisabledColor",x(fe,b.primary.main,.62)),T(b.Switch,"secondaryDisabledColor",x(fe,b.secondary.main,.62)),T(b.Switch,"errorDisabledColor",x(fe,b.error.main,.62)),T(b.Switch,"infoDisabledColor",x(fe,b.info.main,.62)),T(b.Switch,"successDisabledColor",x(fe,b.success.main,.62)),T(b.Switch,"warningDisabledColor",x(fe,b.warning.main,.62)),T(b.TableCell,"border",x(fe,x(Cn,b.divider,1),.88)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}if(b.mode==="dark"){T(b.Alert,"errorColor",x(fe,b.error.light,.6)),T(b.Alert,"infoColor",x(fe,b.info.light,.6)),T(b.Alert,"successColor",x(fe,b.success.light,.6)),T(b.Alert,"warningColor",x(fe,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-dark")),T(b.Alert,"infoFilledBg",k("palette-info-dark")),T(b.Alert,"successFilledBg",k("palette-success-dark")),T(b.Alert,"warningFilledBg",k("palette-warning-dark")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.dark))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.dark))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.dark))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.dark))),T(b.Alert,"errorStandardBg",x(de,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(de,b.info.light,.9)),T(b.Alert,"successStandardBg",x(de,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(de,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-900")),T(b.AppBar,"darkBg",k("palette-background-paper")),T(b.AppBar,"darkColor",k("palette-text-primary")),T(b.Avatar,"defaultBg",k("palette-grey-600")),T(b.Button,"inheritContainedBg",k("palette-grey-800")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-700")),T(b.Chip,"defaultBorder",k("palette-grey-700")),T(b.Chip,"defaultAvatarColor",k("palette-grey-300")),T(b.Chip,"defaultIconColor",k("palette-grey-300")),T(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),T(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),T(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),T(b.LinearProgress,"primaryBg",x(de,b.primary.main,.5)),T(b.LinearProgress,"secondaryBg",x(de,b.secondary.main,.5)),T(b.LinearProgress,"errorBg",x(de,b.error.main,.5)),T(b.LinearProgress,"infoBg",x(de,b.info.main,.5)),T(b.LinearProgress,"successBg",x(de,b.success.main,.5)),T(b.LinearProgress,"warningBg",x(de,b.warning.main,.5)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),T(b.Slider,"primaryTrack",x(de,b.primary.main,.5)),T(b.Slider,"secondaryTrack",x(de,b.secondary.main,.5)),T(b.Slider,"errorTrack",x(de,b.error.main,.5)),T(b.Slider,"infoTrack",x(de,b.info.main,.5)),T(b.Slider,"successTrack",x(de,b.success.main,.5)),T(b.Slider,"warningTrack",x(de,b.warning.main,.5));const Y=C?x(fe,b.background.default,.985):To(b.background.default,.98);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?zc.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-600")),T(b.StepContent,"border",k("palette-grey-600")),T(b.Switch,"defaultColor",k("palette-grey-300")),T(b.Switch,"defaultDisabledColor",k("palette-grey-600")),T(b.Switch,"primaryDisabledColor",x(de,b.primary.main,.55)),T(b.Switch,"secondaryDisabledColor",x(de,b.secondary.main,.55)),T(b.Switch,"errorDisabledColor",x(de,b.error.main,.55)),T(b.Switch,"infoDisabledColor",x(de,b.info.main,.55)),T(b.Switch,"successDisabledColor",x(de,b.success.main,.55)),T(b.Switch,"warningDisabledColor",x(de,b.warning.main,.55)),T(b.TableCell,"border",x(de,x(Cn,b.divider,1),.68)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}qt(b.background,"default"),qt(b.background,"paper"),qt(b.common,"background"),qt(b.common,"onBackground"),qt(b,"divider"),Object.keys(b).forEach(Y=>{const Z=b[Y];Y!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&T(b[Y],"mainChannel",Or(Sr(Z.main))),Z.light&&T(b[Y],"lightChannel",Or(Sr(Z.light))),Z.dark&&T(b[Y],"darkChannel",Or(Sr(Z.dark))),Z.contrastText&&T(b[Y],"contrastTextChannel",Or(Sr(Z.contrastText))),Y==="text"&&(qt(b[Y],"primary"),qt(b[Y],"secondary")),Y==="action"&&(Z.active&&qt(b[Y],"active"),Z.selected&&qt(b[Y],"selected")))})}),S=e.reduce((B,b)=>pt(B,b),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Pf(S),enableContrastVars:a},{vars:z,generateThemeVars:j,generateStyleSheets:ae}=rf(S,P);return S.vars=z,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B,b])=>{S[B]=b}),S.generateThemeVars=j,S.generateStyleSheets=ae,S.generateSpacing=function(){return kc(u.spacing,ba(this))},S.getColorSchemeSelector=of(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...ai,...u?.unstable_sxConfig},S.unstable_sx=function(b){return or({sx:b,theme:this})},S.toRuntimeSource=Fc,S}function Os(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Ta({...n===!0?{}:n.palette,mode:e})})}function zf(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=t,s=i||"light",c=o?.[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Ki(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ki({...t,palette:u},...e);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},Os(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},Os(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Yf({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const qc=zf(),Hc="$$material";function Uf(){const t=Id(qc);return process.env.NODE_ENV!=="production"&&ge.useDebugValue(t),t[Hc]||t}function Ff(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Vf=t=>Ff(t)&&t!=="classes",Wf=Ud({themeId:Hc,defaultTheme:qc,rootShouldForwardProp:Vf}),qf=Jd;process.env.NODE_ENV!=="production"&&(se.node,se.object.isRequired);function Hf(t){return Qd(t)}function Bf(t){return Ea("MuiSvgIcon",t)}Nd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zf=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Rn(e)}`,`fontSize${Rn(n)}`]};return Tu(o,Bf,r)},Gf=Wf("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Rn(n.color)}`],e[`fontSize${Rn(n.fontSize)}`]]}})(qf(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),No=ge.forwardRef(function(e,n){const r=Hf({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...y}=r,p=ge.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},v={};u||(v.viewBox=h);const w=Zf(g);return R.jsxs(Gf,{as:s,className:Mc(w.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...y,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?R.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(No.propTypes={children:se.node,classes:se.object,className:se.string,color:se.oneOfType([se.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),se.string]),component:se.elementType,fontSize:se.oneOfType([se.oneOf(["inherit","large","medium","small"]),se.string]),htmlColor:se.string,inheritViewBox:se.bool,shapeRendering:se.string,sx:se.oneOfType([se.arrayOf(se.oneOfType([se.func,se.object,se.bool])),se.func,se.object]),titleAccess:se.string,viewBox:se.string});No.muiName="SvgIcon";function Et(t,e){function n(r,o){return R.jsx(No,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=No.muiName,ge.memo(ge.forwardRef(n))}const Kf=Et(R.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Xf(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??R.jsx(Kf,{}),variant:t.variant??"contained",color:t.color??"secondary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Cancel",children:t.children??t.name})}const Qf=Et(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function Jf(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??R.jsx(Qf,{}),name:t.name,variant:t.variant??"contained",color:t.color??"error",sx:{m:1},type:t.type??"button",onClick:t.onClick,"aria-label":t.ariaLabel??t.label??"Delete",children:t.label?t.label:"Delete"})}const eh=Et(R.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function th(t){return R.jsx(W.Tooltip,{title:t.tooltipTitle,children:R.jsx(W.IconButton,{sx:{padding:"0.25rem"},color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:R.jsx(eh,{})})})}function nh(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"excel-button",style:{borderRadius:"20px"},className:t.className,name:t.name,sx:t.sx,startIcon:t.startIcon,variant:"contained",color:"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Export to Excel",children:t.children??t.name})}const rh=Et(R.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function oh(t){return R.jsx(W.Tooltip,{title:"Go Back to Previous Page",children:R.jsxs(W.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>t.navigate(-1),"aria-label":t.ariaLabel??"Go back to previous page",children:[R.jsx(rh,{}),t.children]})})}const ih=Et(R.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function ah(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??R.jsx(ih,{}),variant:t.variant??"contained",color:t.color??"primary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"History",children:t.children??t.name})}const sh=Et(R.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),ch={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function lh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??R.jsx(sh,{}),loading:t.loading,type:t.type??"button",style:ch,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const uh=Et(R.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function dh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"manage-button",className:t.className,onClick:()=>t.onClick(),variant:t.variant??"contained",color:t.color??"primary",size:t.size??"large",startIcon:t.startIcon??R.jsx(uh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function fh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"success-button",className:t.className,sx:t.sx,startIcon:t.startIcon,variant:t.variant??"contained",color:t.color??"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const Ca=Et(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),hh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:W.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},mh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:W.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};let Co={message:"",open:!1,autoHideDuration:3e3,type:"info"};const Do=new Set,$o={subscribe(t){return Do.add(t),()=>Do.delete(t)},getSnapshot(){return Co},show(t,e="info",n=3e3){Co={message:t,type:e,open:!0,autoHideDuration:n},Do.forEach(r=>r())},close(){Co={...Co,open:!1},Do.forEach(t=>t())}},gh=(t,e)=>$o.show(t,e),yh=()=>{const t=Fe.useSyncExternalStore($o.subscribe,$o.getSnapshot),e=(n,r)=>{r!=="clickaway"&&$o.close()};return R.jsx(W.Snackbar,{open:t.open,autoHideDuration:t.autoHideDuration,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:R.jsx(W.Alert,{severity:t.type,variant:"filled",onClose:e,children:t.message})})};function ph(){return R.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:R.jsx(W.CircularProgress,{})})}function bh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return R.jsxs(W.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[R.jsx(W.DialogTitle,{children:n??"Confirm"}),R.jsx(W.DialogContent,{dividers:!0,children:r}),R.jsxs(W.DialogActions,{children:[R.jsx(W.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),R.jsx(W.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function vh(t){const{ariaLabel:e,...n}=t,[r,o]=Fe.useState(!0),[i]=Fe.useState(t.dismissible??!0),[a]=Fe.useState(t.dismissOnTimeOut??!0),[s]=Fe.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),R.jsx("span",{children:r&&R.jsx(W.Alert,{action:i?R.jsx(W.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:R.jsx(Ca,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function wh(t){return typeof t=="function"}function Ss(t,e){return wh(t)?t(e):t}const Eh=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable;function Bc(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=e,o=Rs(t)&&Rs(r);if(!o&&!(Lo(t)&&Lo(r)))return r;const i=o?t:xs(t);if(!i)return r;const a=o?r:xs(r);if(!a)return r;const s=i.length,c=a.length,l=o?new Array(c):{};let u=0;for(let d=0;d<c;d++){const h=o?d:a[d],y=t[h],p=r[h];if(y===p){l[h]=y,(o?d<s:Eh.call(t,h))&&u++;continue}if(y===null||p===null||typeof y!="object"||typeof p!="object"){l[h]=p;continue}const g=Bc(y,p,n+1);l[h]=g,g===y&&u++}return s===c&&u===s?t:l}function xs(t){const e=Object.getOwnPropertyNames(t);for(const o of e)if(!Ms.call(t,o))return!1;const n=Object.getOwnPropertySymbols(t);if(n.length===0)return e;const r=e;for(const o of n){if(!Ms.call(t,o))return!1;r.push(o)}return r}function Lo(t){if(!$s(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!$s(n)||!n.hasOwnProperty("isPrototypeOf"))}function $s(t){return Object.prototype.toString.call(t)==="[object Object]"}function Rs(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ro(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,o=t.length;r<o;r++)if(!Ro(t[r],e[r],n))return!1;return!0}if(Lo(t)&&Lo(e)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const a in e)if((!r||e[a]!==void 0)&&!Ro(t[a],e[a],n))return!1;return!0}let o=0;if(!r)o=Object.keys(t).length;else for(const a in t)t[a]!==void 0&&o++;let i=0;for(const a in e)if((!r||e[a]!==void 0)&&(i++,i>o||!Ro(t[a],e[a],n)))return!1;return o===i}return!1}function ks(t,e){if(!t)return!1;try{const n=new URL(t);return!e.has(n.protocol)}catch{return!1}}function jo(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function _h(t,e,n){return jo(t,n)===jo(e,n)}const Th="Error preloading route! ☝️";function Ch(t,e,n={},r={}){ge.useEffect(()=>{if(!t.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([i])=>{e(i)},n);return o.observe(t.current),()=>{o.disconnect()}},[e,n,r.disabled,t])}function Dh(t){const e=ge.useRef(null);return ge.useImperativeHandle(t,()=>e.current,[]),e}function Oh(){return Fe.useSyncExternalStore(Sh,()=>!0,()=>!1)}function Sh(){return()=>{}}var Mh=process.env.NODE_ENV==="production";function xh(t,e){if(!Mh){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Oo={exports:{}},Ni={},So={exports:{}},Li={};var As;function $h(){if(As)return Li;As=1;var t=Fe;function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(d,h){var y=h(),p=r({inst:{value:y,getSnapshot:h}}),g=p[0].inst,v=p[1];return i(function(){g.value=y,g.getSnapshot=h,c(g)&&v({inst:g})},[d,y,h]),o(function(){return c(g)&&v({inst:g}),d(function(){c(g)&&v({inst:g})})},[d]),a(y),y}function c(d){var h=d.getSnapshot;d=d.value;try{var y=h();return!n(d,y)}catch{return!0}}function l(d,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return Li.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Li}var ji={};var Is;function Rh(){return Is||(Is=1,process.env.NODE_ENV!=="production"&&(function(){function t(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}function e(y,p){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!d){var v=p();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:g,getSnapshot:p}});var w=v[0].inst,D=v[1];return c(function(){w.value=g,w.getSnapshot=p,n(w)&&D({inst:w})},[y,g,p]),s(function(){return n(w)&&D({inst:w}),y(function(){n(w)&&D({inst:w})})},[y]),l(g),g}function n(y){var p=y.getSnapshot;y=y.value;try{var g=p();return!i(y,g)}catch{return!0}}function r(y,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Fe,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,u=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ji.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ji}var Ps;function Zc(){return Ps||(Ps=1,process.env.NODE_ENV==="production"?So.exports=$h():So.exports=Rh()),So.exports}var Ns;function kh(){if(Ns)return Ni;Ns=1;var t=Fe,e=Zc();function n(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,c=t.useDebugValue;return Ni.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},Ni}var Yi={};var Ls;function Ah(){return Ls||(Ls=1,process.env.NODE_ENV!=="production"&&(function(){function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=Fe,n=Zc(),r=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;Yi.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Yi}var js;function Ih(){return js||(js=1,process.env.NODE_ENV==="production"?Oo.exports=kh():Oo.exports=Ah()),Oo.exports}var Ph=Ih();function Nh(t,e=r=>r,n={}){const r=n.equal??Lh;return Ph.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,r)}function Lh(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,o]of t)if(!e.has(r)||!Object.is(o,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const n=Ys(t);if(n.length!==Ys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}function Ys(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const zi=ge.createContext(null);function jh(){return typeof document>"u"?zi:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=zi,zi)}function Gc(t){const e=ge.useContext(jh());return xh(!((t?.warn??!0)&&!e),"useRouter must be used inside a <RouterProvider> component!"),e}function zs(t){const e=Gc({warn:t?.router===void 0}),n=t?.router||e,r=Fe.useRef(void 0);return Nh(n.__store,o=>{if(t?.select){if(t.structuralSharing??n.options.defaultStructuralSharing){const i=Bc(r.current,t.select(o));return r.current=i,i}return t.select(o)}return o})}function Yh(t,e){const n=Gc(),r=Dh(e),{activeProps:o,inactiveProps:i,activeOptions:a,to:s,preload:c,preloadDelay:l,hashScrollIntoView:u,replace:d,startTransition:h,resetScroll:y,viewTransition:p,children:g,target:v,disabled:w,style:D,className:O,onClick:C,onFocus:E,onMouseEnter:S,onMouseLeave:P,onTouchStart:z,ignoreBlocker:j,params:ae,search:B,hash:b,state:k,mask:x,reloadDocument:Y,unsafeRelative:Z,from:pe,_fromLocation:at,...cn}=t,$=Oh(),I=zs({select:ve=>{const Ie=ve.matches[ve.matches.length-1];return{search:Ie?.search,hash:ve.location.hash,path:Ie?.pathname}},structuralSharing:!0}),J=t.from,H=ge.useMemo(()=>({...t,from:J}),[n,I,J,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),L=ge.useMemo(()=>n.buildLocation({...H}),[n,H]),ne=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,G=L.maskedLocation?L.maskedLocation.external:L.external,q=ge.useMemo(()=>qh(ne,G,n.history,w),[w,G,ne,n.history]),ee=ge.useMemo(()=>{if(q?.external){if(ks(q.href,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${q.href}`);return}return q.href}if(!Hh(s)&&!(typeof s!="string"||s.indexOf(":")===-1))try{if(new URL(s),ks(s,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${s}`);return}return s}catch{}},[s,q,n.protocolAllowlist]),oe=zs({select:ve=>{if(ee)return!1;if(a?.exact){if(!_h(ve.location.pathname,L.pathname,n.basepath))return!1}else{const Ie=jo(ve.location.pathname,n.basepath),$t=jo(L.pathname,n.basepath);if(!(Ie.startsWith($t)&&(Ie.length===$t.length||Ie[$t.length]==="/")))return!1}return(a?.includeSearch??!0)&&!Ro(ve.location.search,L.search,{partial:!a?.exact,ignoreUndefined:!a?.explicitUndefined})?!1:a?.includeHash?$&&ve.location.hash===L.hash:!0}}),te=oe?Ss(o,{})??zh:Ui,xe=oe?Ui:Ss(i,{})??Ui,A=[O,te.className,xe.className].filter(Boolean).join(" "),ht=(D||te.style||xe.style)&&{...D,...te.style,...xe.style},[Un,vr]=ge.useState(!1),qa=ge.useRef(!1),Fn=t.reloadDocument||ee?!1:c??n.options.defaultPreload,Di=l??n.options.defaultPreloadDelay??0,Tn=ge.useCallback(()=>{n.preloadRoute({...H,_builtLocation:L}).catch(ve=>{console.warn(ve),console.warn(Th)})},[n,H,L]),ru=ge.useCallback(ve=>{ve?.isIntersecting&&Tn()},[Tn]);Ch(r,ru,Wh,{disabled:!!w||Fn!=="viewport"}),ge.useEffect(()=>{qa.current||!w&&Fn==="render"&&(Tn(),qa.current=!0)},[w,Tn,Fn]);const ou=ve=>{const Ie=ve.currentTarget.getAttribute("target"),$t=v!==void 0?v:Ie;if(!w&&!Zh(ve)&&!ve.defaultPrevented&&(!$t||$t==="_self")&&ve.button===0){ve.preventDefault(),uu.flushSync(()=>{vr(!0)});const Ba=n.subscribe("onResolved",()=>{Ba(),vr(!1)});n.navigate({...H,replace:d,resetScroll:y,hashScrollIntoView:u,startTransition:h,viewTransition:p,ignoreBlocker:j})}};if(ee)return{...cn,ref:r,href:ee,...g&&{children:g},...v&&{target:v},...w&&{disabled:w},...D&&{style:D},...O&&{className:O},...C&&{onClick:C},...E&&{onFocus:E},...S&&{onMouseEnter:S},...P&&{onMouseLeave:P},...z&&{onTouchStart:z}};const Ha=ve=>{w||Fn&&Tn()},iu=Ha,au=ve=>{if(!(w||!Fn))if(!Di)Tn();else{const Ie=ve.target;if(Er.has(Ie))return;const $t=setTimeout(()=>{Er.delete(Ie),Tn()},Di);Er.set(Ie,$t)}},su=ve=>{if(w||!Fn||!Di)return;const Ie=ve.target,$t=Er.get(Ie);$t&&(clearTimeout($t),Er.delete(Ie))};return{...cn,...te,...xe,href:q?.href,ref:r,onClick:_r([C,ou]),onFocus:_r([E,Ha]),onMouseEnter:_r([S,au]),onMouseLeave:_r([P,su]),onTouchStart:_r([z,iu]),disabled:!!w,target:v,...ht&&{style:ht},...A&&{className:A},...w&&Uh,...oe&&Fh,...$&&Un&&Vh}}const Ui={},zh={className:"active"},Uh={role:"link","aria-disabled":!0},Fh={"data-status":"active","aria-current":"page"},Vh={"data-transitioning":"transitioning"},Er=new WeakMap,Wh={rootMargin:"100px"},_r=t=>e=>{for(const n of t)if(n){if(e.defaultPrevented)return;n(e)}};function qh(t,e,n,r){if(!r)return e?{href:t,external:!0}:{href:n.createHref(t)||"/",external:!1}}function Hh(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}function Bh(t){return ge.forwardRef(function(n,r){return R.jsx(Da,{...n,_asChild:t,ref:r})})}const Da=ge.forwardRef((t,e)=>{const{_asChild:n,...r}=t,{type:o,...i}=Yh(r,e),a=typeof r.children=="function"?r.children({isActive:i["data-status"]==="active"}):r.children;if(!n){const{disabled:s,...c}=i;return ge.createElement("a",c,a)}return ge.createElement(n,i,a)});function Zh(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Gh(t){return R.jsx(W.Link,{component:Da,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const Kh=Et(R.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Xh(t){return R.jsxs(W.Link,{component:Da,to:t.href,target:t.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel??t.linkText??(typeof t.children=="string"?t.children:void 0),children:[t.linkText??t.children,R.jsx(W.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Kh})]})}function Qh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const Jh=t=>{const e=["next-btn-link",t.className].filter(Boolean).join(" ");return R.jsx(W.Link,{...t,className:e,underline:t.underline??"hover"})},em=Bh(Jh),Us=Et(R.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Fs=Et(R.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Vs=Et(R.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),Ws=Et(R.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tm(t){const e=Uf(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=t,a=u=>{i(u,0)},s=u=>{i(u,r-1)},c=u=>{i(u,r+1)},l=u=>{i(u,Math.max(0,Math.ceil(n/o)-1))};return R.jsxs(W.Box,{sx:{flexShrink:0,ml:2.5},children:[R.jsx(W.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?R.jsx(Ws,{}):R.jsx(Us,{})}),R.jsx(W.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?R.jsx(Vs,{}):R.jsx(Fs,{})}),R.jsx(W.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?R.jsx(Fs,{}):R.jsx(Vs,{})}),R.jsx(W.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?R.jsx(Us,{}):R.jsx(Ws,{})})]})}function nm(t){const{children:e,index:n,...r}=t;return R.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:R.jsx(W.Box,{sx:{p:3},children:R.jsx(W.Typography,{component:"span",children:e})})})}function rm(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function om(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function im(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class f extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,f.prototype),e>f.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(e){var n=Math.floor,r=Number.isFinite;if(typeof e=="number"){if(e===0)return f.__zero();if(f.__isOneDigitInt(e))return 0>e?f.__oneDigit(-e,!0):f.__oneDigit(e,!1);if(!r(e)||n(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return f.__fromDouble(e)}if(typeof e=="string"){const o=f.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?f.__oneDigit(1,!1):f.__zero();if(typeof e=="object"){if(e.constructor===f)return e;const o=f.__toPrimitive(e);return f.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){const e=["BigInt["];for(const n of this)e.push((n&&(n>>>0).toString(16))+", ");return e.push("]"),e.join("")}toString(e=10){if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(e&e-1)==0?f.__toStringBasePowerOfTwo(this,e):f.__toStringGeneric(this,e,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(e){const n=e.length;if(n===0)return 0;if(n===1){const v=e.__unsignedDigit(0);return e.sign?-v:v}const r=e.__digit(n-1),o=f.__clz30(r),i=30*n-o;if(1024<i)return e.sign?-1/0:1/0;let a=i-1,s=r,c=n-1;const l=o+3;let u=l===32?0:s<<l;u>>>=12;const d=l-12;let h=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,h=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),h|=30<=y?s<<y-30:s>>>30-y,y-=30;const p=f.__decideRounding(e,y,c,s);if((p===1||p===0&&(1&h)==1)&&(h=h+1>>>0,h===0&&(u++,u>>>20!=0&&(u=0,a++,1023<a))))return e.sign?-1/0:1/0;const g=e.sign?-2147483648:0;return a=a+1023<<20,f.__kBitConversionInts[f.__kBitConversionIntHigh]=g|a|u,f.__kBitConversionInts[f.__kBitConversionIntLow]=h,f.__kBitConversionDouble[0]}static unaryMinus(e){if(e.length===0)return e;const n=e.__copy();return n.sign=!e.sign,n}static bitwiseNot(e){return e.sign?f.__absoluteSubOne(e).__trim():f.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return f.__oneDigit(1,!1);if(e.length===0)return e;if(e.length===1&&e.__digit(0)===1)return e.sign&&(1&n.__digit(0))==0?f.unaryMinus(e):e;if(1<n.length)throw new RangeError("BigInt too big");let r=n.__unsignedDigit(0);if(r===1)return e;if(r>=f.__kMaxLengthBits)throw new RangeError("BigInt too big");if(e.length===1&&e.__digit(0)===2){const a=1+(0|r/30),s=e.sign&&(1&r)!=0,c=new f(a,s);c.__initializeDigits();const l=1<<r%30;return c.__setDigit(a-1,l),c}let o=null,i=e;for((1&r)!=0&&(o=e),r>>=1;r!==0;r>>=1)i=f.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=f.multiply(o,i));return o}static multiply(e,n){if(e.length===0)return e;if(n.length===0)return n;let r=e.length+n.length;30<=e.__clzmsd()+n.__clzmsd()&&r--;const o=new f(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)f.__multiplyAccumulate(n,e.__digit(i),o,i);return o.__trim()}static divide(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return f.__zero();const r=e.sign!==n.sign,o=n.__unsignedDigit(0);let i;if(n.length===1&&32767>=o){if(o===1)return r===e.sign?e:f.unaryMinus(e);i=f.__absoluteDivSmall(e,o,null)}else i=f.__absoluteDivLarge(e,n,!0,!1);return i.sign=r,i.__trim()}static remainder(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return f.__zero();const i=f.__absoluteModSmall(e,r);return i===0?f.__zero():f.__oneDigit(i,e.sign)}const o=f.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?f.__absoluteAdd(e,n,r):0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r):f.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__rightShiftByAbsolute(e,n):f.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__leftShiftByAbsolute(e,n):f.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>f.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=f.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<f.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=f.__compareToBigInt(e,n)}static equal(e,n){if(e.sign!==n.sign||e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e.__digit(r)!==n.__digit(r))return!1;return!0}static notEqual(e,n){return!f.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=f.__absoluteSubOne(e,o);const a=f.__absoluteSubOne(n);return i=f.__absoluteOr(i,a,i),f.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),f.__absoluteAndNot(e,f.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=f.__absoluteSubOne(e,a),c=f.__absoluteSubOne(n);return f.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteXor(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(e,n){var r=Math.max;const o=r(e.length,n.length);if(!e.sign&&!n.sign)return f.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=f.__absoluteSubOne(e,o);const s=f.__absoluteSubOne(n);return a=f.__absoluteAnd(a,s,a),f.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteAndNot(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static asIntN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=n.__unsignedDigit(o-1),a=1<<(e-1)%30;if(n.length===o&&i<a)return n;if((i&a)!==a)return f.__truncateToNBits(e,n);if(!n.sign)return f.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return f.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:f.__truncateToNBits(e,n)}return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}static asUintN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(n.sign){if(e>f.__kMaxLengthBits)throw new RangeError("BigInt too big");return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=e%30;return n.length==o&&(i===0||!(n.__digit(o-1)>>>i))?n:f.__truncateToNBits(e,n)}static ADD(e,n){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)&&f.__isBigInt(n))return f.add(e,n);if(typeof e=="number"&&typeof n=="number")return e+n;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,n){return f.__compare(e,n,0)}static LE(e,n){return f.__compare(e,n,1)}static GT(e,n){return f.__compare(e,n,2)}static GE(e,n){return f.__compare(e,n,3)}static EQ(e,n){for(;;){if(f.__isBigInt(e))return f.__isBigInt(n)?f.equal(e,n):f.EQ(n,e);if(typeof e=="number"){if(f.__isBigInt(n))return f.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="string"){if(f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.equal(e,n);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="boolean"){if(f.__isBigInt(n))return f.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="symbol"){if(f.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==f)return e==n;e=f.__toPrimitive(e)}else return e==n}}static NE(e,n){return!f.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return f.asIntN(64,f.DataViewGetBigUint64(e,n,r))}static DataViewGetBigUint64(e,n,r=!1){const[o,i]=r?[4,0]:[0,4],a=e.getUint32(n+o,r),s=e.getUint32(n+i,r),c=new f(3,!1);return c.__setDigit(0,1073741823&s),c.__setDigit(1,(268435455&a)<<2|s>>>30),c.__setDigit(2,a>>>28),c.__trim()}static DataViewSetBigInt64(e,n,r,o=!1){f.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=f.asUintN(64,r);let i=0,a=0;if(0<r.length&&(a=r.__digit(0),1<r.length)){const l=r.__digit(1);a|=l<<30,i=l>>>2,2<r.length&&(i|=r.__digit(2)<<28)}const[s,c]=o?[4,0]:[0,4];e.setUint32(n+s,i,o),e.setUint32(n+c,a,o)}static __zero(){return new f(0,!1)}static __oneDigit(e,n){const r=new f(1,n);return r.__setDigit(0,e),r}__copy(){const e=new f(this.length,this.sign);for(let n=0;n<this.length;n++)e[n]=this[n];return e}__trim(){let e=this.length,n=this[e-1];for(;n===0;)e--,n=this[e-1],this.pop();return e===0&&(this.sign=!1),this}__initializeDigits(){for(let e=0;e<this.length;e++)this[e]=0}static __decideRounding(e,n,r,o){if(0<n)return-1;let i;if(0>n)i=-n-1;else{if(r===0)return-1;r--,o=e.__digit(r),i=29}let a=1<<i;if((o&a)==0)return-1;if(a-=1,(o&a)!=0)return 1;for(;0<r;)if(r--,e.__digit(r)!==0)return 1;return 0}static __fromDouble(e){f.__kBitConversionDouble[0]=e;const n=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new f(o,0>e);let a=1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh]|1048576,s=f.__kBitConversionInts[f.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const h=c-l;d=h+32,u=a>>>h,a=a<<32-h|s>>>h,s<<=32-h}else if(l===20)d=32,u=a,a=s,s=0;else{const h=l-c;d=32-h,u=a<<h|s>>>32-h,a=s<<h,s=0}i.__setDigit(o-1,u);for(let h=o-2;0<=h;h--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(h,u);return i.__trim()}static __isWhitespace(e){return 13>=e&&9<=e||(159>=e?e==32:131071>=e?e==160||e==5760:196607>=e?(e&=131071,10>=e||e==40||e==41||e==47||e==95||e==4096):e==65279)}static __fromString(e,n=0){let r=0;const o=e.length;let i=0;if(i===o)return f.__zero();let a=e.charCodeAt(i);for(;f.__isWhitespace(a);){if(++i===o)return f.__zero();a=e.charCodeAt(i)}if(a===43){if(++i===o)return null;a=e.charCodeAt(i),r=1}else if(a===45){if(++i===o)return null;a=e.charCodeAt(i),r=-1}if(n===0){if(n=10,a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(n=16,++i===o)return null;a=e.charCodeAt(i)}else if(a===79||a===111){if(n=8,++i===o)return null;a=e.charCodeAt(i)}else if(a===66||a===98){if(n=2,++i===o)return null;a=e.charCodeAt(i)}}}else if(n===16&&a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(++i===o)return null;a=e.charCodeAt(i)}}if(r!=0&&n!==10)return null;for(;a===48;){if(++i===o)return f.__zero();a=e.charCodeAt(i)}const s=o-i;let c=f.__kMaxBitsPerChar[n],l=f.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>f.__kBitsPerCharTableShift,d=new f(0|(u+29)/30,!1),h=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=f.__kBitsPerCharTableShift;const p=[],g=[];let v=!1;do{let w=0,D=0;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{v=!0;break}if(D+=c,w=w<<c|O,++i===o){v=!0;break}if(a=e.charCodeAt(i),30<D+c)break}p.push(w),g.push(D)}while(!v);f.__fillFromParts(d,p,g)}else{d.__initializeDigits();let p=!1,g=0;do{let v=0,w=1;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{p=!0;break}const C=w*n;if(1073741823<C)break;if(w=C,v=v*n+O,g++,++i===o){p=!0;break}a=e.charCodeAt(i)}l=30*f.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>f.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(w,v,D)}while(!p)}if(i!==o){if(!f.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!f.__isWhitespace(a))return null}return d.sign=r==-1,d.__trim()}static __fillFromParts(e,n,r){let o=0,i=0,a=0;for(let s=n.length-1;0<=s;s--){const c=n[s],l=r[s];i|=c<<a,a+=l,a===30?(e.__setDigit(o++,i),a=0,i=0):30<a&&(e.__setDigit(o++,1073741823&i),a-=30,i=c>>>l-a)}if(i!==0){if(o>=e.length)throw new Error("implementation bug");e.__setDigit(o++,i)}for(;o<e.length;o++)e.__setDigit(o,0)}static __toStringBasePowerOfTwo(e,n){const r=e.length;let o=n-1;o=(85&o>>>1)+(85&o),o=(51&o>>>2)+(51&o),o=(15&o>>>4)+(15&o);const i=o,a=n-1,s=e.__digit(r-1),c=f.__clz30(s);let l=0|(30*r-c+i-1)/i;if(e.sign&&l++,268435456<l)throw new Error("string too long");const u=Array(l);let d=l-1,h=0,y=0;for(let g=0;g<r-1;g++){const v=e.__digit(g),w=(h|v<<y)&a;u[d--]=f.__kConversionChars[w];const D=i-y;for(h=v>>>D,y=30-D;y>=i;)u[d--]=f.__kConversionChars[h&a],h>>>=i,y-=i}const p=(h|s<<y)&a;for(u[d--]=f.__kConversionChars[p],h=s>>>i-y;h!==0;)u[d--]=f.__kConversionChars[h&a],h>>>=i;if(e.sign&&(u[d--]="-"),d!=-1)throw new Error("implementation bug");return u.join("")}static __toStringGeneric(e,n,r){const o=e.length;if(o===0)return"";if(o===1){let g=e.__unsignedDigit(0).toString(n);return r===!1&&e.sign&&(g="-"+g),g}const i=30*o-f.__clz30(e.__digit(o-1)),a=f.__kMaxBitsPerChar[n],s=a-1;let c=i*f.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=f.exponentiate(f.__oneDigit(n,!1),f.__oneDigit(l,!1));let d,h;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new f(e.length,!1),d.__initializeDigits();let g=0;for(let v=2*e.length-1;0<=v;v--){const w=g<<15|e.__halfDigit(v);d.__setHalfDigit(v,0|w/y),g=0|w%y}h=g.toString(n)}else{const g=f.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const v=g.remainder.__trim();h=f.__toStringGeneric(v,n,!0)}d.__trim();let p=f.__toStringGeneric(d,n,!0);for(;h.length<l;)h="0"+h;return r===!1&&e.sign&&(p="-"+p),p+h}static __unequalSign(e){return e?-1:1}static __absoluteGreater(e){return e?-1:1}static __absoluteLess(e){return e?1:-1}static __compareToBigInt(e,n){const r=e.sign;if(r!==n.sign)return f.__unequalSign(r);const o=f.__absoluteCompare(e,n);return 0<o?f.__absoluteGreater(r):0>o?f.__absoluteLess(r):0}static __compareToNumber(e,n){if(f.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return f.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return f.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?f.__absoluteGreater(r):a<i?f.__absoluteLess(r):0}return f.__compareToDouble(e,n)}static __compareToDouble(e,n){if(n!==n)return n;if(n===1/0)return-1;if(n===-1/0)return 1;const r=e.sign;if(r!==0>n)return f.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;f.__kBitConversionDouble[0]=n;const o=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return f.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=f.__clz30(s),l=30*a-c,u=i+1;if(l<u)return f.__absoluteLess(r);if(l>u)return f.__absoluteGreater(r);let d=1048576|1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh],h=f.__kBitConversionInts[f.__kBitConversionIntLow];const y=20,p=29-c;if(p!==(0|(l-1)%30))throw new Error("implementation bug");let g,v=0;if(20>p){const w=y-p;v=w+32,g=d>>>w,d=d<<32-w|h>>>w,h<<=32-w}else if(p===20)v=32,g=d,d=h,h=0;else{const w=p-y;v=32-w,g=d<<w|h>>>32-w,d=h<<w,h=0}if(s>>>=0,g>>>=0,s>g)return f.__absoluteGreater(r);if(s<g)return f.__absoluteLess(r);for(let w=a-2;0<=w;w--){0<v?(v-=30,g=d>>>2,d=d<<30|h>>>2,h<<=30):g=0;const D=e.__unsignedDigit(w);if(D>g)return f.__absoluteGreater(r);if(D<g)return f.__absoluteLess(r)}if(d!==0||h!==0){if(v===0)throw new Error("implementation bug");return f.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return f.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):f.__compareToDouble(e,n)===0}static __comparisonResultToBool(e,n){return n===0?0>e:n===1?0>=e:n===2?0<e:n===3?0<=e:void 0}static __compare(e,n,r){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string"&&typeof n=="string")switch(r){case 0:return e<n;case 1:return e<=n;case 2:return e>n;case 3:return e>=n}if(f.__isBigInt(e)&&typeof n=="string")return n=f.__fromString(n),n!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof e=="string"&&f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)){if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return f.__comparisonResultToBool(f.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToNumber(n,e),2^r);if(typeof n!="number")throw new Error("implementation bug");return r===0?e<n:r===1?e<=n:r===2?e>n:r===3?e>=n:void 0}__clzmsd(){return f.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return f.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new f(o,r);let a=0,s=0;for(;s<n.length;s++){const c=e.__digit(s)+n.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}for(;s<e.length;s++){const c=e.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}return s<i.length&&i.__setDigit(s,a),i.__trim()}static __absoluteSub(e,n,r){if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);const o=new f(e.length,r);let i=0,a=0;for(;a<n.length;a++){const s=e.__digit(a)-n.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}for(;a<e.length;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}return o.__trim()}static __absoluteAddOne(e,n,r=null){const o=e.length;r===null?r=new f(o,n):r.sign=n;let i=1;for(let a=0;a<o;a++){const s=e.__digit(a)+i;i=s>>>30,r.__setDigit(a,1073741823&s)}return i!=0&&r.__setDigitGrow(o,1),r}static __absoluteSubOne(e,n){const r=e.length;n=n||r;const o=new f(n,!1);let i=1;for(let a=0;a<r;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}if(i!=0)throw new Error("implementation bug");for(let a=r;a<n;a++)o.__setDigit(a,0);return o}static __absoluteAnd(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=a;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&n.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteAndNot(e,n,r=null){const o=e.length,i=n.length;let a=i;o<i&&(a=o);let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&~n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteOr(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)|n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteXor(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)^n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteCompare(e,n){const r=e.length-n.length;if(r!=0)return r;let o=e.length-1;for(;0<=o&&e.__digit(o)===n.__digit(o);)o--;return 0>o?0:e.__unsignedDigit(o)>n.__unsignedDigit(o)?1:-1}static __multiplyAccumulate(e,n,r,o){if(n===0)return;const i=32767&n,a=n>>>15;let s=0,c=0;for(let l,u=0;u<e.length;u++,o++){l=r.__digit(o);const d=e.__digit(u),h=32767&d,y=d>>>15,p=f.__imul(h,i),g=f.__imul(h,a),v=f.__imul(y,i),w=f.__imul(y,a);l+=c+p+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&v)<<15),s+=l>>>30,c=w+(g>>>15)+(v>>>15),r.__setDigit(o,1073741823&l)}for(;s!=0||c!==0;o++){let l=r.__digit(o);l+=s+c,c=0,s=l>>>30,r.__setDigit(o,1073741823&l)}}static __internalMultiplyAdd(e,n,r,o,i){let a=r,s=0;for(let c=0;c<o;c++){const l=e.__digit(c),u=f.__imul(32767&l,n),d=f.__imul(l>>>15,n),h=u+((32767&d)<<15)+s+a;a=h>>>30,s=d>>>15,i.__setDigit(c,1073741823&h)}if(i.length>o)for(i.__setDigit(o++,a+s);o<i.length;)i.__setDigit(o++,0);else if(a+s!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(e,n,r){r>this.length&&(r=this.length);const o=32767&e,i=e>>>15;let a=0,s=n;for(let c=0;c<r;c++){const l=this.__digit(c),u=32767&l,d=l>>>15,h=f.__imul(u,o),y=f.__imul(u,i),p=f.__imul(d,o),g=f.__imul(d,i);let v=s+h+a;a=v>>>30,v&=1073741823,v+=((32767&y)<<15)+((32767&p)<<15),a+=v>>>30,s=g+(y>>>15)+(p>>>15),this.__setDigit(c,1073741823&v)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new f(e.length,!1));let o=0;for(let i,a=2*e.length-1;0<=a;a-=2){i=(o<<15|e.__halfDigit(a))>>>0;const s=0|i/n;o=0|i%n,i=(o<<15|e.__halfDigit(a-1))>>>0;const c=0|i/n;o=0|i%n,r.__setDigit(a>>>1,s<<15|c)}return r}static __absoluteModSmall(e,n){let r=0;for(let o=2*e.length-1;0<=o;o--)r=0|((r<<15|e.__halfDigit(o))>>>0)%n;return r}static __absoluteDivLarge(e,n,r,o){const i=n.__halfDigitLength(),a=n.length,s=e.__halfDigitLength()-i;let c=null;r&&(c=new f(s+2>>>1,!1),c.__initializeDigits());const l=new f(i+2>>>1,!1);l.__initializeDigits();const u=f.__clz15(n.__halfDigit(i-1));0<u&&(n=f.__specialLeftShift(n,u,0));const d=f.__specialLeftShift(e,u,1),h=n.__halfDigit(i-1);let y=0;for(let p,g=s;0<=g;g--){p=32767;const v=d.__halfDigit(g+i);if(v!==h){const D=(v<<15|d.__halfDigit(g+i-1))>>>0;p=0|D/h;let O=0|D%h;const C=n.__halfDigit(i-2),E=d.__halfDigit(g+i-2);for(;f.__imul(p,C)>>>0>(O<<16|E)>>>0&&(p--,O+=h,!(32767<O)););}f.__internalMultiplyAdd(n,p,0,a,l);let w=d.__inplaceSub(l,g,i+1);w!==0&&(w=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+w),p--),r&&(1&g?y=p<<15:c.__setDigit(g>>>1,y|p))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return f.__clz30(e)-15}__inplaceAdd(e,n,r){let o=0;for(let i=0;i<r;i++){const a=this.__halfDigit(n+i)+e.__halfDigit(i)+o;o=a>>>15,this.__setHalfDigit(n+i,32767&a)}return o}__inplaceSub(e,n,r){let o=0;if(1&n){n>>=1;let i=this.__digit(n),a=32767&i,s=0;for(;s<r-1>>>1;s++){const u=e.__digit(s),d=(i>>>15)-(32767&u)-o;o=1&d>>>15,this.__setDigit(n+s,(32767&d)<<15|32767&a),i=this.__digit(n+s+1),a=(32767&i)-(u>>>15)-o,o=1&a>>>15}const c=e.__digit(s),l=(i>>>15)-(32767&c)-o;if(o=1&l>>>15,this.__setDigit(n+s,(32767&l)<<15|32767&a),n+s+1>=this.length)throw new RangeError("out of bounds");(1&r)==0&&(i=this.__digit(n+s+1),a=(32767&i)-(c>>>15)-o,o=1&a>>>15,this.__setDigit(n+e.length,1073709056&i|32767&a))}else{n>>=1;let i=0;for(;i<e.length-1;i++){const u=this.__digit(n+i),d=e.__digit(i),h=(32767&u)-(32767&d)-o;o=1&h>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&h)}const a=this.__digit(n+i),s=e.__digit(i),c=(32767&a)-(32767&s)-o;o=1&c>>>15;let l=0;(1&r)==0&&(l=(a>>>15)-(s>>>15)-o,o=1&l>>>15),this.__setDigit(n+i,(32767&l)<<15|32767&c)}return o}__inplaceRightShift(e){if(e===0)return;let n=this.__digit(0)>>>e;const r=this.length-1;for(let o=0;o<r;o++){const i=this.__digit(o+1);this.__setDigit(o,1073741823&i<<30-e|n),n=i>>>e}this.__setDigit(r,n)}static __specialLeftShift(e,n,r){const o=e.length,i=new f(o+r,!1);if(n===0){for(let s=0;s<o;s++)i.__setDigit(s,e.__digit(s));return 0<r&&i.__setDigit(o,0),i}let a=0;for(let s=0;s<o;s++){const c=e.__digit(s);i.__setDigit(s,1073741823&c<<n|a),a=c>>>30-n}return 0<r&&i.__setDigit(o,a),i}static __leftShiftByAbsolute(e,n){const r=f.__toShiftAmount(n);if(0>r)throw new RangeError("BigInt too big");const o=0|r/30,i=r%30,a=e.length,s=i!==0&&e.__digit(a-1)>>>30-i!=0,c=a+o+(s?1:0),l=new f(c,e.sign);if(i===0){let u=0;for(;u<o;u++)l.__setDigit(u,0);for(;u<c;u++)l.__setDigit(u,e.__digit(u-o))}else{let u=0;for(let d=0;d<o;d++)l.__setDigit(d,0);for(let d=0;d<a;d++){const h=e.__digit(d);l.__setDigit(d+o,1073741823&h<<i|u),u=h>>>30-i}if(s)l.__setDigit(a+o,u);else if(u!==0)throw new Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(e,n){const r=e.length,o=e.sign,i=f.__toShiftAmount(n);if(0>i)return f.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return f.__rightShiftByMaximum(o);let l=!1;if(o){if((e.__digit(a)&(1<<s)-1)!=0)l=!0;else for(let d=0;d<a;d++)if(e.__digit(d)!==0){l=!0;break}}l&&s===0&&~e.__digit(r-1)==0&&c++;let u=new f(c,o);if(s===0){u.__setDigit(c-1,0);for(let d=a;d<r;d++)u.__setDigit(d-a,e.__digit(d))}else{let d=e.__digit(a)>>>s;const h=r-a-1;for(let y=0;y<h;y++){const p=e.__digit(y+a+1);u.__setDigit(y,1073741823&p<<30-s|d),d=p>>>s}u.__setDigit(h,d)}return l&&(u=f.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?f.__oneDigit(1,!0):f.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>f.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===f)return e;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"&&e[Symbol.toPrimitive]){const i=e[Symbol.toPrimitive](n);if(typeof i!="object")return i;throw new TypeError("Cannot convert object to primitive value")}const r=e.valueOf;if(r){const i=r.call(e);if(typeof i!="object")return i}const o=e.toString;if(o){const i=o.call(e);if(typeof i!="object")return i}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return f.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===f}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new f(r,n.sign),i=r-1;for(let s=0;s<i;s++)o.__setDigit(s,n.__digit(s));let a=n.__digit(i);if(e%30!=0){const s=32-e%30;a=a<<s>>>s}return o.__setDigit(i,a),o.__trim()}static __truncateAndSubFromPowerOfTwo(e,n,r){var o=Math.min;const i=0|(e+29)/30,a=new f(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const p=0-n.__digit(s)-l;l=1&p>>>30,a.__setDigit(s,1073741823&p)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let h;if(d==0)h=0-u-l,h&=1073741823;else{const y=32-d;u=u<<y>>>y;const p=1<<32-y;h=p-u-l,h&=p-1}return a.__setDigit(c,h),a.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,n){this[e]=0|n}__setDigitGrow(e,n){this[e]=0|n}__halfDigitLength(){const e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,n){const r=e>>>1,o=this.__digit(r),i=1&e?32767&o|n<<15:1073709056&o|32767&n;this.__setDigit(r,i)}static __digitPow(e,n){let r=1;for(;0<n;)1&n&&(r*=e),n>>>=1,e*=e;return r}static __detectBigEndian(){return f.__kBitConversionDouble[0]=-0,f.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}f.__kMaxLength=33554432,f.__kMaxLengthBits=f.__kMaxLength<<5,f.__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],f.__kBitsPerCharTableShift=5,f.__kBitsPerCharTableMultiplier=1<<f.__kBitsPerCharTableShift,f.__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"],f.__kBitConversionBuffer=new ArrayBuffer(8),f.__kBitConversionDouble=new Float64Array(f.__kBitConversionBuffer),f.__kBitConversionInts=new Int32Array(f.__kBitConversionBuffer),f.__kBitConversionIntHigh=f.__detectBigEndian()?0:1,f.__kBitConversionIntLow=f.__detectBigEndian()?1:0,f.__clz30=Math.clz32?function(t){return Math.clz32(t)-2}:function(t){return t===0?30:0|29-(0|Math.log(t>>>0)/Math.LN2)},f.__imul=Math.imul||function(t,e){return 0|t*e};const yt=f.BigInt(0),Wr=f.BigInt(1),Oa=f.BigInt(2),am=f.BigInt(10),sm=f.BigInt(24),cm=f.BigInt(60),lm=f.BigInt(1e3),no=f.BigInt(1e6),Lr=f.BigInt(1e9),Kc=f.multiply(f.BigInt(3600),Lr),um=f.multiply(cm,Lr),pn=f.multiply(Kc,sm);function Bt(t){return typeof t=="bigint"?f.BigInt(t.toString(10)):t}function Xc(t){return f.equal(f.remainder(t,Oa),yt)}function Dn(t){return f.lessThan(t,yt)?f.unaryMinus(t):t}function Yo(t,e){return f.lessThan(t,e)?-1:f.greaterThan(t,e)?1:0}function Mr(t,e){return{quotient:f.divide(t,e),remainder:f.remainder(t,e)}}var qs,Hs;const U="slot-epochNanoSeconds",F="slot-iso-date",be="slot-iso-date-time",Te="slot-time",M="slot-calendar",Qc="slot-date-brand",Jc="slot-year-month-brand",el="slot-month-day-brand",ce="slot-time-zone",He="slot-years",Be="slot-months",st="slot-weeks",Ze="slot-days",Ge="slot-hours",Ke="slot-minutes",Xe="slot-seconds",Qe="slot-milliseconds",Je="slot-microseconds",ct="slot-nanoseconds",tl="date",nl="ym",rl="md",ol="time",il="datetime",al="instant",jn="original",Xn="timezone-canonical",Xi="timezone-original",xr="calendar-id",sl="locale",Qi="options",cl=new WeakMap,Ji=Symbol.for("@@Temporal__GetSlots");(qs=globalThis)[Ji]||(qs[Ji]=function(t){return cl.get(t)});const ui=globalThis[Ji],ea=Symbol.for("@@Temporal__CreateSlots");(Hs=globalThis)[ea]||(Hs[ea]=function(t){cl.set(t,Object.create(null))});const an=globalThis[ea];function ot(t,...e){if(!t||typeof t!="object")return!1;const n=ui(t);return!!n&&e.every((r=>r in n))}function m(t,e){const n=ui(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function K(t,e,n){const r=ui(t);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[e])throw new TypeError(`${e} already has set`);r[e]=n}const ta={};function sn(t,e){Object.defineProperty(t.prototype,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0});const n=Object.getOwnPropertyNames(t);for(let o=0;o<n.length;o++){const i=n[o],a=Object.getOwnPropertyDescriptor(t,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t,i,a))}const r=Object.getOwnPropertyNames(t.prototype);for(let o=0;o<r.length;o++){const i=r[o],a=Object.getOwnPropertyDescriptor(t.prototype,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t.prototype,i,a))}na(e,t),na(`${e}.prototype`,t.prototype)}function na(t,e){const n=`%${t}%`;if(ta[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);ta[n]=e}function je(t){return ta[t]}function Jn(t,e){let n=t;if(n===0)return{div:n,mod:n};const r=Math.sign(n);n=Math.abs(n);const o=Math.trunc(1+Math.log10(n));if(e>=o)return{div:0*r,mod:r*n};if(e===0)return{div:r*n,mod:0*r};const i=n.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-e),10),mod:r*Number.parseInt(i.slice(o-e),10)}}function Fi(t,e,n){let r=t,o=n;if(r===0)return o;const i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);const a=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(a+"0".repeat(e),10);const s=a+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(e,"0");return i*Number.parseInt(s,10)}function di(t,e){const n=e==="negative";switch(t){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 fi(t,e,n,r,o){return o==="zero"?t:o==="infinity"?e:n<0?t:n>0?e:o==="half-zero"?t:o==="half-infinity"?e:r?t:e}class Q{constructor(e){this.totalNs=Bt(e),this.sec=f.toNumber(f.divide(this.totalNs,Lr)),this.subsec=f.toNumber(f.remainder(this.totalNs,Lr))}static validateNew(e,n){if(f.greaterThan(Dn(e),Q.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${Q.MAX} s`);return new Q(e)}static fromEpochNsDiff(e,n){const r=f.subtract(Bt(e),Bt(n));return new Q(r)}static fromComponents(e,n,r,o,i,a){const s=f.add(f.add(f.add(f.add(f.add(f.BigInt(a),f.multiply(f.BigInt(i),lm)),f.multiply(f.BigInt(o),no)),f.multiply(f.BigInt(r),Lr)),f.multiply(f.BigInt(n),um)),f.multiply(f.BigInt(e),Kc));return Q.validateNew(s,"total")}abs(){return new Q(Dn(this.totalNs))}add(e){return Q.validateNew(f.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return Q.validateNew(f.add(this.totalNs,f.multiply(f.BigInt(e),pn)),"sum")}addToEpochNs(e){return f.add(Bt(e),this.totalNs)}cmp(e){return Yo(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=Mr(this.totalNs,f.BigInt(e));return{quotient:f.toNumber(n),remainder:new Q(r)}}fdiv(e){const n=Bt(e),r=f.BigInt(n);let{quotient:o,remainder:i}=Mr(this.totalNs,r);const a=[];let s;const c=(f.lessThan(this.totalNs,yt)?-1:1)*Math.sign(f.toNumber(n));for(;!f.equal(i,yt)&&a.length<50;)i=f.multiply(i,am),{quotient:s,remainder:i}=Mr(i,r),a.push(Math.abs(f.toNumber(s)));return c*+(Dn(o).toString()+"."+a.join(""))}isZero(){return f.equal(this.totalNs,yt)}round(e,n){const r=Bt(e);if(f.equal(r,Wr))return this;const{quotient:o,remainder:i}=Mr(this.totalNs,r),a=f.lessThan(this.totalNs,yt)?"negative":"positive",s=f.multiply(Dn(o),r),c=f.add(s,r),l=Yo(Dn(f.multiply(i,Oa)),r),u=di(n,a),d=f.equal(Dn(this.totalNs),s)?s:fi(s,c,l,Xc(o),u),h=a==="positive"?d:f.unaryMinus(d);return Q.validateNew(h,"rounding")}sign(){return this.cmp(new Q(yt))}subtract(e){return Q.validateNew(f.subtract(this.totalNs,e.totalNs),"difference")}}Q.MAX=f.BigInt("9007199254740991999999999"),Q.ZERO=new Q(yt);const Bs=/[A-Za-z._][A-Za-z._0-9+-]*/,ro=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${Bs.source})(?:\\/(?:${Bs.source}))*)`),ll=/(?:[+-]\d{6}|\d{4})/,zo=/(?:0[1-9]|1[0-2])/,ra=/(?:0[1-9]|[12]\d|3[01])/,dm=new RegExp(`(${ll.source})(?:-(${zo.source})-(${ra.source})|(${zo.source})(${ra.source}))`),ul=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,dl=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,fl=new RegExp(`([zZ])|${dl.source}?`),ir=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,fm=new RegExp([`^${dm.source}`,`(?:(?:[tT]|\\s+)${ul.source}(?:${fl.source})?)?`,`(?:\\[!?(${ro.source})\\])?`,`((?:${ir.source})*)$`].join("")),hm=new RegExp([`^[tT]?${ul.source}`,`(?:${fl.source})?`,`(?:\\[!?${ro.source}\\])?`,`((?:${ir.source})*)$`].join("")),mm=new RegExp(`^(${ll.source})-?(${zo.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),gm=new RegExp(`^(?:--)?(${zo.source})-?(${ra.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),Vi=/(\d+)(?:[.,](\d{1,9}))?/,ym=new RegExp(`(?:${Vi.source}H)?(?:${Vi.source}M)?(?:${Vi.source}S)?`),pm=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${ym.source})?$`,"i"),bn=864e5,Uo=1e6*bn,bm=6e10,hl=1e8*bn,ar=Yt(hl),qr=f.unaryMinus(ar),vm=f.add(f.subtract(qr,pn),Wr),wm=f.subtract(f.add(ar,pn),Wr),Em=146097*bn,Zs=-271821,Gs=275760,jr=Date.UTC(1847,0,1),_m=["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"],Tm=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function Ce(t){return typeof t=="object"&&t!==null||typeof t=="function"}function hi(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function mi(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function V(t){const e=hi(t);if(e===0)return 0;if(Number.isNaN(e)||e===1/0||e===-1/0)throw new RangeError("invalid number value");const n=Math.trunc(e);return n===0?0:n}function Ks(t,e){const n=V(t);if(n<=0)throw e!==void 0?new RangeError(`property '${e}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return n}function Rt(t){const e=hi(t);if(Number.isNaN(e))throw new RangeError("not a number");if(e===1/0||e===-1/0)throw new RangeError("infinity is out of range");if(!(function(n){if(typeof n!="number"||Number.isNaN(n)||n===1/0||n===-1/0)return!1;const r=Math.abs(n);return Math.floor(r)===r})(e))throw new RangeError(`unsupported fractional value ${t}`);return e===0?0:e}function Hr(t,e){return String(t).padStart(e,"0")}function $e(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function oa(t,e){if(Ce(t)){const n=t?.toString();if(typeof n=="string"||typeof n=="number")return n;throw new TypeError("Cannot convert object to primitive value")}return t}const ia=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Cm={era:mi,eraYear:V,year:V,month:Ks,monthCode:function(t){const e=$e(oa(t));if(e.length<3||e.length>4||e[0]!=="M"||"0123456789".indexOf(e[1])===-1||"0123456789".indexOf(e[2])===-1||e[1]+e[2]==="00"&&e[3]!=="L"||e[3]!=="L"&&e[3]!==void 0)throw new RangeError(`bad month code ${e}; must match M01-M99 or M00L-M99L`);return e},day:Ks,hour:V,minute:V,second:V,millisecond:V,microsecond:V,nanosecond:V,offset:function(t){const e=$e(oa(t));return yr(e),e},timeZone:nt},Dm={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},sr=[["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"]],Xs=Object.fromEntries(sr.map((t=>[t[0],t[1]]))),Om=Object.fromEntries(sr.map((([t,e])=>[e,t]))),Yr=sr.map((([,t])=>t)),cr={day:Uo,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Fo=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Sm=Intl.DateTimeFormat,Qs=new Map;function ml(t){const e=Xr(t);let n=Qs.get(e);return n===void 0&&(n=new Sm("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Qs.set(e,n)),n}function Pe(t){return ot(t,U)&&!ot(t,ce,M)}function Ee(t){return ot(t,He,Be,Ze,Ge,Ke,Xe,Qe,Je,ct)}function _e(t){return ot(t,Qc)}function Se(t){return ot(t,Te)}function ye(t){return ot(t,be)}function Ne(t){return ot(t,Jc)}function mt(t){return ot(t,el)}function X(t){return ot(t,U,ce,M)}function _(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function hr(t){if(ot(t,M)||ot(t,ce))throw new TypeError("with() does not support a calendar or timeZone property");if(Se(t))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(t.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(t.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function oo(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function gi(t){let e,n,r=!1;for(ir.lastIndex=0;n=ir.exec(t);){const{1:o,2:i,3:a}=n;if(i==="u-ca"){if(e===void 0)e=a,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${t}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${a}`)}return e}function Wt(t){const e=fm.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=gi(e[16]);let r=e[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);const o=+r,i=+(e[2]??e[4]??1),a=+(e[3]??e[5]??1),s=e[6]!==void 0,c=+(e[6]??0),l=+(e[7]??e[10]??0);let u=+(e[8]??e[11]??0);u===60&&(u=59);const d=(e[9]??e[12]??"")+"000000000",h=+d.slice(0,3),y=+d.slice(3,6),p=+d.slice(6,9);let g,v=!1;e[13]?(g=void 0,v=!0):e[14]&&(g=e[14]);const w=e[15];return ka(o,i,a,c,l,u,h,y,p),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:h,microsecond:y,nanosecond:p}:"start-of-day",tzAnnotation:w,offset:g,z:v,calendar:n}}function gl(t){const e=hm.exec(t);let n,r,o,i,a,s,c;if(e){c=gi(e[10]),n=+(e[1]??0),r=+(e[2]??e[5]??0),o=+(e[3]??e[6]??0),o===60&&(o=59);const l=(e[4]??e[7]??"")+"000000000";if(i=+l.slice(0,3),a=+l.slice(3,6),s=+l.slice(6,9),e[8])throw new RangeError("Z designator not supported for PlainTime")}else{let l,u;if({time:l,z:u,calendar:c}=Wt(t),l==="start-of-day")throw new RangeError(`time is missing in string: ${t}`);if(u)throw new RangeError("Z designator not supported for PlainTime");({hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s}=l)}if(vi(n,r,o,i,a,s),/[tT ][0-9][0-9]/.test(t))return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c};try{const{month:l,day:u}=Ma(t);An(1972,l,u)}catch{try{const{year:l,month:u}=Sa(t);An(l,u,1)}catch{return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c}}}throw new RangeError(`invalid RFC 9557 time-only string ${t}; may need a T prefix`)}function Sa(t){const e=mm.exec(t);let n,r,o,i;if(e){o=gi(e[3]);let a=e[1];if(a==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);if(n=+a,r=+e[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let a;if({year:n,month:r,calendar:o,day:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function Ma(t){const e=gm.exec(t);let n,r,o,i;if(e){if(o=gi(e[3]),n=+e[1],r=+e[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let a;if({month:n,day:r,calendar:o,year:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const yl=new RegExp(`^${ro.source}$`,"i"),pl=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function bl(t){const e=xm.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function mn(t){return yl.test(t)||bl(t),pl.test(t)?{offsetMinutes:yr(t)/6e10}:{tzName:t}}function zr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":An(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Pl(o,i,a))}return{year:o,month:i,day:a}}function yi(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,h=i;switch(a){case"reject":vi(s,c,l,u,d,h);break;case"constrain":s=et(s,0,23),c=et(c,0,59),l=et(l,0,59),u=et(u,0,999),d=et(d,0,999),h=et(h,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function vl(t){if(!Ce(t))throw new TypeError("invalid duration-like");const e={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};let n=!1;for(let r=0;r<Fo.length;r++){const o=Fo[r],i=t[o];i!==void 0&&(n=!0,e[o]=Rt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function ze({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function ie(t,e){return{isoDate:t,time:e}}function re(t){return tn(t,"overflow",["constrain","reject"],"constrain")}function Ur(t){return tn(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function kt(t,e){return tn(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function ko(t,e){return tn(t,"offset",["prefer","use","ignore","reject"],e)}function io(t){return tn(t,"calendarName",["auto","always","never","critical"],"auto")}function mr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=V(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function gr(t,e,n){const r=n?e:e-1;if(t>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${t}`);if(e%t!=0)throw new RangeError(`Rounding increment must divide evenly into ${e}`)}function ao(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(mi(e)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return"auto"}const n=Math.floor(e);if(!Number.isFinite(n)||n<0||n>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return n}function so(t,e){switch(t){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(e){case"auto":return{precision:e,unit:"nanosecond",increment:1};case 0:return{precision:e,unit:"second",increment:1};case 1:case 2:case 3:return{precision:e,unit:"millisecond",increment:10**(3-e)};case 4:case 5:case 6:return{precision:e,unit:"microsecond",increment:10**(6-e)};case 7:case 8:case 9:return{precision:e,unit:"nanosecond",increment:10**(9-e)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`)}}const on=Symbol("~required~");function ut(t,e,n,r,o=[]){let i=[];for(let l=0;l<sr.length;l++){const u=sr[l],d=u[1],h=u[2];n!=="datetime"&&n!==h||i.push(d)}i=i.concat(o);let a=r;a===on?a=void 0:a!==void 0&&i.push(a);let s=[];s=s.concat(i);for(let l=0;l<i.length;l++){const u=i[l],d=Om[u];d!==void 0&&s.push(d)}let c=tn(t,e,s,a);if(c===void 0&&r===on)throw new RangeError(`${e} is required`);return c&&c in Xs?Xs[c]:c}function Wi(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Ce(e)){if(X(e))return{zonedRelativeTo:e};if(_e(e))return{plainRelativeTo:e};if(ye(e))return{plainRelativeTo:tt(m(e,be).isoDate,m(e,M))};o=ho(e);const l=wt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=lo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,h,y;if({year:d,month:h,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=Wt($e(e)),l)i=nt(l),u?s="exact":a||(s="wall"),c=!0;else if(u)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=it(o),n={year:d,month:h,day:y}}return i===void 0?{plainRelativeTo:tt(n,o)}:{zonedRelativeTo:Ye(Vo(n,r,s,s==="option"?yr(a):0,i,"compatible","reject",c),i,o)}}function Gt(t){return m(t,He)!==0?"year":m(t,Be)!==0?"month":m(t,st)!==0?"week":m(t,Ze)!==0?"day":m(t,Ge)!==0?"hour":m(t,Ke)!==0?"minute":m(t,Xe)!==0?"second":m(t,Qe)!==0?"millisecond":m(t,Je)!==0?"microsecond":"nanosecond"}function Jt(t,e){return Yr.indexOf(t)>Yr.indexOf(e)?e:t}function Pt(t){return t==="year"||t==="month"||t==="week"}function Kt(t){return Pt(t)||t==="day"?"date":"time"}function En(t){return je("%calendarImpl%")(t)}function co(t){return je("%calendarImpl%")(m(t,M))}function rt(t,e,n="date"){const r=Object.create(null),o=En(t).isoToDate(e,{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 wt(t,e,n,r,o){const i=En(t).extraFields(n),a=n.concat(r,i),s=Object.create(null);let c=!1;a.sort();for(let l=0;l<a.length;l++){const u=a[l],d=e[u];if(d!==void 0)c=!0,s[u]=(0,Cm[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=Dm[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function aa(t,e="complete"){const n=["hour","microsecond","millisecond","minute","nanosecond","second"];let r=!1;const o=Object.create(null);for(let i=0;i<n.length;i++){const a=n[i],s=t[a];s!==void 0?(o[a]=V(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function $r(t,e){if(Ce(t)){if(_e(t))return re(N(e)),tt(m(t,F),m(t,M));if(X(t)){const c=St(m(t,ce),m(t,U));return re(N(e)),tt(c.isoDate,m(t,M))}if(ye(t))return re(N(e)),tt(m(t,be).isoDate,m(t,M));const s=ho(t);return tt(vn(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=Wt($e(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=it(i),re(N(e)),tt({year:n,month:r,day:o},i)}function lo(t,e,n){return ie(vn(t,e,n),yi(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Rr(t,e){let n,r,o;if(Ce(t)){if(ye(t))return re(N(e)),Tt(m(t,be),m(t,M));if(X(t)){const s=St(m(t,ce),m(t,U));return re(N(e)),Tt(s,m(t,M))}if(_e(t))return re(N(e)),Tt(ie(m(t,F),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),m(t,M));o=ho(t);const i=wt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=re(N(e));({isoDate:n,time:r}=lo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=Wt($e(t)),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}),ka(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=it(o),re(N(e)),n={year:a,month:s,day:c}}return Tt(ie(n,r),o)}function Ot(t){const e=je("%Temporal.Duration%");if(Ee(t))return new e(m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));if(!Ce(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:h,microseconds:y,nanoseconds:p}=(function(g){const v=pm.exec(g);if(!v)throw new RangeError(`invalid duration: ${g}`);if(v.every(((at,cn)=>cn<2||at===void 0)))throw new RangeError(`invalid duration: ${g}`);const w=v[1]==="-"?-1:1,D=v[2]===void 0?0:V(v[2])*w,O=v[3]===void 0?0:V(v[3])*w,C=v[4]===void 0?0:V(v[4])*w,E=v[5]===void 0?0:V(v[5])*w,S=v[6]===void 0?0:V(v[6])*w,P=v[7],z=v[8],j=v[9],ae=v[10],B=v[11];let b=0,k=0,x=0;if(P!==void 0){if(z??j??ae??B)throw new RangeError("only the smallest unit can be fractional");x=3600*V((P+"000000000").slice(0,9))*w}else if(b=z===void 0?0:V(z)*w,j!==void 0){if(ae??B)throw new RangeError("only the smallest unit can be fractional");x=60*V((j+"000000000").slice(0,9))*w}else k=ae===void 0?0:V(ae)*w,B!==void 0&&(x=V((B+"000000000").slice(0,9))*w);const Y=x%1e3,Z=Math.trunc(x/1e3)%1e3,pe=Math.trunc(x/1e6)%1e3;return k+=Math.trunc(x/1e9)%60,b+=Math.trunc(x/6e10),wi(D,O,C,E,S,b,k,pe,Z,Y),{years:D,months:O,weeks:C,days:E,hours:S,minutes:b,seconds:k,milliseconds:pe,microseconds:Z,nanoseconds:Y}})(o);return new(je("%Temporal.Duration%"))(i,a,s,c,l,u,d,h,y,p)})($e(t));const n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};let r=vl(t);for(let o=0;o<Fo.length;o++){const i=Fo[o],a=r[i];a!==void 0&&(n[i]=a)}return new e(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function kr(t){let e;if(Ce(t)){if(Pe(t)||X(t))return Lt(m(t,U));e=oa(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const v=Wt(g);if(!v.z&&!v.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return v})($e(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:h=0,nanosecond:y=0}=i==="start-of-day"?{}:i,p=Kr(n,r,o,c,l,u,d,h,y-(s?0:yr(a)));return rr(p.isoDate),Lt(Le(p))}function Js(t,e){if(Ce(t)){if(mt(t))return re(N(e)),er(m(t,F),m(t,M));let s;return ot(t,M)?s=m(t,M):(s=t.calendar,s===void 0&&(s="iso8601"),s=fo(s)),er(Wo(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=Ma($e(t));if(i===void 0&&(i="iso8601"),i=it(i),re(N(e)),i==="iso8601")return er({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return Yn(a),a=Wo(i,rt(i,a,"month-day"),"constrain"),er(a,i)}function fn(t,e){let n;if(Ce(t)){if(Se(t))return re(N(e)),Xt(m(t,Te));if(ye(t))return re(N(e)),Xt(m(t,be).time);if(X(t)){const l=St(m(t,ce),m(t,U));return re(N(e)),Xt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=aa(t);n=yi(r,o,i,a,s,c,re(N(e)))}else n=gl($e(t)),re(N(e));return Xt(n)}function wl(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:m(fn(t),Te)}function Ar(t,e){if(Ce(t)){if(Ne(t))return re(N(e)),nr(m(t,F),m(t,M));const s=ho(t);return nr(Br(s,wt(s,t,["year","month","monthCode"],[],[]),re(N(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=Sa($e(t));i===void 0&&(i="iso8601"),i=it(i),re(N(e));let a={year:n,month:r,day:o};return Aa(a),a=Br(i,rt(i,a,"year-month"),"constrain"),nr(a,i)}function Vo(t,e,n,r,o,i,a,s){if(e==="start-of-day")return ln(o,t);const c=ie(t,e);if(n==="wall"||a==="ignore")return Ue(o,c,i);if(n==="exact"||a==="use"){const d=Kr(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);rr(d.isoDate);const h=Le(d);return Ft(h),h}rr(t);const l=Le(c),u=Zr(o,c);for(let d=0;d<u.length;d++){const h=u[d],y=f.toNumber(f.subtract(l,h)),p=hn(y,6e10,"halfExpand");if(y===r||s&&p===r)return h}if(a==="reject"){const d=sa(r),h=Gr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${h} in ${o}`)}return xl(u,o,c,i)}function Ir(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Ce(t)){if(X(t)){const g=N(e);return Ur(g),ko(g,"reject"),re(g),Ye(m(t,U),m(t,ce),m(t,M))}a=ho(t);const h=wt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=h),i===void 0&&(u="wall");const y=N(e);s=Ur(y),c=ko(y,"reject");const p=re(y);({isoDate:n,time:r}=lo(a,h,p))}else{let h,y,p,g,v;({year:p,month:g,day:v,time:r,tzAnnotation:h,offset:i,z:y,calendar:a}=(function(D){const O=Wt(D);if(!O.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return O})($e(t))),o=nt(h),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=it(a),l=!0;const w=N(e);s=Ur(w),c=ko(w,"reject"),re(w),n={year:p,month:g,day:v}}let d=0;return u==="option"&&(d=yr(i)),Ye(Vo(n,r,u,d,o,s,c,l),o,a)}function El(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,Qc,!0)}function tt(t,e){const n=je("%Temporal.PlainDate%"),r=Object.create(n.prototype);return El(r,t,e),r}function _l(t,e,n){In(e),an(t),K(t,be,e),K(t,M,n)}function Tt(t,e){const n=je("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return _l(r,t,e),r}function Tl(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,el,!0)}function er(t,e){const n=je("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Tl(r,t,e),r}function Cl(t,e){an(t),K(t,Te,e)}function Xt(t){const e=je("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Cl(n,t),n}function Dl(t,e,n){Aa(e),an(t),K(t,F,e),K(t,M,n),K(t,Jc,!0)}function nr(t,e){const n=je("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return Dl(r,t,e),r}function Ol(t,e){Ft(e),an(t),K(t,U,e)}function Lt(t){const e=je("%Temporal.Instant%"),n=Object.create(e.prototype);return Ol(n,t),n}function Sl(t,e,n,r){Ft(e),an(t),K(t,U,e),K(t,ce,n),K(t,M,r)}function Ye(t,e,n="iso8601"){const r=je("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Sl(o,t,e,n),o}function ec(t){return ia.filter((e=>t[e]!==void 0))}function kn(t,e,n){const r=ec(n),o=En(t).fieldKeysToIgnore(r),i=Object.create(null),a=ec(e);for(let s=0;s<ia.length;s++){let c;const l=ia[s];a.includes(l)&&!o.includes(l)&&(c=e[l]),r.includes(l)&&(c=n[l]),c!==void 0&&(i[l]=c)}return i}function bt(t,e,n,r){const o=En(t).dateAdd(e,n,r);return Yn(o),o}function uo(t,e,n,r){return En(t).dateUntil(e,n,r)}function fo(t){if(Ce(t)&&ot(t,M))return m(t,M);const e=$e(t);try{return it(e)}catch{}let n;try{({calendar:n}=Wt(e))}catch{try{({calendar:n}=gl(e))}catch{try{({calendar:n}=Sa(e))}catch{({calendar:n}=Ma(e))}}}return n||(n="iso8601"),it(n)}function ho(t){if(ot(t,M))return m(t,M);const{calendar:e}=t;return e===void 0?"iso8601":fo(e)}function Ut(t,e){return it(t)===it(e)}function vn(t,e,n){const r=En(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return Yn(o),o}function Br(t,e,n){const r=En(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return Aa(o),o}function Wo(t,e,n){const r=En(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return Yn(o),o}function nt(t){if(Ce(t)&&X(t))return m(t,ce);const e=$e(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(yl.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:h}=Wt(l);if(h||u||d)return{tzAnnotation:u,offset:d,z:h}}catch{}bl(l)})(i);return a?mn(a):c?mn("UTC"):s?mn(s):void 0})(e);if(r!==void 0)return xa(r);const o=qo(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function Ml(t,e){if(t===e)return!0;const n=mn(t).offsetMinutes,r=mn(e).offsetMinutes;if(n===void 0&&r===void 0){const o=qo(e);if(!o)return!1;const i=qo(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Qt(t,e){const n=mn(t).offsetMinutes;return n!==void 0?6e10*n:ca(t,e)}function sa(t){const e=t<0?"-":"+",n=Math.abs(t),r=Math.floor(n/36e11),o=Math.floor(n/6e10)%60,i=Math.floor(n/1e9)%60,a=n%1e9;return`${e}${pi(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function St(t,e){const n=Qt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=kl(e);return Kr(r,o,i,a,s,c,l,u,d+n)}function Ue(t,e,n){return xl(Zr(t,e),t,e,n)}function xl(t,e,n,r){const o=t.length;if(o===1)return t[0];if(o)switch(r){case"compatible":case"earlier":return t[0];case"later":return t[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");const i=Le(n),a=f.subtract(i,pn);Ft(a);const s=Qt(e,a),c=f.add(i,pn);Ft(c);const l=Qt(e,c)-s;switch(r){case"earlier":{const u=Q.fromComponents(0,0,0,0,0,-l),d=lr(n.time,u);return Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=Q.fromComponents(0,0,0,0,0,l),d=lr(n.time,u),h=Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return h[h.length-1]}}}function Zr(t,e){if(t==="UTC")return rr(e.isoDate),[Le(e)];const n=mn(t).offsetMinutes;if(n!==void 0){const r=Kr(e.isoDate.year,e.isoDate.month,e.isoDate.day,e.time.hour,e.time.minute-n,e.time.second,e.time.millisecond,e.time.microsecond,e.time.nanosecond);rr(r.isoDate);const o=Le(r);return Ft(o),[o]}return rr(e.isoDate),(function(r,o){let i=Le(o),a=f.subtract(i,pn);f.lessThan(a,qr)&&(a=i);let s=f.add(i,pn);f.greaterThan(s,ar)&&(s=i);const c=ca(r,a),l=ca(r,s);return(c===l?[c]:[c,l]).map((d=>{const h=f.subtract(i,f.BigInt(d)),y=(function(p,g){const{epochMilliseconds:v,time:{millisecond:w,microsecond:D,nanosecond:O}}=kl(g),{year:C,month:E,day:S,hour:P,minute:z,second:j}=Al(p,v);return Kr(C,E,S,P,z,j,w,D,O)})(r,h);if(ur(o,y)===0)return Ft(h),h})).filter((d=>d!==void 0))})(t,e)}function ln(t,e){const n=ie(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Zr(t,n);if(r.length)return r[0];const o=Le(n),i=f.subtract(o,pn);return Ft(i),Ra(t,i)}function mo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+Hr(Math.abs(t),6):Hr(t,4),e}function vt(t){return Hr(t,2)}function $l(t,e){let n;if(e==="auto"){if(t===0)return"";n=Hr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=Hr(t,9).slice(0,e)}return`.${n}`}function pi(t,e,n,r,o){let i=`${vt(t)}:${vt(e)}`;return o==="minute"||(i+=`:${vt(n)}`,i+=$l(r,o)),i}function tc(t,e,n){let r=e;r===void 0&&(r="UTC");const o=m(t,U),i=Gr(St(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=Rl(Qt(r,o))),`${i}${a}`}function Mo(t,e){const n=m(t,He),r=m(t,Be),o=m(t,st),i=m(t,Ze),a=m(t,Ge),s=m(t,Ke),c=Bo(t);let l="";n!==0&&(l+=`${Math.abs(n)}Y`),r!==0&&(l+=`${Math.abs(r)}M`),o!==0&&(l+=`${Math.abs(o)}W`),i!==0&&(l+=`${Math.abs(i)}D`);let u="";a!==0&&(u+=`${Math.abs(a)}H`),s!==0&&(u+=`${Math.abs(s)}M`);const d=Q.fromComponents(0,0,m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Gt(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${$l(Math.abs(d.subsec),e)}S`);let h=`${c<0?"-":""}P${l}`;return u&&(h=`${h}T${u}`),h}function nc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);return`${mo(n)}-${vt(r)}-${vt(o)}${oo(m(t,M),e)}`}function rc({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return pi(t,e,n,1e6*r+1e3*o+i,a)}function Gr(t,e,n,r="auto"){const{isoDate:{year:o,month:i,day:a},time:{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}=t;return`${mo(o)}-${vt(i)}-${vt(a)}T${pi(s,c,l,1e6*u+1e3*d+h,n)}${oo(e,r)}`}function oc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${vt(r)}-${vt(o)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${mo(n)}-${i}`);const s=oo(a,e);return s&&(i+=s),i}function ic(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${mo(n)}-${vt(r)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${vt(o)}`);const s=oo(a,e);return s&&(i+=s),i}function ac(t,e,n="auto",r="auto",o="auto",i=void 0){let a=m(t,U);if(i){const{unit:u,increment:d,roundingMode:h}=i;a=fa(a,d,u,h)}const s=m(t,ce),c=Qt(s,a);let l=Gr(St(s,a),"iso8601",e,"never");return o!=="never"&&(l+=Rl(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=oo(m(t,M),n),l}function sc(t){return pl.test(t)}function yr(t){const e=$m.exec(t);if(!e)throw new RangeError(`invalid time zone offset: ${t}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(e[1]==="-"?-1:1)*(1e9*(60*(60*+e[2]+ +(e[3]||0))+ +(e[4]||0))+ +((e[5]||0)+"000000000").slice(0,9))}let Tr;const Mm=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function qo(t){if(Tr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){Tr=new Map;for(let a=0;a<i.length;a++){const s=i[a];Tr.set(Xr(s),s)}}else Tr=null}const e=Xr(t);let n=Tr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=ml(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Tm.has(t))throw new RangeError(`${t} is a legacy time zone identifier from ICU. Use ${n} instead`);const r=[...e].map(((i,a)=>a===0||Mm[e[a-1]]?i.toUpperCase():i)).join("").split("/");if(r.length===1)return e==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:n}:{identifier:e.length<=3||/[-0-9]/.test(e)?e.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};const 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 xn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Al(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*($a({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function ca(t,e){return xn(t,Mt(e,"floor"))}function xa(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${pi(Math.floor(n/60),n%60,0,0,"minute")}`}function Rl(t){return xa(hn(t,bm,"halfExpand")/6e10)}function $a({isoDate:{year:t,month:e,day:n},time:{hour:r,minute:o,second:i,millisecond:a}}){const s=t%400,c=(t-s)/400,l=new Date;return l.setUTCHours(r,o,i,a),l.setUTCFullYear(s,e-1,n),l.getTime()+Em*c}function Le(t){const e=$a(t),n=1e3*t.time.microsecond+t.time.nanosecond;return f.add(Yt(e),f.BigInt(n))}function kl(t){let e=Mt(t,"trunc"),n=f.toNumber(f.remainder(t,no));n<0&&(n+=1e6,e-=1);const r=Math.floor(n/1e3)%1e3,o=n%1e3,i=new Date(e);return{epochMilliseconds:e,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 Ra(t,e){if(t==="UTC")return null;const n=Mt(e,"floor");if(n<jr)return Ra(t,Yt(jr));const r=Date.now(),o=Math.max(n,r)+366*bn*3;let i=n,a=xn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*bn*7,s>hl)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),i,s,a,c))}function la(t,e){if(t==="UTC")return null;const n=Mt(e,"ceil"),r=Date.now(),o=r+366*bn*3;if(n>o){const l=la(t,Yt(o));if(l===null||f.lessThan(l,Yt(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return la(t,Yt(l))}let i=n-1;if(i<jr)return null;let a=xn(t,i),s=i,c=a;for(;a===c&&i>jr;){if(s=i-2*bn*7,s<jr)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),s,i,c,a))}function Al(t,e){return(function(n){const r=n.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${n}`);const o=+r[0],i=+r[1];let a=+r[2];const s=r[3];if(s[0]==="b"||s[0]==="B")a=1-a;else if(s[0]!=="a"&&s[0]!=="A")throw new RangeError(`Unknown era ${s} in "${n}`);const c=r[4]==="24"?0:+r[4],l=+r[5],u=+r[6];if(!(Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(u)))throw new RangeError(`Invalid number in "${n}`);return{year:a,month:o,day:i,hour:c,minute:l,second:u}})(ml(t).format(e))}function Ho(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function $n(t,e){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]}[Ho(t)?"leapyear":"standard"][e-1]}function Bo(t){const e=[m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function bi(t){const e=["years","months","weeks","days"];for(let n=0;n<e.length;n++){const r=t[e[n]];if(r!==0)return r<0?-1:1}return 0}function Il(t){const e=bi(t.date);return e!==0?e:t.time.sign()}function Sn(t,e){let n=t,r=e;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 dt(t,e,n){let r=t,o=e,i=n;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Sn(r,o));const a=146097;if(Math.abs(i)>a){const l=Math.trunc(i/a);r+=400*l,i-=l*a}let s=0,c=o>2?r:r-1;for(;s=Ho(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=Ho(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Sn(r,o-1)),i+=$n(r,o);for(;i>$n(r,o);)i-=$n(r,o),{year:r,month:o}=Sn(r,o+1);return{year:r,month:o,day:i}}function Kr(t,e,n,r,o,i,a,s,c){const l=un(r,o,i,a,s,c);return ie(dt(t,e,n+l.deltaDays),l)}function un(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,h=i;({div:a,mod:h}=Jn(h,3)),d+=a,h<0&&(d-=1,h+=1e3),{div:a,mod:d}=Jn(d,3),u+=a,d<0&&(u-=1,d+=1e3),l+=Math.trunc(u/1e3),u%=1e3,u<0&&(l-=1,u+=1e3),c+=Math.trunc(l/60),l%=60,l<0&&(c-=1,l+=60),s+=Math.trunc(c/60),c%=60,c<0&&(s-=1,c+=60);let y=Math.trunc(s/24);return s%=24,s<0&&(y-=1,s+=24),y+=0,s+=0,c+=0,l+=0,u+=0,d+=0,h+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function cc(t,e){const n=ze(t,0);if(bi(n)===0)return t.days;const r=m(e,F),o=bt(m(e,M),r,n,"constrain"),i=Pn(r.year,r.month-1,r.day),a=Pn(o.year,o.month-1,o.day)-i;return t.days+a}function ft(t){return new(je("%Temporal.Duration%"))(-m(t,He),-m(t,Be),-m(t,st),-m(t,Ze),-m(t,Ge),-m(t,Ke),-m(t,Xe),-m(t,Qe),-m(t,Je),-m(t,ct))}function et(t,e,n){return Math.min(n,Math.max(e,t))}function Pl(t,e,n){const r=et(e,1,12);return{year:t,month:r,day:et(n,1,$n(t,r))}}function ke(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function An(t,e,n){ke(e,1,12),ke(n,1,$n(t,e))}function Yn(t){In(ie(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function vi(t,e,n,r,o,i){ke(t,0,23),ke(e,0,59),ke(n,0,59),ke(r,0,999),ke(o,0,999),ke(i,0,999)}function ka(t,e,n,r,o,i,a,s,c){An(t,e,n),vi(r,o,i,a,s,c)}function In(t){const e=Le(t);(f.lessThan(e,vm)||f.greaterThan(e,wm))&&Ft(e)}function ua(t){Le(t)}function Ft(t){if(f.lessThan(t,qr)||f.greaterThan(t,ar))throw new RangeError("date/time value is outside of supported range")}function Aa({year:t,month:e}){ke(t,Zs,Gs),t===Zs?ke(e,4,12):t===Gs&&ke(e,1,9)}function wi(t,e,n,r,o,i,a,s,c,l){let u=0;const d=[t,e,n,r,o,i,a,s,c,l];for(let w=0;w<d.length;w++){const D=d[w];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const O=D<0?-1:1;if(u!==0&&O!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=O}}if(Math.abs(t)>=2**32||Math.abs(e)>=2**32||Math.abs(n)>=2**32)throw new RangeError("years, months, and weeks must be < 2³²");const h=Jn(s,3),y=Jn(c,6),p=Jn(l,9),g=Jn(1e6*h.mod+1e3*y.mod+p.mod,9).div,v=86400*r+3600*o+60*i+a+h.div+y.div+p.div+g;if(!Number.isSafeInteger(v))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Qn(t){return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:m(t,Ze)},time:Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct))}}function jt(t){const e=Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)).add24HourDays(m(t,Ze));return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:0},time:e}}function Nl(t){const e=jt(t),n=Math.trunc(e.time.sec/86400);return wi(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function Ct(t,e){const n=t.time.sign();let r=t.time.abs().subsec,o=0,i=0,a=t.time.abs().sec,s=0,c=0,l=0;switch(e){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60,l=Math.trunc(c/24),c%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=Fi(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=Fi(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=Fi(a,9,r),a=0}return new(je("%Temporal.Duration%"))(t.date.years,t.date.months,t.date.weeks,t.date.days+n*l,n*c,n*s,n*a,n*i,n*o,n*r)}function en(t,e){return bi(t),e.sign(),{date:t,time:e}}function Pn(t,e,n){return $a({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/bn}function rr({year:t,month:e,day:n}){if(Math.abs(Pn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function Ia(t,e){const n=e.hour-t.hour,r=e.minute-t.minute,o=e.second-t.second,i=e.millisecond-t.millisecond,a=e.microsecond-t.microsecond,s=e.nanosecond-t.nanosecond;return Q.fromComponents(n,r,o,i,a,s)}function Pa(t,e,n,r,o){let i=Q.fromEpochNsDiff(e,t);return i=Zo(i,n,r,o),en({years:0,months:0,weeks:0,days:0},i)}function Ll(t,e,n,r){ua(t),ua(e);let o=Ia(t.time,e.time);const i=o.sign(),a=Vt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=dt(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Jt("day",r),l=uo(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),en(l,o)}function jl(t,e,n,r,o){const i=f.subtract(e,t);if(f.equal(i,yt))return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};const a=f.lessThan(i,yt)?-1:1,s=St(n,t),c=St(n,e);let l,u=0,d=a===1?2:1,h=Ia(s.time,c.time);for(h.sign()===-a&&u++;u<=d;u++){l=ie(dt(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const p=Ue(n,l,"compatible");if(h=Q.fromEpochNsDiff(e,p),h.sign()!==-a)break}const y=Jt("day",o);return en(uo(r,s.isoDate,l.isoDate,y),h)}function Yl(t,e,n,r,o,i,a,s,c){let l,u,d,h,y=e;switch(s){case"year":{const b=hn(y.date.years,a,"trunc");l=b,u=b+a*t,d={years:l,months:0,weeks:0,days:0},h={...d,years:u};break}case"month":{const b=hn(y.date.months,a,"trunc");l=b,u=b+a*t,d=ze(y.date,0,0,l),h=ze(y.date,0,0,u);break}case"week":{const b=ze(y.date,0,0),k=bt(i,r.isoDate,b,"constrain"),x=uo(i,k,dt(k.year,k.month,k.day+y.date.days),"week"),Y=hn(y.date.weeks+x.weeks,a,"trunc");l=Y,u=Y+a*t,d=ze(y.date,0,l),h=ze(y.date,0,u);break}case"day":{const b=hn(y.date.days,a,"trunc");l=b,u=b+a*t,d=ze(y.date,l),h=ze(y.date,u);break}}const p=bt(i,r.isoDate,d,"constrain"),g=bt(i,r.isoDate,h,"constrain");let v,w;const D=ie(p,r.time),O=ie(g,r.time);o?(v=Ue(o,D,"compatible"),w=Ue(o,O,"compatible")):(v=Le(D),w=Le(O));const C=Q.fromEpochNsDiff(n,v),E=Q.fromEpochNsDiff(w,v),S=di(c,t<0?"negative":"positive"),P=C.add(C).abs().subtract(E.abs()).sign(),z=Math.abs(l)/a%2==0,j=C.isZero()?Math.abs(l):C.cmp(E)?fi(Math.abs(l),Math.abs(u),P,z,S):Math.abs(u),ae=new Q(f.add(f.multiply(E.totalNs,f.BigInt(l)),f.multiply(C.totalNs,f.BigInt(a*t)))).fdiv(E.totalNs),B=j===Math.abs(u);return y={date:B?h:d,time:Q.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:B?w:v,didExpandCalendarUnit:B},total:ae}}function Ei(t,e,n,r,o,i,a,s,c){let l=t;const u=Pt(s)||r&&s==="day",d=Il(l)<0?-1:1;let h;return u?{nudgeResult:h}=Yl(d,l,e,n,r,o,a,s,c):h=r?(function(y,p,g,v,w,D,O,C){let E=p;const S=bt(w,g.isoDate,E.date,"constrain"),P=ie(S,g.time),z=ie(dt(S.year,S.month,S.day+y),g.time),j=Ue(v,P,"compatible"),ae=Ue(v,z,"compatible"),B=Q.fromEpochNsDiff(ae,j);if(B.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const b=f.BigInt(cr[O]*D);let k=E.time.round(b,C);const x=k.subtract(B),Y=x.sign()!==-y;let Z,pe;return Y?(Z=y,k=x.round(b,C),pe=k.addToEpochNs(ae)):(Z=0,pe=k.addToEpochNs(j)),{duration:en(ze(E.date,E.date.days+Z),k),nudgedEpochNs:pe,didExpandCalendarUnit:Y}})(d,l,n,r,o,a,s,c):(function(y,p,g,v,w,D){let O=y;const C=O.time.add24HourDays(O.date.days),E=C.round(f.BigInt(v*cr[w]),D),S=E.subtract(C),{quotient:P}=C.divmod(Uo),{quotient:z}=E.divmod(Uo),j=Math.sign(z-P)===C.sign(),ae=S.addToEpochNs(p);let B=0,b=E;return Kt(g)==="date"&&(B=z,b=E.add(Q.fromComponents(24*-z,0,0,0,0,0))),{duration:{date:ze(O.date,B),time:b},nudgedEpochNs:ae,didExpandCalendarUnit:j}})(l,e,i,a,s,c),l=h.duration,h.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,p,g,v,w,D,O,C){let E=p;if(C===O)return E;const S=Yr.indexOf(O);for(let P=Yr.indexOf(C)-1;P>=S;P--){const z=Yr[P];if(z==="week"&&O!=="week")continue;let j;switch(z){case"year":j={years:E.date.years+y,months:0,weeks:0,days:0};break;case"month":{const b=E.date.months+y;j=ze(E.date,0,0,b);break}case"week":{const b=E.date.weeks+y;j=ze(E.date,0,b);break}}const ae=ie(bt(D,v.isoDate,j,"constrain"),v.time);let B;if(B=w?Ue(w,ae,"compatible"):Le(ae),Yo(g,B)===-y)break;E={date:j,time:Q.ZERO}}return E})(d,l,h.nudgedEpochNs,n,r,o,i,Jt(s,"day"))),l}function lc(t,e,n,r,o,i){return Pt(i)||r&&i==="day"?Yl(Il(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Fr(t.time.add24HourDays(t.date.days),i)}function zl(t,e,n,r,o,i,a){if(ur(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};In(t),In(e);const s=Ll(t,e,n,r);return i==="nanosecond"&&o===1?s:Ei(s,Le(e),t,null,n,r,o,i,a)}function Ul(t,e,n,r,o,i,a,s){if(Kt(o)==="time")return Pa(t,e,i,a,s);const c=jl(t,e,n,r,o);return a==="nanosecond"&&i===1?c:Ei(c,e,St(n,t),n,r,o,i,a,s)}function pr(t,e,n,r,o,i){const a=sr.reduce(((y,p)=>{const g=p[0],v=p[1],w=p[2];return n!=="datetime"&&w!==n||r.includes(v)||y.push(v,g),y}),[]);let s=ut(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=mr(e);let l=kt(e,"trunc");t==="since"&&(l=(function(y){switch(y){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return y}})(l));const u=ut(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Jt(i,u);if(s==="auto"&&(s=d),Jt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const h={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return h!==void 0&&gr(c,h,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function uc(t,e,n,r){const o=kr(n),i=pr(t,N(r),"time",[],"nanosecond","second");let a=Ct(Pa(m(e,U),m(o,U),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=ft(a)),a}function dc(t,e,n,r){const o=$r(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",[],"day","day"),c=je("%Temporal.Duration%"),l=m(e,F),u=m(o,F);if(Vt(l,u)===0)return new c;let d={date:uo(i,l,u,s.largestUnit),time:Q.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=Ei(d,Le(ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),y,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let h=Ct(d,"day");return t==="since"&&(h=ft(h)),h}function fc(t,e,n,r){const o=Rr(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","day"),c=je("%Temporal.Duration%"),l=m(e,be),u=m(o,be);if(ur(l,u)===0)return new c;let d=Ct(zl(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=ft(d)),d}function hc(t,e,n,r){const o=fn(n),i=pr(t,N(r),"time",[],"nanosecond","hour");let a=Ia(m(e,Te),m(o,Te));a=Zo(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=Ct(en({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=ft(s)),s}function mc(t,e,n,r){const o=Ar(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",["week","day"],"month","year"),c=je("%Temporal.Duration%");if(Vt(m(e,F),m(o,F))==0)return new c;const l=rt(i,m(e,F),"year-month");l.day=1;const u=vn(i,l,"constrain"),d=rt(i,m(o,F),"year-month");d.day=1;const h=vn(i,d,"constrain");let y={date:ze(uo(i,u,h,s.largestUnit),0,0),time:Q.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=Ei(y,Le(ie(h,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),g,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let p=Ct(y,"day");return t==="since"&&(p=ft(p)),p}function gc(t,e,n,r){const o=Ir(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","hour"),c=m(e,U),l=m(o,U),u=je("%Temporal.Duration%");let d;if(Kt(s.largestUnit)!=="date")d=Ct(Pa(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const h=m(e,ce);if(!Ml(h,m(o,ce)))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(f.equal(c,l))return new u;d=Ct(Ul(c,l,h,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=ft(d)),d}function lr({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){let s=n,c=i;return s+=a.sec,c+=a.subsec,un(t,e,s,r,o,c)}function da(t,e){const n=e.addToEpochNs(t);return Ft(n),n}function Pr(t,e,n,r,o="constrain"){if(bi(r.date)===0)return da(t,r.time);const i=St(e,t);return da(Ue(e,ie(bt(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function yc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Jt(Gt(e),Gt(r));if(Pt(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=jt(e),a=jt(r);return Ct(en({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function pc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Gt(r);if(Kt(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=jt(r);return Lt(da(m(e,U),i.time))}function bc(t,e,n,r){const o=m(e,M);let i=Ot(n);t==="subtract"&&(i=ft(i));const a=Nl(i),s=re(N(r));return tt(bt(o,m(e,F),a,s),o)}function vc(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,M),s=jt(o),c=m(e,be),l=lr(c.time,s.time),u=ze(s.date,l.deltaDays);return wi(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),Tt(ie(bt(a,c.isoDate,u,i),l),a)}function wc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=jt(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=lr(m(e,Te),o.time);return Xt(yi(i,a,s,c,l,u,"reject"))}function Ec(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=Bo(o),s=m(e,M),c=rt(s,m(e,F),"year-month");c.day=1;let l=vn(s,c,"constrain");if(a<0){const d=bt(s,l,{months:1},"constrain");l=dt(d.year,d.month,d.day-1)}const u=Nl(o);return Yn(l),nr(Br(s,rt(s,bt(s,l,u,i),"year-month"),i),s)}function _c(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,ce),s=m(e,M),c=Qn(o);return Ye(Pr(m(e,U),a,s,c,i),a,s)}function hn(t,e,n){const r=Math.trunc(t/e),o=t%e,i=t<0?"negative":"positive",a=Math.abs(r),s=a+1,c=lt(Math.abs(2*o)-e),l=a%2==0,u=di(n,i),d=o===0?a:fi(a,s,c,l,u);return e*(i==="positive"?d:-d)}function fa(t,e,n,r){const o=cr[n]*e;return(function(i,a,s){const c=Bt(i),l=Bt(a),u=f.divide(c,l),d=f.remainder(c,l),h=di(s,"positive");let y,p;f.lessThan(c,yt)?(y=f.subtract(u,Wr),p=u):(y=u,p=f.add(u,Wr));const g=Yo(Dn(f.multiply(d,Oa)),l)*(f.lessThan(c,yt)?-1:1)+0,v=f.equal(d,yt)?u:fi(y,p,g,Xc(y),h);return f.multiply(v,l)})(t,f.BigInt(o),r)}function ha(t,e,n,r){ua(t);const{year:o,month:i,day:a}=t.isoDate,s=ma(t.time,e,n,r);return ie(dt(o,i,a+s.deltaDays),s)}function ma({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a,s,c){let l;switch(s){case"day":case"hour":l=1e3*(1e3*(1e3*(60*(60*t+e)+n)+r)+o)+i;break;case"minute":l=1e3*(1e3*(1e3*(60*e+n)+r)+o)+i;break;case"second":l=1e3*(1e3*(1e3*n+r)+o)+i;break;case"millisecond":l=1e3*(1e3*r+o)+i;break;case"microsecond":l=1e3*o+i;break;case"nanosecond":l=i}const u=cr[s],d=hn(l,u*a,c)/u;switch(s){case"day":return{deltaDays:d,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return un(d,0,0,0,0,0);case"minute":return un(t,d,0,0,0,0);case"second":return un(t,e,d,0,0,0);case"millisecond":return un(t,e,n,d,0,0);case"microsecond":return un(t,e,n,r,d,0);case"nanosecond":return un(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Zo(t,e,n,r){const o=cr[n];return t.round(f.BigInt(o*e),r)}function Fr(t,e){const n=cr[e];return t.fdiv(f.BigInt(n))}function Vt(t,e){return t.year!==e.year?lt(t.year-e.year):t.month!==e.month?lt(t.month-e.month):t.day!==e.day?lt(t.day-e.day):0}function ga(t,e){return t.hour!==e.hour?lt(t.hour-e.hour):t.minute!==e.minute?lt(t.minute-e.minute):t.second!==e.second?lt(t.second-e.second):t.millisecond!==e.millisecond?lt(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?lt(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?lt(t.nanosecond-e.nanosecond):0}function ur(t,e){const n=Vt(t.isoDate,e.isoDate);return n!==0?n:ga(t.time,e.time)}function Fl(t){const e=Go(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function Mt(t,e){const n=Bt(t),{quotient:r,remainder:o}=Mr(n,no);let i=f.toNumber(r);return e==="floor"&&f.toNumber(o)<0&&(i-=1),e==="ceil"&&f.toNumber(o)>0&&(i+=1),i}function Yt(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return f.multiply(f.BigInt(t),no)}function Go(t){let e=t;if(typeof t=="object"){const n=t[Symbol.toPrimitive];n&&typeof n=="function"&&(e=n.call(t,"number"))}if(typeof e=="number")throw new TypeError("cannot convert number to bigint");return typeof e=="bigint"?f.BigInt(e.toString(10)):f.BigInt(e)}const ya=(()=>{let t=f.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=f.BigInt(e),r=f.add(Yt(e),t);return t=f.remainder(n,no),f.greaterThan(r,ar)?ar:f.lessThan(r,qr)?qr:r}})();function Cr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function lt(t){return t<0?-1:t>0?1:t}function N(t){if(t===void 0)return Object.create(null);if(Ce(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function Nn(t,e){const n=Object.create(null);return n[t]=e,n}function tn(t,e,n,r){let o=t[e];if(o!==void 0){if(o=mi(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===on)throw new RangeError(`${e} option is required`);return r}function it(t){const e=Xr(t);if(!_m.includes(Xr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Xr(t){let e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return e}function _n(t){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${t==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${t}.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.`)}const xm=new RegExp(`^${dl.source}$`),$m=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Vl(t,e,n,r=t(e),o=t(n)){let i=e,a=n,s=r,c=o;for(;a-i>1;){let l=Math.trunc((i+a)/2);const u=t(l);u===s?(i=l,s=u):u===c&&(a=l,c=u)}return a}function Wl(t){return[...t]}function ql(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=go[t];let r=e.year;const{dayOfWeek:o,dayOfYear:i,daysInYear:a}=n.isoToDate(e,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=n.getFirstDayOfWeek(),c=n.getMinimalDaysInFirstWeek();let l=(o+7-s)%7,u=(o-i+7001-s)%7,d=Math.floor((i-1+u)/7);if(7-u>=c&&++d,d==0)d=(function(h,y,p,g){let v=(g-h-p+1)%7;v<0&&(v+=7);let w=Math.floor((p+v-1)/7);return 7-v>=y&&++w,w})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let h=(l+a-i)%7;h<0&&(h+=7),6-h>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function Tc(t,e,n,r,o){if(e!==o.year){if(t*(e-o.year)>0)return!0}else if(n!==o.month){if(t*(n-o.month)>0)return!0}else if(r!==o.day&&t*(r-o.day)>0)return!0;return!1}const go={};function Ln(t){if(!t.startsWith("M"))throw new RangeError(`Invalid month code: ${t}. Month codes must start with M.`);const e=+t.slice(1);if(Number.isNaN(e))throw new RangeError(`Invalid month code: ${t}`);return e}function zt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function Na(t,e=void 0,n=12){let{month:r,monthCode:o}=t;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");e==="reject"&&ke(r,1,n),e==="constrain"&&(r=et(r,1,n)),o=zt(r)}else{const i=Ln(o);if(o!==zt(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{...t,month:r,monthCode:o}}go.iso8601={resolveFields(t,e){if((e==="date"||e==="year-month")&&t.year===void 0)throw new TypeError("year is required");if((e==="date"||e==="month-day")&&t.day===void 0)throw new TypeError("day is required");Object.assign(t,Na(t))},dateToISO:(t,e)=>zr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=zr(t.year??1972,t.month,t.day,e);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(t){const e=new Set;for(let n=0;n<t.length;n++){const r=t[n];e.add(r),r==="month"?e.add("monthCode"):r==="monthCode"&&e.add("month")}return Wl(e)},dateAdd(t,{years:e=0,months:n=0,weeks:r=0,days:o=0},i){let{year:a,month:s,day:c}=t;return a+=e,s+=n,{year:a,month:s}=Sn(a,s),{year:a,month:s,day:c}=zr(a,s,c,i),c+=o+7*r,dt(a,s,c)},dateUntil(t,e,n){const r=-Vt(t,e);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,a=0;if(n==="year"||n==="month"){let u=e.year-t.year;for(u!==0&&(u-=r);!Tc(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Sn(t.year+i,t.month+d);!Tc(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Sn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Sn(t.year+i,t.month+a);const s=Pl(o.year,o.month,t.day);let c=0,l=Pn(e.year,e.month-1,e.day)-Pn(s.year,s.month-1,s.day);return n==="week"&&(c=Math.trunc(l/7),l%=7),{years:i,months:a,weeks:c,days:l}},isoToDate({year:t,month:e,day:n},r){const o={era:void 0,eraYear:void 0,year:t,month:e,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=zt(e)),r.dayOfWeek){const i=e+(e<3?10:-2),a=t-(e<3?1:0),s=Math.floor(a/100),c=a-100*s,l=(n+Math.floor(2.6*i-.2)+(c+Math.floor(c/4))+(Math.floor(s/4)-2*s))%7;o.dayOfWeek=l+(l<=0?7:0)}if(r.dayOfYear){let i=n;for(let a=e-1;a>0;a--)i+=$n(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=ql("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=$n(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=Ho(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Re{constructor(e){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,e!==void 0){let n=0;for(const r of e.map.entries()){if(++n>Re.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(e){const n=this.map.get(e);return n&&(this.hits++,this.report()),this.calls++,n}set(e,n){this.map.set(e,n),this.misses++,this.report()}report(){}setObject(e){if(Re.objectMap.get(e))throw new RangeError("object already cached");Re.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Re.objectMap.get(e);return n||(n=new Re,Re.objectMap.set(e,n)),n}}function Hl({isoYear:t,isoMonth:e,isoDay:n}){return`${mo(t)}-${vt(e)}-${vt(n)}T00:00Z`}function qi(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Re.objectMap=new WeakMap,Re.MAX_CACHE_ENTRIES=1e3;class zn{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(e){let n=this.getFormatter(),r=new Date(e);if(e==="-271821-04-19T00:00Z"){const o=n.resolvedOptions();n=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return n.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${e}`)}}isoToCalendarDate(e,n){const{year:r,month:o,day:i}=e,a=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),s=n.get(a);if(s)return s;const c=Hl({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let h=0;h<l.length;h++){const{type:y,value:p}=l[h];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+p:u.year=+p),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(p);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${p}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(u.month>13)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);g[2]&&(u.monthExtra=g[2])}y==="day"&&(u.day=+p),this.hasEra&&y==="era"&&p!=null&&p!==""&&(u.era=p.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&u.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){const h=this.eras.find((y=>u.era===y.genericName));h&&(u.era=h.code)}if(this.reviseIntlEra){const{era:h,eraYear:y}=this.reviseIntlEra(u,e);u.era=h,u.eraYear=y}this.checkIcuBugs&&this.checkIcuBugs(e);const d=this.adjustCalendarDate(u,n,"constrain",!0);if(d.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(e)}`);if(d.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(e)}`);if(d.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(e)}`);return n.set(a,d),["constrain","reject"].forEach((h=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:h,id:this.id});n.set(y,e)})),d}validateCalendarDate(e){const{month:n,year:r,day:o,eraYear:i,monthCode:a,monthExtra:s}=e;if(s!==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&&a===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(a!==void 0){if(typeof a!="string")throw new RangeError("monthCode must be a string, not "+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw new RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&e.era===void 0!=(e.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(e,n=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=e;this.validateCalendarDate(i);const a=this.monthsInYear(i,n);let{month:s,monthCode:c}=i;return{month:s,monthCode:c}=Na(i,r,a),{...i,month:s,monthCode:c}}regulateMonthDayNaive(e,n,r){const o=this.monthsInYear(e,r);let{month:i,day:a}=e;return n==="reject"?(ke(i,1,o),ke(a,1,this.maximumMonthLength(e))):(i=et(i,1,o),a=et(a,1,this.maximumMonthLength({...e,month:i}))),{...e,month:i,day:a}}calendarToIsoDate(e,n="constrain",r){const o=e;let i=this.adjustCalendarDate(e,r,n,!1);i=this.regulateMonthDayNaive(i,n,r);const{year:a,month:s,day:c}=i,l=JSON.stringify({func:"calendarToIsoDate",year:a,month:s,day:c,overflow:n,id:this.id});let u,d=r.get(l);if(d||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(u=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:n,id:this.id}),d=r.get(u),d))return d;let h=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let O=this.addDaysIso(h,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(O,r);for(;C.month!==s||C.year!==a;){if(n==="reject")throw new RangeError(`day ${c} does not exist in month ${s} of year ${a}`);O=this.addDaysIso(O,-1),C=this.isoToCalendarDate(O,r)}}return O};let p=0,g=this.isoToCalendarDate(h,r),v=qi(i,g);if(v.years!==0||v.months!==0||v.days!==0){const D=365*v.years+30*v.months+v.days;h=this.addDaysIso(h,D),g=this.isoToCalendarDate(h,r),v=qi(i,g),v.years===0&&v.months===0?h=y(v.days):p=this.compareCalendarDates(i,g)}let w=8;for(;p;){h=this.addDaysIso(h,p*w);const D=g;g=this.isoToCalendarDate(h,r);const O=p;if(p=this.compareCalendarDates(i,g),p){if(v=qi(i,g),v.years===0&&v.months===0)h=y(v.days),p=0;else if(O&&p!==O)if(w>1)w/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(h=this.addDaysIso(h,-1)),p=0}}}if(r.set(l,h),u&&r.set(u,h),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 h}compareCalendarDates(e,n){return e.year!==n.year?lt(e.year-n.year):e.month!==n.month?lt(e.month-n.month):e.day!==n.day?lt(e.day-n.day):0}regulateDate(e,n="constrain",r){const o=this.calendarToIsoDate(e,n,r);return this.isoToCalendarDate(o,r)}addDaysIso(e,n){return dt(e.year,e.month,e.day+n)}addDaysCalendar(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.addDaysIso(o,n);return this.isoToCalendarDate(i,r)}addMonthsCalendar(e,n,r,o){let i=e;const{day:a}=i;for(let s=0,c=Math.abs(n);s<c;s++){const{month:l}=i,u=i,d=n<0?-Math.max(a,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),h=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(h,d);if(i=this.isoToCalendarDate(y,o),n>0){const p=this.monthsInYear(u,o);for(;i.month-1!=l%p;)y=this.addDaysIso(y,-1),i=this.isoToCalendarDate(y,o)}i.day!==a&&(i=this.regulateDate({...i,day:a},"constrain",o))}if(r==="reject"&&i.day!==a)throw new RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(e,{years:n=0,months:r=0,weeks:o=0,days:i=0},a,s){const{year:c,day:l,monthCode:u}=e,d=this.adjustCalendarDate({year:c+n,monthCode:u,day:l},s),h=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(h,y,s)}untilCalendar(e,n,r,o){let i=0,a=0,s=0,c=0;switch(r){case"day":i=this.calendarDaysUntil(e,n,o);break;case"week":{const l=this.calendarDaysUntil(e,n,o);i=l%7,a=(l-i)/7;break}case"month":case"year":{const l=this.compareCalendarDates(n,e);if(!l)return{years:0,months:0,weeks:0,days:0};const u=n.year-e.year,d=n.day-e.day;if(r==="year"&&u){let p=0;n.monthCode>e.monthCode&&(p=1),n.monthCode<e.monthCode&&(p=-1),p||(p=Math.sign(d)),c=p*l<0?u-l:u}let h,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,h=y,y=this.addMonthsCalendar(h,l,"constrain",o),y.day!==e.day&&(y=this.regulateDate({...y,day:e.day},"constrain",o));while(this.compareCalendarDates(n,y)*l>=0);s-=l,i=this.calendarDaysUntil(h,n,o);break}}return{years:c,months:s,weeks:a,days:i}}daysInMonth(e,n){const{day:r}=e,o=this.maximumMonthLength(e),i=this.minimumMonthLength(e);if(i===o)return i;const a=r<=o-i?o:i,s=this.calendarToIsoDate(e,"constrain",n),c=this.addDaysIso(s,a),l=this.isoToCalendarDate(c,n),u=this.addDaysIso(c,-l.day);return this.isoToCalendarDate(u,n).day}daysInPreviousMonth(e,n){const{day:r,month:o,year:i}=e;let a={year:o>1?i:i-1,month:o,day:1};const s=o>1?o-1:this.monthsInYear(a,n);a={...a,month:s};const c=this.minimumMonthLength(a),l=this.maximumMonthLength(a);if(c===l)return l;const u=this.calendarToIsoDate(e,"constrain",n),d=this.addDaysIso(u,-r);return this.isoToCalendarDate(d,n).day}startOfCalendarYear(e){return{year:e.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(e){return{year:e.year,month:e.month,day:1}}calendarDaysUntil(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.calendarToIsoDate(n,"constrain",r);return Pn(i.year,i.month-1,i.day)-Pn(o.year,o.month-1,o.day)}monthDaySearchStartYear(e,n){return 1972}monthDayFromFields(e,n,r){let o,i,a,s,c,{era:l,eraYear:u,year:d,month:h,monthCode:y,day:p}=e;if(h!==void 0&&d===void 0&&(!this.hasEra||l===void 0||u===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(y===void 0||d!==void 0||this.hasEra&&u!==void 0)&&({monthCode:y,day:p}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,p),month:12,day:31},v=this.isoToCalendarDate(g,r),w=v.monthCode>y||v.monthCode===y&&v.day>=p?v.year:v.year-1;for(let D=0;D<20;D++){const O=this.adjustCalendarDate({day:p,monthCode:y,year:w-D},r),C=this.calendarToIsoDate(O,"constrain",r),E=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,E.monthCode===y&&E.day===p)return{month:i,day:a,year:o};if(n==="constrain"){const S=this.maxLengthOfMonthCodeInAnyYear(E.monthCode);if(E.monthCode===y&&E.day===S&&p>S)return{month:i,day:a,year:o};(s===void 0||E.monthCode===s.monthCode&&E.day>s.day)&&(s=E,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${p}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class Rm extends zn{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(e){const{year:n}=e;return(7*n+1)%19<7}monthsInYear(e){return this.inLeapYear(e)?13:12}minimumMonthLength(e){return this.minMaxMonthLength(e,"min")}maximumMonthLength(e){return this.minMaxMonthLength(e,"max")}minMaxMonthLength(e,n){const{month:r,year:o}=e,i=this.getMonthCode(o,r),a=Object.entries(this.months).find((c=>c[1].monthCode===i));if(a===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);const s=a[1].days;return typeof s=="number"?s:s[n]}maxLengthOfMonthCodeInAnyYear(e){return["M04","M06","M08","M10","M12"].includes(e)?29:30}estimateIsoDate(e){const{year:n}=e;return{year:n-3760,month:1,day:1}}getMonthCode(e,n){return this.inLeapYear({year:e})?n===6?zt(5,!0):zt(n<6?n:n-1):zt(n)}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthCode:s,day:c,monthExtra:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(l){const u=this.months[l];if(!u)throw new RangeError(`Unrecognized month from formatToParts: ${l}`);a=this.inLeapYear({year:i})?u.leap:u.regular}return s=this.getMonthCode(i,a),{year:i,month:a,day:c,monthCode:s}}if(this.validateCalendarDate(e),a===void 0)if(s.endsWith("L")){if(s!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${s}`);if(a=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,s="M06"}}else{a=Ln(s),this.inLeapYear({year:i})&&a>=6&&a++;const u=this.monthsInYear({year:i});if(a<1||a>u)throw new RangeError(`Invalid monthCode: ${s}`)}else if(r==="reject"?(ke(a,1,this.monthsInYear({year:i})),ke(c,1,this.maximumMonthLength({year:i,month:a}))):(a=et(a,1,this.monthsInYear({year:i})),c=et(c,1,this.maximumMonthLength({year:i,month:a}))),s===void 0)s=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==s)throw new RangeError(`monthCode ${s} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...e,day:c,month:a,monthCode:s,year:i}}}class br extends zn{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(e,n){const r={year:e.year,month:1,monthCode:"M01",day:1},o={year:e.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(e){const{year:n}=this.adjustCalendarDate(e);return{year:Math.floor(n*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}class km extends br{constructor(){super(...arguments),this.id="islamic"}}class Am extends br{constructor(){super(...arguments),this.id="islamic-umalqura"}}class Im extends br{constructor(){super(...arguments),this.id="islamic-tbla"}}class Pm extends br{constructor(){super(...arguments),this.id="islamic-civil"}}class Nm extends br{constructor(){super(...arguments),this.id="islamic-rgsa"}}class Lm extends br{constructor(){super(...arguments),this.id="islamicc"}}class jm extends zn{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(e,n){return this.daysInMonth({year:e.year,month:12,day:1},n)===30}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===12?29:n<=6?31:30}maximumMonthLength(e){const{month:n}=e;return n===12?30:n<=6?31:30}maxLengthOfMonthCodeInAnyYear(e){return Ln(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class Ym extends zn{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(e){return La(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Ln(e);let r=this.months[n];return r=r.leap??r,r.length}getMonthInfo(e){const{month:n}=e;let r=this.months[n];if(r===void 0)throw new RangeError(`Invalid month: ${n}`);return this.inLeapYear(e)&&r.leap&&(r=r.leap),r}estimateIsoDate(e){const n=this.adjustCalendarDate(e),r=this.getMonthInfo(n);return dt(n.year+78+(r.nextYear?1:0),r.month,r.day+n.day-1)}checkIcuBugs(e){if(this.vulnerableToBceBug&&e.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 La(t){return t%4==0&&(t%100!=0||t%400==0)}class Bl extends zn{constructor(e,n){super(),this.calendarType="solar",this.id=e,this.isoEpoch=n}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return zr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class Zl extends zn{constructor(e,n){super(),this.hasEra=!0,this.calendarType="solar",this.id=e;const{eras:r,anchorEra:o}=(function(i){let a,s=i;if(s.length===0)throw new RangeError("Invalid era data: eras are required");if(s.length===1&&s[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(s.length===1&&!s[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(s.filter((l=>l.reverseOf!=null)).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");s.forEach((l=>{if(l.isAnchor||!l.anchorEpoch&&!l.reverseOf){if(a)throw new RangeError("Invalid era data: cannot have multiple anchor eras");a=l,l.anchorEpoch={year:l.hasYearZero?0:1}}else if(!l.code)throw new RangeError("If era name is blank, it must be the anchor era")})),s=s.filter((l=>l.code)),s.forEach((l=>{const{reverseOf:u}=l;if(u){const d=s.find((h=>h.code===u));if(d===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${u}`);l.reverseOf=d,l.anchorEpoch=d.anchorEpoch,l.isoEpoch=d.isoEpoch}l.anchorEpoch.month===void 0&&(l.anchorEpoch.month=1),l.anchorEpoch.day===void 0&&(l.anchorEpoch.day=1)})),s.sort(((l,u)=>{if(l.reverseOf)return 1;if(u.reverseOf)return-1;if(!l.isoEpoch||!u.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return u.isoEpoch.year-l.isoEpoch.year}));const c=s[s.length-1].reverseOf;if(c&&c!==s[s.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return s.forEach(((l,u)=>{l.genericName="era"+(s.length-1-u)})),{eras:s,anchorEra:a||s[0]}})(n);this.anchorEra=o,this.eras=r}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}completeEraYear(e){const n=(s,c,l)=>{const u=e[s];if(u!=null&&u!=c&&!(l||[]).includes(u)){const d=l?.[0];throw new RangeError(`Input ${s} ${u} doesn't match calculated value ${d?`${c} (also called ${d})`:c}`)}},r=s=>{let c;const l={...e,year:s},u=this.eras.find(((d,h)=>{if(h===this.eras.length-1){if(d.reverseOf){if(s>0)throw new RangeError(`Signed year ${s} is invalid for era ${d.code}`);return c=d.anchorEpoch.year-s,!0}return c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0}return this.compareCalendarDates(l,d.anchorEpoch)>=0&&(c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0)}));if(!u)throw new RangeError(`Year ${s} was not matched by any era`);return{eraYear:c,era:u.code,eraNames:u.names}};let{year:o,eraYear:i,era:a}=e;if(o!=null){const s=r(o);({eraYear:i,era:a}=s),n("era",a,s?.eraNames),n("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(a===void 0)throw new RangeError("era and eraYear must be provided together");const s=this.eras.find((({code:c,names:l=[]})=>c===a||l.includes(a)));if(!s)throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);o=s.reverseOf?s.anchorEpoch.year-i:i+s.anchorEpoch.year-(s.hasYearZero?0:1),n("year",o),{eraYear:i,era:a}=r(o)}}return{...e,year:o,eraYear:i,era:a}}adjustCalendarDate(e,n,r="constrain"){let o=e;const{month:i,monthCode:a}=o;return i===void 0&&(o={...o,month:Ln(a)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(e){const n=this.adjustCalendarDate(e),{year:r,month:o,day:i}=n,{anchorEra:a}=this;return zr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ja extends Zl{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=zt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const Nt={inLeapYear(t){const{year:e}=t;return(e+1)%4==0},monthsInYear:()=>13,minimumMonthLength(t){const{month:e}=t;return e===13?this.inLeapYear(t)?6:5:30},maximumMonthLength(t){return this.minimumMonthLength(t)},maxLengthOfMonthCodeInAnyYear:t=>t==="M13"?6:30};class zm extends Bl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Gl extends Zl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Um extends zm{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class Fm extends Gl{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class Vm extends Gl{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}}])}}class Wm extends ja{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class qm extends Bl{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class Hm extends ja{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(e){let{era:n,eraYear:r}=e;return n==="b"&&(n="gregory-inverse"),n==="a"&&(n="gregory"),{era:n,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}}class Bm extends ja{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(e,n){const{era:r,eraYear:o}=e,{year:i}=n;return this.eras.find((a=>a.code===r))?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}}class Kl extends zn{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(e,n){const r=this.getMonthList(e.year,n);return Object.entries(r).length===13}monthsInYear(e,n){return this.inLeapYear(e,n)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(e){return["M01L","M09L","M10L","M11L","M12L"].includes(e)?29:30}monthDaySearchStartYear(e,n){const 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]}[e]??[1972,1972];return n<30?r[0]:r[1]}getMonthList(e,n){if(e===void 0)throw new TypeError("Missing year");const r=JSON.stringify({func:"getMonthList",calendarYear:e,id:this.id}),o=n.get(r);if(o)return o;const i=this.getFormatter(),a=(v,w)=>{const D=Hl({isoYear:v,isoMonth:2,isoDay:1}),O=new Date(D);O.setUTCDate(w+1);const C=i.formatToParts(O),E=C.find((j=>j.type==="month")).value,S=+C.find((j=>j.type==="day")).value,P=C.find((j=>j.type==="relatedYear"));let z;if(P===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return z=+P.value,{calendarMonthString:E,calendarDay:S,calendarYearToVerify:z}};let s=17,{calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s);c!=="1"&&(s+=29,{calendarMonthString:c,calendarDay:l}=a(e,s)),s-=l-5;const d={};let h,y,p=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),h&&(d[y].daysInMonth=h+30-l),u!==e?g=!0:(d[c]={monthIndex:p++},s+=30),h=l,y=c;while(!g);return d[y].daysInMonth=h+30-l,n.set(r,d),d}estimateIsoDate(e){const{year:n,month:r}=e;return{year:n,month:r>=12?12:r+1,day:1}}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthExtra:s,day:c,monthCode:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(s&&s!=="bis")throw new RangeError(`Unexpected leap month suffix: ${s}`);const u=zt(a,s!==void 0),d=`${a}${s||""}`,h=this.getMonthList(i,n)[d];if(h===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=h.monthIndex,{year:i,month:a,day:c,monthCode:u}}if(this.validateCalendarDate(e),a===void 0){const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));let h=u[d];if(a=h&&h.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");h=u[y],h&&(a=h.monthIndex,l=zt(y))}if(a===void 0)throw new RangeError(`Unmatched month ${l} in Chinese year ${i}`)}else if(l===void 0){const u=this.getMonthList(i,n),d=Object.entries(u),h=d.length;r==="reject"?(ke(a,1,h),ke(c,1,this.maximumMonthLength())):(a=et(a,1,h),c=et(c,1,this.maximumMonthLength()));const y=d.find((p=>p[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=zt(+y[0].replace("bis",""),y[0].indexOf("bis")!==-1)}else{const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));const h=u[d];if(!h)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==h.monthIndex)throw new RangeError(`monthCode ${l} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...e,year:i,month:a,monthCode:l,day:c}}}class Zm extends Kl{constructor(){super(...arguments),this.id="chinese"}}class Gm extends Kl{constructor(){super(...arguments),this.id="dangi"}}class Km{constructor(e){this.helper=e}extraFields(e){return this.helper.hasEra&&e.includes("year")?["era","eraYear"]:[]}resolveFields(e){if(this.helper.calendarType!=="lunisolar"){const n=new Re;Na(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Re,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Re,o=this.helper.monthDayFromFields(e,n,r);return r.setObject(o),o}fieldKeysToIgnore(e){const n=new Set;for(let r=0;r<e.length;r++){const o=e[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 Wl(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Re.getCacheForObject(e),c=this.helper.isoToCalendarDate(e,s),l=this.helper.addCalendar(c,{years:n,months:r,weeks:o,days:i},a,s),u=this.helper.calendarToIsoDate(l,"constrain",s);return Re.getCacheForObject(u)||new Re(s).setObject(u),u}dateUntil(e,n,r){const o=Re.getCacheForObject(e),i=Re.getCacheForObject(n),a=this.helper.isoToCalendarDate(e,o),s=this.helper.isoToCalendarDate(n,i);return this.helper.untilCalendar(a,s,r,o)}isoToDate(e,n){const r=Re.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=go.iso8601.isoToDate(e,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=a+1}if(n.weekOfYear&&(o.weekOfYear=ql(this.helper.id,e)),o.daysInWeek=7,n.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),n.daysInYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,a,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(const t of[Rm,jm,Vm,Um,Fm,Zm,Gm,Wm,Ym,qm,Hm,Bm,km,Am,Im,Pm,Nm,Lm]){const e=new t;go[e.id]=new Km(e)}na("calendarImpl",(function(t){return go[t]}));const Qr=Intl.DateTimeFormat;function Zn(t,e){let n=m(t,e);return typeof n=="function"&&(n=new Qr(m(t,sl),n(m(t,Qi))),(function(r,o,i){const a=ui(r);if(a===void 0)throw new TypeError("Missing slots for the given container");if(a[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);a[o]=i})(t,e,n)),n}function Dr(t){return ot(t,jn)}class Jr{constructor(e=void 0,n=void 0){(function(r,o,i){const a=i!==void 0;let s;if(a){const d=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];s=(function(y){if(y==null)throw new TypeError(`Expected object not ${y}`);return Object(y)})(i);const h=Object.create(null);for(let y=0;y<d.length;y++){const p=d[y];Object.prototype.hasOwnProperty.call(s,p)&&(h[p]=s[p])}s=h}else s=Object.create(null);const c=new Qr(o,s),l=c.resolvedOptions();if(an(r),a){const d=Object.assign(Object.create(null),l);for(const h in d)Object.prototype.hasOwnProperty.call(s,h)||delete d[h];d.hour12=s.hour12,d.hourCycle=s.hourCycle,K(r,Qi,d)}else K(r,Qi,s);K(r,sl,l.locale),K(r,jn,c),K(r,Xn,l.timeZone),K(r,xr,l.calendar),K(r,tl,i0),K(r,nl,r0),K(r,rl,o0),K(r,ol,n0),K(r,il,a0),K(r,al,s0);const u=a?s.timeZone:void 0;if(u===void 0)K(r,Xi,l.timeZone);else{const d=mi(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");K(r,Xi,nt(d))}})(this,e,n)}get format(){_(this,Dr);const e=Qm.bind(this);return Object.defineProperties(e,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),e}formatRange(e,n){return _(this,Dr),e0.call(this,e,n)}formatToParts(e,...n){return _(this,Dr),Jm.call(this,e,...n)}formatRangeToParts(e,n){return _(this,Dr),t0.call(this,e,n)}resolvedOptions(){return _(this,Dr),Xm.call(this)}}"formatToParts"in Qr.prototype||delete Jr.prototype.formatToParts,"formatRangeToParts"in Qr.prototype||delete Jr.prototype.formatRangeToParts;const Dt=function(t=void 0,e=void 0){return new Jr(t,e)};function Xm(){const t=m(this,jn).resolvedOptions();return t.timeZone=m(this,Xi),t}function Qm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.format(...r)}function Jm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.formatToParts(...r)}function e0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRange(...i)}function t0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRangeToParts(...i)}function yo(t={},e={}){const n=Object.assign({},t),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){const i=r[o];n[i]=i in e?e[i]:n[i],n[i]!==!1&&n[i]!==void 0||delete n[i]}return n}function n0(t){const e=yo(t,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(e.timeStyle!=="long"&&e.timeStyle!=="full"||(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!Ti(e)){if(po(t))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(t)}]`);Object.assign(e,{hour:"numeric",minute:"numeric",second:"numeric"})}return e}function r0(t){const e={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},n=yo(t,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("year"in n||"month"in n||"era"in n)){if(po(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function o0(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=yo(t,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("month"in n)&&!("day"in n)){if(po(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function i0(t){const e=yo(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function a0(t){const e=yo(t,{timeZoneName:!1});if((e.timeStyle==="long"||e.timeStyle==="full")&&(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"}),e.dateStyle)&&(Object.assign(e,{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"}}[e.dateStyle]),delete e.dateStyle),!Ti(e)&&!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return e}function s0(t){let e=t;return Ti(e)||_i(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function _i(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function Ti(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function po(t){return _i(t)||Ti(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function nn(t){return _e(t)||Se(t)||ye(t)||X(t)||Ne(t)||mt(t)||Pe(t)}function Ko(t){return nn(t)?t:hi(t)}function Xl(t,e){return!(!nn(t)||!nn(e)||Se(t)&&!Se(e)||_e(t)&&!_e(e)||ye(t)&&!ye(e)||X(t)&&!X(e)||Ne(t)&&!Ne(e)||mt(t)&&!mt(e)||Pe(t)&&!Pe(e))}function dr(t,e){if(Se(t)){const n={isoDate:{year:1970,month:1,day:1},time:m(t,Te)};return{epochNs:Ue(m(e,Xn),n,"compatible"),formatter:Zn(e,ol)}}if(Ne(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,nl)}}if(mt(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,rl)}}if(_e(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,tl)}}if(ye(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=m(t,be);return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,il)}}if(X(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return Pe(t)?{epochNs:m(t,U),formatter:Zn(e,al)}:{}}function Ql(t){const e=Object.create(null);return e.years=m(t,He),e.months=m(t,Be),e.weeks=m(t,st),e.days=m(t,Ze),e.hours=m(t,Ge),e.minutes=m(t,Ke),e.seconds=m(t,Xe),e.milliseconds=m(t,Qe),e.microseconds=m(t,Je),e.nanoseconds=m(t,ct),e}Jr.prototype.constructor=Dt,Object.defineProperty(Dt,"prototype",{value:Jr.prototype,writable:!1,enumerable:!1,configurable:!1}),Dt.supportedLocalesOf=Qr.supportedLocalesOf,sn(Dt,"Intl.DateTimeFormat");const{format:c0,formatToParts:l0}=Intl.DurationFormat?.prototype??Object.create(null);function Jl(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return c0.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=Jl,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return l0.call(this,e)});class Ya{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Ol(this,Go(e))}get epochMilliseconds(){return _(this,Pe),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,Pe),Fl(f.BigInt(m(this,U)))}add(e){return _(this,Pe),pc("add",this,e)}subtract(e){return _(this,Pe),pc("subtract",this,e)}until(e,n=void 0){return _(this,Pe),uc("until",this,e,n)}since(e,n=void 0){return _(this,Pe),uc("since",this,e,n)}round(e){if(_(this,Pe),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Lt(fa(m(this,U),r,i,o))}equals(e){_(this,Pe);const n=kr(e),r=m(this,U),o=m(n,U);return f.equal(f.BigInt(r),f.BigInt(o))}toString(e=void 0){_(this,Pe);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let a=n.timeZone;a!==void 0&&(a=nt(a));const{precision:s,unit:c,increment:l}=so(i,r);return tc(Lt(fa(m(this,U),l,c,o)),a,s)}toJSON(){return _(this,Pe),tc(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Pe),new Dt(e,n).format(this)}valueOf(){_n("Instant")}toZonedDateTimeISO(e){_(this,Pe);const n=nt(e);return Ye(m(this,U),n,"iso8601")}static fromEpochMilliseconds(e){return Lt(Yt(hi(e)))}static fromEpochNanoseconds(e){return Lt(Go(e))}static from(e){return kr(e)}static compare(e,n){const r=kr(e),o=kr(n),i=m(r,U),a=m(o,U);return f.lessThan(i,a)?-1:f.greaterThan(i,a)?1:0}}sn(Ya,"Temporal.Instant");class za{constructor(e,n,r,o="iso8601"){const i=V(e),a=V(n),s=V(r),c=it(o===void 0?"iso8601":$e(o));An(i,a,s),El(this,{year:i,month:a,day:s},c)}get calendarId(){return _(this,_e),m(this,M)}get era(){return Ve(this,"era")}get eraYear(){return Ve(this,"eraYear")}get year(){return Ve(this,"year")}get month(){return Ve(this,"month")}get monthCode(){return Ve(this,"monthCode")}get day(){return Ve(this,"day")}get dayOfWeek(){return Ve(this,"dayOfWeek")}get dayOfYear(){return Ve(this,"dayOfYear")}get weekOfYear(){return Ve(this,"weekOfYear")?.week}get yearOfWeek(){return Ve(this,"weekOfYear")?.year}get daysInWeek(){return Ve(this,"daysInWeek")}get daysInMonth(){return Ve(this,"daysInMonth")}get daysInYear(){return Ve(this,"daysInYear")}get monthsInYear(){return Ve(this,"monthsInYear")}get inLeapYear(){return Ve(this,"inLeapYear")}with(e,n=void 0){if(_(this,_e),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F));return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),tt(vn(r,o,re(N(n))),r)}withCalendar(e){_(this,_e);const n=fo(e);return tt(m(this,F),n)}add(e,n=void 0){return _(this,_e),bc("add",this,e,n)}subtract(e,n=void 0){return _(this,_e),bc("subtract",this,e,n)}until(e,n=void 0){return _(this,_e),dc("until",this,e,n)}since(e,n=void 0){return _(this,_e),dc("since",this,e,n)}equals(e){_(this,_e);const n=$r(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,_e),nc(this,io(N(e)))}toJSON(){return _(this,_e),nc(this)}toLocaleString(e=void 0,n=void 0){return _(this,_e),new Dt(e,n).format(this)}valueOf(){_n("PlainDate")}toPlainDateTime(e=void 0){_(this,_e);const n=wl(e);return Tt(ie(m(this,F),n),m(this,M))}toZonedDateTime(e){let n,r;if(_(this,_e),Ce(e)){const a=e.timeZone;a===void 0?n=nt(e):(n=nt(a),r=e.plainTime)}else n=nt(e);const o=m(this,F);let i;return r===void 0?i=ln(n,o):(r=fn(r),i=Ue(n,ie(o,m(r,Te)),"compatible")),Ye(i,n,m(this,M))}toPlainYearMonth(){_(this,_e);const e=m(this,M);return nr(Br(e,rt(e,m(this,F)),"constrain"),e)}toPlainMonthDay(){_(this,_e);const e=m(this,M);return er(Wo(e,rt(e,m(this,F)),"constrain"),e)}static from(e,n=void 0){return $r(e,n)}static compare(e,n){const r=$r(e),o=$r(n);return Vt(m(r,F),m(o,F))}}function Ve(t,e){_(t,_e);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(za,"Temporal.PlainDate");class Ua{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=V(e),h=V(n),y=V(r),p=o===void 0?0:V(o),g=i===void 0?0:V(i),v=a===void 0?0:V(a),w=s===void 0?0:V(s),D=c===void 0?0:V(c),O=l===void 0?0:V(l),C=it(u===void 0?"iso8601":$e(u));ka(d,h,y,p,g,v,w,D,O),_l(this,{isoDate:{year:d,month:h,day:y},time:{hour:p,minute:g,second:v,millisecond:w,microsecond:D,nanosecond:O}},C)}get calendarId(){return _(this,ye),m(this,M)}get year(){return We(this,"year")}get month(){return We(this,"month")}get monthCode(){return We(this,"monthCode")}get day(){return We(this,"day")}get hour(){return Gn(this,"hour")}get minute(){return Gn(this,"minute")}get second(){return Gn(this,"second")}get millisecond(){return Gn(this,"millisecond")}get microsecond(){return Gn(this,"microsecond")}get nanosecond(){return Gn(this,"nanosecond")}get era(){return We(this,"era")}get eraYear(){return We(this,"eraYear")}get dayOfWeek(){return We(this,"dayOfWeek")}get dayOfYear(){return We(this,"dayOfYear")}get weekOfYear(){return We(this,"weekOfYear")?.week}get yearOfWeek(){return We(this,"weekOfYear")?.year}get daysInWeek(){return We(this,"daysInWeek")}get daysInYear(){return We(this,"daysInYear")}get daysInMonth(){return We(this,"daysInMonth")}get monthsInYear(){return We(this,"monthsInYear")}get inLeapYear(){return We(this,"inLeapYear")}with(e,n=void 0){if(_(this,ye),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M),o=m(this,be);let i={...rt(r,o.isoDate),...o.time};return i=kn(r,i,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),Tt(lo(r,i,re(N(n))),r)}withPlainTime(e=void 0){_(this,ye);const n=wl(e);return Tt(ie(m(this,be).isoDate,n),m(this,M))}withCalendar(e){_(this,ye);const n=fo(e);return Tt(m(this,be),n)}add(e,n=void 0){return _(this,ye),vc("add",this,e,n)}subtract(e,n=void 0){return _(this,ye),vc("subtract",this,e,n)}until(e,n=void 0){return _(this,ye),fc("until",this,e,n)}since(e,n=void 0){return _(this,ye),fc("since",this,e,n)}round(e){if(_(this,ye),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];gr(r,a,a===1);const s=m(this,be);return Tt(r===1&&i==="nanosecond"?s:ha(s,r,i,o),m(this,M))}equals(e){_(this,ye);const n=Rr(e);return ur(m(this,be),m(n,be))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,ye);const n=N(e),r=io(n),o=ao(n),i=kt(n,"trunc"),a=ut(n,"smallestUnit","time",void 0);if(a==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:s,unit:c,increment:l}=so(a,o),u=ha(m(this,be),l,c,i);return In(u),Gr(u,m(this,M),s,r)}toJSON(){return _(this,ye),Gr(m(this,be),m(this,M),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,ye),new Dt(e,n).format(this)}valueOf(){_n("PlainDateTime")}toZonedDateTime(e,n=void 0){_(this,ye);const r=nt(e),o=Ur(N(n));return Ye(Ue(r,m(this,be),o),r,m(this,M))}toPlainDate(){return _(this,ye),tt(m(this,be).isoDate,m(this,M))}toPlainTime(){return _(this,ye),Xt(m(this,be).time)}static from(e,n=void 0){return Rr(e,n)}static compare(e,n){const r=Rr(e),o=Rr(n);return ur(m(r,be),m(o,be))}}function We(t,e){_(t,ye);const n=m(t,be).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Gn(t,e){return _(t,ye),m(t,be).time[e]}sn(Ua,"Temporal.PlainDateTime");class fr{constructor(e=0,n=0,r=0,o=0,i=0,a=0,s=0,c=0,l=0,u=0){const d=e===void 0?0:Rt(e),h=n===void 0?0:Rt(n),y=r===void 0?0:Rt(r),p=o===void 0?0:Rt(o),g=i===void 0?0:Rt(i),v=a===void 0?0:Rt(a),w=s===void 0?0:Rt(s),D=c===void 0?0:Rt(c),O=l===void 0?0:Rt(l),C=u===void 0?0:Rt(u);wi(d,h,y,p,g,v,w,D,O,C),an(this),K(this,He,d),K(this,Be,h),K(this,st,y),K(this,Ze,p),K(this,Ge,g),K(this,Ke,v),K(this,Xe,w),K(this,Qe,D),K(this,Je,O),K(this,ct,C)}get years(){return _(this,Ee),m(this,He)}get months(){return _(this,Ee),m(this,Be)}get weeks(){return _(this,Ee),m(this,st)}get days(){return _(this,Ee),m(this,Ze)}get hours(){return _(this,Ee),m(this,Ge)}get minutes(){return _(this,Ee),m(this,Ke)}get seconds(){return _(this,Ee),m(this,Xe)}get milliseconds(){return _(this,Ee),m(this,Qe)}get microseconds(){return _(this,Ee),m(this,Je)}get nanoseconds(){return _(this,Ee),m(this,ct)}get sign(){return _(this,Ee),Bo(this)}get blank(){return _(this,Ee),Bo(this)===0}with(e){_(this,Ee);const n=vl(e),{years:r=m(this,He),months:o=m(this,Be),weeks:i=m(this,st),days:a=m(this,Ze),hours:s=m(this,Ge),minutes:c=m(this,Ke),seconds:l=m(this,Xe),milliseconds:u=m(this,Qe),microseconds:d=m(this,Je),nanoseconds:h=m(this,ct)}=n;return new fr(r,o,i,a,s,c,l,u,d,h)}negated(){return _(this,Ee),ft(this)}abs(){return _(this,Ee),new fr(Math.abs(m(this,He)),Math.abs(m(this,Be)),Math.abs(m(this,st)),Math.abs(m(this,Ze)),Math.abs(m(this,Ge)),Math.abs(m(this,Ke)),Math.abs(m(this,Xe)),Math.abs(m(this,Qe)),Math.abs(m(this,Je)),Math.abs(m(this,ct)))}add(e){return _(this,Ee),yc("add",this,e)}subtract(e){return _(this,Ee),yc("subtract",this,e)}round(e){if(_(this,Ee),e===void 0)throw new TypeError("options parameter is required");const n=Gt(this),r=typeof e=="string"?Nn("smallestUnit",e):N(e);let o=ut(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Wi(r);const s=mr(r),c=kt(r,"halfExpand");let l=ut(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Jt(n,l);let h=!0;if(o||(h=!1,o=d),o==="auto"&&(o=d),!u&&!h)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Jt(o,l)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${l}`);const y={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[l];if(y!==void 0&&gr(s,y,!1),s>1&&Kt(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Qn(this);const v=m(a,ce),w=m(a,M),D=m(a,U);return g=Ul(D,Pr(D,v,w,g),v,w,o,s,l,c),Kt(o)==="date"&&(o="hour"),Ct(g,o)}if(i){let g=jt(this);const v=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),w=m(i,F),D=m(i,M),O=bt(D,w,ze(g.date,v.deltaDays),"constrain");return g=zl(ie(w,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(O,v),D,o,s,l,c),Ct(g,o)}if(Pt(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(Pt(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let p=jt(this);if(l==="day"){const{quotient:g,remainder:v}=p.time.divmod(Uo);let w=p.date.days+g+Fr(v,"day");w=hn(w,s,c),p=en({years:0,months:0,weeks:0,days:w},Q.ZERO)}else p=en({years:0,months:0,weeks:0,days:0},Zo(p.time,s,l,c));return Ct(p,o)}total(e){if(_(this,Ee),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?Nn("unit",e):N(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Wi(n);const i=ut(n,"unit","datetime",on);if(o){const s=Qn(this),c=m(o,ce),l=m(o,M),u=m(o,U);return(function(d,h,y,p,g){return Kt(g)==="time"?Fr(Q.fromEpochNsDiff(h,d),g):lc(jl(d,h,y,p,g),h,St(y,d),y,p,g)})(u,Pr(u,c,l,s),c,l,i)}if(r){const s=jt(this);let c=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=m(r,F),u=m(r,M),d=bt(u,l,ze(s.date,c.deltaDays),"constrain");return(function(h,y,p,g){if(ur(h,y)==0)return 0;In(h),In(y);const v=Ll(h,y,p,g);return g==="nanosecond"?f.toNumber(v.time.totalNs):lc(v,Le(y),h,null,p,g)})(ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(d,c),u,i)}const a=Gt(this);if(Pt(a))throw new RangeError(`a starting point is required for ${a}s total`);if(Pt(i))throw new RangeError(`a starting point is required for ${i}s total`);return Fr(jt(this).time,i)}toString(e=void 0){_(this,Ee);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');const{precision:a,unit:s,increment:c}=so(i,r);if(s==="nanosecond"&&c===1)return Mo(this,a);const l=Gt(this);let u=Qn(this);const d=Zo(u.time,c,s,o);return u=en(u.date,d),Mo(Ct(u,Jt(l,"second")),a)}toJSON(){return _(this,Ee),Mo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(_(this,Ee),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return Jl.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),Mo(this,"auto")}valueOf(){_n("Duration")}static from(e){return Ot(e)}static compare(e,n,r=void 0){const o=Ot(e),i=Ot(n),a=N(r),{plainRelativeTo:s,zonedRelativeTo:c}=Wi(a);if(m(o,He)===m(i,He)&&m(o,Be)===m(i,Be)&&m(o,st)===m(i,st)&&m(o,Ze)===m(i,Ze)&&m(o,Ge)===m(i,Ge)&&m(o,Ke)===m(i,Ke)&&m(o,Xe)===m(i,Xe)&&m(o,Qe)===m(i,Qe)&&m(o,Je)===m(i,Je)&&m(o,ct)===m(i,ct))return 0;const l=Gt(o),u=Gt(i),d=Qn(o),h=Qn(i);if(c&&(Kt(l)==="date"||Kt(u)==="date")){const w=m(c,ce),D=m(c,M),O=m(c,U),C=Pr(O,w,D,d),E=Pr(O,w,D,h);return lt(f.toNumber(f.subtract(C,E)))}let y=d.date.days,p=h.date.days;if(Pt(l)||Pt(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=cc(d.date,s),p=cc(h.date,s)}const g=d.time.add24HourDays(y),v=h.time.add24HourDays(p);return g.cmp(v)}}sn(fr,"Temporal.Duration");class Fa{constructor(e,n,r="iso8601",o=1972){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(c,i,a),Tl(this,{year:c,month:i,day:a},s)}get monthCode(){return Cc(this,"monthCode")}get day(){return Cc(this,"day")}get calendarId(){return _(this,mt),m(this,M)}with(e,n=void 0){if(_(this,mt),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"month-day");return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),er(Wo(r,o,re(N(n))),r)}equals(e){_(this,mt);const n=Js(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,mt),oc(this,io(N(e)))}toJSON(){return _(this,mt),oc(this)}toLocaleString(e=void 0,n=void 0){return _(this,mt),new Dt(e,n).format(this)}valueOf(){_n("PlainMonthDay")}toPlainDate(e){if(_(this,mt),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"month-day"),wt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return Js(e,n)}}function Cc(t,e){_(t,mt);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}function Hi(t){return St(t,ya())}sn(Fa,"Temporal.PlainMonthDay");const eu={instant:()=>Lt(ya()),plainDateTimeISO:(t=Cr())=>Tt(Hi(nt(t)),"iso8601"),plainDateISO:(t=Cr())=>tt(Hi(nt(t)).isoDate,"iso8601"),plainTimeISO:(t=Cr())=>Xt(Hi(nt(t)).time),timeZoneId:()=>Cr(),zonedDateTimeISO:(t=Cr())=>{const e=nt(t);return Ye(ya(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(eu,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class bo{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:V(e),c=n===void 0?0:V(n),l=r===void 0?0:V(r),u=o===void 0?0:V(o),d=i===void 0?0:V(i),h=a===void 0?0:V(a);vi(s,c,l,u,d,h),Cl(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h})}get hour(){return _(this,Se),m(this,Te).hour}get minute(){return _(this,Se),m(this,Te).minute}get second(){return _(this,Se),m(this,Te).second}get millisecond(){return _(this,Se),m(this,Te).millisecond}get microsecond(){return _(this,Se),m(this,Te).microsecond}get nanosecond(){return _(this,Se),m(this,Te).nanosecond}with(e,n=void 0){if(_(this,Se),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=aa(e,"partial"),o=aa(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=re(N(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=yi(i,a,s,c,l,u,d),new bo(i,a,s,c,l,u)}add(e){return _(this,Se),wc("add",this,e)}subtract(e){return _(this,Se),wc("subtract",this,e)}until(e,n=void 0){return _(this,Se),hc("until",this,e,n)}since(e,n=void 0){return _(this,Se),hc("since",this,e,n)}round(e){if(_(this,Se),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Xt(ma(m(this,Te),r,i,o))}equals(e){_(this,Se);const n=fn(e);return ga(m(this,Te),m(n,Te))===0}toString(e=void 0){_(this,Se);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:a,unit:s,increment:c}=so(i,r);return rc(ma(m(this,Te),c,s,o),a)}toJSON(){return _(this,Se),rc(m(this,Te),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Se),new Dt(e,n).format(this)}valueOf(){_n("PlainTime")}static from(e,n=void 0){return fn(e,n)}static compare(e,n){const r=fn(e),o=fn(n);return ga(m(r,Te),m(o,Te))}}sn(bo,"Temporal.PlainTime");class Va{constructor(e,n,r="iso8601",o=1){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(i,a,c),Dl(this,{year:i,month:a,day:c},s)}get year(){return Ht(this,"year")}get month(){return Ht(this,"month")}get monthCode(){return Ht(this,"monthCode")}get calendarId(){return _(this,Ne),m(this,M)}get era(){return Ht(this,"era")}get eraYear(){return Ht(this,"eraYear")}get daysInMonth(){return Ht(this,"daysInMonth")}get daysInYear(){return Ht(this,"daysInYear")}get monthsInYear(){return Ht(this,"monthsInYear")}get inLeapYear(){return Ht(this,"inLeapYear")}with(e,n=void 0){if(_(this,Ne),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"year-month");return o=kn(r,o,wt(r,e,["year","month","monthCode"],[],"partial")),nr(Br(r,o,re(N(n))),r)}add(e,n=void 0){return _(this,Ne),Ec("add",this,e,n)}subtract(e,n=void 0){return _(this,Ne),Ec("subtract",this,e,n)}until(e,n=void 0){return _(this,Ne),mc("until",this,e,n)}since(e,n=void 0){return _(this,Ne),mc("since",this,e,n)}equals(e){_(this,Ne);const n=Ar(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,Ne),ic(this,io(N(e)))}toJSON(){return _(this,Ne),ic(this)}toLocaleString(e=void 0,n=void 0){return _(this,Ne),new Dt(e,n).format(this)}valueOf(){_n("PlainYearMonth")}toPlainDate(e){if(_(this,Ne),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"year-month"),wt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Ar(e,n)}static compare(e,n){const r=Ar(e),o=Ar(n);return Vt(m(r,F),m(o,F))}}function Ht(t,e){_(t,Ne);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(Va,"Temporal.PlainYearMonth");const u0=Dt.prototype.resolvedOptions;class Wa{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=Go(e);let i=$e(n);const{tzName:a,offsetMinutes:s}=mn(i);if(s===void 0){const c=qo(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=xa(s);Sl(this,o,i,it(r===void 0?"iso8601":$e(r)))}get calendarId(){return _(this,X),m(this,M)}get timeZoneId(){return _(this,X),m(this,ce)}get year(){return qe(this,"year")}get month(){return qe(this,"month")}get monthCode(){return qe(this,"monthCode")}get day(){return qe(this,"day")}get hour(){return Kn(this,"hour")}get minute(){return Kn(this,"minute")}get second(){return Kn(this,"second")}get millisecond(){return Kn(this,"millisecond")}get microsecond(){return Kn(this,"microsecond")}get nanosecond(){return Kn(this,"nanosecond")}get era(){return qe(this,"era")}get eraYear(){return qe(this,"eraYear")}get epochMilliseconds(){return _(this,X),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,X),Fl(m(this,U))}get dayOfWeek(){return qe(this,"dayOfWeek")}get dayOfYear(){return qe(this,"dayOfYear")}get weekOfYear(){return qe(this,"weekOfYear")?.week}get yearOfWeek(){return qe(this,"weekOfYear")?.year}get hoursInDay(){_(this,X);const e=m(this,ce),n=It(this).isoDate,r=dt(n.year,n.month,n.day+1),o=ln(e,n),i=ln(e,r);return Fr(Q.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return qe(this,"daysInWeek")}get daysInMonth(){return qe(this,"daysInMonth")}get daysInYear(){return qe(this,"daysInYear")}get monthsInYear(){return qe(this,"monthsInYear")}get inLeapYear(){return qe(this,"inLeapYear")}get offset(){return _(this,X),sa(Qt(m(this,ce),m(this,U)))}get offsetNanoseconds(){return _(this,X),Qt(m(this,ce),m(this,U))}with(e,n=void 0){if(_(this,X),!Ce(e))throw new TypeError("invalid zoned-date-time-like");hr(e);const r=m(this,M),o=m(this,ce),i=Qt(o,m(this,U)),a=It(this);let s={...rt(r,a.isoDate),...a.time,offset:sa(i)};s=kn(r,s,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=N(n),l=Ur(c),u=ko(c,"prefer"),d=lo(r,s,re(c)),h=yr(s.offset);return Ye(Vo(d.isoDate,d.time,"option",h,o,l,u,!1),o,r)}withPlainTime(e=void 0){_(this,X);const n=m(this,ce),r=m(this,M),o=It(this).isoDate;let i;return i=e===void 0?ln(n,o):Ue(n,ie(o,m(fn(e),Te)),"compatible"),Ye(i,n,r)}withTimeZone(e){_(this,X);const n=nt(e);return Ye(m(this,U),n,m(this,M))}withCalendar(e){_(this,X);const n=fo(e);return Ye(m(this,U),m(this,ce),n)}add(e,n=void 0){return _(this,X),_c("add",this,e,n)}subtract(e,n=void 0){return _(this,X),_c("subtract",this,e,n)}until(e,n=void 0){return _(this,X),gc("until",this,e,n)}since(e,n=void 0){return _(this,X),gc("since",this,e,n)}round(e){if(_(this,X),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(gr(r,a,a===1),i==="nanosecond"&&r===1)return Ye(m(this,U),m(this,ce),m(this,M));const s=m(this,ce),c=m(this,U),l=It(this);let u;if(i==="day"){const d=l.isoDate,h=dt(d.year,d.month,d.day+1),y=ln(s,d),p=ln(s,h),g=f.subtract(p,y);u=Q.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=ha(l,r,i,o),h=Qt(s,c);u=Vo(d.isoDate,d.time,"option",h,s,"compatible","prefer",!1)}return Ye(u,s,m(this,M))}equals(e){_(this,X);const n=Ir(e),r=m(this,U),o=m(n,U);return!!f.equal(f.BigInt(r),f.BigInt(o))&&!!Ml(m(this,ce),m(n,ce))&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,X);const n=N(e),r=io(n),o=ao(n),i=(function(h){return tn(h,"offset",["auto","never"],"auto")})(n),a=kt(n,"trunc"),s=ut(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(h){return tn(h,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=so(s,o);return ac(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){_(this,X);const r=N(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const h=Reflect.ownKeys(l);for(let y=0;y<h.length;y++){const p=h[y];if(!u.some((g=>Object.is(g,p)))&&Object.prototype.propertyIsEnumerable.call(l,p)){const g=l[p];c[p]=g}}})(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=m(this,ce),sc(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new Dt(e,o),a=u0.call(i).calendar,s=m(this,M);if(s!=="iso8601"&&a!=="iso8601"&&!Ut(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Lt(m(this,U)))}toJSON(){return _(this,X),ac(this,"auto")}valueOf(){_n("ZonedDateTime")}startOfDay(){_(this,X);const e=m(this,ce);return Ye(ln(e,It(this).isoDate),e,m(this,M))}getTimeZoneTransition(e){_(this,X);const n=m(this,ce);if(e===void 0)throw new TypeError("options parameter is required");const r=tn(typeof e=="string"?Nn("direction",e):N(e),"direction",["next","previous"],on);if(r===void 0)throw new TypeError("direction option is required");if(sc(n)||n==="UTC")return null;const o=m(this,U),i=r==="next"?Ra(n,o):la(n,o);return i===null?null:Ye(i,n,m(this,M))}toInstant(){return _(this,X),Lt(m(this,U))}toPlainDate(){return _(this,X),tt(It(this).isoDate,m(this,M))}toPlainTime(){return _(this,X),Xt(It(this).time)}toPlainDateTime(){return _(this,X),Tt(It(this),m(this,M))}static from(e,n=void 0){return Ir(e,n)}static compare(e,n){const r=Ir(e),o=Ir(n),i=m(r,U),a=m(o,U);return f.lessThan(f.BigInt(i),f.BigInt(a))?-1:f.greaterThan(f.BigInt(i),f.BigInt(a))?1:0}}function It(t){return St(m(t,ce),m(t,U))}function qe(t,e){_(t,X);const n=It(t).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Kn(t,e){return _(t,X),It(t).time[e]}sn(Wa,"Temporal.ZonedDateTime");var Ae=Object.freeze({__proto__:null,Duration:fr,Instant:Ya,Now:eu,PlainDate:za,PlainDateTime:Ua,PlainMonthDay:Fa,PlainTime:bo,PlainYearMonth:Va,ZonedDateTime:Wa});const d0=[Ya,za,Ua,fr,Fa,bo,Va,Wa];for(const t of d0){const e=Object.getOwnPropertyDescriptor(t,"prototype");(e.configurable||e.enumerable||e.writable)&&(e.configurable=!1,e.enumerable=!1,e.writable=!1,Object.defineProperty(t,"prototype",e))}var vo=(t=>(t.SYSTEM_TIME_ZONE="America/New_York",t.SYSTEM_LOCALE="en-US",t.SYSTEM_DATE_FORMAT="MM/dd/yyyy",t.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",t.ISO_DATE_FORMAT="yyyy-MM-dd",t[t.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",t))(vo||{});const Ci={month:"2-digit",day:"2-digit",year:"numeric"},tu={...Ci,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},f0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,tu):"",h0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",m0=t=>t?Ae.PlainDate.from(t).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",nu=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString():"",g0=t=>t?nu(t):"",y0=t=>{if(!t)return null;const e=Ae.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},p0=t=>{if(!t)return;const e=Ae.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString())},b0=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Ae.Instant.from(e):Ae.Instant.fromEpochMilliseconds(e.getTime());return Ae.Instant.compare(n,r)>0};function v0(t){if(typeof t=="string")return Number.parseInt(t,10)}const w0=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),E0=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),_0=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),T0=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function C0(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const D0=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=hh;exports.CancelButton=Xf;exports.CenteredCircularProgress=ph;exports.ConfirmDialog=bh;exports.DeleteButton=Jf;exports.DismissibleAlert=vh;exports.EditIconButton=th;exports.ExcelButton=nh;exports.GoBackButton=oh;exports.HistoryButton=ah;exports.LoadingSuccessButton=lh;exports.ManageButton=dh;exports.NextLink=Gh;exports.OpenInNewIconLink=Xh;exports.QuerySnackBar=mh;exports.ReactIf=Qh;exports.RouterLink=em;exports.SuccessButton=fh;exports.SystemConfig=vo;exports.TEMPORAL_DATE_FORMAT=Ci;exports.TEMPORAL_DATE_TIME_FORMAT=tu;exports.TabPanel=nm;exports.TablePaginationActions=tm;exports.ToastContainer=yh;exports.a11yProps=rm;exports.formatIsoToAppDate=m0;exports.formatOldDateToIsoDate=g0;exports.formatOldDateToIsoString=nu;exports.formatToAppDate=h0;exports.formatToAppDateTime=f0;exports.formatUnixTimeToOldDate=p0;exports.getCssVariable=im;exports.initializeState=w0;exports.isAfter=b0;exports.isBlankOrEmpty=C0;exports.isEncoded=D0;exports.markError=T0;exports.markLoading=E0;exports.markSuccess=_0;exports.parseBoolean=om;exports.parseIsoDate=y0;exports.parseNumber=v0;exports.toast=gh;
32
+ export default theme;`}function rs(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const Nd=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let n=0;for(let r=0;r<e.length;r+=1)n+=+e[r];return n};function jd(t){Object.assign(t,{alpha(e,n){const r=this||t;return r.colorSpace?`oklch(from ${e} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:nc(e,Nd(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${rs(n)})`:Xo(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${rs(n)})`:Ko(e,n)}})}function ki(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":dn(20));const d=oa({...i,colorSpace:l}),m=ta(t);let y=ht(m,{mixins:_d(m.breakpoints,r),palette:d,shadows:$d.slice(),typography:Dd(d,s),transitions:Ad(a),zIndex:{...Id}});if(y=ht(y,u),y=e.reduce((b,g)=>ht(b,g),y),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(w,v)=>{let D;for(D in w){const M=w[D];if(b.includes(D)&&Object.keys(M).length>0){if(process.env.NODE_ENV!=="production"){const C=na("",D);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${D}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:M}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
+ `))}w[D]={}}}};Object.keys(y.components).forEach(w=>{const v=y.components[w].styleOverrides;v&&w.startsWith("Mui")&&g(v,w)})}return y.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},y.unstable_sx=function(g){return Xn({sx:g,theme:this})},y.toRuntimeSource=ac,jd(y),y}function Ld(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Yd=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=Ld(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sc(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function cc(t){return t==="dark"?Yd:[]}function zd(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=t,a=oa({...e,colorSpace:o});return{palette:a,opacity:{...sc(a.mode),...n},overlays:r||cc(a.mode),...i}}function Ud(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Fd=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],qd=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const a={};return Fd(t.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",e)]:a,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function Wd(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function _(t,e,n){!t[e]&&n&&(t[e]=n)}function br(t){return typeof t!="string"||!t.startsWith("hsl")?t:tc(t)}function Ft(t,e){`${e}Channel`in t||(t[`${e}Channel`]=pr(br(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
34
+ To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Vd(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ot=t=>{try{return t()}catch{}},Hd=(t="mui")=>ld(t);function Ti(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=zd({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=ki({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...sc(i),...n?.opacity},overlays:n?.overlays||cc(i)},s}function Zd(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ud,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],m=r||(n.light&&d!=="light"?"light":d),y=Hd(i),{[m]:b,light:g,dark:w,...v}=n,D={...v};let M=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:dn(21,m));let C;a&&(C="oklch");const T=Ti(C,D,M,u,m);g&&!D.light&&Ti(C,D,g,void 0,"light"),w&&!D.dark&&Ti(C,D,w,void 0,"dark");let k={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...Td(T.typography),...T.font},spacing:Vd(u.spacing)};Object.keys(k.colorSchemes).forEach(q=>{const p=k.colorSchemes[q].palette,R=j=>{const H=j.split("-"),pe=H[1],ct=H[2];return y(j,p[pe][ct])};p.mode==="light"&&(_(p.common,"background","#fff"),_(p.common,"onBackground","#000")),p.mode==="dark"&&(_(p.common,"background","#000"),_(p.common,"onBackground","#fff"));function O(j,H,pe){if(C){let ct;return j===wn&&(ct=`transparent ${((1-pe)*100).toFixed(0)}%`),j===de&&(ct=`#000 ${(pe*100).toFixed(0)}%`),j===he&&(ct=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${H}, ${ct})`}return j(H,pe)}if(Wd(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){_(p.Alert,"errorColor",O(de,p.error.light,.6)),_(p.Alert,"infoColor",O(de,p.info.light,.6)),_(p.Alert,"successColor",O(de,p.success.light,.6)),_(p.Alert,"warningColor",O(de,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-main")),_(p.Alert,"infoFilledBg",R("palette-info-main")),_(p.Alert,"successFilledBg",R("palette-success-main")),_(p.Alert,"warningFilledBg",R("palette-warning-main")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.main))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.main))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.main))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.main))),_(p.Alert,"errorStandardBg",O(he,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(he,p.info.light,.9)),_(p.Alert,"successStandardBg",O(he,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(he,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-100")),_(p.Avatar,"defaultBg",R("palette-grey-400")),_(p.Button,"inheritContainedBg",R("palette-grey-300")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-A100")),_(p.Chip,"defaultBorder",R("palette-grey-400")),_(p.Chip,"defaultAvatarColor",R("palette-grey-700")),_(p.Chip,"defaultIconColor",R("palette-grey-700")),_(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(p.LinearProgress,"primaryBg",O(he,p.primary.main,.62)),_(p.LinearProgress,"secondaryBg",O(he,p.secondary.main,.62)),_(p.LinearProgress,"errorBg",O(he,p.error.main,.62)),_(p.LinearProgress,"infoBg",O(he,p.info.main,.62)),_(p.LinearProgress,"successBg",O(he,p.success.main,.62)),_(p.LinearProgress,"warningBg",O(he,p.warning.main,.62)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),_(p.Slider,"primaryTrack",O(he,p.primary.main,.62)),_(p.Slider,"secondaryTrack",O(he,p.secondary.main,.62)),_(p.Slider,"errorTrack",O(he,p.error.main,.62)),_(p.Slider,"infoTrack",O(he,p.info.main,.62)),_(p.Slider,"successTrack",O(he,p.success.main,.62)),_(p.Slider,"warningTrack",O(he,p.warning.main,.62));const j=C?O(de,p.background.default,.6825):go(p.background.default,.8);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?Si.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-400")),_(p.StepContent,"border",R("palette-grey-400")),_(p.Switch,"defaultColor",R("palette-common-white")),_(p.Switch,"defaultDisabledColor",R("palette-grey-100")),_(p.Switch,"primaryDisabledColor",O(he,p.primary.main,.62)),_(p.Switch,"secondaryDisabledColor",O(he,p.secondary.main,.62)),_(p.Switch,"errorDisabledColor",O(he,p.error.main,.62)),_(p.Switch,"infoDisabledColor",O(he,p.info.main,.62)),_(p.Switch,"successDisabledColor",O(he,p.success.main,.62)),_(p.Switch,"warningDisabledColor",O(he,p.warning.main,.62)),_(p.TableCell,"border",O(he,O(wn,p.divider,1),.88)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}if(p.mode==="dark"){_(p.Alert,"errorColor",O(he,p.error.light,.6)),_(p.Alert,"infoColor",O(he,p.info.light,.6)),_(p.Alert,"successColor",O(he,p.success.light,.6)),_(p.Alert,"warningColor",O(he,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-dark")),_(p.Alert,"infoFilledBg",R("palette-info-dark")),_(p.Alert,"successFilledBg",R("palette-success-dark")),_(p.Alert,"warningFilledBg",R("palette-warning-dark")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.dark))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.dark))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.dark))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.dark))),_(p.Alert,"errorStandardBg",O(de,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(de,p.info.light,.9)),_(p.Alert,"successStandardBg",O(de,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(de,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-900")),_(p.AppBar,"darkBg",R("palette-background-paper")),_(p.AppBar,"darkColor",R("palette-text-primary")),_(p.Avatar,"defaultBg",R("palette-grey-600")),_(p.Button,"inheritContainedBg",R("palette-grey-800")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-700")),_(p.Chip,"defaultBorder",R("palette-grey-700")),_(p.Chip,"defaultAvatarColor",R("palette-grey-300")),_(p.Chip,"defaultIconColor",R("palette-grey-300")),_(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(p.LinearProgress,"primaryBg",O(de,p.primary.main,.5)),_(p.LinearProgress,"secondaryBg",O(de,p.secondary.main,.5)),_(p.LinearProgress,"errorBg",O(de,p.error.main,.5)),_(p.LinearProgress,"infoBg",O(de,p.info.main,.5)),_(p.LinearProgress,"successBg",O(de,p.success.main,.5)),_(p.LinearProgress,"warningBg",O(de,p.warning.main,.5)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),_(p.Slider,"primaryTrack",O(de,p.primary.main,.5)),_(p.Slider,"secondaryTrack",O(de,p.secondary.main,.5)),_(p.Slider,"errorTrack",O(de,p.error.main,.5)),_(p.Slider,"infoTrack",O(de,p.info.main,.5)),_(p.Slider,"successTrack",O(de,p.success.main,.5)),_(p.Slider,"warningTrack",O(de,p.warning.main,.5));const j=C?O(he,p.background.default,.985):go(p.background.default,.98);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?oc.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-600")),_(p.StepContent,"border",R("palette-grey-600")),_(p.Switch,"defaultColor",R("palette-grey-300")),_(p.Switch,"defaultDisabledColor",R("palette-grey-600")),_(p.Switch,"primaryDisabledColor",O(de,p.primary.main,.55)),_(p.Switch,"secondaryDisabledColor",O(de,p.secondary.main,.55)),_(p.Switch,"errorDisabledColor",O(de,p.error.main,.55)),_(p.Switch,"infoDisabledColor",O(de,p.info.main,.55)),_(p.Switch,"successDisabledColor",O(de,p.success.main,.55)),_(p.Switch,"warningDisabledColor",O(de,p.warning.main,.55)),_(p.TableCell,"border",O(de,O(wn,p.divider,1),.68)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}Ft(p.background,"default"),Ft(p.background,"paper"),Ft(p.common,"background"),Ft(p.common,"onBackground"),Ft(p,"divider"),Object.keys(p).forEach(j=>{const H=p[j];j!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&_(p[j],"mainChannel",pr(br(H.main))),H.light&&_(p[j],"lightChannel",pr(br(H.light))),H.dark&&_(p[j],"darkChannel",pr(br(H.dark))),H.contrastText&&_(p[j],"contrastTextChannel",pr(br(H.contrastText))),j==="text"&&(Ft(p[j],"primary"),Ft(p[j],"secondary")),j==="action"&&(H.active&&Ft(p[j],"active"),H.selected&&Ft(p[j],"selected")))})}),k=e.reduce((q,p)=>ht(q,p),k);const F={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:qd(k),enableContrastVars:a},{vars:G,generateThemeVars:N,generateStyleSheets:ae}=hd(k,F);return k.vars=G,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([q,p])=>{k[q]=p}),k.generateThemeVars=N,k.generateStyleSheets=ae,k.generateSpacing=function(){return Ks(u.spacing,Ji(this))},k.getColorSchemeSelector=fd(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},k.unstable_sx=function(p){return Xn({sx:p,theme:this})},k.toRuntimeSource=ac,k}function os(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:oa({...n===!0?{}:n.palette,mode:e})})}function Bd(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=t,s=i||"light",c=o?.[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return ki(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=ki({...t,palette:u},...e);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},os(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},os(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Zd({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const lc=Bd(),uc="$$material";function Gd(){const t=qu(lc);return process.env.NODE_ENV!=="production"&&jt.useDebugValue(t),t[uc]||t}function Kd(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Xd=t=>Kd(t)&&t!=="classes",Qd=Ku({themeId:uc,defaultTheme:lc,rootShouldForwardProp:Xd}),Jd=cd;process.env.NODE_ENV!=="production"&&(ie.node,ie.object.isRequired);function eh(t){return sd(t)}function th(t){return na("MuiSvgIcon",t)}Vu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nh=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Mn(e)}`,`fontSize${Mn(n)}`]};return Rl(o,th,r)},rh=Qd("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Mn(n.color)}`],e[`fontSize${Mn(n.fontSize)}`]]}})(Jd(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Do=jt.forwardRef(function(e,n){const r=eh({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:m="0 0 24 24",...y}=r,b=jt.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:b},w={};u||(w.viewBox=m);const v=nh(g);return S.jsxs(rh,{as:s,className:Hs(v.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...y,...b&&o.props,ownerState:g,children:[b?o.props.children:o,d?S.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Do.propTypes={children:ie.node,classes:ie.object,className:ie.string,color:ie.oneOfType([ie.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ie.string]),component:ie.elementType,fontSize:ie.oneOfType([ie.oneOf(["inherit","large","medium","small"]),ie.string]),htmlColor:ie.string,inheritViewBox:ie.bool,shapeRendering:ie.string,sx:ie.oneOfType([ie.arrayOf(ie.oneOfType([ie.func,ie.object,ie.bool])),ie.func,ie.object]),titleAccess:ie.string,viewBox:ie.string});Do.muiName="SvgIcon";function yt(t,e){function n(r,o){return S.jsx(Do,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Do.muiName,jt.memo(jt.forwardRef(n))}const oh=yt(S.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function ih(t){return S.jsx(U.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??S.jsx(oh,{}),variant:t.variant??"contained",color:t.color??"secondary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Cancel",children:t.children??t.name})}const ah=yt(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function sh(t){return S.jsx(U.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??S.jsx(ah,{}),name:t.name,variant:t.variant??"contained",color:t.color??"error",sx:{m:1},type:t.type??"button",onClick:t.onClick,"aria-label":t.ariaLabel??t.label??"Delete",children:t.label?t.label:"Delete"})}const ch=yt(S.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function lh(t){return S.jsx(U.Tooltip,{title:t.tooltipTitle,children:S.jsx(U.IconButton,{sx:{padding:"0.25rem"},color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:S.jsx(ch,{})})})}function uh(t){return S.jsx(U.Button,{"data-cy":t.dataCy??"excel-button",style:{borderRadius:"20px"},className:t.className,name:t.name,sx:t.sx,startIcon:t.startIcon,variant:"contained",color:"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Export to Excel",children:t.children??t.name})}const dh=yt(S.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function hh(t){const e=Lo.useRouter();return S.jsx(U.Tooltip,{title:"Go Back to Previous Page",children:S.jsxs(U.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>e.history.back(),"aria-label":t.ariaLabel??"Go back to previous page",children:[S.jsx(dh,{}),t.children]})})}const fh=yt(S.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function mh(t){return S.jsx(U.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??S.jsx(fh,{}),variant:t.variant??"contained",color:t.color??"primary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"History",children:t.children??t.name})}const gh=yt(S.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),yh={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function ph(t){return S.jsx(U.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??S.jsx(gh,{}),loading:t.loading,type:t.type??"button",style:yh,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const bh=yt(S.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function wh(t){return S.jsx(U.Button,{name:t.name,"data-cy":t.dataCy??"manage-button",className:t.className,onClick:()=>t.onClick(),variant:t.variant??"contained",color:t.color??"primary",size:t.size??"large",startIcon:t.startIcon??S.jsx(bh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function vh(t){return S.jsx(U.Button,{name:t.name,"data-cy":t.dataCy??"success-button",className:t.className,sx:t.sx,startIcon:t.startIcon,variant:t.variant??"contained",color:t.color??"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const ia=yt(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Eh=t=>{const[e,n]=Rt.useState(!1);Rt.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=S.jsx(U.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ia,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(U.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(U.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),S.jsx(U.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:U.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(U.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},Th=t=>{const[e,n]=Rt.useState(!1);Rt.useEffect(()=>{n(t.open)},[t.open,t]);const r=S.jsx(U.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ia,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(U.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(U.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),S.jsx(U.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:U.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(U.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};let yo={message:"",open:!1,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:"center"},type:"info"};const po=new Set,vo={subscribe(t){return po.add(t),()=>po.delete(t)},getSnapshot(){return yo},show(t,e="info",n=3e3){yo={message:t,type:e,open:!0,autoHideDuration:n,anchorOrigin:{vertical:"bottom",horizontal:"center"}},po.forEach(r=>r())},close(){yo={...yo,open:!1},po.forEach(t=>t())}},_h=(t,e)=>vo.show(t,e),Ch=()=>{const t=Rt.useSyncExternalStore(vo.subscribe,vo.getSnapshot),e=(n,r)=>{r!=="clickaway"&&vo.close()};return S.jsx(U.Snackbar,{open:t.open,autoHideDuration:t.autoHideDuration,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:S.jsx(U.Alert,{severity:t.type,variant:"filled",onClose:e,children:t.message})})};function Dh(){return S.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:S.jsx(U.CircularProgress,{})})}function Mh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return S.jsxs(U.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[S.jsx(U.DialogTitle,{children:n??"Confirm"}),S.jsx(U.DialogContent,{dividers:!0,children:r}),S.jsxs(U.DialogActions,{children:[S.jsx(U.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),S.jsx(U.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function xh(t){const{ariaLabel:e,...n}=t,[r,o]=Rt.useState(!0),[i]=Rt.useState(t.dismissible??!0),[a]=Rt.useState(t.dismissOnTimeOut??!0),[s]=Rt.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),S.jsx("span",{children:r&&S.jsx(U.Alert,{action:i?S.jsx(U.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:S.jsx(ia,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function Oh(t){return S.jsx(U.Link,{component:Lo.Link,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const $h=yt(S.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Sh(t){return S.jsxs(U.Link,{component:Lo.Link,to:t.href,target:t.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel??t.linkText??(typeof t.children=="string"?t.children:void 0),children:[t.linkText??t.children,S.jsx(U.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:$h})]})}function kh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const Rh=t=>{const e=["next-btn-link",t.className].filter(Boolean).join(" ");return S.jsx(U.Link,{...t,className:e,underline:t.underline??"hover"})},Ah=Lo.createLink(Rh),is=yt(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),as=yt(S.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),ss=yt(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),cs=yt(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Ih(t){const e=Gd(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=t,a=u=>{i(u,0)},s=u=>{i(u,r-1)},c=u=>{i(u,r+1)},l=u=>{i(u,Math.max(0,Math.ceil(n/o)-1))};return S.jsxs(U.Box,{sx:{flexShrink:0,ml:2.5},children:[S.jsx(U.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?S.jsx(cs,{}):S.jsx(is,{})}),S.jsx(U.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?S.jsx(ss,{}):S.jsx(as,{})}),S.jsx(U.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?S.jsx(as,{}):S.jsx(ss,{})}),S.jsx(U.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?S.jsx(is,{}):S.jsx(cs,{})})]})}function Ph(t){const{children:e,index:n,...r}=t;return S.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:S.jsx(U.Box,{sx:{p:3},children:S.jsx(U.Typography,{component:"span",children:e})})})}function Nh(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function jh(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function Lh(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class h extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,h.prototype),e>h.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(e){var n=Math.floor,r=Number.isFinite;if(typeof e=="number"){if(e===0)return h.__zero();if(h.__isOneDigitInt(e))return 0>e?h.__oneDigit(-e,!0):h.__oneDigit(e,!1);if(!r(e)||n(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return h.__fromDouble(e)}if(typeof e=="string"){const o=h.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?h.__oneDigit(1,!1):h.__zero();if(typeof e=="object"){if(e.constructor===h)return e;const o=h.__toPrimitive(e);return h.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){const e=["BigInt["];for(const n of this)e.push((n&&(n>>>0).toString(16))+", ");return e.push("]"),e.join("")}toString(e=10){if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(e&e-1)==0?h.__toStringBasePowerOfTwo(this,e):h.__toStringGeneric(this,e,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(e){const n=e.length;if(n===0)return 0;if(n===1){const w=e.__unsignedDigit(0);return e.sign?-w:w}const r=e.__digit(n-1),o=h.__clz30(r),i=30*n-o;if(1024<i)return e.sign?-1/0:1/0;let a=i-1,s=r,c=n-1;const l=o+3;let u=l===32?0:s<<l;u>>>=12;const d=l-12;let m=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,m=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),m|=30<=y?s<<y-30:s>>>30-y,y-=30;const b=h.__decideRounding(e,y,c,s);if((b===1||b===0&&(1&m)==1)&&(m=m+1>>>0,m===0&&(u++,u>>>20!=0&&(u=0,a++,1023<a))))return e.sign?-1/0:1/0;const g=e.sign?-2147483648:0;return a=a+1023<<20,h.__kBitConversionInts[h.__kBitConversionIntHigh]=g|a|u,h.__kBitConversionInts[h.__kBitConversionIntLow]=m,h.__kBitConversionDouble[0]}static unaryMinus(e){if(e.length===0)return e;const n=e.__copy();return n.sign=!e.sign,n}static bitwiseNot(e){return e.sign?h.__absoluteSubOne(e).__trim():h.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return h.__oneDigit(1,!1);if(e.length===0)return e;if(e.length===1&&e.__digit(0)===1)return e.sign&&(1&n.__digit(0))==0?h.unaryMinus(e):e;if(1<n.length)throw new RangeError("BigInt too big");let r=n.__unsignedDigit(0);if(r===1)return e;if(r>=h.__kMaxLengthBits)throw new RangeError("BigInt too big");if(e.length===1&&e.__digit(0)===2){const a=1+(0|r/30),s=e.sign&&(1&r)!=0,c=new h(a,s);c.__initializeDigits();const l=1<<r%30;return c.__setDigit(a-1,l),c}let o=null,i=e;for((1&r)!=0&&(o=e),r>>=1;r!==0;r>>=1)i=h.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=h.multiply(o,i));return o}static multiply(e,n){if(e.length===0)return e;if(n.length===0)return n;let r=e.length+n.length;30<=e.__clzmsd()+n.__clzmsd()&&r--;const o=new h(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)h.__multiplyAccumulate(n,e.__digit(i),o,i);return o.__trim()}static divide(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>h.__absoluteCompare(e,n))return h.__zero();const r=e.sign!==n.sign,o=n.__unsignedDigit(0);let i;if(n.length===1&&32767>=o){if(o===1)return r===e.sign?e:h.unaryMinus(e);i=h.__absoluteDivSmall(e,o,null)}else i=h.__absoluteDivLarge(e,n,!0,!1);return i.sign=r,i.__trim()}static remainder(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>h.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return h.__zero();const i=h.__absoluteModSmall(e,r);return i===0?h.__zero():h.__oneDigit(i,e.sign)}const o=h.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?h.__absoluteAdd(e,n,r):0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r):h.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__rightShiftByAbsolute(e,n):h.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__leftShiftByAbsolute(e,n):h.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>h.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=h.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<h.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=h.__compareToBigInt(e,n)}static equal(e,n){if(e.sign!==n.sign||e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e.__digit(r)!==n.__digit(r))return!1;return!0}static notEqual(e,n){return!h.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=h.__absoluteSubOne(e,o);const a=h.__absoluteSubOne(n);return i=h.__absoluteOr(i,a,i),h.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),h.__absoluteAndNot(e,h.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=h.__absoluteSubOne(e,a),c=h.__absoluteSubOne(n);return h.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteXor(i,e,i),h.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(e,n){var r=Math.max;const o=r(e.length,n.length);if(!e.sign&&!n.sign)return h.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=h.__absoluteSubOne(e,o);const s=h.__absoluteSubOne(n);return a=h.__absoluteAnd(a,s,a),h.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteAndNot(i,e,i),h.__absoluteAddOne(i,!0,i).__trim()}static asIntN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return h.__zero();if(e>=h.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=n.__unsignedDigit(o-1),a=1<<(e-1)%30;if(n.length===o&&i<a)return n;if((i&a)!==a)return h.__truncateToNBits(e,n);if(!n.sign)return h.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return h.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:h.__truncateToNBits(e,n)}return h.__truncateAndSubFromPowerOfTwo(e,n,!1)}static asUintN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return h.__zero();if(n.sign){if(e>h.__kMaxLengthBits)throw new RangeError("BigInt too big");return h.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=h.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=e%30;return n.length==o&&(i===0||!(n.__digit(o-1)>>>i))?n:h.__truncateToNBits(e,n)}static ADD(e,n){if(e=h.__toPrimitive(e),n=h.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)&&h.__isBigInt(n))return h.add(e,n);if(typeof e=="number"&&typeof n=="number")return e+n;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,n){return h.__compare(e,n,0)}static LE(e,n){return h.__compare(e,n,1)}static GT(e,n){return h.__compare(e,n,2)}static GE(e,n){return h.__compare(e,n,3)}static EQ(e,n){for(;;){if(h.__isBigInt(e))return h.__isBigInt(n)?h.equal(e,n):h.EQ(n,e);if(typeof e=="number"){if(h.__isBigInt(n))return h.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="string"){if(h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.equal(e,n);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="boolean"){if(h.__isBigInt(n))return h.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="symbol"){if(h.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==h)return e==n;e=h.__toPrimitive(e)}else return e==n}}static NE(e,n){return!h.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return h.asIntN(64,h.DataViewGetBigUint64(e,n,r))}static DataViewGetBigUint64(e,n,r=!1){const[o,i]=r?[4,0]:[0,4],a=e.getUint32(n+o,r),s=e.getUint32(n+i,r),c=new h(3,!1);return c.__setDigit(0,1073741823&s),c.__setDigit(1,(268435455&a)<<2|s>>>30),c.__setDigit(2,a>>>28),c.__trim()}static DataViewSetBigInt64(e,n,r,o=!1){h.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=h.asUintN(64,r);let i=0,a=0;if(0<r.length&&(a=r.__digit(0),1<r.length)){const l=r.__digit(1);a|=l<<30,i=l>>>2,2<r.length&&(i|=r.__digit(2)<<28)}const[s,c]=o?[4,0]:[0,4];e.setUint32(n+s,i,o),e.setUint32(n+c,a,o)}static __zero(){return new h(0,!1)}static __oneDigit(e,n){const r=new h(1,n);return r.__setDigit(0,e),r}__copy(){const e=new h(this.length,this.sign);for(let n=0;n<this.length;n++)e[n]=this[n];return e}__trim(){let e=this.length,n=this[e-1];for(;n===0;)e--,n=this[e-1],this.pop();return e===0&&(this.sign=!1),this}__initializeDigits(){for(let e=0;e<this.length;e++)this[e]=0}static __decideRounding(e,n,r,o){if(0<n)return-1;let i;if(0>n)i=-n-1;else{if(r===0)return-1;r--,o=e.__digit(r),i=29}let a=1<<i;if((o&a)==0)return-1;if(a-=1,(o&a)!=0)return 1;for(;0<r;)if(r--,e.__digit(r)!==0)return 1;return 0}static __fromDouble(e){h.__kBitConversionDouble[0]=e;const n=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new h(o,0>e);let a=1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh]|1048576,s=h.__kBitConversionInts[h.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const m=c-l;d=m+32,u=a>>>m,a=a<<32-m|s>>>m,s<<=32-m}else if(l===20)d=32,u=a,a=s,s=0;else{const m=l-c;d=32-m,u=a<<m|s>>>32-m,a=s<<m,s=0}i.__setDigit(o-1,u);for(let m=o-2;0<=m;m--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(m,u);return i.__trim()}static __isWhitespace(e){return 13>=e&&9<=e||(159>=e?e==32:131071>=e?e==160||e==5760:196607>=e?(e&=131071,10>=e||e==40||e==41||e==47||e==95||e==4096):e==65279)}static __fromString(e,n=0){let r=0;const o=e.length;let i=0;if(i===o)return h.__zero();let a=e.charCodeAt(i);for(;h.__isWhitespace(a);){if(++i===o)return h.__zero();a=e.charCodeAt(i)}if(a===43){if(++i===o)return null;a=e.charCodeAt(i),r=1}else if(a===45){if(++i===o)return null;a=e.charCodeAt(i),r=-1}if(n===0){if(n=10,a===48){if(++i===o)return h.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(n=16,++i===o)return null;a=e.charCodeAt(i)}else if(a===79||a===111){if(n=8,++i===o)return null;a=e.charCodeAt(i)}else if(a===66||a===98){if(n=2,++i===o)return null;a=e.charCodeAt(i)}}}else if(n===16&&a===48){if(++i===o)return h.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(++i===o)return null;a=e.charCodeAt(i)}}if(r!=0&&n!==10)return null;for(;a===48;){if(++i===o)return h.__zero();a=e.charCodeAt(i)}const s=o-i;let c=h.__kMaxBitsPerChar[n],l=h.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>h.__kBitsPerCharTableShift,d=new h(0|(u+29)/30,!1),m=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=h.__kBitsPerCharTableShift;const b=[],g=[];let w=!1;do{let v=0,D=0;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{w=!0;break}if(D+=c,v=v<<c|M,++i===o){w=!0;break}if(a=e.charCodeAt(i),30<D+c)break}b.push(v),g.push(D)}while(!w);h.__fillFromParts(d,b,g)}else{d.__initializeDigits();let b=!1,g=0;do{let w=0,v=1;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{b=!0;break}const C=v*n;if(1073741823<C)break;if(v=C,w=w*n+M,g++,++i===o){b=!0;break}a=e.charCodeAt(i)}l=30*h.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>h.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(v,w,D)}while(!b)}if(i!==o){if(!h.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!h.__isWhitespace(a))return null}return d.sign=r==-1,d.__trim()}static __fillFromParts(e,n,r){let o=0,i=0,a=0;for(let s=n.length-1;0<=s;s--){const c=n[s],l=r[s];i|=c<<a,a+=l,a===30?(e.__setDigit(o++,i),a=0,i=0):30<a&&(e.__setDigit(o++,1073741823&i),a-=30,i=c>>>l-a)}if(i!==0){if(o>=e.length)throw new Error("implementation bug");e.__setDigit(o++,i)}for(;o<e.length;o++)e.__setDigit(o,0)}static __toStringBasePowerOfTwo(e,n){const r=e.length;let o=n-1;o=(85&o>>>1)+(85&o),o=(51&o>>>2)+(51&o),o=(15&o>>>4)+(15&o);const i=o,a=n-1,s=e.__digit(r-1),c=h.__clz30(s);let l=0|(30*r-c+i-1)/i;if(e.sign&&l++,268435456<l)throw new Error("string too long");const u=Array(l);let d=l-1,m=0,y=0;for(let g=0;g<r-1;g++){const w=e.__digit(g),v=(m|w<<y)&a;u[d--]=h.__kConversionChars[v];const D=i-y;for(m=w>>>D,y=30-D;y>=i;)u[d--]=h.__kConversionChars[m&a],m>>>=i,y-=i}const b=(m|s<<y)&a;for(u[d--]=h.__kConversionChars[b],m=s>>>i-y;m!==0;)u[d--]=h.__kConversionChars[m&a],m>>>=i;if(e.sign&&(u[d--]="-"),d!=-1)throw new Error("implementation bug");return u.join("")}static __toStringGeneric(e,n,r){const o=e.length;if(o===0)return"";if(o===1){let g=e.__unsignedDigit(0).toString(n);return r===!1&&e.sign&&(g="-"+g),g}const i=30*o-h.__clz30(e.__digit(o-1)),a=h.__kMaxBitsPerChar[n],s=a-1;let c=i*h.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=h.exponentiate(h.__oneDigit(n,!1),h.__oneDigit(l,!1));let d,m;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new h(e.length,!1),d.__initializeDigits();let g=0;for(let w=2*e.length-1;0<=w;w--){const v=g<<15|e.__halfDigit(w);d.__setHalfDigit(w,0|v/y),g=0|v%y}m=g.toString(n)}else{const g=h.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const w=g.remainder.__trim();m=h.__toStringGeneric(w,n,!0)}d.__trim();let b=h.__toStringGeneric(d,n,!0);for(;m.length<l;)m="0"+m;return r===!1&&e.sign&&(b="-"+b),b+m}static __unequalSign(e){return e?-1:1}static __absoluteGreater(e){return e?-1:1}static __absoluteLess(e){return e?1:-1}static __compareToBigInt(e,n){const r=e.sign;if(r!==n.sign)return h.__unequalSign(r);const o=h.__absoluteCompare(e,n);return 0<o?h.__absoluteGreater(r):0>o?h.__absoluteLess(r):0}static __compareToNumber(e,n){if(h.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return h.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return h.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?h.__absoluteGreater(r):a<i?h.__absoluteLess(r):0}return h.__compareToDouble(e,n)}static __compareToDouble(e,n){if(n!==n)return n;if(n===1/0)return-1;if(n===-1/0)return 1;const r=e.sign;if(r!==0>n)return h.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;h.__kBitConversionDouble[0]=n;const o=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return h.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=h.__clz30(s),l=30*a-c,u=i+1;if(l<u)return h.__absoluteLess(r);if(l>u)return h.__absoluteGreater(r);let d=1048576|1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh],m=h.__kBitConversionInts[h.__kBitConversionIntLow];const y=20,b=29-c;if(b!==(0|(l-1)%30))throw new Error("implementation bug");let g,w=0;if(20>b){const v=y-b;w=v+32,g=d>>>v,d=d<<32-v|m>>>v,m<<=32-v}else if(b===20)w=32,g=d,d=m,m=0;else{const v=b-y;w=32-v,g=d<<v|m>>>32-v,d=m<<v,m=0}if(s>>>=0,g>>>=0,s>g)return h.__absoluteGreater(r);if(s<g)return h.__absoluteLess(r);for(let v=a-2;0<=v;v--){0<w?(w-=30,g=d>>>2,d=d<<30|m>>>2,m<<=30):g=0;const D=e.__unsignedDigit(v);if(D>g)return h.__absoluteGreater(r);if(D<g)return h.__absoluteLess(r)}if(d!==0||m!==0){if(w===0)throw new Error("implementation bug");return h.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return h.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):h.__compareToDouble(e,n)===0}static __comparisonResultToBool(e,n){return n===0?0>e:n===1?0>=e:n===2?0<e:n===3?0<=e:void 0}static __compare(e,n,r){if(e=h.__toPrimitive(e),n=h.__toPrimitive(n),typeof e=="string"&&typeof n=="string")switch(r){case 0:return e<n;case 1:return e<=n;case 2:return e>n;case 3:return e>=n}if(h.__isBigInt(e)&&typeof n=="string")return n=h.__fromString(n),n!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof e=="string"&&h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)){if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return h.__comparisonResultToBool(h.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__compareToNumber(n,e),2^r);if(typeof n!="number")throw new Error("implementation bug");return r===0?e<n:r===1?e<=n:r===2?e>n:r===3?e>=n:void 0}__clzmsd(){return h.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return h.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:h.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new h(o,r);let a=0,s=0;for(;s<n.length;s++){const c=e.__digit(s)+n.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}for(;s<e.length;s++){const c=e.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}return s<i.length&&i.__setDigit(s,a),i.__trim()}static __absoluteSub(e,n,r){if(e.length===0)return e;if(n.length===0)return e.sign===r?e:h.unaryMinus(e);const o=new h(e.length,r);let i=0,a=0;for(;a<n.length;a++){const s=e.__digit(a)-n.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}for(;a<e.length;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}return o.__trim()}static __absoluteAddOne(e,n,r=null){const o=e.length;r===null?r=new h(o,n):r.sign=n;let i=1;for(let a=0;a<o;a++){const s=e.__digit(a)+i;i=s>>>30,r.__setDigit(a,1073741823&s)}return i!=0&&r.__setDigitGrow(o,1),r}static __absoluteSubOne(e,n){const r=e.length;n=n||r;const o=new h(n,!1);let i=1;for(let a=0;a<r;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}if(i!=0)throw new Error("implementation bug");for(let a=r;a<n;a++)o.__setDigit(a,0);return o}static __absoluteAnd(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=a;r===null?r=new h(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&n.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteAndNot(e,n,r=null){const o=e.length,i=n.length;let a=i;o<i&&(a=o);let s=o;r===null?r=new h(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&~n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteOr(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new h(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)|n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteXor(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new h(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)^n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteCompare(e,n){const r=e.length-n.length;if(r!=0)return r;let o=e.length-1;for(;0<=o&&e.__digit(o)===n.__digit(o);)o--;return 0>o?0:e.__unsignedDigit(o)>n.__unsignedDigit(o)?1:-1}static __multiplyAccumulate(e,n,r,o){if(n===0)return;const i=32767&n,a=n>>>15;let s=0,c=0;for(let l,u=0;u<e.length;u++,o++){l=r.__digit(o);const d=e.__digit(u),m=32767&d,y=d>>>15,b=h.__imul(m,i),g=h.__imul(m,a),w=h.__imul(y,i),v=h.__imul(y,a);l+=c+b+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&w)<<15),s+=l>>>30,c=v+(g>>>15)+(w>>>15),r.__setDigit(o,1073741823&l)}for(;s!=0||c!==0;o++){let l=r.__digit(o);l+=s+c,c=0,s=l>>>30,r.__setDigit(o,1073741823&l)}}static __internalMultiplyAdd(e,n,r,o,i){let a=r,s=0;for(let c=0;c<o;c++){const l=e.__digit(c),u=h.__imul(32767&l,n),d=h.__imul(l>>>15,n),m=u+((32767&d)<<15)+s+a;a=m>>>30,s=d>>>15,i.__setDigit(c,1073741823&m)}if(i.length>o)for(i.__setDigit(o++,a+s);o<i.length;)i.__setDigit(o++,0);else if(a+s!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(e,n,r){r>this.length&&(r=this.length);const o=32767&e,i=e>>>15;let a=0,s=n;for(let c=0;c<r;c++){const l=this.__digit(c),u=32767&l,d=l>>>15,m=h.__imul(u,o),y=h.__imul(u,i),b=h.__imul(d,o),g=h.__imul(d,i);let w=s+m+a;a=w>>>30,w&=1073741823,w+=((32767&y)<<15)+((32767&b)<<15),a+=w>>>30,s=g+(y>>>15)+(b>>>15),this.__setDigit(c,1073741823&w)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new h(e.length,!1));let o=0;for(let i,a=2*e.length-1;0<=a;a-=2){i=(o<<15|e.__halfDigit(a))>>>0;const s=0|i/n;o=0|i%n,i=(o<<15|e.__halfDigit(a-1))>>>0;const c=0|i/n;o=0|i%n,r.__setDigit(a>>>1,s<<15|c)}return r}static __absoluteModSmall(e,n){let r=0;for(let o=2*e.length-1;0<=o;o--)r=0|((r<<15|e.__halfDigit(o))>>>0)%n;return r}static __absoluteDivLarge(e,n,r,o){const i=n.__halfDigitLength(),a=n.length,s=e.__halfDigitLength()-i;let c=null;r&&(c=new h(s+2>>>1,!1),c.__initializeDigits());const l=new h(i+2>>>1,!1);l.__initializeDigits();const u=h.__clz15(n.__halfDigit(i-1));0<u&&(n=h.__specialLeftShift(n,u,0));const d=h.__specialLeftShift(e,u,1),m=n.__halfDigit(i-1);let y=0;for(let b,g=s;0<=g;g--){b=32767;const w=d.__halfDigit(g+i);if(w!==m){const D=(w<<15|d.__halfDigit(g+i-1))>>>0;b=0|D/m;let M=0|D%m;const C=n.__halfDigit(i-2),T=d.__halfDigit(g+i-2);for(;h.__imul(b,C)>>>0>(M<<16|T)>>>0&&(b--,M+=m,!(32767<M)););}h.__internalMultiplyAdd(n,b,0,a,l);let v=d.__inplaceSub(l,g,i+1);v!==0&&(v=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+v),b--),r&&(1&g?y=b<<15:c.__setDigit(g>>>1,y|b))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return h.__clz30(e)-15}__inplaceAdd(e,n,r){let o=0;for(let i=0;i<r;i++){const a=this.__halfDigit(n+i)+e.__halfDigit(i)+o;o=a>>>15,this.__setHalfDigit(n+i,32767&a)}return o}__inplaceSub(e,n,r){let o=0;if(1&n){n>>=1;let i=this.__digit(n),a=32767&i,s=0;for(;s<r-1>>>1;s++){const u=e.__digit(s),d=(i>>>15)-(32767&u)-o;o=1&d>>>15,this.__setDigit(n+s,(32767&d)<<15|32767&a),i=this.__digit(n+s+1),a=(32767&i)-(u>>>15)-o,o=1&a>>>15}const c=e.__digit(s),l=(i>>>15)-(32767&c)-o;if(o=1&l>>>15,this.__setDigit(n+s,(32767&l)<<15|32767&a),n+s+1>=this.length)throw new RangeError("out of bounds");(1&r)==0&&(i=this.__digit(n+s+1),a=(32767&i)-(c>>>15)-o,o=1&a>>>15,this.__setDigit(n+e.length,1073709056&i|32767&a))}else{n>>=1;let i=0;for(;i<e.length-1;i++){const u=this.__digit(n+i),d=e.__digit(i),m=(32767&u)-(32767&d)-o;o=1&m>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&m)}const a=this.__digit(n+i),s=e.__digit(i),c=(32767&a)-(32767&s)-o;o=1&c>>>15;let l=0;(1&r)==0&&(l=(a>>>15)-(s>>>15)-o,o=1&l>>>15),this.__setDigit(n+i,(32767&l)<<15|32767&c)}return o}__inplaceRightShift(e){if(e===0)return;let n=this.__digit(0)>>>e;const r=this.length-1;for(let o=0;o<r;o++){const i=this.__digit(o+1);this.__setDigit(o,1073741823&i<<30-e|n),n=i>>>e}this.__setDigit(r,n)}static __specialLeftShift(e,n,r){const o=e.length,i=new h(o+r,!1);if(n===0){for(let s=0;s<o;s++)i.__setDigit(s,e.__digit(s));return 0<r&&i.__setDigit(o,0),i}let a=0;for(let s=0;s<o;s++){const c=e.__digit(s);i.__setDigit(s,1073741823&c<<n|a),a=c>>>30-n}return 0<r&&i.__setDigit(o,a),i}static __leftShiftByAbsolute(e,n){const r=h.__toShiftAmount(n);if(0>r)throw new RangeError("BigInt too big");const o=0|r/30,i=r%30,a=e.length,s=i!==0&&e.__digit(a-1)>>>30-i!=0,c=a+o+(s?1:0),l=new h(c,e.sign);if(i===0){let u=0;for(;u<o;u++)l.__setDigit(u,0);for(;u<c;u++)l.__setDigit(u,e.__digit(u-o))}else{let u=0;for(let d=0;d<o;d++)l.__setDigit(d,0);for(let d=0;d<a;d++){const m=e.__digit(d);l.__setDigit(d+o,1073741823&m<<i|u),u=m>>>30-i}if(s)l.__setDigit(a+o,u);else if(u!==0)throw new Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(e,n){const r=e.length,o=e.sign,i=h.__toShiftAmount(n);if(0>i)return h.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return h.__rightShiftByMaximum(o);let l=!1;if(o){if((e.__digit(a)&(1<<s)-1)!=0)l=!0;else for(let d=0;d<a;d++)if(e.__digit(d)!==0){l=!0;break}}l&&s===0&&~e.__digit(r-1)==0&&c++;let u=new h(c,o);if(s===0){u.__setDigit(c-1,0);for(let d=a;d<r;d++)u.__setDigit(d-a,e.__digit(d))}else{let d=e.__digit(a)>>>s;const m=r-a-1;for(let y=0;y<m;y++){const b=e.__digit(y+a+1);u.__setDigit(y,1073741823&b<<30-s|d),d=b>>>s}u.__setDigit(m,d)}return l&&(u=h.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?h.__oneDigit(1,!0):h.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>h.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===h)return e;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"&&e[Symbol.toPrimitive]){const i=e[Symbol.toPrimitive](n);if(typeof i!="object")return i;throw new TypeError("Cannot convert object to primitive value")}const r=e.valueOf;if(r){const i=r.call(e);if(typeof i!="object")return i}const o=e.toString;if(o){const i=o.call(e);if(typeof i!="object")return i}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return h.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===h}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new h(r,n.sign),i=r-1;for(let s=0;s<i;s++)o.__setDigit(s,n.__digit(s));let a=n.__digit(i);if(e%30!=0){const s=32-e%30;a=a<<s>>>s}return o.__setDigit(i,a),o.__trim()}static __truncateAndSubFromPowerOfTwo(e,n,r){var o=Math.min;const i=0|(e+29)/30,a=new h(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const b=0-n.__digit(s)-l;l=1&b>>>30,a.__setDigit(s,1073741823&b)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let m;if(d==0)m=0-u-l,m&=1073741823;else{const y=32-d;u=u<<y>>>y;const b=1<<32-y;m=b-u-l,m&=b-1}return a.__setDigit(c,m),a.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,n){this[e]=0|n}__setDigitGrow(e,n){this[e]=0|n}__halfDigitLength(){const e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,n){const r=e>>>1,o=this.__digit(r),i=1&e?32767&o|n<<15:1073709056&o|32767&n;this.__setDigit(r,i)}static __digitPow(e,n){let r=1;for(;0<n;)1&n&&(r*=e),n>>>=1,e*=e;return r}static __detectBigEndian(){return h.__kBitConversionDouble[0]=-0,h.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}h.__kMaxLength=33554432,h.__kMaxLengthBits=h.__kMaxLength<<5,h.__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],h.__kBitsPerCharTableShift=5,h.__kBitsPerCharTableMultiplier=1<<h.__kBitsPerCharTableShift,h.__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"],h.__kBitConversionBuffer=new ArrayBuffer(8),h.__kBitConversionDouble=new Float64Array(h.__kBitConversionBuffer),h.__kBitConversionInts=new Int32Array(h.__kBitConversionBuffer),h.__kBitConversionIntHigh=h.__detectBigEndian()?0:1,h.__kBitConversionIntLow=h.__detectBigEndian()?1:0,h.__clz30=Math.clz32?function(t){return Math.clz32(t)-2}:function(t){return t===0?30:0|29-(0|Math.log(t>>>0)/Math.LN2)},h.__imul=Math.imul||function(t,e){return 0|t*e};const dt=h.BigInt(0),Pr=h.BigInt(1),aa=h.BigInt(2),Yh=h.BigInt(10),zh=h.BigInt(24),Uh=h.BigInt(60),Fh=h.BigInt(1e3),Zr=h.BigInt(1e6),Or=h.BigInt(1e9),dc=h.multiply(h.BigInt(3600),Or),qh=h.multiply(Uh,Or),fn=h.multiply(dc,zh);function Wt(t){return typeof t=="bigint"?h.BigInt(t.toString(10)):t}function hc(t){return h.equal(h.remainder(t,aa),dt)}function vn(t){return h.lessThan(t,dt)?h.unaryMinus(t):t}function Mo(t,e){return h.lessThan(t,e)?-1:h.greaterThan(t,e)?1:0}function wr(t,e){return{quotient:h.divide(t,e),remainder:h.remainder(t,e)}}var ls,us;const L="slot-epochNanoSeconds",Y="slot-iso-date",ye="slot-iso-date-time",Ee="slot-time",x="slot-calendar",fc="slot-date-brand",mc="slot-year-month-brand",gc="slot-month-day-brand",se="slot-time-zone",Ue="slot-years",Fe="slot-months",nt="slot-weeks",qe="slot-days",We="slot-hours",Ve="slot-minutes",He="slot-seconds",Ze="slot-milliseconds",Be="slot-microseconds",rt="slot-nanoseconds",yc="date",pc="ym",bc="md",wc="time",vc="datetime",Ec="instant",An="original",Wn="timezone-canonical",Ri="timezone-original",vr="calendar-id",Tc="locale",Ai="options",_c=new WeakMap,Ii=Symbol.for("@@Temporal__GetSlots");(ls=globalThis)[Ii]||(ls[Ii]=function(t){return _c.get(t)});const Qo=globalThis[Ii],Pi=Symbol.for("@@Temporal__CreateSlots");(us=globalThis)[Pi]||(us[Pi]=function(t){_c.set(t,Object.create(null))});const nn=globalThis[Pi];function Je(t,...e){if(!t||typeof t!="object")return!1;const n=Qo(t);return!!n&&e.every((r=>r in n))}function f(t,e){const n=Qo(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function V(t,e,n){const r=Qo(t);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[e])throw new TypeError(`${e} already has set`);r[e]=n}const Ni={};function rn(t,e){Object.defineProperty(t.prototype,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0});const n=Object.getOwnPropertyNames(t);for(let o=0;o<n.length;o++){const i=n[o],a=Object.getOwnPropertyDescriptor(t,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t,i,a))}const r=Object.getOwnPropertyNames(t.prototype);for(let o=0;o<r.length;o++){const i=r[o],a=Object.getOwnPropertyDescriptor(t.prototype,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t.prototype,i,a))}ji(e,t),ji(`${e}.prototype`,t.prototype)}function ji(t,e){const n=`%${t}%`;if(Ni[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);Ni[n]=e}function Ie(t){return Ni[t]}function Hn(t,e){let n=t;if(n===0)return{div:n,mod:n};const r=Math.sign(n);n=Math.abs(n);const o=Math.trunc(1+Math.log10(n));if(e>=o)return{div:0*r,mod:r*n};if(e===0)return{div:r*n,mod:0*r};const i=n.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-e),10),mod:r*Number.parseInt(i.slice(o-e),10)}}function _i(t,e,n){let r=t,o=n;if(r===0)return o;const i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);const a=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(a+"0".repeat(e),10);const s=a+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(e,"0");return i*Number.parseInt(s,10)}function Jo(t,e){const n=e==="negative";switch(t){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 ei(t,e,n,r,o){return o==="zero"?t:o==="infinity"?e:n<0?t:n>0?e:o==="half-zero"?t:o==="half-infinity"?e:r?t:e}class B{constructor(e){this.totalNs=Wt(e),this.sec=h.toNumber(h.divide(this.totalNs,Or)),this.subsec=h.toNumber(h.remainder(this.totalNs,Or))}static validateNew(e,n){if(h.greaterThan(vn(e),B.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${B.MAX} s`);return new B(e)}static fromEpochNsDiff(e,n){const r=h.subtract(Wt(e),Wt(n));return new B(r)}static fromComponents(e,n,r,o,i,a){const s=h.add(h.add(h.add(h.add(h.add(h.BigInt(a),h.multiply(h.BigInt(i),Fh)),h.multiply(h.BigInt(o),Zr)),h.multiply(h.BigInt(r),Or)),h.multiply(h.BigInt(n),qh)),h.multiply(h.BigInt(e),dc));return B.validateNew(s,"total")}abs(){return new B(vn(this.totalNs))}add(e){return B.validateNew(h.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return B.validateNew(h.add(this.totalNs,h.multiply(h.BigInt(e),fn)),"sum")}addToEpochNs(e){return h.add(Wt(e),this.totalNs)}cmp(e){return Mo(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=wr(this.totalNs,h.BigInt(e));return{quotient:h.toNumber(n),remainder:new B(r)}}fdiv(e){const n=Wt(e),r=h.BigInt(n);let{quotient:o,remainder:i}=wr(this.totalNs,r);const a=[];let s;const c=(h.lessThan(this.totalNs,dt)?-1:1)*Math.sign(h.toNumber(n));for(;!h.equal(i,dt)&&a.length<50;)i=h.multiply(i,Yh),{quotient:s,remainder:i}=wr(i,r),a.push(Math.abs(h.toNumber(s)));return c*+(vn(o).toString()+"."+a.join(""))}isZero(){return h.equal(this.totalNs,dt)}round(e,n){const r=Wt(e);if(h.equal(r,Pr))return this;const{quotient:o,remainder:i}=wr(this.totalNs,r),a=h.lessThan(this.totalNs,dt)?"negative":"positive",s=h.multiply(vn(o),r),c=h.add(s,r),l=Mo(vn(h.multiply(i,aa)),r),u=Jo(n,a),d=h.equal(vn(this.totalNs),s)?s:ei(s,c,l,hc(o),u),m=a==="positive"?d:h.unaryMinus(d);return B.validateNew(m,"rounding")}sign(){return this.cmp(new B(dt))}subtract(e){return B.validateNew(h.subtract(this.totalNs,e.totalNs),"difference")}}B.MAX=h.BigInt("9007199254740991999999999"),B.ZERO=new B(dt);const ds=/[A-Za-z._][A-Za-z._0-9+-]*/,Br=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${ds.source})(?:\\/(?:${ds.source}))*)`),Cc=/(?:[+-]\d{6}|\d{4})/,xo=/(?:0[1-9]|1[0-2])/,Li=/(?:0[1-9]|[12]\d|3[01])/,Wh=new RegExp(`(${Cc.source})(?:-(${xo.source})-(${Li.source})|(${xo.source})(${Li.source}))`),Dc=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,Mc=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,xc=new RegExp(`([zZ])|${Mc.source}?`),Qn=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,Vh=new RegExp([`^${Wh.source}`,`(?:(?:[tT]|\\s+)${Dc.source}(?:${xc.source})?)?`,`(?:\\[!?(${Br.source})\\])?`,`((?:${Qn.source})*)$`].join("")),Hh=new RegExp([`^[tT]?${Dc.source}`,`(?:${xc.source})?`,`(?:\\[!?${Br.source}\\])?`,`((?:${Qn.source})*)$`].join("")),Zh=new RegExp(`^(${Cc.source})-?(${xo.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),Bh=new RegExp(`^(?:--)?(${xo.source})-?(${Li.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),Ci=/(\d+)(?:[.,](\d{1,9}))?/,Gh=new RegExp(`(?:${Ci.source}H)?(?:${Ci.source}M)?(?:${Ci.source}S)?`),Kh=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${Gh.source})?$`,"i"),mn=864e5,Oo=1e6*mn,Xh=6e10,Oc=1e8*mn,Jn=Pt(Oc),Nr=h.unaryMinus(Jn),Qh=h.add(h.subtract(Nr,fn),Pr),Jh=h.subtract(h.add(Jn,fn),Pr),ef=146097*mn,hs=-271821,fs=275760,$r=Date.UTC(1847,0,1),tf=["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"],nf=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function Te(t){return typeof t=="object"&&t!==null||typeof t=="function"}function ti(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function ni(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function z(t){const e=ti(t);if(e===0)return 0;if(Number.isNaN(e)||e===1/0||e===-1/0)throw new RangeError("invalid number value");const n=Math.trunc(e);return n===0?0:n}function ms(t,e){const n=z(t);if(n<=0)throw e!==void 0?new RangeError(`property '${e}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return n}function Dt(t){const e=ti(t);if(Number.isNaN(e))throw new RangeError("not a number");if(e===1/0||e===-1/0)throw new RangeError("infinity is out of range");if(!(function(n){if(typeof n!="number"||Number.isNaN(n)||n===1/0||n===-1/0)return!1;const r=Math.abs(n);return Math.floor(r)===r})(e))throw new RangeError(`unsupported fractional value ${t}`);return e===0?0:e}function jr(t,e){return String(t).padStart(e,"0")}function xe(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function Yi(t,e){if(Te(t)){const n=t?.toString();if(typeof n=="string"||typeof n=="number")return n;throw new TypeError("Cannot convert object to primitive value")}return t}const zi=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],rf={era:ni,eraYear:z,year:z,month:ms,monthCode:function(t){const e=xe(Yi(t));if(e.length<3||e.length>4||e[0]!=="M"||"0123456789".indexOf(e[1])===-1||"0123456789".indexOf(e[2])===-1||e[1]+e[2]==="00"&&e[3]!=="L"||e[3]!=="L"&&e[3]!==void 0)throw new RangeError(`bad month code ${e}; must match M01-M99 or M00L-M99L`);return e},day:ms,hour:z,minute:z,second:z,millisecond:z,microsecond:z,nanosecond:z,offset:function(t){const e=xe(Yi(t));return lr(e),e},timeZone:Xe},of={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},er=[["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"]],gs=Object.fromEntries(er.map((t=>[t[0],t[1]]))),af=Object.fromEntries(er.map((([t,e])=>[e,t]))),Sr=er.map((([,t])=>t)),tr={day:Oo,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},$o=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],sf=Intl.DateTimeFormat,ys=new Map;function $c(t){const e=Fr(t);let n=ys.get(e);return n===void 0&&(n=new sf("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ys.set(e,n)),n}function ke(t){return Je(t,L)&&!Je(t,se,x)}function we(t){return Je(t,Ue,Fe,qe,We,Ve,He,Ze,Be,rt)}function ve(t){return Je(t,fc)}function De(t){return Je(t,Ee)}function ge(t){return Je(t,ye)}function Re(t){return Je(t,mc)}function lt(t){return Je(t,gc)}function Z(t){return Je(t,L,se,x)}function E(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function ar(t){if(Je(t,x)||Je(t,se))throw new TypeError("with() does not support a calendar or timeZone property");if(De(t))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(t.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(t.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function Gr(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function ri(t){let e,n,r=!1;for(Qn.lastIndex=0;n=Qn.exec(t);){const{1:o,2:i,3:a}=n;if(i==="u-ca"){if(e===void 0)e=a,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${t}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${a}`)}return e}function Ut(t){const e=Vh.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=ri(e[16]);let r=e[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);const o=+r,i=+(e[2]??e[4]??1),a=+(e[3]??e[5]??1),s=e[6]!==void 0,c=+(e[6]??0),l=+(e[7]??e[10]??0);let u=+(e[8]??e[11]??0);u===60&&(u=59);const d=(e[9]??e[12]??"")+"000000000",m=+d.slice(0,3),y=+d.slice(3,6),b=+d.slice(6,9);let g,w=!1;e[13]?(g=void 0,w=!0):e[14]&&(g=e[14]);const v=e[15];return ha(o,i,a,c,l,u,m,y,b),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:m,microsecond:y,nanosecond:b}:"start-of-day",tzAnnotation:v,offset:g,z:w,calendar:n}}function Sc(t){const e=Hh.exec(t);let n,r,o,i,a,s,c;if(e){c=ri(e[10]),n=+(e[1]??0),r=+(e[2]??e[5]??0),o=+(e[3]??e[6]??0),o===60&&(o=59);const l=(e[4]??e[7]??"")+"000000000";if(i=+l.slice(0,3),a=+l.slice(3,6),s=+l.slice(6,9),e[8])throw new RangeError("Z designator not supported for PlainTime")}else{let l,u;if({time:l,z:u,calendar:c}=Ut(t),l==="start-of-day")throw new RangeError(`time is missing in string: ${t}`);if(u)throw new RangeError("Z designator not supported for PlainTime");({hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s}=l)}if(si(n,r,o,i,a,s),/[tT ][0-9][0-9]/.test(t))return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c};try{const{month:l,day:u}=ca(t);On(1972,l,u)}catch{try{const{year:l,month:u}=sa(t);On(l,u,1)}catch{return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c}}}throw new RangeError(`invalid RFC 9557 time-only string ${t}; may need a T prefix`)}function sa(t){const e=Zh.exec(t);let n,r,o,i;if(e){o=ri(e[3]);let a=e[1];if(a==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);if(n=+a,r=+e[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let a;if({year:n,month:r,calendar:o,day:i,z:a}=Ut(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function ca(t){const e=Bh.exec(t);let n,r,o,i;if(e){if(o=ri(e[3]),n=+e[1],r=+e[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let a;if({month:n,day:r,calendar:o,year:i,z:a}=Ut(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const kc=new RegExp(`^${Br.source}$`,"i"),Rc=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function Ac(t){const e=lf.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function un(t){return kc.test(t)||Ac(t),Rc.test(t)?{offsetMinutes:lr(t)/6e10}:{tzName:t}}function kr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":On(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Kc(o,i,a))}return{year:o,month:i,day:a}}function oi(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,m=i;switch(a){case"reject":si(s,c,l,u,d,m);break;case"constrain":s=Ge(s,0,23),c=Ge(c,0,59),l=Ge(l,0,59),u=Ge(u,0,999),d=Ge(d,0,999),m=Ge(m,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function Ic(t){if(!Te(t))throw new TypeError("invalid duration-like");const e={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};let n=!1;for(let r=0;r<$o.length;r++){const o=$o[r],i=t[o];i!==void 0&&(n=!0,e[o]=Dt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function Ne({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function te(t,e){return{isoDate:t,time:e}}function ee(t){return Qt(t,"overflow",["constrain","reject"],"constrain")}function Rr(t){return Qt(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function Mt(t,e){return Qt(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function Eo(t,e){return Qt(t,"offset",["prefer","use","ignore","reject"],e)}function Kr(t){return Qt(t,"calendarName",["auto","always","never","critical"],"auto")}function sr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=z(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function cr(t,e,n){const r=n?e:e-1;if(t>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${t}`);if(e%t!=0)throw new RangeError(`Rounding increment must divide evenly into ${e}`)}function Xr(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(ni(e)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return"auto"}const n=Math.floor(e);if(!Number.isFinite(n)||n<0||n>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return n}function Qr(t,e){switch(t){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(e){case"auto":return{precision:e,unit:"nanosecond",increment:1};case 0:return{precision:e,unit:"second",increment:1};case 1:case 2:case 3:return{precision:e,unit:"millisecond",increment:10**(3-e)};case 4:case 5:case 6:return{precision:e,unit:"microsecond",increment:10**(6-e)};case 7:case 8:case 9:return{precision:e,unit:"nanosecond",increment:10**(9-e)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`)}}const tn=Symbol("~required~");function it(t,e,n,r,o=[]){let i=[];for(let l=0;l<er.length;l++){const u=er[l],d=u[1],m=u[2];n!=="datetime"&&n!==m||i.push(d)}i=i.concat(o);let a=r;a===tn?a=void 0:a!==void 0&&i.push(a);let s=[];s=s.concat(i);for(let l=0;l<i.length;l++){const u=i[l],d=af[u];d!==void 0&&s.push(d)}let c=Qt(t,e,s,a);if(c===void 0&&r===tn)throw new RangeError(`${e} is required`);return c&&c in gs?gs[c]:c}function Di(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Te(e)){if(Z(e))return{zonedRelativeTo:e};if(ve(e))return{plainRelativeTo:e};if(ge(e))return{plainRelativeTo:Ke(f(e,ye).isoDate,f(e,x))};o=ro(e);const l=gt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=eo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,m,y;if({year:d,month:m,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=Ut(xe(e)),l)i=Xe(l),u?s="exact":a||(s="wall"),c=!0;else if(u)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=et(o),n={year:d,month:m,day:y}}return i===void 0?{plainRelativeTo:Ke(n,o)}:{zonedRelativeTo:Pe(So(n,r,s,s==="option"?lr(a):0,i,"compatible","reject",c),i,o)}}function Ht(t){return f(t,Ue)!==0?"year":f(t,Fe)!==0?"month":f(t,nt)!==0?"week":f(t,qe)!==0?"day":f(t,We)!==0?"hour":f(t,Ve)!==0?"minute":f(t,He)!==0?"second":f(t,Ze)!==0?"millisecond":f(t,Be)!==0?"microsecond":"nanosecond"}function Kt(t,e){return Sr.indexOf(t)>Sr.indexOf(e)?e:t}function St(t){return t==="year"||t==="month"||t==="week"}function Zt(t){return St(t)||t==="day"?"date":"time"}function pn(t){return Ie("%calendarImpl%")(t)}function Jr(t){return Ie("%calendarImpl%")(f(t,x))}function Qe(t,e,n="date"){const r=Object.create(null),o=pn(t).isoToDate(e,{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 gt(t,e,n,r,o){const i=pn(t).extraFields(n),a=n.concat(r,i),s=Object.create(null);let c=!1;a.sort();for(let l=0;l<a.length;l++){const u=a[l],d=e[u];if(d!==void 0)c=!0,s[u]=(0,rf[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=of[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function Ui(t,e="complete"){const n=["hour","microsecond","millisecond","minute","nanosecond","second"];let r=!1;const o=Object.create(null);for(let i=0;i<n.length;i++){const a=n[i],s=t[a];s!==void 0?(o[a]=z(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function Er(t,e){if(Te(t)){if(ve(t))return ee(P(e)),Ke(f(t,Y),f(t,x));if(Z(t)){const c=Tt(f(t,se),f(t,L));return ee(P(e)),Ke(c.isoDate,f(t,x))}if(ge(t))return ee(P(e)),Ke(f(t,ye).isoDate,f(t,x));const s=ro(t);return Ke(gn(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=Ut(xe(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=et(i),ee(P(e)),Ke({year:n,month:r,day:o},i)}function eo(t,e,n){return te(gn(t,e,n),oi(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Tr(t,e){let n,r,o;if(Te(t)){if(ge(t))return ee(P(e)),bt(f(t,ye),f(t,x));if(Z(t)){const s=Tt(f(t,se),f(t,L));return ee(P(e)),bt(s,f(t,x))}if(ve(t))return ee(P(e)),bt(te(f(t,Y),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),f(t,x));o=ro(t);const i=gt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=ee(P(e));({isoDate:n,time:r}=eo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=Ut(xe(t)),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}),ha(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=et(o),ee(P(e)),n={year:a,month:s,day:c}}return bt(te(n,r),o)}function Et(t){const e=Ie("%Temporal.Duration%");if(we(t))return new e(f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt));if(!Te(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:m,microseconds:y,nanoseconds:b}=(function(g){const w=Kh.exec(g);if(!w)throw new RangeError(`invalid duration: ${g}`);if(w.every(((ct,hr)=>hr<2||ct===void 0)))throw new RangeError(`invalid duration: ${g}`);const v=w[1]==="-"?-1:1,D=w[2]===void 0?0:z(w[2])*v,M=w[3]===void 0?0:z(w[3])*v,C=w[4]===void 0?0:z(w[4])*v,T=w[5]===void 0?0:z(w[5])*v,k=w[6]===void 0?0:z(w[6])*v,F=w[7],G=w[8],N=w[9],ae=w[10],q=w[11];let p=0,R=0,O=0;if(F!==void 0){if(G??N??ae??q)throw new RangeError("only the smallest unit can be fractional");O=3600*z((F+"000000000").slice(0,9))*v}else if(p=G===void 0?0:z(G)*v,N!==void 0){if(ae??q)throw new RangeError("only the smallest unit can be fractional");O=60*z((N+"000000000").slice(0,9))*v}else R=ae===void 0?0:z(ae)*v,q!==void 0&&(O=z((q+"000000000").slice(0,9))*v);const j=O%1e3,H=Math.trunc(O/1e3)%1e3,pe=Math.trunc(O/1e6)%1e3;return R+=Math.trunc(O/1e9)%60,p+=Math.trunc(O/6e10),ci(D,M,C,T,k,p,R,pe,H,j),{years:D,months:M,weeks:C,days:T,hours:k,minutes:p,seconds:R,milliseconds:pe,microseconds:H,nanoseconds:j}})(o);return new(Ie("%Temporal.Duration%"))(i,a,s,c,l,u,d,m,y,b)})(xe(t));const n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};let r=Ic(t);for(let o=0;o<$o.length;o++){const i=$o[o],a=r[i];a!==void 0&&(n[i]=a)}return new e(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function _r(t){let e;if(Te(t)){if(ke(t)||Z(t))return At(f(t,L));e=Yi(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const w=Ut(g);if(!w.z&&!w.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return w})(xe(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:m=0,nanosecond:y=0}=i==="start-of-day"?{}:i,b=Ur(n,r,o,c,l,u,d,m,y-(s?0:lr(a)));return Kn(b.isoDate),At(Ae(b))}function ps(t,e){if(Te(t)){if(lt(t))return ee(P(e)),Zn(f(t,Y),f(t,x));let s;return Je(t,x)?s=f(t,x):(s=t.calendar,s===void 0&&(s="iso8601"),s=no(s)),Zn(ko(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=ca(xe(t));if(i===void 0&&(i="iso8601"),i=et(i),ee(P(e)),i==="iso8601")return Zn({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return In(a),a=ko(i,Qe(i,a,"month-day"),"constrain"),Zn(a,i)}function cn(t,e){let n;if(Te(t)){if(De(t))return ee(P(e)),Bt(f(t,Ee));if(ge(t))return ee(P(e)),Bt(f(t,ye).time);if(Z(t)){const l=Tt(f(t,se),f(t,L));return ee(P(e)),Bt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=Ui(t);n=oi(r,o,i,a,s,c,ee(P(e)))}else n=Sc(xe(t)),ee(P(e));return Bt(n)}function Pc(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:f(cn(t),Ee)}function Cr(t,e){if(Te(t)){if(Re(t))return ee(P(e)),Gn(f(t,Y),f(t,x));const s=ro(t);return Gn(Lr(s,gt(s,t,["year","month","monthCode"],[],[]),ee(P(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=sa(xe(t));i===void 0&&(i="iso8601"),i=et(i),ee(P(e));let a={year:n,month:r,day:o};return fa(a),a=Lr(i,Qe(i,a,"year-month"),"constrain"),Gn(a,i)}function So(t,e,n,r,o,i,a,s){if(e==="start-of-day")return on(o,t);const c=te(t,e);if(n==="wall"||a==="ignore")return je(o,c,i);if(n==="exact"||a==="use"){const d=Ur(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);Kn(d.isoDate);const m=Ae(d);return Yt(m),m}Kn(t);const l=Ae(c),u=Yr(o,c);for(let d=0;d<u.length;d++){const m=u[d],y=h.toNumber(h.subtract(l,m)),b=ln(y,6e10,"halfExpand");if(y===r||s&&b===r)return m}if(a==="reject"){const d=Fi(r),m=zr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${m} in ${o}`)}return Wc(u,o,c,i)}function Dr(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Te(t)){if(Z(t)){const g=P(e);return Rr(g),Eo(g,"reject"),ee(g),Pe(f(t,L),f(t,se),f(t,x))}a=ro(t);const m=gt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=m),i===void 0&&(u="wall");const y=P(e);s=Rr(y),c=Eo(y,"reject");const b=ee(y);({isoDate:n,time:r}=eo(a,m,b))}else{let m,y,b,g,w;({year:b,month:g,day:w,time:r,tzAnnotation:m,offset:i,z:y,calendar:a}=(function(D){const M=Ut(D);if(!M.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return M})(xe(t))),o=Xe(m),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=et(a),l=!0;const v=P(e);s=Rr(v),c=Eo(v,"reject"),ee(v),n={year:b,month:g,day:w}}let d=0;return u==="option"&&(d=lr(i)),Pe(So(n,r,u,d,o,s,c,l),o,a)}function Nc(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,fc,!0)}function Ke(t,e){const n=Ie("%Temporal.PlainDate%"),r=Object.create(n.prototype);return Nc(r,t,e),r}function jc(t,e,n){$n(e),nn(t),V(t,ye,e),V(t,x,n)}function bt(t,e){const n=Ie("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return jc(r,t,e),r}function Lc(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,gc,!0)}function Zn(t,e){const n=Ie("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Lc(r,t,e),r}function Yc(t,e){nn(t),V(t,Ee,e)}function Bt(t){const e=Ie("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Yc(n,t),n}function zc(t,e,n){fa(e),nn(t),V(t,Y,e),V(t,x,n),V(t,mc,!0)}function Gn(t,e){const n=Ie("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return zc(r,t,e),r}function Uc(t,e){Yt(e),nn(t),V(t,L,e)}function At(t){const e=Ie("%Temporal.Instant%"),n=Object.create(e.prototype);return Uc(n,t),n}function Fc(t,e,n,r){Yt(e),nn(t),V(t,L,e),V(t,se,n),V(t,x,r)}function Pe(t,e,n="iso8601"){const r=Ie("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Fc(o,t,e,n),o}function bs(t){return zi.filter((e=>t[e]!==void 0))}function xn(t,e,n){const r=bs(n),o=pn(t).fieldKeysToIgnore(r),i=Object.create(null),a=bs(e);for(let s=0;s<zi.length;s++){let c;const l=zi[s];a.includes(l)&&!o.includes(l)&&(c=e[l]),r.includes(l)&&(c=n[l]),c!==void 0&&(i[l]=c)}return i}function ft(t,e,n,r){const o=pn(t).dateAdd(e,n,r);return In(o),o}function to(t,e,n,r){return pn(t).dateUntil(e,n,r)}function no(t){if(Te(t)&&Je(t,x))return f(t,x);const e=xe(t);try{return et(e)}catch{}let n;try{({calendar:n}=Ut(e))}catch{try{({calendar:n}=Sc(e))}catch{try{({calendar:n}=sa(e))}catch{({calendar:n}=ca(e))}}}return n||(n="iso8601"),et(n)}function ro(t){if(Je(t,x))return f(t,x);const{calendar:e}=t;return e===void 0?"iso8601":no(e)}function Lt(t,e){return et(t)===et(e)}function gn(t,e,n){const r=pn(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return In(o),o}function Lr(t,e,n){const r=pn(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return fa(o),o}function ko(t,e,n){const r=pn(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return In(o),o}function Xe(t){if(Te(t)&&Z(t))return f(t,se);const e=xe(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(kc.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:m}=Ut(l);if(m||u||d)return{tzAnnotation:u,offset:d,z:m}}catch{}Ac(l)})(i);return a?un(a):c?un("UTC"):s?un(s):void 0})(e);if(r!==void 0)return la(r);const o=Ro(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function qc(t,e){if(t===e)return!0;const n=un(t).offsetMinutes,r=un(e).offsetMinutes;if(n===void 0&&r===void 0){const o=Ro(e);if(!o)return!1;const i=Ro(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Gt(t,e){const n=un(t).offsetMinutes;return n!==void 0?6e10*n:qi(t,e)}function Fi(t){const e=t<0?"-":"+",n=Math.abs(t),r=Math.floor(n/36e11),o=Math.floor(n/6e10)%60,i=Math.floor(n/1e9)%60,a=n%1e9;return`${e}${ii(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function Tt(t,e){const n=Gt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=Zc(e);return Ur(r,o,i,a,s,c,l,u,d+n)}function je(t,e,n){return Wc(Yr(t,e),t,e,n)}function Wc(t,e,n,r){const o=t.length;if(o===1)return t[0];if(o)switch(r){case"compatible":case"earlier":return t[0];case"later":return t[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");const i=Ae(n),a=h.subtract(i,fn);Yt(a);const s=Gt(e,a),c=h.add(i,fn);Yt(c);const l=Gt(e,c)-s;switch(r){case"earlier":{const u=B.fromComponents(0,0,0,0,0,-l),d=nr(n.time,u);return Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=B.fromComponents(0,0,0,0,0,l),d=nr(n.time,u),m=Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return m[m.length-1]}}}function Yr(t,e){if(t==="UTC")return Kn(e.isoDate),[Ae(e)];const n=un(t).offsetMinutes;if(n!==void 0){const r=Ur(e.isoDate.year,e.isoDate.month,e.isoDate.day,e.time.hour,e.time.minute-n,e.time.second,e.time.millisecond,e.time.microsecond,e.time.nanosecond);Kn(r.isoDate);const o=Ae(r);return Yt(o),[o]}return Kn(e.isoDate),(function(r,o){let i=Ae(o),a=h.subtract(i,fn);h.lessThan(a,Nr)&&(a=i);let s=h.add(i,fn);h.greaterThan(s,Jn)&&(s=i);const c=qi(r,a),l=qi(r,s);return(c===l?[c]:[c,l]).map((d=>{const m=h.subtract(i,h.BigInt(d)),y=(function(b,g){const{epochMilliseconds:w,time:{millisecond:v,microsecond:D,nanosecond:M}}=Zc(g),{year:C,month:T,day:k,hour:F,minute:G,second:N}=Bc(b,w);return Ur(C,T,k,F,G,N,v,D,M)})(r,m);if(rr(o,y)===0)return Yt(m),m})).filter((d=>d!==void 0))})(t,e)}function on(t,e){const n=te(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Yr(t,n);if(r.length)return r[0];const o=Ae(n),i=h.subtract(o,fn);return Yt(i),da(t,i)}function oo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+jr(Math.abs(t),6):jr(t,4),e}function mt(t){return jr(t,2)}function Vc(t,e){let n;if(e==="auto"){if(t===0)return"";n=jr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=jr(t,9).slice(0,e)}return`.${n}`}function ii(t,e,n,r,o){let i=`${mt(t)}:${mt(e)}`;return o==="minute"||(i+=`:${mt(n)}`,i+=Vc(r,o)),i}function ws(t,e,n){let r=e;r===void 0&&(r="UTC");const o=f(t,L),i=zr(Tt(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=Hc(Gt(r,o))),`${i}${a}`}function bo(t,e){const n=f(t,Ue),r=f(t,Fe),o=f(t,nt),i=f(t,qe),a=f(t,We),s=f(t,Ve),c=Io(t);let l="";n!==0&&(l+=`${Math.abs(n)}Y`),r!==0&&(l+=`${Math.abs(r)}M`),o!==0&&(l+=`${Math.abs(o)}W`),i!==0&&(l+=`${Math.abs(i)}D`);let u="";a!==0&&(u+=`${Math.abs(a)}H`),s!==0&&(u+=`${Math.abs(s)}M`);const d=B.fromComponents(0,0,f(t,He),f(t,Ze),f(t,Be),f(t,rt));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Ht(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${Vc(Math.abs(d.subsec),e)}S`);let m=`${c<0?"-":""}P${l}`;return u&&(m=`${m}T${u}`),m}function vs(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);return`${oo(n)}-${mt(r)}-${mt(o)}${Gr(f(t,x),e)}`}function Es({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return ii(t,e,n,1e6*r+1e3*o+i,a)}function zr(t,e,n,r="auto"){const{isoDate:{year:o,month:i,day:a},time:{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}=t;return`${oo(o)}-${mt(i)}-${mt(a)}T${ii(s,c,l,1e6*u+1e3*d+m,n)}${Gr(e,r)}`}function Ts(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${mt(r)}-${mt(o)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${oo(n)}-${i}`);const s=Gr(a,e);return s&&(i+=s),i}function _s(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${oo(n)}-${mt(r)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${mt(o)}`);const s=Gr(a,e);return s&&(i+=s),i}function Cs(t,e,n="auto",r="auto",o="auto",i=void 0){let a=f(t,L);if(i){const{unit:u,increment:d,roundingMode:m}=i;a=Zi(a,d,u,m)}const s=f(t,se),c=Gt(s,a);let l=zr(Tt(s,a),"iso8601",e,"never");return o!=="never"&&(l+=Hc(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=Gr(f(t,x),n),l}function Ds(t){return Rc.test(t)}function lr(t){const e=uf.exec(t);if(!e)throw new RangeError(`invalid time zone offset: ${t}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(e[1]==="-"?-1:1)*(1e9*(60*(60*+e[2]+ +(e[3]||0))+ +(e[4]||0))+ +((e[5]||0)+"000000000").slice(0,9))}let mr;const cf=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function Ro(t){if(mr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){mr=new Map;for(let a=0;a<i.length;a++){const s=i[a];mr.set(Fr(s),s)}}else mr=null}const e=Fr(t);let n=mr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=$c(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),nf.has(t))throw new RangeError(`${t} is a legacy time zone identifier from ICU. Use ${n} instead`);const r=[...e].map(((i,a)=>a===0||cf[e[a-1]]?i.toUpperCase():i)).join("").split("/");if(r.length===1)return e==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:n}:{identifier:e.length<=3||/[-0-9]/.test(e)?e.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};const 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 Cn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Bc(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*(ua({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function qi(t,e){return Cn(t,_t(e,"floor"))}function la(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${ii(Math.floor(n/60),n%60,0,0,"minute")}`}function Hc(t){return la(ln(t,Xh,"halfExpand")/6e10)}function ua({isoDate:{year:t,month:e,day:n},time:{hour:r,minute:o,second:i,millisecond:a}}){const s=t%400,c=(t-s)/400,l=new Date;return l.setUTCHours(r,o,i,a),l.setUTCFullYear(s,e-1,n),l.getTime()+ef*c}function Ae(t){const e=ua(t),n=1e3*t.time.microsecond+t.time.nanosecond;return h.add(Pt(e),h.BigInt(n))}function Zc(t){let e=_t(t,"trunc"),n=h.toNumber(h.remainder(t,Zr));n<0&&(n+=1e6,e-=1);const r=Math.floor(n/1e3)%1e3,o=n%1e3,i=new Date(e);return{epochMilliseconds:e,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 da(t,e){if(t==="UTC")return null;const n=_t(e,"floor");if(n<$r)return da(t,Pt($r));const r=Date.now(),o=Math.max(n,r)+366*mn*3;let i=n,a=Cn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*mn*7,s>Oc)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:Pt(ol((l=>Cn(t,l)),i,s,a,c))}function Wi(t,e){if(t==="UTC")return null;const n=_t(e,"ceil"),r=Date.now(),o=r+366*mn*3;if(n>o){const l=Wi(t,Pt(o));if(l===null||h.lessThan(l,Pt(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return Wi(t,Pt(l))}let i=n-1;if(i<$r)return null;let a=Cn(t,i),s=i,c=a;for(;a===c&&i>$r;){if(s=i-2*mn*7,s<$r)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:Pt(ol((l=>Cn(t,l)),s,i,c,a))}function Bc(t,e){return(function(n){const r=n.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${n}`);const o=+r[0],i=+r[1];let a=+r[2];const s=r[3];if(s[0]==="b"||s[0]==="B")a=1-a;else if(s[0]!=="a"&&s[0]!=="A")throw new RangeError(`Unknown era ${s} in "${n}`);const c=r[4]==="24"?0:+r[4],l=+r[5],u=+r[6];if(!(Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(u)))throw new RangeError(`Invalid number in "${n}`);return{year:a,month:o,day:i,hour:c,minute:l,second:u}})($c(t).format(e))}function Ao(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function Dn(t,e){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]}[Ao(t)?"leapyear":"standard"][e-1]}function Io(t){const e=[f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function ai(t){const e=["years","months","weeks","days"];for(let n=0;n<e.length;n++){const r=t[e[n]];if(r!==0)return r<0?-1:1}return 0}function Gc(t){const e=ai(t.date);return e!==0?e:t.time.sign()}function Tn(t,e){let n=t,r=e;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 at(t,e,n){let r=t,o=e,i=n;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Tn(r,o));const a=146097;if(Math.abs(i)>a){const l=Math.trunc(i/a);r+=400*l,i-=l*a}let s=0,c=o>2?r:r-1;for(;s=Ao(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=Ao(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Tn(r,o-1)),i+=Dn(r,o);for(;i>Dn(r,o);)i-=Dn(r,o),{year:r,month:o}=Tn(r,o+1);return{year:r,month:o,day:i}}function Ur(t,e,n,r,o,i,a,s,c){const l=an(r,o,i,a,s,c);return te(at(t,e,n+l.deltaDays),l)}function an(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,m=i;({div:a,mod:m}=Hn(m,3)),d+=a,m<0&&(d-=1,m+=1e3),{div:a,mod:d}=Hn(d,3),u+=a,d<0&&(u-=1,d+=1e3),l+=Math.trunc(u/1e3),u%=1e3,u<0&&(l-=1,u+=1e3),c+=Math.trunc(l/60),l%=60,l<0&&(c-=1,l+=60),s+=Math.trunc(c/60),c%=60,c<0&&(s-=1,c+=60);let y=Math.trunc(s/24);return s%=24,s<0&&(y-=1,s+=24),y+=0,s+=0,c+=0,l+=0,u+=0,d+=0,m+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function Ms(t,e){const n=Ne(t,0);if(ai(n)===0)return t.days;const r=f(e,Y),o=ft(f(e,x),r,n,"constrain"),i=Sn(r.year,r.month-1,r.day),a=Sn(o.year,o.month-1,o.day)-i;return t.days+a}function st(t){return new(Ie("%Temporal.Duration%"))(-f(t,Ue),-f(t,Fe),-f(t,nt),-f(t,qe),-f(t,We),-f(t,Ve),-f(t,He),-f(t,Ze),-f(t,Be),-f(t,rt))}function Ge(t,e,n){return Math.min(n,Math.max(e,t))}function Kc(t,e,n){const r=Ge(e,1,12);return{year:t,month:r,day:Ge(n,1,Dn(t,r))}}function $e(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function On(t,e,n){$e(e,1,12),$e(n,1,Dn(t,e))}function In(t){$n(te(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function si(t,e,n,r,o,i){$e(t,0,23),$e(e,0,59),$e(n,0,59),$e(r,0,999),$e(o,0,999),$e(i,0,999)}function ha(t,e,n,r,o,i,a,s,c){On(t,e,n),si(r,o,i,a,s,c)}function $n(t){const e=Ae(t);(h.lessThan(e,Qh)||h.greaterThan(e,Jh))&&Yt(e)}function Vi(t){Ae(t)}function Yt(t){if(h.lessThan(t,Nr)||h.greaterThan(t,Jn))throw new RangeError("date/time value is outside of supported range")}function fa({year:t,month:e}){$e(t,hs,fs),t===hs?$e(e,4,12):t===fs&&$e(e,1,9)}function ci(t,e,n,r,o,i,a,s,c,l){let u=0;const d=[t,e,n,r,o,i,a,s,c,l];for(let v=0;v<d.length;v++){const D=d[v];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const M=D<0?-1:1;if(u!==0&&M!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=M}}if(Math.abs(t)>=2**32||Math.abs(e)>=2**32||Math.abs(n)>=2**32)throw new RangeError("years, months, and weeks must be < 2³²");const m=Hn(s,3),y=Hn(c,6),b=Hn(l,9),g=Hn(1e6*m.mod+1e3*y.mod+b.mod,9).div,w=86400*r+3600*o+60*i+a+m.div+y.div+b.div+g;if(!Number.isSafeInteger(w))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Vn(t){return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:f(t,qe)},time:B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt))}}function It(t){const e=B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)).add24HourDays(f(t,qe));return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:0},time:e}}function Xc(t){const e=It(t),n=Math.trunc(e.time.sec/86400);return ci(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function wt(t,e){const n=t.time.sign();let r=t.time.abs().subsec,o=0,i=0,a=t.time.abs().sec,s=0,c=0,l=0;switch(e){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60,l=Math.trunc(c/24),c%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=_i(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=_i(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=_i(a,9,r),a=0}return new(Ie("%Temporal.Duration%"))(t.date.years,t.date.months,t.date.weeks,t.date.days+n*l,n*c,n*s,n*a,n*i,n*o,n*r)}function Xt(t,e){return ai(t),e.sign(),{date:t,time:e}}function Sn(t,e,n){return ua({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/mn}function Kn({year:t,month:e,day:n}){if(Math.abs(Sn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function ma(t,e){const n=e.hour-t.hour,r=e.minute-t.minute,o=e.second-t.second,i=e.millisecond-t.millisecond,a=e.microsecond-t.microsecond,s=e.nanosecond-t.nanosecond;return B.fromComponents(n,r,o,i,a,s)}function ga(t,e,n,r,o){let i=B.fromEpochNsDiff(e,t);return i=Po(i,n,r,o),Xt({years:0,months:0,weeks:0,days:0},i)}function Qc(t,e,n,r){Vi(t),Vi(e);let o=ma(t.time,e.time);const i=o.sign(),a=zt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=at(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Kt("day",r),l=to(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),Xt(l,o)}function Jc(t,e,n,r,o){const i=h.subtract(e,t);if(h.equal(i,dt))return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};const a=h.lessThan(i,dt)?-1:1,s=Tt(n,t),c=Tt(n,e);let l,u=0,d=a===1?2:1,m=ma(s.time,c.time);for(m.sign()===-a&&u++;u<=d;u++){l=te(at(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const b=je(n,l,"compatible");if(m=B.fromEpochNsDiff(e,b),m.sign()!==-a)break}const y=Kt("day",o);return Xt(to(r,s.isoDate,l.isoDate,y),m)}function el(t,e,n,r,o,i,a,s,c){let l,u,d,m,y=e;switch(s){case"year":{const p=ln(y.date.years,a,"trunc");l=p,u=p+a*t,d={years:l,months:0,weeks:0,days:0},m={...d,years:u};break}case"month":{const p=ln(y.date.months,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,0,0,l),m=Ne(y.date,0,0,u);break}case"week":{const p=Ne(y.date,0,0),R=ft(i,r.isoDate,p,"constrain"),O=to(i,R,at(R.year,R.month,R.day+y.date.days),"week"),j=ln(y.date.weeks+O.weeks,a,"trunc");l=j,u=j+a*t,d=Ne(y.date,0,l),m=Ne(y.date,0,u);break}case"day":{const p=ln(y.date.days,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,l),m=Ne(y.date,u);break}}const b=ft(i,r.isoDate,d,"constrain"),g=ft(i,r.isoDate,m,"constrain");let w,v;const D=te(b,r.time),M=te(g,r.time);o?(w=je(o,D,"compatible"),v=je(o,M,"compatible")):(w=Ae(D),v=Ae(M));const C=B.fromEpochNsDiff(n,w),T=B.fromEpochNsDiff(v,w),k=Jo(c,t<0?"negative":"positive"),F=C.add(C).abs().subtract(T.abs()).sign(),G=Math.abs(l)/a%2==0,N=C.isZero()?Math.abs(l):C.cmp(T)?ei(Math.abs(l),Math.abs(u),F,G,k):Math.abs(u),ae=new B(h.add(h.multiply(T.totalNs,h.BigInt(l)),h.multiply(C.totalNs,h.BigInt(a*t)))).fdiv(T.totalNs),q=N===Math.abs(u);return y={date:q?m:d,time:B.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:q?v:w,didExpandCalendarUnit:q},total:ae}}function li(t,e,n,r,o,i,a,s,c){let l=t;const u=St(s)||r&&s==="day",d=Gc(l)<0?-1:1;let m;return u?{nudgeResult:m}=el(d,l,e,n,r,o,a,s,c):m=r?(function(y,b,g,w,v,D,M,C){let T=b;const k=ft(v,g.isoDate,T.date,"constrain"),F=te(k,g.time),G=te(at(k.year,k.month,k.day+y),g.time),N=je(w,F,"compatible"),ae=je(w,G,"compatible"),q=B.fromEpochNsDiff(ae,N);if(q.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const p=h.BigInt(tr[M]*D);let R=T.time.round(p,C);const O=R.subtract(q),j=O.sign()!==-y;let H,pe;return j?(H=y,R=O.round(p,C),pe=R.addToEpochNs(ae)):(H=0,pe=R.addToEpochNs(N)),{duration:Xt(Ne(T.date,T.date.days+H),R),nudgedEpochNs:pe,didExpandCalendarUnit:j}})(d,l,n,r,o,a,s,c):(function(y,b,g,w,v,D){let M=y;const C=M.time.add24HourDays(M.date.days),T=C.round(h.BigInt(w*tr[v]),D),k=T.subtract(C),{quotient:F}=C.divmod(Oo),{quotient:G}=T.divmod(Oo),N=Math.sign(G-F)===C.sign(),ae=k.addToEpochNs(b);let q=0,p=T;return Zt(g)==="date"&&(q=G,p=T.add(B.fromComponents(24*-G,0,0,0,0,0))),{duration:{date:Ne(M.date,q),time:p},nudgedEpochNs:ae,didExpandCalendarUnit:N}})(l,e,i,a,s,c),l=m.duration,m.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,b,g,w,v,D,M,C){let T=b;if(C===M)return T;const k=Sr.indexOf(M);for(let F=Sr.indexOf(C)-1;F>=k;F--){const G=Sr[F];if(G==="week"&&M!=="week")continue;let N;switch(G){case"year":N={years:T.date.years+y,months:0,weeks:0,days:0};break;case"month":{const p=T.date.months+y;N=Ne(T.date,0,0,p);break}case"week":{const p=T.date.weeks+y;N=Ne(T.date,0,p);break}}const ae=te(ft(D,w.isoDate,N,"constrain"),w.time);let q;if(q=v?je(v,ae,"compatible"):Ae(ae),Mo(g,q)===-y)break;T={date:N,time:B.ZERO}}return T})(d,l,m.nudgedEpochNs,n,r,o,i,Kt(s,"day"))),l}function xs(t,e,n,r,o,i){return St(i)||r&&i==="day"?el(Gc(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Ar(t.time.add24HourDays(t.date.days),i)}function tl(t,e,n,r,o,i,a){if(rr(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};$n(t),$n(e);const s=Qc(t,e,n,r);return i==="nanosecond"&&o===1?s:li(s,Ae(e),t,null,n,r,o,i,a)}function nl(t,e,n,r,o,i,a,s){if(Zt(o)==="time")return ga(t,e,i,a,s);const c=Jc(t,e,n,r,o);return a==="nanosecond"&&i===1?c:li(c,e,Tt(n,t),n,r,o,i,a,s)}function ur(t,e,n,r,o,i){const a=er.reduce(((y,b)=>{const g=b[0],w=b[1],v=b[2];return n!=="datetime"&&v!==n||r.includes(w)||y.push(w,g),y}),[]);let s=it(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=sr(e);let l=Mt(e,"trunc");t==="since"&&(l=(function(y){switch(y){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return y}})(l));const u=it(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Kt(i,u);if(s==="auto"&&(s=d),Kt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const m={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return m!==void 0&&cr(c,m,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function Os(t,e,n,r){const o=_r(n),i=ur(t,P(r),"time",[],"nanosecond","second");let a=wt(ga(f(e,L),f(o,L),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=st(a)),a}function $s(t,e,n,r){const o=Er(n),i=f(e,x),a=f(o,x);if(!Lt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",[],"day","day"),c=Ie("%Temporal.Duration%"),l=f(e,Y),u=f(o,Y);if(zt(l,u)===0)return new c;let d={date:to(i,l,u,s.largestUnit),time:B.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=li(d,Ae(te(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),y,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let m=wt(d,"day");return t==="since"&&(m=st(m)),m}function Ss(t,e,n,r){const o=Tr(n),i=f(e,x),a=f(o,x);if(!Lt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","day"),c=Ie("%Temporal.Duration%"),l=f(e,ye),u=f(o,ye);if(rr(l,u)===0)return new c;let d=wt(tl(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=st(d)),d}function ks(t,e,n,r){const o=cn(n),i=ur(t,P(r),"time",[],"nanosecond","hour");let a=ma(f(e,Ee),f(o,Ee));a=Po(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=wt(Xt({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=st(s)),s}function Rs(t,e,n,r){const o=Cr(n),i=f(e,x),a=f(o,x);if(!Lt(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",["week","day"],"month","year"),c=Ie("%Temporal.Duration%");if(zt(f(e,Y),f(o,Y))==0)return new c;const l=Qe(i,f(e,Y),"year-month");l.day=1;const u=gn(i,l,"constrain"),d=Qe(i,f(o,Y),"year-month");d.day=1;const m=gn(i,d,"constrain");let y={date:Ne(to(i,u,m,s.largestUnit),0,0),time:B.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=te(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=li(y,Ae(te(m,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),g,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let b=wt(y,"day");return t==="since"&&(b=st(b)),b}function As(t,e,n,r){const o=Dr(n),i=f(e,x),a=f(o,x);if(!Lt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","hour"),c=f(e,L),l=f(o,L),u=Ie("%Temporal.Duration%");let d;if(Zt(s.largestUnit)!=="date")d=wt(ga(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const m=f(e,se);if(!qc(m,f(o,se)))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(h.equal(c,l))return new u;d=wt(nl(c,l,m,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=st(d)),d}function nr({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){let s=n,c=i;return s+=a.sec,c+=a.subsec,an(t,e,s,r,o,c)}function Hi(t,e){const n=e.addToEpochNs(t);return Yt(n),n}function Mr(t,e,n,r,o="constrain"){if(ai(r.date)===0)return Hi(t,r.time);const i=Tt(e,t);return Hi(je(e,te(ft(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function Is(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Kt(Ht(e),Ht(r));if(St(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=It(e),a=It(r);return wt(Xt({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function Ps(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Ht(r);if(Zt(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=It(r);return At(Hi(f(e,L),i.time))}function Ns(t,e,n,r){const o=f(e,x);let i=Et(n);t==="subtract"&&(i=st(i));const a=Xc(i),s=ee(P(r));return Ke(ft(o,f(e,Y),a,s),o)}function js(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,x),s=It(o),c=f(e,ye),l=nr(c.time,s.time),u=Ne(s.date,l.deltaDays);return ci(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),bt(te(ft(a,c.isoDate,u,i),l),a)}function Ls(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=It(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=nr(f(e,Ee),o.time);return Bt(oi(i,a,s,c,l,u,"reject"))}function Ys(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=Io(o),s=f(e,x),c=Qe(s,f(e,Y),"year-month");c.day=1;let l=gn(s,c,"constrain");if(a<0){const d=ft(s,l,{months:1},"constrain");l=at(d.year,d.month,d.day-1)}const u=Xc(o);return In(l),Gn(Lr(s,Qe(s,ft(s,l,u,i),"year-month"),i),s)}function zs(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,se),s=f(e,x),c=Vn(o);return Pe(Mr(f(e,L),a,s,c,i),a,s)}function ln(t,e,n){const r=Math.trunc(t/e),o=t%e,i=t<0?"negative":"positive",a=Math.abs(r),s=a+1,c=ot(Math.abs(2*o)-e),l=a%2==0,u=Jo(n,i),d=o===0?a:ei(a,s,c,l,u);return e*(i==="positive"?d:-d)}function Zi(t,e,n,r){const o=tr[n]*e;return(function(i,a,s){const c=Wt(i),l=Wt(a),u=h.divide(c,l),d=h.remainder(c,l),m=Jo(s,"positive");let y,b;h.lessThan(c,dt)?(y=h.subtract(u,Pr),b=u):(y=u,b=h.add(u,Pr));const g=Mo(vn(h.multiply(d,aa)),l)*(h.lessThan(c,dt)?-1:1)+0,w=h.equal(d,dt)?u:ei(y,b,g,hc(y),m);return h.multiply(w,l)})(t,h.BigInt(o),r)}function Bi(t,e,n,r){Vi(t);const{year:o,month:i,day:a}=t.isoDate,s=Gi(t.time,e,n,r);return te(at(o,i,a+s.deltaDays),s)}function Gi({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a,s,c){let l;switch(s){case"day":case"hour":l=1e3*(1e3*(1e3*(60*(60*t+e)+n)+r)+o)+i;break;case"minute":l=1e3*(1e3*(1e3*(60*e+n)+r)+o)+i;break;case"second":l=1e3*(1e3*(1e3*n+r)+o)+i;break;case"millisecond":l=1e3*(1e3*r+o)+i;break;case"microsecond":l=1e3*o+i;break;case"nanosecond":l=i}const u=tr[s],d=ln(l,u*a,c)/u;switch(s){case"day":return{deltaDays:d,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return an(d,0,0,0,0,0);case"minute":return an(t,d,0,0,0,0);case"second":return an(t,e,d,0,0,0);case"millisecond":return an(t,e,n,d,0,0);case"microsecond":return an(t,e,n,r,d,0);case"nanosecond":return an(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Po(t,e,n,r){const o=tr[n];return t.round(h.BigInt(o*e),r)}function Ar(t,e){const n=tr[e];return t.fdiv(h.BigInt(n))}function zt(t,e){return t.year!==e.year?ot(t.year-e.year):t.month!==e.month?ot(t.month-e.month):t.day!==e.day?ot(t.day-e.day):0}function Ki(t,e){return t.hour!==e.hour?ot(t.hour-e.hour):t.minute!==e.minute?ot(t.minute-e.minute):t.second!==e.second?ot(t.second-e.second):t.millisecond!==e.millisecond?ot(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?ot(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?ot(t.nanosecond-e.nanosecond):0}function rr(t,e){const n=zt(t.isoDate,e.isoDate);return n!==0?n:Ki(t.time,e.time)}function rl(t){const e=No(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function _t(t,e){const n=Wt(t),{quotient:r,remainder:o}=wr(n,Zr);let i=h.toNumber(r);return e==="floor"&&h.toNumber(o)<0&&(i-=1),e==="ceil"&&h.toNumber(o)>0&&(i+=1),i}function Pt(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return h.multiply(h.BigInt(t),Zr)}function No(t){let e=t;if(typeof t=="object"){const n=t[Symbol.toPrimitive];n&&typeof n=="function"&&(e=n.call(t,"number"))}if(typeof e=="number")throw new TypeError("cannot convert number to bigint");return typeof e=="bigint"?h.BigInt(e.toString(10)):h.BigInt(e)}const Xi=(()=>{let t=h.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=h.BigInt(e),r=h.add(Pt(e),t);return t=h.remainder(n,Zr),h.greaterThan(r,Jn)?Jn:h.lessThan(r,Nr)?Nr:r}})();function gr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function ot(t){return t<0?-1:t>0?1:t}function P(t){if(t===void 0)return Object.create(null);if(Te(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function kn(t,e){const n=Object.create(null);return n[t]=e,n}function Qt(t,e,n,r){let o=t[e];if(o!==void 0){if(o=ni(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===tn)throw new RangeError(`${e} option is required`);return r}function et(t){const e=Fr(t);if(!tf.includes(Fr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Fr(t){let e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return e}function bn(t){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${t==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${t}.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.`)}const lf=new RegExp(`^${Mc.source}$`),uf=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function ol(t,e,n,r=t(e),o=t(n)){let i=e,a=n,s=r,c=o;for(;a-i>1;){let l=Math.trunc((i+a)/2);const u=t(l);u===s?(i=l,s=u):u===c&&(a=l,c=u)}return a}function il(t){return[...t]}function al(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=io[t];let r=e.year;const{dayOfWeek:o,dayOfYear:i,daysInYear:a}=n.isoToDate(e,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=n.getFirstDayOfWeek(),c=n.getMinimalDaysInFirstWeek();let l=(o+7-s)%7,u=(o-i+7001-s)%7,d=Math.floor((i-1+u)/7);if(7-u>=c&&++d,d==0)d=(function(m,y,b,g){let w=(g-m-b+1)%7;w<0&&(w+=7);let v=Math.floor((b+w-1)/7);return 7-w>=y&&++v,v})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let m=(l+a-i)%7;m<0&&(m+=7),6-m>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function Us(t,e,n,r,o){if(e!==o.year){if(t*(e-o.year)>0)return!0}else if(n!==o.month){if(t*(n-o.month)>0)return!0}else if(r!==o.day&&t*(r-o.day)>0)return!0;return!1}const io={};function Rn(t){if(!t.startsWith("M"))throw new RangeError(`Invalid month code: ${t}. Month codes must start with M.`);const e=+t.slice(1);if(Number.isNaN(e))throw new RangeError(`Invalid month code: ${t}`);return e}function Nt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function ya(t,e=void 0,n=12){let{month:r,monthCode:o}=t;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");e==="reject"&&$e(r,1,n),e==="constrain"&&(r=Ge(r,1,n)),o=Nt(r)}else{const i=Rn(o);if(o!==Nt(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{...t,month:r,monthCode:o}}io.iso8601={resolveFields(t,e){if((e==="date"||e==="year-month")&&t.year===void 0)throw new TypeError("year is required");if((e==="date"||e==="month-day")&&t.day===void 0)throw new TypeError("day is required");Object.assign(t,ya(t))},dateToISO:(t,e)=>kr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=kr(t.year??1972,t.month,t.day,e);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(t){const e=new Set;for(let n=0;n<t.length;n++){const r=t[n];e.add(r),r==="month"?e.add("monthCode"):r==="monthCode"&&e.add("month")}return il(e)},dateAdd(t,{years:e=0,months:n=0,weeks:r=0,days:o=0},i){let{year:a,month:s,day:c}=t;return a+=e,s+=n,{year:a,month:s}=Tn(a,s),{year:a,month:s,day:c}=kr(a,s,c,i),c+=o+7*r,at(a,s,c)},dateUntil(t,e,n){const r=-zt(t,e);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,a=0;if(n==="year"||n==="month"){let u=e.year-t.year;for(u!==0&&(u-=r);!Us(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Tn(t.year+i,t.month+d);!Us(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Tn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Tn(t.year+i,t.month+a);const s=Kc(o.year,o.month,t.day);let c=0,l=Sn(e.year,e.month-1,e.day)-Sn(s.year,s.month-1,s.day);return n==="week"&&(c=Math.trunc(l/7),l%=7),{years:i,months:a,weeks:c,days:l}},isoToDate({year:t,month:e,day:n},r){const o={era:void 0,eraYear:void 0,year:t,month:e,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=Nt(e)),r.dayOfWeek){const i=e+(e<3?10:-2),a=t-(e<3?1:0),s=Math.floor(a/100),c=a-100*s,l=(n+Math.floor(2.6*i-.2)+(c+Math.floor(c/4))+(Math.floor(s/4)-2*s))%7;o.dayOfWeek=l+(l<=0?7:0)}if(r.dayOfYear){let i=n;for(let a=e-1;a>0;a--)i+=Dn(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=al("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=Dn(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=Ao(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Oe{constructor(e){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,e!==void 0){let n=0;for(const r of e.map.entries()){if(++n>Oe.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(e){const n=this.map.get(e);return n&&(this.hits++,this.report()),this.calls++,n}set(e,n){this.map.set(e,n),this.misses++,this.report()}report(){}setObject(e){if(Oe.objectMap.get(e))throw new RangeError("object already cached");Oe.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Oe.objectMap.get(e);return n||(n=new Oe,Oe.objectMap.set(e,n)),n}}function sl({isoYear:t,isoMonth:e,isoDay:n}){return`${oo(t)}-${mt(e)}-${mt(n)}T00:00Z`}function Mi(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Oe.objectMap=new WeakMap,Oe.MAX_CACHE_ENTRIES=1e3;class Pn{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(e){let n=this.getFormatter(),r=new Date(e);if(e==="-271821-04-19T00:00Z"){const o=n.resolvedOptions();n=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return n.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${e}`)}}isoToCalendarDate(e,n){const{year:r,month:o,day:i}=e,a=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),s=n.get(a);if(s)return s;const c=sl({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let m=0;m<l.length;m++){const{type:y,value:b}=l[m];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+b:u.year=+b),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(b);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${b}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${b} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(u.month>13)throw new RangeError(`Invalid month ${b} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);g[2]&&(u.monthExtra=g[2])}y==="day"&&(u.day=+b),this.hasEra&&y==="era"&&b!=null&&b!==""&&(u.era=b.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&u.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){const m=this.eras.find((y=>u.era===y.genericName));m&&(u.era=m.code)}if(this.reviseIntlEra){const{era:m,eraYear:y}=this.reviseIntlEra(u,e);u.era=m,u.eraYear=y}this.checkIcuBugs&&this.checkIcuBugs(e);const d=this.adjustCalendarDate(u,n,"constrain",!0);if(d.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(e)}`);if(d.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(e)}`);if(d.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(e)}`);return n.set(a,d),["constrain","reject"].forEach((m=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:m,id:this.id});n.set(y,e)})),d}validateCalendarDate(e){const{month:n,year:r,day:o,eraYear:i,monthCode:a,monthExtra:s}=e;if(s!==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&&a===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(a!==void 0){if(typeof a!="string")throw new RangeError("monthCode must be a string, not "+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw new RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&e.era===void 0!=(e.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(e,n=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=e;this.validateCalendarDate(i);const a=this.monthsInYear(i,n);let{month:s,monthCode:c}=i;return{month:s,monthCode:c}=ya(i,r,a),{...i,month:s,monthCode:c}}regulateMonthDayNaive(e,n,r){const o=this.monthsInYear(e,r);let{month:i,day:a}=e;return n==="reject"?($e(i,1,o),$e(a,1,this.maximumMonthLength(e))):(i=Ge(i,1,o),a=Ge(a,1,this.maximumMonthLength({...e,month:i}))),{...e,month:i,day:a}}calendarToIsoDate(e,n="constrain",r){const o=e;let i=this.adjustCalendarDate(e,r,n,!1);i=this.regulateMonthDayNaive(i,n,r);const{year:a,month:s,day:c}=i,l=JSON.stringify({func:"calendarToIsoDate",year:a,month:s,day:c,overflow:n,id:this.id});let u,d=r.get(l);if(d||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(u=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:n,id:this.id}),d=r.get(u),d))return d;let m=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let M=this.addDaysIso(m,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(M,r);for(;C.month!==s||C.year!==a;){if(n==="reject")throw new RangeError(`day ${c} does not exist in month ${s} of year ${a}`);M=this.addDaysIso(M,-1),C=this.isoToCalendarDate(M,r)}}return M};let b=0,g=this.isoToCalendarDate(m,r),w=Mi(i,g);if(w.years!==0||w.months!==0||w.days!==0){const D=365*w.years+30*w.months+w.days;m=this.addDaysIso(m,D),g=this.isoToCalendarDate(m,r),w=Mi(i,g),w.years===0&&w.months===0?m=y(w.days):b=this.compareCalendarDates(i,g)}let v=8;for(;b;){m=this.addDaysIso(m,b*v);const D=g;g=this.isoToCalendarDate(m,r);const M=b;if(b=this.compareCalendarDates(i,g),b){if(w=Mi(i,g),w.years===0&&w.months===0)m=y(w.days),b=0;else if(M&&b!==M)if(v>1)v/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(m=this.addDaysIso(m,-1)),b=0}}}if(r.set(l,m),u&&r.set(u,m),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 m}compareCalendarDates(e,n){return e.year!==n.year?ot(e.year-n.year):e.month!==n.month?ot(e.month-n.month):e.day!==n.day?ot(e.day-n.day):0}regulateDate(e,n="constrain",r){const o=this.calendarToIsoDate(e,n,r);return this.isoToCalendarDate(o,r)}addDaysIso(e,n){return at(e.year,e.month,e.day+n)}addDaysCalendar(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.addDaysIso(o,n);return this.isoToCalendarDate(i,r)}addMonthsCalendar(e,n,r,o){let i=e;const{day:a}=i;for(let s=0,c=Math.abs(n);s<c;s++){const{month:l}=i,u=i,d=n<0?-Math.max(a,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),m=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(m,d);if(i=this.isoToCalendarDate(y,o),n>0){const b=this.monthsInYear(u,o);for(;i.month-1!=l%b;)y=this.addDaysIso(y,-1),i=this.isoToCalendarDate(y,o)}i.day!==a&&(i=this.regulateDate({...i,day:a},"constrain",o))}if(r==="reject"&&i.day!==a)throw new RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(e,{years:n=0,months:r=0,weeks:o=0,days:i=0},a,s){const{year:c,day:l,monthCode:u}=e,d=this.adjustCalendarDate({year:c+n,monthCode:u,day:l},s),m=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(m,y,s)}untilCalendar(e,n,r,o){let i=0,a=0,s=0,c=0;switch(r){case"day":i=this.calendarDaysUntil(e,n,o);break;case"week":{const l=this.calendarDaysUntil(e,n,o);i=l%7,a=(l-i)/7;break}case"month":case"year":{const l=this.compareCalendarDates(n,e);if(!l)return{years:0,months:0,weeks:0,days:0};const u=n.year-e.year,d=n.day-e.day;if(r==="year"&&u){let b=0;n.monthCode>e.monthCode&&(b=1),n.monthCode<e.monthCode&&(b=-1),b||(b=Math.sign(d)),c=b*l<0?u-l:u}let m,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,m=y,y=this.addMonthsCalendar(m,l,"constrain",o),y.day!==e.day&&(y=this.regulateDate({...y,day:e.day},"constrain",o));while(this.compareCalendarDates(n,y)*l>=0);s-=l,i=this.calendarDaysUntil(m,n,o);break}}return{years:c,months:s,weeks:a,days:i}}daysInMonth(e,n){const{day:r}=e,o=this.maximumMonthLength(e),i=this.minimumMonthLength(e);if(i===o)return i;const a=r<=o-i?o:i,s=this.calendarToIsoDate(e,"constrain",n),c=this.addDaysIso(s,a),l=this.isoToCalendarDate(c,n),u=this.addDaysIso(c,-l.day);return this.isoToCalendarDate(u,n).day}daysInPreviousMonth(e,n){const{day:r,month:o,year:i}=e;let a={year:o>1?i:i-1,month:o,day:1};const s=o>1?o-1:this.monthsInYear(a,n);a={...a,month:s};const c=this.minimumMonthLength(a),l=this.maximumMonthLength(a);if(c===l)return l;const u=this.calendarToIsoDate(e,"constrain",n),d=this.addDaysIso(u,-r);return this.isoToCalendarDate(d,n).day}startOfCalendarYear(e){return{year:e.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(e){return{year:e.year,month:e.month,day:1}}calendarDaysUntil(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.calendarToIsoDate(n,"constrain",r);return Sn(i.year,i.month-1,i.day)-Sn(o.year,o.month-1,o.day)}monthDaySearchStartYear(e,n){return 1972}monthDayFromFields(e,n,r){let o,i,a,s,c,{era:l,eraYear:u,year:d,month:m,monthCode:y,day:b}=e;if(m!==void 0&&d===void 0&&(!this.hasEra||l===void 0||u===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(y===void 0||d!==void 0||this.hasEra&&u!==void 0)&&({monthCode:y,day:b}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,b),month:12,day:31},w=this.isoToCalendarDate(g,r),v=w.monthCode>y||w.monthCode===y&&w.day>=b?w.year:w.year-1;for(let D=0;D<20;D++){const M=this.adjustCalendarDate({day:b,monthCode:y,year:v-D},r),C=this.calendarToIsoDate(M,"constrain",r),T=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,T.monthCode===y&&T.day===b)return{month:i,day:a,year:o};if(n==="constrain"){const k=this.maxLengthOfMonthCodeInAnyYear(T.monthCode);if(T.monthCode===y&&T.day===k&&b>k)return{month:i,day:a,year:o};(s===void 0||T.monthCode===s.monthCode&&T.day>s.day)&&(s=T,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${b}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class df extends Pn{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(e){const{year:n}=e;return(7*n+1)%19<7}monthsInYear(e){return this.inLeapYear(e)?13:12}minimumMonthLength(e){return this.minMaxMonthLength(e,"min")}maximumMonthLength(e){return this.minMaxMonthLength(e,"max")}minMaxMonthLength(e,n){const{month:r,year:o}=e,i=this.getMonthCode(o,r),a=Object.entries(this.months).find((c=>c[1].monthCode===i));if(a===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);const s=a[1].days;return typeof s=="number"?s:s[n]}maxLengthOfMonthCodeInAnyYear(e){return["M04","M06","M08","M10","M12"].includes(e)?29:30}estimateIsoDate(e){const{year:n}=e;return{year:n-3760,month:1,day:1}}getMonthCode(e,n){return this.inLeapYear({year:e})?n===6?Nt(5,!0):Nt(n<6?n:n-1):Nt(n)}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthCode:s,day:c,monthExtra:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(l){const u=this.months[l];if(!u)throw new RangeError(`Unrecognized month from formatToParts: ${l}`);a=this.inLeapYear({year:i})?u.leap:u.regular}return s=this.getMonthCode(i,a),{year:i,month:a,day:c,monthCode:s}}if(this.validateCalendarDate(e),a===void 0)if(s.endsWith("L")){if(s!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${s}`);if(a=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,s="M06"}}else{a=Rn(s),this.inLeapYear({year:i})&&a>=6&&a++;const u=this.monthsInYear({year:i});if(a<1||a>u)throw new RangeError(`Invalid monthCode: ${s}`)}else if(r==="reject"?($e(a,1,this.monthsInYear({year:i})),$e(c,1,this.maximumMonthLength({year:i,month:a}))):(a=Ge(a,1,this.monthsInYear({year:i})),c=Ge(c,1,this.maximumMonthLength({year:i,month:a}))),s===void 0)s=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==s)throw new RangeError(`monthCode ${s} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...e,day:c,month:a,monthCode:s,year:i}}}class dr extends Pn{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(e,n){const r={year:e.year,month:1,monthCode:"M01",day:1},o={year:e.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(e){const{year:n}=this.adjustCalendarDate(e);return{year:Math.floor(n*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}class hf extends dr{constructor(){super(...arguments),this.id="islamic"}}class ff extends dr{constructor(){super(...arguments),this.id="islamic-umalqura"}}class mf extends dr{constructor(){super(...arguments),this.id="islamic-tbla"}}class gf extends dr{constructor(){super(...arguments),this.id="islamic-civil"}}class yf extends dr{constructor(){super(...arguments),this.id="islamic-rgsa"}}class pf extends dr{constructor(){super(...arguments),this.id="islamicc"}}class bf extends Pn{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(e,n){return this.daysInMonth({year:e.year,month:12,day:1},n)===30}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===12?29:n<=6?31:30}maximumMonthLength(e){const{month:n}=e;return n===12?30:n<=6?31:30}maxLengthOfMonthCodeInAnyYear(e){return Rn(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class wf extends Pn{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(e){return pa(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Rn(e);let r=this.months[n];return r=r.leap??r,r.length}getMonthInfo(e){const{month:n}=e;let r=this.months[n];if(r===void 0)throw new RangeError(`Invalid month: ${n}`);return this.inLeapYear(e)&&r.leap&&(r=r.leap),r}estimateIsoDate(e){const n=this.adjustCalendarDate(e),r=this.getMonthInfo(n);return at(n.year+78+(r.nextYear?1:0),r.month,r.day+n.day-1)}checkIcuBugs(e){if(this.vulnerableToBceBug&&e.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 pa(t){return t%4==0&&(t%100!=0||t%400==0)}class cl extends Pn{constructor(e,n){super(),this.calendarType="solar",this.id=e,this.isoEpoch=n}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return pa(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Rn(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return kr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class ll extends Pn{constructor(e,n){super(),this.hasEra=!0,this.calendarType="solar",this.id=e;const{eras:r,anchorEra:o}=(function(i){let a,s=i;if(s.length===0)throw new RangeError("Invalid era data: eras are required");if(s.length===1&&s[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(s.length===1&&!s[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(s.filter((l=>l.reverseOf!=null)).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");s.forEach((l=>{if(l.isAnchor||!l.anchorEpoch&&!l.reverseOf){if(a)throw new RangeError("Invalid era data: cannot have multiple anchor eras");a=l,l.anchorEpoch={year:l.hasYearZero?0:1}}else if(!l.code)throw new RangeError("If era name is blank, it must be the anchor era")})),s=s.filter((l=>l.code)),s.forEach((l=>{const{reverseOf:u}=l;if(u){const d=s.find((m=>m.code===u));if(d===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${u}`);l.reverseOf=d,l.anchorEpoch=d.anchorEpoch,l.isoEpoch=d.isoEpoch}l.anchorEpoch.month===void 0&&(l.anchorEpoch.month=1),l.anchorEpoch.day===void 0&&(l.anchorEpoch.day=1)})),s.sort(((l,u)=>{if(l.reverseOf)return 1;if(u.reverseOf)return-1;if(!l.isoEpoch||!u.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return u.isoEpoch.year-l.isoEpoch.year}));const c=s[s.length-1].reverseOf;if(c&&c!==s[s.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return s.forEach(((l,u)=>{l.genericName="era"+(s.length-1-u)})),{eras:s,anchorEra:a||s[0]}})(n);this.anchorEra=o,this.eras=r}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return pa(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Rn(e)-1]}completeEraYear(e){const n=(s,c,l)=>{const u=e[s];if(u!=null&&u!=c&&!(l||[]).includes(u)){const d=l?.[0];throw new RangeError(`Input ${s} ${u} doesn't match calculated value ${d?`${c} (also called ${d})`:c}`)}},r=s=>{let c;const l={...e,year:s},u=this.eras.find(((d,m)=>{if(m===this.eras.length-1){if(d.reverseOf){if(s>0)throw new RangeError(`Signed year ${s} is invalid for era ${d.code}`);return c=d.anchorEpoch.year-s,!0}return c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0}return this.compareCalendarDates(l,d.anchorEpoch)>=0&&(c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0)}));if(!u)throw new RangeError(`Year ${s} was not matched by any era`);return{eraYear:c,era:u.code,eraNames:u.names}};let{year:o,eraYear:i,era:a}=e;if(o!=null){const s=r(o);({eraYear:i,era:a}=s),n("era",a,s?.eraNames),n("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(a===void 0)throw new RangeError("era and eraYear must be provided together");const s=this.eras.find((({code:c,names:l=[]})=>c===a||l.includes(a)));if(!s)throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);o=s.reverseOf?s.anchorEpoch.year-i:i+s.anchorEpoch.year-(s.hasYearZero?0:1),n("year",o),{eraYear:i,era:a}=r(o)}}return{...e,year:o,eraYear:i,era:a}}adjustCalendarDate(e,n,r="constrain"){let o=e;const{month:i,monthCode:a}=o;return i===void 0&&(o={...o,month:Rn(a)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(e){const n=this.adjustCalendarDate(e),{year:r,month:o,day:i}=n,{anchorEra:a}=this;return kr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ba extends ll{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=Nt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const kt={inLeapYear(t){const{year:e}=t;return(e+1)%4==0},monthsInYear:()=>13,minimumMonthLength(t){const{month:e}=t;return e===13?this.inLeapYear(t)?6:5:30},maximumMonthLength(t){return this.minimumMonthLength(t)},maxLengthOfMonthCodeInAnyYear:t=>t==="M13"?6:30};class vf extends cl{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class ul extends ll{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class Ef extends vf{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class Tf extends ul{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class _f extends ul{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}}])}}class Cf extends ba{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class Df extends cl{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class Mf extends ba{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(e){let{era:n,eraYear:r}=e;return n==="b"&&(n="gregory-inverse"),n==="a"&&(n="gregory"),{era:n,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}}class xf extends ba{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(e,n){const{era:r,eraYear:o}=e,{year:i}=n;return this.eras.find((a=>a.code===r))?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}}class dl extends Pn{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(e,n){const r=this.getMonthList(e.year,n);return Object.entries(r).length===13}monthsInYear(e,n){return this.inLeapYear(e,n)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(e){return["M01L","M09L","M10L","M11L","M12L"].includes(e)?29:30}monthDaySearchStartYear(e,n){const 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]}[e]??[1972,1972];return n<30?r[0]:r[1]}getMonthList(e,n){if(e===void 0)throw new TypeError("Missing year");const r=JSON.stringify({func:"getMonthList",calendarYear:e,id:this.id}),o=n.get(r);if(o)return o;const i=this.getFormatter(),a=(w,v)=>{const D=sl({isoYear:w,isoMonth:2,isoDay:1}),M=new Date(D);M.setUTCDate(v+1);const C=i.formatToParts(M),T=C.find((N=>N.type==="month")).value,k=+C.find((N=>N.type==="day")).value,F=C.find((N=>N.type==="relatedYear"));let G;if(F===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return G=+F.value,{calendarMonthString:T,calendarDay:k,calendarYearToVerify:G}};let s=17,{calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s);c!=="1"&&(s+=29,{calendarMonthString:c,calendarDay:l}=a(e,s)),s-=l-5;const d={};let m,y,b=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),m&&(d[y].daysInMonth=m+30-l),u!==e?g=!0:(d[c]={monthIndex:b++},s+=30),m=l,y=c;while(!g);return d[y].daysInMonth=m+30-l,n.set(r,d),d}estimateIsoDate(e){const{year:n,month:r}=e;return{year:n,month:r>=12?12:r+1,day:1}}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthExtra:s,day:c,monthCode:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(s&&s!=="bis")throw new RangeError(`Unexpected leap month suffix: ${s}`);const u=Nt(a,s!==void 0),d=`${a}${s||""}`,m=this.getMonthList(i,n)[d];if(m===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=m.monthIndex,{year:i,month:a,day:c,monthCode:u}}if(this.validateCalendarDate(e),a===void 0){const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));let m=u[d];if(a=m&&m.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");m=u[y],m&&(a=m.monthIndex,l=Nt(y))}if(a===void 0)throw new RangeError(`Unmatched month ${l} in Chinese year ${i}`)}else if(l===void 0){const u=this.getMonthList(i,n),d=Object.entries(u),m=d.length;r==="reject"?($e(a,1,m),$e(c,1,this.maximumMonthLength())):(a=Ge(a,1,m),c=Ge(c,1,this.maximumMonthLength()));const y=d.find((b=>b[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=Nt(+y[0].replace("bis",""),y[0].indexOf("bis")!==-1)}else{const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));const m=u[d];if(!m)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==m.monthIndex)throw new RangeError(`monthCode ${l} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...e,year:i,month:a,monthCode:l,day:c}}}class Of extends dl{constructor(){super(...arguments),this.id="chinese"}}class $f extends dl{constructor(){super(...arguments),this.id="dangi"}}class Sf{constructor(e){this.helper=e}extraFields(e){return this.helper.hasEra&&e.includes("year")?["era","eraYear"]:[]}resolveFields(e){if(this.helper.calendarType!=="lunisolar"){const n=new Oe;ya(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Oe,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Oe,o=this.helper.monthDayFromFields(e,n,r);return r.setObject(o),o}fieldKeysToIgnore(e){const n=new Set;for(let r=0;r<e.length;r++){const o=e[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 il(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Oe.getCacheForObject(e),c=this.helper.isoToCalendarDate(e,s),l=this.helper.addCalendar(c,{years:n,months:r,weeks:o,days:i},a,s),u=this.helper.calendarToIsoDate(l,"constrain",s);return Oe.getCacheForObject(u)||new Oe(s).setObject(u),u}dateUntil(e,n,r){const o=Oe.getCacheForObject(e),i=Oe.getCacheForObject(n),a=this.helper.isoToCalendarDate(e,o),s=this.helper.isoToCalendarDate(n,i);return this.helper.untilCalendar(a,s,r,o)}isoToDate(e,n){const r=Oe.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=io.iso8601.isoToDate(e,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=a+1}if(n.weekOfYear&&(o.weekOfYear=al(this.helper.id,e)),o.daysInWeek=7,n.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),n.daysInYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,a,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(const t of[df,bf,_f,Ef,Tf,Of,$f,Cf,wf,Df,Mf,xf,hf,ff,mf,gf,yf,pf]){const e=new t;io[e.id]=new Sf(e)}ji("calendarImpl",(function(t){return io[t]}));const qr=Intl.DateTimeFormat;function Un(t,e){let n=f(t,e);return typeof n=="function"&&(n=new qr(f(t,Tc),n(f(t,Ai))),(function(r,o,i){const a=Qo(r);if(a===void 0)throw new TypeError("Missing slots for the given container");if(a[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);a[o]=i})(t,e,n)),n}function yr(t){return Je(t,An)}class Wr{constructor(e=void 0,n=void 0){(function(r,o,i){const a=i!==void 0;let s;if(a){const d=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];s=(function(y){if(y==null)throw new TypeError(`Expected object not ${y}`);return Object(y)})(i);const m=Object.create(null);for(let y=0;y<d.length;y++){const b=d[y];Object.prototype.hasOwnProperty.call(s,b)&&(m[b]=s[b])}s=m}else s=Object.create(null);const c=new qr(o,s),l=c.resolvedOptions();if(nn(r),a){const d=Object.assign(Object.create(null),l);for(const m in d)Object.prototype.hasOwnProperty.call(s,m)||delete d[m];d.hour12=s.hour12,d.hourCycle=s.hourCycle,V(r,Ai,d)}else V(r,Ai,s);V(r,Tc,l.locale),V(r,An,c),V(r,Wn,l.timeZone),V(r,vr,l.calendar),V(r,yc,Yf),V(r,pc,jf),V(r,bc,Lf),V(r,wc,Nf),V(r,vc,zf),V(r,Ec,Uf);const u=a?s.timeZone:void 0;if(u===void 0)V(r,Ri,l.timeZone);else{const d=ni(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");V(r,Ri,Xe(d))}})(this,e,n)}get format(){E(this,yr);const e=Rf.bind(this);return Object.defineProperties(e,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),e}formatRange(e,n){return E(this,yr),If.call(this,e,n)}formatToParts(e,...n){return E(this,yr),Af.call(this,e,...n)}formatRangeToParts(e,n){return E(this,yr),Pf.call(this,e,n)}resolvedOptions(){return E(this,yr),kf.call(this)}}"formatToParts"in qr.prototype||delete Wr.prototype.formatToParts,"formatRangeToParts"in qr.prototype||delete Wr.prototype.formatRangeToParts;const vt=function(t=void 0,e=void 0){return new Wr(t,e)};function kf(){const t=f(this,An).resolvedOptions();return t.timeZone=f(this,Ri),t}function Rf(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.format(...r)}function Af(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.formatToParts(...r)}function If(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=jo(t),r=jo(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(Jt(n)){if(!hl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRange(...i)}function Pf(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=jo(t),r=jo(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(Jt(n)){if(!hl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRangeToParts(...i)}function ao(t={},e={}){const n=Object.assign({},t),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){const i=r[o];n[i]=i in e?e[i]:n[i],n[i]!==!1&&n[i]!==void 0||delete n[i]}return n}function Nf(t){const e=ao(t,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(e.timeStyle!=="long"&&e.timeStyle!=="full"||(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!di(e)){if(so(t))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(t)}]`);Object.assign(e,{hour:"numeric",minute:"numeric",second:"numeric"})}return e}function jf(t){const e={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},n=ao(t,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("year"in n||"month"in n||"era"in n)){if(so(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function Lf(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=ao(t,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("month"in n)&&!("day"in n)){if(so(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function Yf(t){const e=ao(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!ui(e)){if(so(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function zf(t){const e=ao(t,{timeZoneName:!1});if((e.timeStyle==="long"||e.timeStyle==="full")&&(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"}),e.dateStyle)&&(Object.assign(e,{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"}}[e.dateStyle]),delete e.dateStyle),!di(e)&&!ui(e)){if(so(t))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return e}function Uf(t){let e=t;return di(e)||ui(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function ui(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function di(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function so(t){return ui(t)||di(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function Jt(t){return ve(t)||De(t)||ge(t)||Z(t)||Re(t)||lt(t)||ke(t)}function jo(t){return Jt(t)?t:ti(t)}function hl(t,e){return!(!Jt(t)||!Jt(e)||De(t)&&!De(e)||ve(t)&&!ve(e)||ge(t)&&!ge(e)||Z(t)&&!Z(e)||Re(t)&&!Re(e)||lt(t)&&!lt(e)||ke(t)&&!ke(e))}function or(t,e){if(De(t)){const n={isoDate:{year:1970,month:1,day:1},time:f(t,Ee)};return{epochNs:je(f(e,Wn),n,"compatible"),formatter:Un(e,wc)}}if(Re(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,pc)}}if(lt(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,bc)}}if(ve(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,yc)}}if(ge(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=f(t,ye);return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,vc)}}if(Z(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return ke(t)?{epochNs:f(t,L),formatter:Un(e,Ec)}:{}}function fl(t){const e=Object.create(null);return e.years=f(t,Ue),e.months=f(t,Fe),e.weeks=f(t,nt),e.days=f(t,qe),e.hours=f(t,We),e.minutes=f(t,Ve),e.seconds=f(t,He),e.milliseconds=f(t,Ze),e.microseconds=f(t,Be),e.nanoseconds=f(t,rt),e}Wr.prototype.constructor=vt,Object.defineProperty(vt,"prototype",{value:Wr.prototype,writable:!1,enumerable:!1,configurable:!1}),vt.supportedLocalesOf=qr.supportedLocalesOf,rn(vt,"Intl.DateTimeFormat");const{format:Ff,formatToParts:qf}=Intl.DurationFormat?.prototype??Object.create(null);function ml(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=fl(Et(t));return Ff.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=ml,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=fl(Et(t));return qf.call(this,e)});class wa{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Uc(this,No(e))}get epochMilliseconds(){return E(this,ke),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,ke),rl(h.BigInt(f(this,L)))}add(e){return E(this,ke),Ps("add",this,e)}subtract(e){return E(this,ke),Ps("subtract",this,e)}until(e,n=void 0){return E(this,ke),Os("until",this,e,n)}since(e,n=void 0){return E(this,ke),Os("since",this,e,n)}round(e){if(E(this,ke),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),At(Zi(f(this,L),r,i,o))}equals(e){E(this,ke);const n=_r(e),r=f(this,L),o=f(n,L);return h.equal(h.BigInt(r),h.BigInt(o))}toString(e=void 0){E(this,ke);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let a=n.timeZone;a!==void 0&&(a=Xe(a));const{precision:s,unit:c,increment:l}=Qr(i,r);return ws(At(Zi(f(this,L),l,c,o)),a,s)}toJSON(){return E(this,ke),ws(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ke),new vt(e,n).format(this)}valueOf(){bn("Instant")}toZonedDateTimeISO(e){E(this,ke);const n=Xe(e);return Pe(f(this,L),n,"iso8601")}static fromEpochMilliseconds(e){return At(Pt(ti(e)))}static fromEpochNanoseconds(e){return At(No(e))}static from(e){return _r(e)}static compare(e,n){const r=_r(e),o=_r(n),i=f(r,L),a=f(o,L);return h.lessThan(i,a)?-1:h.greaterThan(i,a)?1:0}}rn(wa,"Temporal.Instant");class va{constructor(e,n,r,o="iso8601"){const i=z(e),a=z(n),s=z(r),c=et(o===void 0?"iso8601":xe(o));On(i,a,s),Nc(this,{year:i,month:a,day:s},c)}get calendarId(){return E(this,ve),f(this,x)}get era(){return Le(this,"era")}get eraYear(){return Le(this,"eraYear")}get year(){return Le(this,"year")}get month(){return Le(this,"month")}get monthCode(){return Le(this,"monthCode")}get day(){return Le(this,"day")}get dayOfWeek(){return Le(this,"dayOfWeek")}get dayOfYear(){return Le(this,"dayOfYear")}get weekOfYear(){return Le(this,"weekOfYear")?.week}get yearOfWeek(){return Le(this,"weekOfYear")?.year}get daysInWeek(){return Le(this,"daysInWeek")}get daysInMonth(){return Le(this,"daysInMonth")}get daysInYear(){return Le(this,"daysInYear")}get monthsInYear(){return Le(this,"monthsInYear")}get inLeapYear(){return Le(this,"inLeapYear")}with(e,n=void 0){if(E(this,ve),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y));return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Ke(gn(r,o,ee(P(n))),r)}withCalendar(e){E(this,ve);const n=no(e);return Ke(f(this,Y),n)}add(e,n=void 0){return E(this,ve),Ns("add",this,e,n)}subtract(e,n=void 0){return E(this,ve),Ns("subtract",this,e,n)}until(e,n=void 0){return E(this,ve),$s("until",this,e,n)}since(e,n=void 0){return E(this,ve),$s("since",this,e,n)}equals(e){E(this,ve);const n=Er(e);return zt(f(this,Y),f(n,Y))===0&&Lt(f(this,x),f(n,x))}toString(e=void 0){return E(this,ve),vs(this,Kr(P(e)))}toJSON(){return E(this,ve),vs(this)}toLocaleString(e=void 0,n=void 0){return E(this,ve),new vt(e,n).format(this)}valueOf(){bn("PlainDate")}toPlainDateTime(e=void 0){E(this,ve);const n=Pc(e);return bt(te(f(this,Y),n),f(this,x))}toZonedDateTime(e){let n,r;if(E(this,ve),Te(e)){const a=e.timeZone;a===void 0?n=Xe(e):(n=Xe(a),r=e.plainTime)}else n=Xe(e);const o=f(this,Y);let i;return r===void 0?i=on(n,o):(r=cn(r),i=je(n,te(o,f(r,Ee)),"compatible")),Pe(i,n,f(this,x))}toPlainYearMonth(){E(this,ve);const e=f(this,x);return Gn(Lr(e,Qe(e,f(this,Y)),"constrain"),e)}toPlainMonthDay(){E(this,ve);const e=f(this,x);return Zn(ko(e,Qe(e,f(this,Y)),"constrain"),e)}static from(e,n=void 0){return Er(e,n)}static compare(e,n){const r=Er(e),o=Er(n);return zt(f(r,Y),f(o,Y))}}function Le(t,e){E(t,ve);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(va,"Temporal.PlainDate");class Ea{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=z(e),m=z(n),y=z(r),b=o===void 0?0:z(o),g=i===void 0?0:z(i),w=a===void 0?0:z(a),v=s===void 0?0:z(s),D=c===void 0?0:z(c),M=l===void 0?0:z(l),C=et(u===void 0?"iso8601":xe(u));ha(d,m,y,b,g,w,v,D,M),jc(this,{isoDate:{year:d,month:m,day:y},time:{hour:b,minute:g,second:w,millisecond:v,microsecond:D,nanosecond:M}},C)}get calendarId(){return E(this,ge),f(this,x)}get year(){return Ye(this,"year")}get month(){return Ye(this,"month")}get monthCode(){return Ye(this,"monthCode")}get day(){return Ye(this,"day")}get hour(){return Fn(this,"hour")}get minute(){return Fn(this,"minute")}get second(){return Fn(this,"second")}get millisecond(){return Fn(this,"millisecond")}get microsecond(){return Fn(this,"microsecond")}get nanosecond(){return Fn(this,"nanosecond")}get era(){return Ye(this,"era")}get eraYear(){return Ye(this,"eraYear")}get dayOfWeek(){return Ye(this,"dayOfWeek")}get dayOfYear(){return Ye(this,"dayOfYear")}get weekOfYear(){return Ye(this,"weekOfYear")?.week}get yearOfWeek(){return Ye(this,"weekOfYear")?.year}get daysInWeek(){return Ye(this,"daysInWeek")}get daysInYear(){return Ye(this,"daysInYear")}get daysInMonth(){return Ye(this,"daysInMonth")}get monthsInYear(){return Ye(this,"monthsInYear")}get inLeapYear(){return Ye(this,"inLeapYear")}with(e,n=void 0){if(E(this,ge),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x),o=f(this,ye);let i={...Qe(r,o.isoDate),...o.time};return i=xn(r,i,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),bt(eo(r,i,ee(P(n))),r)}withPlainTime(e=void 0){E(this,ge);const n=Pc(e);return bt(te(f(this,ye).isoDate,n),f(this,x))}withCalendar(e){E(this,ge);const n=no(e);return bt(f(this,ye),n)}add(e,n=void 0){return E(this,ge),js("add",this,e,n)}subtract(e,n=void 0){return E(this,ge),js("subtract",this,e,n)}until(e,n=void 0){return E(this,ge),Ss("until",this,e,n)}since(e,n=void 0){return E(this,ge),Ss("since",this,e,n)}round(e){if(E(this,ge),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];cr(r,a,a===1);const s=f(this,ye);return bt(r===1&&i==="nanosecond"?s:Bi(s,r,i,o),f(this,x))}equals(e){E(this,ge);const n=Tr(e);return rr(f(this,ye),f(n,ye))===0&&Lt(f(this,x),f(n,x))}toString(e=void 0){E(this,ge);const n=P(e),r=Kr(n),o=Xr(n),i=Mt(n,"trunc"),a=it(n,"smallestUnit","time",void 0);if(a==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:s,unit:c,increment:l}=Qr(a,o),u=Bi(f(this,ye),l,c,i);return $n(u),zr(u,f(this,x),s,r)}toJSON(){return E(this,ge),zr(f(this,ye),f(this,x),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ge),new vt(e,n).format(this)}valueOf(){bn("PlainDateTime")}toZonedDateTime(e,n=void 0){E(this,ge);const r=Xe(e),o=Rr(P(n));return Pe(je(r,f(this,ye),o),r,f(this,x))}toPlainDate(){return E(this,ge),Ke(f(this,ye).isoDate,f(this,x))}toPlainTime(){return E(this,ge),Bt(f(this,ye).time)}static from(e,n=void 0){return Tr(e,n)}static compare(e,n){const r=Tr(e),o=Tr(n);return rr(f(r,ye),f(o,ye))}}function Ye(t,e){E(t,ge);const n=f(t,ye).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function Fn(t,e){return E(t,ge),f(t,ye).time[e]}rn(Ea,"Temporal.PlainDateTime");class ir{constructor(e=0,n=0,r=0,o=0,i=0,a=0,s=0,c=0,l=0,u=0){const d=e===void 0?0:Dt(e),m=n===void 0?0:Dt(n),y=r===void 0?0:Dt(r),b=o===void 0?0:Dt(o),g=i===void 0?0:Dt(i),w=a===void 0?0:Dt(a),v=s===void 0?0:Dt(s),D=c===void 0?0:Dt(c),M=l===void 0?0:Dt(l),C=u===void 0?0:Dt(u);ci(d,m,y,b,g,w,v,D,M,C),nn(this),V(this,Ue,d),V(this,Fe,m),V(this,nt,y),V(this,qe,b),V(this,We,g),V(this,Ve,w),V(this,He,v),V(this,Ze,D),V(this,Be,M),V(this,rt,C)}get years(){return E(this,we),f(this,Ue)}get months(){return E(this,we),f(this,Fe)}get weeks(){return E(this,we),f(this,nt)}get days(){return E(this,we),f(this,qe)}get hours(){return E(this,we),f(this,We)}get minutes(){return E(this,we),f(this,Ve)}get seconds(){return E(this,we),f(this,He)}get milliseconds(){return E(this,we),f(this,Ze)}get microseconds(){return E(this,we),f(this,Be)}get nanoseconds(){return E(this,we),f(this,rt)}get sign(){return E(this,we),Io(this)}get blank(){return E(this,we),Io(this)===0}with(e){E(this,we);const n=Ic(e),{years:r=f(this,Ue),months:o=f(this,Fe),weeks:i=f(this,nt),days:a=f(this,qe),hours:s=f(this,We),minutes:c=f(this,Ve),seconds:l=f(this,He),milliseconds:u=f(this,Ze),microseconds:d=f(this,Be),nanoseconds:m=f(this,rt)}=n;return new ir(r,o,i,a,s,c,l,u,d,m)}negated(){return E(this,we),st(this)}abs(){return E(this,we),new ir(Math.abs(f(this,Ue)),Math.abs(f(this,Fe)),Math.abs(f(this,nt)),Math.abs(f(this,qe)),Math.abs(f(this,We)),Math.abs(f(this,Ve)),Math.abs(f(this,He)),Math.abs(f(this,Ze)),Math.abs(f(this,Be)),Math.abs(f(this,rt)))}add(e){return E(this,we),Is("add",this,e)}subtract(e){return E(this,we),Is("subtract",this,e)}round(e){if(E(this,we),e===void 0)throw new TypeError("options parameter is required");const n=Ht(this),r=typeof e=="string"?kn("smallestUnit",e):P(e);let o=it(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Di(r);const s=sr(r),c=Mt(r,"halfExpand");let l=it(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Kt(n,l);let m=!0;if(o||(m=!1,o=d),o==="auto"&&(o=d),!u&&!m)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Kt(o,l)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${l}`);const y={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[l];if(y!==void 0&&cr(s,y,!1),s>1&&Zt(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Vn(this);const w=f(a,se),v=f(a,x),D=f(a,L);return g=nl(D,Mr(D,w,v,g),w,v,o,s,l,c),Zt(o)==="date"&&(o="hour"),wt(g,o)}if(i){let g=It(this);const w=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),v=f(i,Y),D=f(i,x),M=ft(D,v,Ne(g.date,w.deltaDays),"constrain");return g=tl(te(v,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(M,w),D,o,s,l,c),wt(g,o)}if(St(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(St(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let b=It(this);if(l==="day"){const{quotient:g,remainder:w}=b.time.divmod(Oo);let v=b.date.days+g+Ar(w,"day");v=ln(v,s,c),b=Xt({years:0,months:0,weeks:0,days:v},B.ZERO)}else b=Xt({years:0,months:0,weeks:0,days:0},Po(b.time,s,l,c));return wt(b,o)}total(e){if(E(this,we),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?kn("unit",e):P(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Di(n);const i=it(n,"unit","datetime",tn);if(o){const s=Vn(this),c=f(o,se),l=f(o,x),u=f(o,L);return(function(d,m,y,b,g){return Zt(g)==="time"?Ar(B.fromEpochNsDiff(m,d),g):xs(Jc(d,m,y,b,g),m,Tt(y,d),y,b,g)})(u,Mr(u,c,l,s),c,l,i)}if(r){const s=It(this);let c=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=f(r,Y),u=f(r,x),d=ft(u,l,Ne(s.date,c.deltaDays),"constrain");return(function(m,y,b,g){if(rr(m,y)==0)return 0;$n(m),$n(y);const w=Qc(m,y,b,g);return g==="nanosecond"?h.toNumber(w.time.totalNs):xs(w,Ae(y),m,null,b,g)})(te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(d,c),u,i)}const a=Ht(this);if(St(a))throw new RangeError(`a starting point is required for ${a}s total`);if(St(i))throw new RangeError(`a starting point is required for ${i}s total`);return Ar(It(this).time,i)}toString(e=void 0){E(this,we);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(n,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');const{precision:a,unit:s,increment:c}=Qr(i,r);if(s==="nanosecond"&&c===1)return bo(this,a);const l=Ht(this);let u=Vn(this);const d=Po(u.time,c,s,o);return u=Xt(u.date,d),bo(wt(u,Kt(l,"second")),a)}toJSON(){return E(this,we),bo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(E(this,we),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return ml.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),bo(this,"auto")}valueOf(){bn("Duration")}static from(e){return Et(e)}static compare(e,n,r=void 0){const o=Et(e),i=Et(n),a=P(r),{plainRelativeTo:s,zonedRelativeTo:c}=Di(a);if(f(o,Ue)===f(i,Ue)&&f(o,Fe)===f(i,Fe)&&f(o,nt)===f(i,nt)&&f(o,qe)===f(i,qe)&&f(o,We)===f(i,We)&&f(o,Ve)===f(i,Ve)&&f(o,He)===f(i,He)&&f(o,Ze)===f(i,Ze)&&f(o,Be)===f(i,Be)&&f(o,rt)===f(i,rt))return 0;const l=Ht(o),u=Ht(i),d=Vn(o),m=Vn(i);if(c&&(Zt(l)==="date"||Zt(u)==="date")){const v=f(c,se),D=f(c,x),M=f(c,L),C=Mr(M,v,D,d),T=Mr(M,v,D,m);return ot(h.toNumber(h.subtract(C,T)))}let y=d.date.days,b=m.date.days;if(St(l)||St(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=Ms(d.date,s),b=Ms(m.date,s)}const g=d.time.add24HourDays(y),w=m.time.add24HourDays(b);return g.cmp(w)}}rn(ir,"Temporal.Duration");class Ta{constructor(e,n,r="iso8601",o=1972){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(c,i,a),Lc(this,{year:c,month:i,day:a},s)}get monthCode(){return Fs(this,"monthCode")}get day(){return Fs(this,"day")}get calendarId(){return E(this,lt),f(this,x)}with(e,n=void 0){if(E(this,lt),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"month-day");return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Zn(ko(r,o,ee(P(n))),r)}equals(e){E(this,lt);const n=ps(e);return zt(f(this,Y),f(n,Y))===0&&Lt(f(this,x),f(n,x))}toString(e=void 0){return E(this,lt),Ts(this,Kr(P(e)))}toJSON(){return E(this,lt),Ts(this)}toLocaleString(e=void 0,n=void 0){return E(this,lt),new vt(e,n).format(this)}valueOf(){bn("PlainMonthDay")}toPlainDate(e){if(E(this,lt),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"month-day"),gt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return ps(e,n)}}function Fs(t,e){E(t,lt);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}function xi(t){return Tt(t,Xi())}rn(Ta,"Temporal.PlainMonthDay");const gl={instant:()=>At(Xi()),plainDateTimeISO:(t=gr())=>bt(xi(Xe(t)),"iso8601"),plainDateISO:(t=gr())=>Ke(xi(Xe(t)).isoDate,"iso8601"),plainTimeISO:(t=gr())=>Bt(xi(Xe(t)).time),timeZoneId:()=>gr(),zonedDateTimeISO:(t=gr())=>{const e=Xe(t);return Pe(Xi(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(gl,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class co{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:z(e),c=n===void 0?0:z(n),l=r===void 0?0:z(r),u=o===void 0?0:z(o),d=i===void 0?0:z(i),m=a===void 0?0:z(a);si(s,c,l,u,d,m),Yc(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m})}get hour(){return E(this,De),f(this,Ee).hour}get minute(){return E(this,De),f(this,Ee).minute}get second(){return E(this,De),f(this,Ee).second}get millisecond(){return E(this,De),f(this,Ee).millisecond}get microsecond(){return E(this,De),f(this,Ee).microsecond}get nanosecond(){return E(this,De),f(this,Ee).nanosecond}with(e,n=void 0){if(E(this,De),!Te(e))throw new TypeError("invalid argument");ar(e);const r=Ui(e,"partial"),o=Ui(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=ee(P(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=oi(i,a,s,c,l,u,d),new co(i,a,s,c,l,u)}add(e){return E(this,De),Ls("add",this,e)}subtract(e){return E(this,De),Ls("subtract",this,e)}until(e,n=void 0){return E(this,De),ks("until",this,e,n)}since(e,n=void 0){return E(this,De),ks("since",this,e,n)}round(e){if(E(this,De),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Bt(Gi(f(this,Ee),r,i,o))}equals(e){E(this,De);const n=cn(e);return Ki(f(this,Ee),f(n,Ee))===0}toString(e=void 0){E(this,De);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:a,unit:s,increment:c}=Qr(i,r);return Es(Gi(f(this,Ee),c,s,o),a)}toJSON(){return E(this,De),Es(f(this,Ee),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,De),new vt(e,n).format(this)}valueOf(){bn("PlainTime")}static from(e,n=void 0){return cn(e,n)}static compare(e,n){const r=cn(e),o=cn(n);return Ki(f(r,Ee),f(o,Ee))}}rn(co,"Temporal.PlainTime");class _a{constructor(e,n,r="iso8601",o=1){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(i,a,c),zc(this,{year:i,month:a,day:c},s)}get year(){return qt(this,"year")}get month(){return qt(this,"month")}get monthCode(){return qt(this,"monthCode")}get calendarId(){return E(this,Re),f(this,x)}get era(){return qt(this,"era")}get eraYear(){return qt(this,"eraYear")}get daysInMonth(){return qt(this,"daysInMonth")}get daysInYear(){return qt(this,"daysInYear")}get monthsInYear(){return qt(this,"monthsInYear")}get inLeapYear(){return qt(this,"inLeapYear")}with(e,n=void 0){if(E(this,Re),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"year-month");return o=xn(r,o,gt(r,e,["year","month","monthCode"],[],"partial")),Gn(Lr(r,o,ee(P(n))),r)}add(e,n=void 0){return E(this,Re),Ys("add",this,e,n)}subtract(e,n=void 0){return E(this,Re),Ys("subtract",this,e,n)}until(e,n=void 0){return E(this,Re),Rs("until",this,e,n)}since(e,n=void 0){return E(this,Re),Rs("since",this,e,n)}equals(e){E(this,Re);const n=Cr(e);return zt(f(this,Y),f(n,Y))===0&&Lt(f(this,x),f(n,x))}toString(e=void 0){return E(this,Re),_s(this,Kr(P(e)))}toJSON(){return E(this,Re),_s(this)}toLocaleString(e=void 0,n=void 0){return E(this,Re),new vt(e,n).format(this)}valueOf(){bn("PlainYearMonth")}toPlainDate(e){if(E(this,Re),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"year-month"),gt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Cr(e,n)}static compare(e,n){const r=Cr(e),o=Cr(n);return zt(f(r,Y),f(o,Y))}}function qt(t,e){E(t,Re);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(_a,"Temporal.PlainYearMonth");const Wf=vt.prototype.resolvedOptions;class Ca{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=No(e);let i=xe(n);const{tzName:a,offsetMinutes:s}=un(i);if(s===void 0){const c=Ro(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=la(s);Fc(this,o,i,et(r===void 0?"iso8601":xe(r)))}get calendarId(){return E(this,Z),f(this,x)}get timeZoneId(){return E(this,Z),f(this,se)}get year(){return ze(this,"year")}get month(){return ze(this,"month")}get monthCode(){return ze(this,"monthCode")}get day(){return ze(this,"day")}get hour(){return qn(this,"hour")}get minute(){return qn(this,"minute")}get second(){return qn(this,"second")}get millisecond(){return qn(this,"millisecond")}get microsecond(){return qn(this,"microsecond")}get nanosecond(){return qn(this,"nanosecond")}get era(){return ze(this,"era")}get eraYear(){return ze(this,"eraYear")}get epochMilliseconds(){return E(this,Z),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,Z),rl(f(this,L))}get dayOfWeek(){return ze(this,"dayOfWeek")}get dayOfYear(){return ze(this,"dayOfYear")}get weekOfYear(){return ze(this,"weekOfYear")?.week}get yearOfWeek(){return ze(this,"weekOfYear")?.year}get hoursInDay(){E(this,Z);const e=f(this,se),n=$t(this).isoDate,r=at(n.year,n.month,n.day+1),o=on(e,n),i=on(e,r);return Ar(B.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return ze(this,"daysInWeek")}get daysInMonth(){return ze(this,"daysInMonth")}get daysInYear(){return ze(this,"daysInYear")}get monthsInYear(){return ze(this,"monthsInYear")}get inLeapYear(){return ze(this,"inLeapYear")}get offset(){return E(this,Z),Fi(Gt(f(this,se),f(this,L)))}get offsetNanoseconds(){return E(this,Z),Gt(f(this,se),f(this,L))}with(e,n=void 0){if(E(this,Z),!Te(e))throw new TypeError("invalid zoned-date-time-like");ar(e);const r=f(this,x),o=f(this,se),i=Gt(o,f(this,L)),a=$t(this);let s={...Qe(r,a.isoDate),...a.time,offset:Fi(i)};s=xn(r,s,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=P(n),l=Rr(c),u=Eo(c,"prefer"),d=eo(r,s,ee(c)),m=lr(s.offset);return Pe(So(d.isoDate,d.time,"option",m,o,l,u,!1),o,r)}withPlainTime(e=void 0){E(this,Z);const n=f(this,se),r=f(this,x),o=$t(this).isoDate;let i;return i=e===void 0?on(n,o):je(n,te(o,f(cn(e),Ee)),"compatible"),Pe(i,n,r)}withTimeZone(e){E(this,Z);const n=Xe(e);return Pe(f(this,L),n,f(this,x))}withCalendar(e){E(this,Z);const n=no(e);return Pe(f(this,L),f(this,se),n)}add(e,n=void 0){return E(this,Z),zs("add",this,e,n)}subtract(e,n=void 0){return E(this,Z),zs("subtract",this,e,n)}until(e,n=void 0){return E(this,Z),As("until",this,e,n)}since(e,n=void 0){return E(this,Z),As("since",this,e,n)}round(e){if(E(this,Z),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(cr(r,a,a===1),i==="nanosecond"&&r===1)return Pe(f(this,L),f(this,se),f(this,x));const s=f(this,se),c=f(this,L),l=$t(this);let u;if(i==="day"){const d=l.isoDate,m=at(d.year,d.month,d.day+1),y=on(s,d),b=on(s,m),g=h.subtract(b,y);u=B.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=Bi(l,r,i,o),m=Gt(s,c);u=So(d.isoDate,d.time,"option",m,s,"compatible","prefer",!1)}return Pe(u,s,f(this,x))}equals(e){E(this,Z);const n=Dr(e),r=f(this,L),o=f(n,L);return!!h.equal(h.BigInt(r),h.BigInt(o))&&!!qc(f(this,se),f(n,se))&&Lt(f(this,x),f(n,x))}toString(e=void 0){E(this,Z);const n=P(e),r=Kr(n),o=Xr(n),i=(function(m){return Qt(m,"offset",["auto","never"],"auto")})(n),a=Mt(n,"trunc"),s=it(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(m){return Qt(m,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=Qr(s,o);return Cs(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){E(this,Z);const r=P(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const m=Reflect.ownKeys(l);for(let y=0;y<m.length;y++){const b=m[y];if(!u.some((g=>Object.is(g,b)))&&Object.prototype.propertyIsEnumerable.call(l,b)){const g=l[b];c[b]=g}}})(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=f(this,se),Ds(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new vt(e,o),a=Wf.call(i).calendar,s=f(this,x);if(s!=="iso8601"&&a!=="iso8601"&&!Lt(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(At(f(this,L)))}toJSON(){return E(this,Z),Cs(this,"auto")}valueOf(){bn("ZonedDateTime")}startOfDay(){E(this,Z);const e=f(this,se);return Pe(on(e,$t(this).isoDate),e,f(this,x))}getTimeZoneTransition(e){E(this,Z);const n=f(this,se);if(e===void 0)throw new TypeError("options parameter is required");const r=Qt(typeof e=="string"?kn("direction",e):P(e),"direction",["next","previous"],tn);if(r===void 0)throw new TypeError("direction option is required");if(Ds(n)||n==="UTC")return null;const o=f(this,L),i=r==="next"?da(n,o):Wi(n,o);return i===null?null:Pe(i,n,f(this,x))}toInstant(){return E(this,Z),At(f(this,L))}toPlainDate(){return E(this,Z),Ke($t(this).isoDate,f(this,x))}toPlainTime(){return E(this,Z),Bt($t(this).time)}toPlainDateTime(){return E(this,Z),bt($t(this),f(this,x))}static from(e,n=void 0){return Dr(e,n)}static compare(e,n){const r=Dr(e),o=Dr(n),i=f(r,L),a=f(o,L);return h.lessThan(h.BigInt(i),h.BigInt(a))?-1:h.greaterThan(h.BigInt(i),h.BigInt(a))?1:0}}function $t(t){return Tt(f(t,se),f(t,L))}function ze(t,e){E(t,Z);const n=$t(t).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function qn(t,e){return E(t,Z),$t(t).time[e]}rn(Ca,"Temporal.ZonedDateTime");var Se=Object.freeze({__proto__:null,Duration:ir,Instant:wa,Now:gl,PlainDate:va,PlainDateTime:Ea,PlainMonthDay:Ta,PlainTime:co,PlainYearMonth:_a,ZonedDateTime:Ca});const Vf=[wa,va,Ea,ir,Ta,co,_a,Ca];for(const t of Vf){const e=Object.getOwnPropertyDescriptor(t,"prototype");(e.configurable||e.enumerable||e.writable)&&(e.configurable=!1,e.enumerable=!1,e.writable=!1,Object.defineProperty(t,"prototype",e))}var lo=(t=>(t.SYSTEM_TIME_ZONE="America/New_York",t.SYSTEM_LOCALE="en-US",t.SYSTEM_DATE_FORMAT="MM/dd/yyyy",t.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",t.ISO_DATE_FORMAT="yyyy-MM-dd",t[t.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",t))(lo||{});const hi={month:"2-digit",day:"2-digit",year:"numeric"},yl={...hi,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},Hf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,yl):"",Zf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,hi):"",Bf=t=>t?Se.PlainDate.from(t).toLocaleString(lo.SYSTEM_LOCALE,hi):"",pl=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString():"",Gf=t=>t?pl(t):"",Kf=t=>{if(!t)return null;const e=Se.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},Xf=t=>{if(!t)return;const e=Se.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString())},Qf=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Se.Instant.from(e):Se.Instant.fromEpochMilliseconds(e.getTime());return Se.Instant.compare(n,r)>0};function Jf(t){if(typeof t=="string")return Number.parseInt(t,10)}const em=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),tm=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),nm=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),rm=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function om(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const im=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=Eh;exports.CancelButton=ih;exports.CenteredCircularProgress=Dh;exports.ConfirmDialog=Mh;exports.DeleteButton=sh;exports.DismissibleAlert=xh;exports.EditIconButton=lh;exports.ExcelButton=uh;exports.GoBackButton=hh;exports.HistoryButton=mh;exports.LoadingSuccessButton=ph;exports.ManageButton=wh;exports.NextLink=Oh;exports.OpenInNewIconLink=Sh;exports.QuerySnackBar=Th;exports.ReactIf=kh;exports.RouterLink=Ah;exports.SuccessButton=vh;exports.SystemConfig=lo;exports.TEMPORAL_DATE_FORMAT=hi;exports.TEMPORAL_DATE_TIME_FORMAT=yl;exports.TabPanel=Ph;exports.TablePaginationActions=Ih;exports.ToastContainer=Ch;exports.a11yProps=Nh;exports.formatIsoToAppDate=Bf;exports.formatOldDateToIsoDate=Gf;exports.formatOldDateToIsoString=pl;exports.formatToAppDate=Zf;exports.formatToAppDateTime=Hf;exports.formatUnixTimeToOldDate=Xf;exports.getCssVariable=Lh;exports.initializeState=em;exports.isAfter=Qf;exports.isBlankOrEmpty=om;exports.isEncoded=im;exports.markError=rm;exports.markLoading=tm;exports.markSuccess=nm;exports.parseBoolean=jh;exports.parseIsoDate=Kf;exports.parseNumber=Jf;exports.toast=_h;