@emeryld/rrroutes-openapi 2.3.3 → 2.3.4
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/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +45 -133
- package/dist/web/v2/types/types.cacheLog.d.ts +46 -44
- package/dist/web/v2/types/types.endpoint.d.ts +9 -0
- package/dist/web/v2/types/types.preset.d.ts +2 -2
- package/dist/web/v2/types/types.requestLog.d.ts +10 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Bw=Object.defineProperty;var qm=e=>{throw TypeError(e)};var Uw=(e,t,o)=>t in e?Bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var $s=(e,t,o)=>Uw(e,typeof t!="symbol"?t+"":t,o),yf=(e,t,o)=>t.has(e)||qm("Cannot "+o);var _=(e,t,o)=>(yf(e,t,"read from private field"),o?o.call(e):t.get(e)),ye=(e,t,o)=>t.has(e)?qm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),ae=(e,t,o,i)=>(yf(e,t,"write to private field"),i?i.call(e,o):t.set(e,o),o),be=(e,t,o)=>(yf(e,t,"access private method"),o);var kl=(e,t,o,i)=>({set _(a){ae(e,t,a,o)},get _(){return _(e,t,i)}});function Ww(e,t){for(var o=0;o<t.length;o++){const i=t[o];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(i,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vf={exports:{}},Is={},wf={exports:{}},Re={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var zW=Object.defineProperty;var bC=e=>{throw TypeError(e)};var LW=(e,t,r)=>t in
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ym;function Vw(){if(Ym)return Re;Ym=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function b(P,j,se){this.props=P,this.context=j,this.refs=w,this.updater=se||E}b.prototype.isReactComponent={},b.prototype.setState=function(P,j){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,j,"setState")},b.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function I(){}I.prototype=b.prototype;function L(P,j,se){this.props=P,this.context=j,this.refs=w,this.updater=se||E}var $=L.prototype=new I;$.constructor=L,C($,b.prototype),$.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,z={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function U(P,j,se){var le,de={},ge=null,ve=null;if(j!=null)for(le in j.ref!==void 0&&(ve=j.ref),j.key!==void 0&&(ge=""+j.key),j)A.call(j,le)&&!F.hasOwnProperty(le)&&(de[le]=j[le]);var Ce=arguments.length-2;if(Ce===1)de.children=se;else if(1<Ce){for(var _e=Array(Ce),Pe=0;Pe<Ce;Pe++)_e[Pe]=arguments[Pe+2];de.children=_e}if(P&&P.defaultProps)for(le in Ce=P.defaultProps,Ce)de[le]===void 0&&(de[le]=Ce[le]);return{$$typeof:e,type:P,key:ge,ref:ve,props:de,_owner:z.current}}function H(P,j){return{$$typeof:e,type:P.type,key:j,ref:P.ref,props:P.props,_owner:P._owner}}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function J(P){var j={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(se){return j[se]})}var k=/\/+/g;function q(P,j){return typeof P=="object"&&P!==null&&P.key!=null?J(""+P.key):j.toString(36)}function W(P,j,se,le,de){var ge=typeof P;(ge==="undefined"||ge==="boolean")&&(P=null);var ve=!1;if(P===null)ve=!0;else switch(ge){case"string":case"number":ve=!0;break;case"object":switch(P.$$typeof){case e:case t:ve=!0}}if(ve)return ve=P,de=de(ve),P=le===""?"."+q(ve,0):le,T(de)?(se="",P!=null&&(se=P.replace(k,"$&/")+"/"),W(de,j,se,"",function(Pe){return Pe})):de!=null&&(V(de)&&(de=H(de,se+(!de.key||ve&&ve.key===de.key?"":(""+de.key).replace(k,"$&/")+"/")+P)),j.push(de)),1;if(ve=0,le=le===""?".":le+":",T(P))for(var Ce=0;Ce<P.length;Ce++){ge=P[Ce];var _e=le+q(ge,Ce);ve+=W(ge,j,se,_e,de)}else if(_e=x(P),typeof _e=="function")for(P=_e.call(P),Ce=0;!(ge=P.next()).done;)ge=ge.value,_e=le+q(ge,Ce++),ve+=W(ge,j,se,_e,de);else if(ge==="object")throw j=String(P),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ve}function te(P,j,se){if(P==null)return P;var le=[],de=0;return W(P,le,"","",function(ge){return j.call(se,ge,de++)}),le}function re(P){if(P._status===-1){var j=P._result;j=j(),j.then(function(se){(P._status===0||P._status===-1)&&(P._status=1,P._result=se)},function(se){(P._status===0||P._status===-1)&&(P._status=2,P._result=se)}),P._status===-1&&(P._status=0,P._result=j)}if(P._status===1)return P._result.default;throw P._result}var fe={current:null},Z={transition:null},G={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:Z,ReactCurrentOwner:z};function K(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:te,forEach:function(P,j,se){te(P,function(){j.apply(this,arguments)},se)},count:function(P){var j=0;return te(P,function(){j++}),j},toArray:function(P){return te(P,function(j){return j})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Re.Component=b,Re.Fragment=o,Re.Profiler=a,Re.PureComponent=L,Re.StrictMode=i,Re.Suspense=h,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Re.act=K,Re.cloneElement=function(P,j,se){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var le=C({},P.props),de=P.key,ge=P.ref,ve=P._owner;if(j!=null){if(j.ref!==void 0&&(ge=j.ref,ve=z.current),j.key!==void 0&&(de=""+j.key),P.type&&P.type.defaultProps)var Ce=P.type.defaultProps;for(_e in j)A.call(j,_e)&&!F.hasOwnProperty(_e)&&(le[_e]=j[_e]===void 0&&Ce!==void 0?Ce[_e]:j[_e])}var _e=arguments.length-2;if(_e===1)le.children=se;else if(1<_e){Ce=Array(_e);for(var Pe=0;Pe<_e;Pe++)Ce[Pe]=arguments[Pe+2];le.children=Ce}return{$$typeof:e,type:P.type,key:de,ref:ge,props:le,_owner:ve}},Re.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:u,_context:P},P.Consumer=P},Re.createElement=U,Re.createFactory=function(P){var j=U.bind(null,P);return j.type=P,j},Re.createRef=function(){return{current:null}},Re.forwardRef=function(P){return{$$typeof:d,render:P}},Re.isValidElement=V,Re.lazy=function(P){return{$$typeof:g,_payload:{_status:-1,_result:P},_init:re}},Re.memo=function(P,j){return{$$typeof:m,type:P,compare:j===void 0?null:j}},Re.startTransition=function(P){var j=Z.transition;Z.transition={};try{P()}finally{Z.transition=j}},Re.unstable_act=K,Re.useCallback=function(P,j){return fe.current.useCallback(P,j)},Re.useContext=function(P){return fe.current.useContext(P)},Re.useDebugValue=function(){},Re.useDeferredValue=function(P){return fe.current.useDeferredValue(P)},Re.useEffect=function(P,j){return fe.current.useEffect(P,j)},Re.useId=function(){return fe.current.useId()},Re.useImperativeHandle=function(P,j,se){return fe.current.useImperativeHandle(P,j,se)},Re.useInsertionEffect=function(P,j){return fe.current.useInsertionEffect(P,j)},Re.useLayoutEffect=function(P,j){return fe.current.useLayoutEffect(P,j)},Re.useMemo=function(P,j){return fe.current.useMemo(P,j)},Re.useReducer=function(P,j,se){return fe.current.useReducer(P,j,se)},Re.useRef=function(P){return fe.current.useRef(P)},Re.useState=function(P){return fe.current.useState(P)},Re.useSyncExternalStore=function(P,j,se){return fe.current.useSyncExternalStore(P,j,se)},Re.useTransition=function(){return fe.current.useTransition()},Re.version="18.3.1",Re}var Xm;function Cd(){return Xm||(Xm=1,wf.exports=Vw()),wf.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@ var zW=Object.defineProperty;var bC=e=>{throw TypeError(e)};var LW=(e,t,r)=>t in
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var SC;function BW(){if(SC)return zc;SC=1;var e=zu(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(u,c,f){var d,m={},h=null,g=null;f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)n.call(c,d)&&!o.hasOwnProperty(d)&&(m[d]=c[d]);if(u&&u.defaultProps)for(d in c=u.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:u,key:h,ref:g,props:m,_owner:i.current}}return zc.Fragment=r,zc.jsx=a,zc.jsxs=a,zc}var kC;function WW(){return kC||(kC=1,Cb.exports=BW()),Cb.exports}var A=WW();function KW(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function HW(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ZW=(function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(HW(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=KW(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Wr="-ms-",Xm="-moz-",vt="-webkit-",eR="comm",CS="rule",ES="decl",qW="@import",tR="@keyframes",VW="@layer",GW=Math.abs,fv=String.fromCharCode,YW=Object.assign;function XW(e,t){return Mr(e,0)^45?(((t<<2^Mr(e,0))<<2^Mr(e,1))<<2^Mr(e,2))<<2^Mr(e,3):0}function rR(e){return e.trim()}function QW(e,t){return(e=t.exec(e))?e[0]:e}function gt(e,t,r){return e.replace(t,r)}function Rw(e,t){return e.indexOf(t)}function Mr(e,t){return e.charCodeAt(t)|0}function bf(e,t,r){return e.slice(t,r)}function to(e){return e.length}function IS(e){return e.length}function em(e,t){return t.push(e),e}function JW(e,t){return e.map(t).join("")}var dv=1,gu=1,nR=0,wn=0,sr=0,Lu="";function pv(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:dv,column:gu,length:a,return:""}}function Lc(e,t){return YW(pv("",null,null,"",null,null,0),e,{length:-e.length},t)}function e8(){return sr}function t8(){return sr=wn>0?Mr(Lu,--wn):0,gu--,sr===10&&(gu=1,dv--),sr}function Rn(){return sr=wn<nR?Mr(Lu,wn++):0,gu++,sr===10&&(gu=1,dv++),sr}function lo(){return Mr(Lu,wn)}function Mm(){return wn}function ed(e,t){return bf(Lu,e,t)}function wf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function iR(e){return dv=gu=1,nR=to(Lu=e),wn=0,[]}function oR(e){return Lu="",e}function Dm(e){return rR(ed(wn-1,Nw(e===91?e+2:e===40?e+1:e)))}function r8(e){for(;(sr=lo())&&sr<33;)Rn();return wf(e)>2||wf(sr)>3?"":" "}function n8(e,t){for(;--t&&Rn()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return ed(e,Mm()+(t<6&&lo()==32&&Rn()==32))}function Nw(e){for(;Rn();)switch(sr){case e:return wn;case 34:case 39:e!==34&&e!==39&&Nw(sr);break;case 40:e===41&&Nw(e);break;case 92:Rn();break}return wn}function i8(e,t){for(;Rn()&&e+sr!==57;)if(e+sr===84&&lo()===47)break;return"/*"+ed(t,wn-1)+"*"+fv(e===47?e:Rn())}function o8(e){for(;!wf(lo());)Rn();return ed(e,wn)}function a8(e){return oR(zm("",null,null,null,[""],e=iR(e),0,[0],e))}function zm(e,t,r,n,i,o,a,u,c){for(var f=0,d=0,m=a,h=0,g=0,y=0,x=1,w=1,k=1,C=0,$="",P=i,O=o,E=n,j=$;w;)switch(y=C,C=Rn()){case 40:if(y!=108&&Mr(j,m-1)==58){Rw(j+=gt(Dm(C),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:j+=Dm(C);break;case 9:case 10:case 13:case 32:j+=r8(y);break;case 92:j+=n8(Mm()-1,7);continue;case 47:switch(lo()){case 42:case 47:em(s8(i8(Rn(),Mm()),t,r),c);break;default:j+="/"}break;case 123*x:u[f++]=to(j)*k;case 125*x:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+d:k==-1&&(j=gt(j,/\f/g,"")),g>0&&to(j)-m&&em(g>32?_C(j+";",n,r,m-1):_C(gt(j," ","")+";",n,r,m-2),c);break;case 59:j+=";";default:if(em(E=$C(j,t,r,f,d,i,u,$,P=[],O=[],m),o),C===123)if(d===0)zm(j,t,E,E,P,o,m,u,O);else switch(h===99&&Mr(j,3)===110?100:h){case 100:case 108:case 109:case 115:zm(e,E,E,n&&em($C(e,E,E,0,0,i,u,$,i,P=[],m),O),i,O,m,u,n?P:O);break;default:zm(j,E,E,E,[""],O,0,u,O)}}f=d=g=0,x=k=1,$=j="",m=a;break;case 58:m=1+to(j),g=y;default:if(x<1){if(C==123)--x;else if(C==125&&x++==0&&t8()==125)continue}switch(j+=fv(C),C*x){case 38:k=d>0?1:(j+="\f",-1);break;case 44:u[f++]=(to(j)-1)*k,k=1;break;case 64:lo()===45&&(j+=Dm(Rn())),h=lo(),d=m=to($=j+=o8(Mm())),C++;break;case 45:y===45&&to(j)==2&&(x=0)}}return o}function $C(e,t,r,n,i,o,a,u,c,f,d){for(var m=i-1,h=i===0?o:[""],g=IS(h),y=0,x=0,w=0;y<n;++y)for(var k=0,C=bf(e,m+1,m=GW(x=a[y])),$=e;k<g;++k)($=rR(x>0?h[k]+" "+C:gt(C,/&\f/g,h[k])))&&(c[w++]=$);return pv(e,t,r,i===0?CS:u,c,f,d)}function s8(e,t,r){return pv(e,t,r,eR,fv(e8()),bf(e,2,-2),0)}function _C(e,t,r,n){return pv(e,t,r,ES,bf(e,0,n),bf(e,n+1,-1),n)}function tu(e,t){for(var r="",n=IS(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l8(e,t,r,n){switch(e.type){case VW:if(e.children.length)break;case qW:case ES:return e.return=e.return||e.value;case eR:return"";case tR:return e.return=e.value+"{"+tu(e.children,n)+"}";case CS:e.value=e.props.join(",")}return to(r=tu(e.children,n))?e.return=e.value+"{"+r+"}":""}function u8(e){var t=IS(e);return function(r,n,i,o){for(var a="",u=0;u<t;u++)a+=e[u](r,n,i,o)||"";return a}}function c8(e){return function(t){t.root||(t=t.return)&&e(t)}}function aR(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f8=function(t,r,n){for(var i=0,o=0;i=o,o=lo(),i===38&&o===12&&(r[n]=1),!wf(o);)Rn();return ed(t,wn)},d8=function(t,r){var n=-1,i=44;do switch(wf(i)){case 0:i===38&&lo()===12&&(r[n]=1),t[n]+=f8(wn-1,r,n);break;case 2:t[n]+=Dm(i);break;case 4:if(i===44){t[++n]=lo()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=fv(i)}while(i=Rn());return t},p8=function(t,r){return oR(d8(iR(t),r))},PC=new WeakMap,m8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!PC.get(n))&&!i){PC.set(t,!0);for(var o=[],a=p8(r,o),u=n.props,c=0,f=0;c<a.length;c++)for(var d=0;d<u.length;d++,f++)t.props[f]=o[c]?a[c].replace(/&\f/g,u[d]):u[d]+" "+a[c]}}},h8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sR(e,t){switch(XW(e,t)){case 5103:return vt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return vt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vt+e+Xm+e+Wr+e+e;case 6828:case 4268:return vt+e+Wr+e+e;case 6165:return vt+e+Wr+"flex-"+e+e;case 5187:return vt+e+gt(e,/(\w+).+(:[^]+)/,vt+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return vt+e+Wr+"flex-item-"+gt(e,/flex-|-self/,"")+e;case 4675:return vt+e+Wr+"flex-line-pack"+gt(e,/align-content|flex-|-self/,"")+e;case 5548:return vt+e+Wr+gt(e,"shrink","negative")+e;case 5292:return vt+e+Wr+gt(e,"basis","preferred-size")+e;case 6060:return vt+"box-"+gt(e,"-grow","")+vt+e+Wr+gt(e,"grow","positive")+e;case 4554:return vt+gt(e,/([^-])(transform)/g,"$1"+vt+"$2")+e;case 6187:return gt(gt(gt(e,/(zoom-|grab)/,vt+"$1"),/(image-set)/,vt+"$1"),e,"")+e;case 5495:case 3959:return gt(e,/(image-set\([^]*)/,vt+"$1$`$1");case 4968:return gt(gt(e,/(.+:)(flex-)?(.*)/,vt+"box-pack:$3"+Wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vt+e+e;case 4095:case 3583:case 4068:case 2532:return gt(e,/(.+)-inline(.+)/,vt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(to(e)-1-t>6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+Xm+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rw(e,"stretch")?sR(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,to(e)-3-(~Rw(e,"!important")&&10))){case 107:return gt(e,":",":"+vt)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(Mr(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return vt+e+Wr+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Wr+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Wr+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Wr+e+e}return e}var v8=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ES:t.return=sR(t.value,t.length);break;case tR:return tu([Lc(t,{value:gt(t.value,"@","@"+vt)})],i);case CS:if(t.length)return JW(t.props,function(o){switch(QW(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tu([Lc(t,{props:[gt(o,/:(read-\w+)/,":"+Xm+"$1")]})],i);case"::placeholder":return tu([Lc(t,{props:[gt(o,/:(plac\w+)/,":"+vt+"input-$1")]}),Lc(t,{props:[gt(o,/:(plac\w+)/,":"+Xm+"$1")]}),Lc(t,{props:[gt(o,/:(plac\w+)/,Wr+"input-$1")]})],i)}return""})}},g8=[v8],lR=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||g8,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),k=1;k<w.length;k++)o[w[k]]=!0;u.push(x)});var c,f=[m8,h8];{var d,m=[l8,c8(function(x){d.insert(x)})],h=u8(f.concat(i,m)),g=function(w){return tu(a8(w),h)};c=function(w,k,C,$){d=C,g(w?w+"{"+k.styles+"}":k.styles),$&&(y.inserted[k.name]=!0)}}var y={key:r,sheet:new ZW({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return y.sheet.hydrate(u),y},b=zu();const ao=ho(b),xf=UW({__proto__:null,default:ao},[b]);function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qm.apply(null,arguments)}var Ib={exports:{}},wt={};/** @license React v16.13.1
|
|
17
|
+
*/var Jm;function Zw(){if(Jm)return Is;Jm=1;var e=Cd(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,m){var g,y={},x=null,E=null;m!==void 0&&(x=""+m),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(E=h.ref);for(g in h)i.call(h,g)&&!u.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:t,type:d,key:x,ref:E,props:y,_owner:a.current}}return Is.Fragment=o,Is.jsx=c,Is.jsxs=c,Is}var eg;function Hw(){return eg||(eg=1,vf.exports=Zw()),vf.exports}var Y=Hw();function Qw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Kw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Gw=(function(){function e(o){var i=this;this._insertTag=function(a){var u;i.tags.length===0?i.insertionPoint?u=i.insertionPoint.nextSibling:i.prepend?u=i.container.firstChild:u=i.before:u=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,u),i.tags.push(a)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Kw(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var u=Qw(a);try{u.insertRule(i,u.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var a;return(a=i.parentNode)==null?void 0:a.removeChild(i)}),this.tags=[],this.ctr=0},e})(),At="-ms-",Ql="-moz-",Ae="-webkit-",Yy="comm",Ed="rule",bd="decl",qw="@import",Xy="@keyframes",Yw="@layer",Xw=Math.abs,su=String.fromCharCode,Jw=Object.assign;function eS(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Jy(e){return e.trim()}function tS(e,t){return(e=t.exec(e))?e[0]:e}function Me(e,t,o){return e.replace(t,o)}function Df(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Ws(e,t,o){return e.slice(t,o)}function Hn(e){return e.length}function Rd(e){return e.length}function Cl(e,t){return t.push(e),e}function nS(e,t){return e.map(t).join("")}var au=1,Li=1,ev=0,Yt=0,dt=0,Fi="";function lu(e,t,o,i,a,u,c){return{value:e,root:t,parent:o,type:i,props:a,children:u,line:au,column:Li,length:c,return:""}}function Os(e,t){return Jw(lu("",null,null,"",null,null,0),e,{length:-e.length},t)}function rS(){return dt}function oS(){return dt=Yt>0?Rt(Fi,--Yt):0,Li--,dt===10&&(Li=1,au--),dt}function an(){return dt=Yt<ev?Rt(Fi,Yt++):0,Li++,dt===10&&(Li=1,au++),dt}function qn(){return Rt(Fi,Yt)}function Fl(){return Yt}function ra(e,t){return Ws(Fi,e,t)}function Vs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tv(e){return au=Li=1,ev=Hn(Fi=e),Yt=0,[]}function nv(e){return Fi="",e}function jl(e){return Jy(ra(Yt-1,Ff(e===91?e+2:e===40?e+1:e)))}function iS(e){for(;(dt=qn())&&dt<33;)an();return Vs(e)>2||Vs(dt)>3?"":" "}function sS(e,t){for(;--t&&an()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return ra(e,Fl()+(t<6&&qn()==32&&an()==32))}function Ff(e){for(;an();)switch(dt){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Ff(dt);break;case 40:e===41&&Ff(e);break;case 92:an();break}return Yt}function aS(e,t){for(;an()&&e+dt!==57;)if(e+dt===84&&qn()===47)break;return"/*"+ra(t,Yt-1)+"*"+su(e===47?e:an())}function lS(e){for(;!Vs(qn());)an();return ra(e,Yt)}function uS(e){return nv(Bl("",null,null,null,[""],e=tv(e),0,[0],e))}function Bl(e,t,o,i,a,u,c,d,h){for(var m=0,g=0,y=c,x=0,E=0,C=0,w=1,b=1,I=1,L=0,$="",T=a,A=u,z=i,F=$;b;)switch(C=L,L=an()){case 40:if(C!=108&&Rt(F,y-1)==58){Df(F+=Me(jl(L),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:F+=jl(L);break;case 9:case 10:case 13:case 32:F+=iS(C);break;case 92:F+=sS(Fl()-1,7);continue;case 47:switch(qn()){case 42:case 47:Cl(cS(aS(an(),Fl()),t,o),h);break;default:F+="/"}break;case 123*w:d[m++]=Hn(F)*I;case 125*w:case 59:case 0:switch(L){case 0:case 125:b=0;case 59+g:I==-1&&(F=Me(F,/\f/g,"")),E>0&&Hn(F)-y&&Cl(E>32?ng(F+";",i,o,y-1):ng(Me(F," ","")+";",i,o,y-2),h);break;case 59:F+=";";default:if(Cl(z=tg(F,t,o,m,g,a,d,$,T=[],A=[],y),u),L===123)if(g===0)Bl(F,t,z,z,T,u,y,d,A);else switch(x===99&&Rt(F,3)===110?100:x){case 100:case 108:case 109:case 115:Bl(e,z,z,i&&Cl(tg(e,z,z,0,0,a,d,$,a,T=[],y),A),a,A,y,d,i?T:A);break;default:Bl(F,z,z,z,[""],A,0,d,A)}}m=g=E=0,w=I=1,$=F="",y=c;break;case 58:y=1+Hn(F),E=C;default:if(w<1){if(L==123)--w;else if(L==125&&w++==0&&oS()==125)continue}switch(F+=su(L),L*w){case 38:I=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(Hn(F)-1)*I,I=1;break;case 64:qn()===45&&(F+=jl(an())),x=qn(),g=y=Hn($=F+=lS(Fl())),L++;break;case 45:C===45&&Hn(F)==2&&(w=0)}}return u}function tg(e,t,o,i,a,u,c,d,h,m,g){for(var y=a-1,x=a===0?u:[""],E=Rd(x),C=0,w=0,b=0;C<i;++C)for(var I=0,L=Ws(e,y+1,y=Xw(w=c[C])),$=e;I<E;++I)($=Jy(w>0?x[I]+" "+L:Me(L,/&\f/g,x[I])))&&(h[b++]=$);return lu(e,t,o,a===0?Ed:d,h,m,g)}function cS(e,t,o){return lu(e,t,o,Yy,su(rS()),Ws(e,2,-2),0)}function ng(e,t,o,i){return lu(e,t,o,bd,Ws(e,0,i),Ws(e,i+1,-1),i)}function Si(e,t){for(var o="",i=Rd(e),a=0;a<i;a++)o+=t(e[a],a,e,t)||"";return o}function fS(e,t,o,i){switch(e.type){case Yw:if(e.children.length)break;case qw:case bd:return e.return=e.return||e.value;case Yy:return"";case Xy:return e.return=e.value+"{"+Si(e.children,i)+"}";case Ed:e.value=e.props.join(",")}return Hn(o=Si(e.children,i))?e.return=e.value+"{"+o+"}":""}function dS(e){var t=Rd(e);return function(o,i,a,u){for(var c="",d=0;d<t;d++)c+=e[d](o,i,a,u)||"";return c}}function pS(e){return function(t){t.root||(t=t.return)&&e(t)}}function rv(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var hS=function(t,o,i){for(var a=0,u=0;a=u,u=qn(),a===38&&u===12&&(o[i]=1),!Vs(u);)an();return ra(t,Yt)},mS=function(t,o){var i=-1,a=44;do switch(Vs(a)){case 0:a===38&&qn()===12&&(o[i]=1),t[i]+=hS(Yt-1,o,i);break;case 2:t[i]+=jl(a);break;case 4:if(a===44){t[++i]=qn()===58?"&\f":"",o[i]=t[i].length;break}default:t[i]+=su(a)}while(a=an());return t},gS=function(t,o){return nv(mS(tv(t),o))},rg=new WeakMap,yS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var o=t.value,i=t.parent,a=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&o.charCodeAt(0)!==58&&!rg.get(i))&&!a){rg.set(t,!0);for(var u=[],c=gS(o,u),d=i.props,h=0,m=0;h<c.length;h++)for(var g=0;g<d.length;g++,m++)t.props[m]=u[h]?c[h].replace(/&\f/g,d[g]):d[g]+" "+c[h]}}},vS=function(t){if(t.type==="decl"){var o=t.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(t.return="",t.value="")}};function ov(e,t){switch(eS(e,t)){case 5103:return Ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+e+Ql+e+At+e+e;case 6828:case 4268:return Ae+e+At+e+e;case 6165:return Ae+e+At+"flex-"+e+e;case 5187:return Ae+e+Me(e,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return Ae+e+At+"flex-item-"+Me(e,/flex-|-self/,"")+e;case 4675:return Ae+e+At+"flex-line-pack"+Me(e,/align-content|flex-|-self/,"")+e;case 5548:return Ae+e+At+Me(e,"shrink","negative")+e;case 5292:return Ae+e+At+Me(e,"basis","preferred-size")+e;case 6060:return Ae+"box-"+Me(e,"-grow","")+Ae+e+At+Me(e,"grow","positive")+e;case 4554:return Ae+Me(e,/([^-])(transform)/g,"$1"+Ae+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+e+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,Ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Hn(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Ql+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Df(e,"stretch")?ov(Me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,Hn(e)-3-(~Df(e,"!important")&&10))){case 107:return Me(e,":",":"+Ae)+e;case 101:return Me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(Rt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return Ae+e+At+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+At+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+At+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+At+e+e}return e}var wS=function(t,o,i,a){if(t.length>-1&&!t.return)switch(t.type){case bd:t.return=ov(t.value,t.length);break;case Xy:return Si([Os(t,{value:Me(t.value,"@","@"+Ae)})],a);case Ed:if(t.length)return nS(t.props,function(u){switch(tS(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Si([Os(t,{props:[Me(u,/:(read-\w+)/,":"+Ql+"$1")]})],a);case"::placeholder":return Si([Os(t,{props:[Me(u,/:(plac\w+)/,":"+Ae+"input-$1")]}),Os(t,{props:[Me(u,/:(plac\w+)/,":"+Ql+"$1")]}),Os(t,{props:[Me(u,/:(plac\w+)/,At+"input-$1")]})],a)}return""})}},SS=[wS],iv=function(t){var o=t.key;if(o==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(w){var b=w.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=t.stylisPlugins||SS,u={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(w){for(var b=w.getAttribute("data-emotion").split(" "),I=1;I<b.length;I++)u[b[I]]=!0;d.push(w)});var h,m=[yS,vS];{var g,y=[fS,pS(function(w){g.insert(w)})],x=dS(m.concat(a,y)),E=function(b){return Si(uS(b),x)};h=function(b,I,L,$){g=L,E(b?b+"{"+I.styles+"}":I.styles),$&&(C.inserted[I.name]=!0)}}var C={key:o,sheet:new Gw({key:o,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:h};return C.sheet.hydrate(d),C},S=Cd();const Gn=qy(S),jf=Ww({__proto__:null,default:Gn},[S]);function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},Kl.apply(null,arguments)}var Sf={exports:{}},ze={};/** @license React v16.13.1
|
|
18
18
|
* react-is.production.min.js
|
|
19
19
|
*
|
|
20
20
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var
|
|
24
|
+
*/var og;function xS(){if(og)return ze;og=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,L=e?Symbol.for("react.scope"):60119;function $(A){if(typeof A=="object"&&A!==null){var z=A.$$typeof;switch(z){case t:switch(A=A.type,A){case h:case m:case i:case u:case a:case y:return A;default:switch(A=A&&A.$$typeof,A){case d:case g:case C:case E:case c:return A;default:return z}}case o:return z}}}function T(A){return $(A)===m}return ze.AsyncMode=h,ze.ConcurrentMode=m,ze.ContextConsumer=d,ze.ContextProvider=c,ze.Element=t,ze.ForwardRef=g,ze.Fragment=i,ze.Lazy=C,ze.Memo=E,ze.Portal=o,ze.Profiler=u,ze.StrictMode=a,ze.Suspense=y,ze.isAsyncMode=function(A){return T(A)||$(A)===h},ze.isConcurrentMode=T,ze.isContextConsumer=function(A){return $(A)===d},ze.isContextProvider=function(A){return $(A)===c},ze.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},ze.isForwardRef=function(A){return $(A)===g},ze.isFragment=function(A){return $(A)===i},ze.isLazy=function(A){return $(A)===C},ze.isMemo=function(A){return $(A)===E},ze.isPortal=function(A){return $(A)===o},ze.isProfiler=function(A){return $(A)===u},ze.isStrictMode=function(A){return $(A)===a},ze.isSuspense=function(A){return $(A)===y},ze.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===i||A===m||A===u||A===a||A===y||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===C||A.$$typeof===E||A.$$typeof===c||A.$$typeof===d||A.$$typeof===g||A.$$typeof===b||A.$$typeof===I||A.$$typeof===L||A.$$typeof===w)},ze.typeOf=$,ze}var ig;function kS(){return ig||(ig=1,Sf.exports=xS()),Sf.exports}var xf,sg;function CS(){if(sg)return xf;sg=1;var e=kS(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=i,u[e.Memo]=a;function c(C){return e.isMemo(C)?a:u[C.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,x=Object.prototype;function E(C,w,b){if(typeof w!="string"){if(x){var I=y(w);I&&I!==x&&E(C,I,b)}var L=h(w);m&&(L=L.concat(m(w)));for(var $=c(C),T=c(w),A=0;A<L.length;++A){var z=L[A];if(!o[z]&&!(b&&b[z])&&!(T&&T[z])&&!($&&$[z])){var F=g(w,z);try{d(C,z,F)}catch{}}}}return C}return xf=E,xf}CS();var ES=!0;function sv(e,t,o){var i="";return o.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var _d=function(t,o,i){var a=t.key+"-"+o.name;(i===!1||ES===!1)&&t.registered[a]===void 0&&(t.registered[a]=o.styles)},Pd=function(t,o,i){_d(t,o,i);var a=t.key+"-"+o.name;if(t.inserted[o.name]===void 0){var u=o;do t.insert(o===u?"."+a:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function bS(e){for(var t=0,o,i=0,a=e.length;a>=4;++i,a-=4)o=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RS={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},_S=/[A-Z]|^ms/g,PS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,av=function(t){return t.charCodeAt(1)===45},ag=function(t){return t!=null&&typeof t!="boolean"},kf=rv(function(e){return av(e)?e:e.replace(_S,"-$&").toLowerCase()}),lg=function(t,o){switch(t){case"animation":case"animationName":if(typeof o=="string")return o.replace(PS,function(i,a,u){return Qn={name:a,styles:u,next:Qn},a})}return RS[t]!==1&&!av(t)&&typeof o=="number"&&o!==0?o+"px":o};function Zs(e,t,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":{var a=o;if(a.anim===1)return Qn={name:a.name,styles:a.styles,next:Qn},a.name;var u=o;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)Qn={name:c.name,styles:c.styles,next:Qn},c=c.next;var d=u.styles+";";return d}return TS(e,t,o)}case"function":{if(e!==void 0){var h=Qn,m=o(e);return Qn=h,Zs(e,t,m)}break}}var g=o;if(t==null)return g;var y=t[g];return y!==void 0?y:g}function TS(e,t,o){var i="";if(Array.isArray(o))for(var a=0;a<o.length;a++)i+=Zs(e,t,o[a])+";";else for(var u in o){var c=o[u];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=u+"{"+t[d]+"}":ag(d)&&(i+=kf(u)+":"+lg(u,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)ag(c[h])&&(i+=kf(u)+":"+lg(u,c[h])+";");else{var m=Zs(e,t,c);switch(u){case"animation":case"animationName":{i+=kf(u)+":"+m+";";break}default:i+=u+"{"+m+"}"}}}return i}var ug=/label:\s*([^\s;{]+)\s*(;|$)/g,Qn;function oa(e,t,o){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";Qn=void 0;var u=e[0];if(u==null||u.raw===void 0)i=!1,a+=Zs(o,t,u);else{var c=u;a+=c[0]}for(var d=1;d<e.length;d++)if(a+=Zs(o,t,e[d]),i){var h=u;a+=h[d]}ug.lastIndex=0;for(var m="",g;(g=ug.exec(a))!==null;)m+="-"+g[1];var y=bS(a)+m;return{name:y,styles:a,next:Qn}}var $S=function(t){return t()},lv=jf.useInsertionEffect?jf.useInsertionEffect:!1,uv=lv||$S,cg=lv||S.useLayoutEffect,cv=S.createContext(typeof HTMLElement<"u"?iv({key:"css"}):null),IS=cv.Provider,Td=function(t){return S.forwardRef(function(o,i){var a=S.useContext(cv);return t(o,a,i)})},ia=S.createContext({}),$d={}.hasOwnProperty,Bf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OS=function(t,o){var i={};for(var a in o)$d.call(o,a)&&(i[a]=o[a]);return i[Bf]=t,i},AS=function(t){var o=t.cache,i=t.serialized,a=t.isStringTag;return _d(o,i,a),uv(function(){return Pd(o,i,a)}),null},MS=Td(function(e,t,o){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var a=e[Bf],u=[i],c="";typeof e.className=="string"?c=sv(t.registered,u,e.className):e.className!=null&&(c=e.className+" ");var d=oa(u,void 0,S.useContext(ia));c+=t.key+"-"+d.name;var h={};for(var m in e)$d.call(e,m)&&m!=="css"&&m!==Bf&&(h[m]=e[m]);return h.className=c,o&&(h.ref=o),S.createElement(S.Fragment,null,S.createElement(AS,{cache:t,serialized:d,isStringTag:typeof a=="string"}),S.createElement(a,h))}),zS=MS,fg=function(t,o){var i=arguments;if(o==null||!$d.call(o,"css"))return S.createElement.apply(void 0,i);var a=i.length,u=new Array(a);u[0]=zS,u[1]=OS(t,o);for(var c=2;c<a;c++)u[c]=i[c];return S.createElement.apply(null,u)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fg||(fg={}));var LS=Td(function(e,t){var o=e.styles,i=oa([o],void 0,S.useContext(ia)),a=S.useRef();return cg(function(){var u=t.key+"-global",c=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+u+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",u),c.hydrate([h])),a.current=[c,d],function(){c.flush()}},[t]),cg(function(){var u=a.current,c=u[0],d=u[1];if(d){u[1]=!1;return}if(i.next!==void 0&&Pd(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function Id(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return oa(t)}function sa(){var e=Id.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var El={},Cf={exports:{}},Kt={},Ef={exports:{}},bf={};/**
|
|
25
25
|
* @license React
|
|
26
26
|
* scheduler.production.min.js
|
|
27
27
|
*
|
|
@@ -29,7 +29,7 @@ var zW=Object.defineProperty;var bC=e=>{throw TypeError(e)};var LW=(e,t,r)=>t in
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var
|
|
32
|
+
*/var dg;function NS(){return dg||(dg=1,(function(e){function t(Z,G){var K=Z.length;Z.push(G);e:for(;0<K;){var P=K-1>>>1,j=Z[P];if(0<a(j,G))Z[P]=G,Z[K]=j,K=P;else break e}}function o(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var G=Z[0],K=Z.pop();if(K!==G){Z[0]=K;e:for(var P=0,j=Z.length,se=j>>>1;P<se;){var le=2*(P+1)-1,de=Z[le],ge=le+1,ve=Z[ge];if(0>a(de,K))ge<j&&0>a(ve,de)?(Z[P]=ve,Z[ge]=K,P=ge):(Z[P]=de,Z[le]=K,P=le);else if(ge<j&&0>a(ve,K))Z[P]=ve,Z[ge]=K,P=ge;else break e}}return G}function a(Z,G){var K=Z.sortIndex-G.sortIndex;return K!==0?K:Z.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],m=[],g=1,y=null,x=3,E=!1,C=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(Z){for(var G=o(m);G!==null;){if(G.callback===null)i(m);else if(G.startTime<=Z)i(m),G.sortIndex=G.expirationTime,t(h,G);else break;G=o(m)}}function T(Z){if(w=!1,$(Z),!C)if(o(h)!==null)C=!0,re(A);else{var G=o(m);G!==null&&fe(T,G.startTime-Z)}}function A(Z,G){C=!1,w&&(w=!1,I(U),U=-1),E=!0;var K=x;try{for($(G),y=o(h);y!==null&&(!(y.expirationTime>G)||Z&&!J());){var P=y.callback;if(typeof P=="function"){y.callback=null,x=y.priorityLevel;var j=P(y.expirationTime<=G);G=e.unstable_now(),typeof j=="function"?y.callback=j:y===o(h)&&i(h),$(G)}else i(h);y=o(h)}if(y!==null)var se=!0;else{var le=o(m);le!==null&&fe(T,le.startTime-G),se=!1}return se}finally{y=null,x=K,E=!1}}var z=!1,F=null,U=-1,H=5,V=-1;function J(){return!(e.unstable_now()-V<H)}function k(){if(F!==null){var Z=e.unstable_now();V=Z;var G=!0;try{G=F(!0,Z)}finally{G?q():(z=!1,F=null)}}else z=!1}var q;if(typeof L=="function")q=function(){L(k)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,te=W.port2;W.port1.onmessage=k,q=function(){te.postMessage(null)}}else q=function(){b(k,0)};function re(Z){F=Z,z||(z=!0,q())}function fe(Z,G){U=b(function(){Z(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){C||E||(C=!0,re(A))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return o(h)},e.unstable_next=function(Z){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var K=x;x=G;try{return Z()}finally{x=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,G){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var K=x;x=Z;try{return G()}finally{x=K}},e.unstable_scheduleCallback=function(Z,G,K){var P=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?P+K:P):K=P,Z){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=K+j,Z={id:g++,callback:G,priorityLevel:Z,startTime:K,expirationTime:j,sortIndex:-1},K>P?(Z.sortIndex=K,t(m,Z),o(h)===null&&Z===o(m)&&(w?(I(U),U=-1):w=!0,fe(T,K-P))):(Z.sortIndex=j,t(h,Z),C||E||(C=!0,re(A))),Z},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(Z){var G=x;return function(){var K=x;x=G;try{return Z.apply(this,arguments)}finally{x=K}}}})(bf)),bf}var pg;function DS(){return pg||(pg=1,Ef.exports=NS()),Ef.exports}/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-dom.production.min.js
|
|
35
35
|
*
|
|
@@ -37,14 +37,14 @@ var zW=Object.defineProperty;var bC=e=>{throw TypeError(e)};var LW=(e,t,r)=>t in
|
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var
|
|
41
|
-
`+
|
|
42
|
-
`),
|
|
43
|
-
`),
|
|
44
|
-
`+S[T].replace(" at new "," at ");return s.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",s.displayName)),H}while(1<=T&&0<=U);break}}}finally{ae=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?G(s):""}function pe(s){switch(s.tag){case 5:return G(s.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return s=ue(s.type,!1),s;case 11:return s=ue(s.type.render,!1),s;case 1:return s=ue(s.type,!0),s;default:return""}}function le(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case j:return"Fragment";case E:return"Portal";case D:return"Profiler";case R:return"StrictMode";case W:return"Suspense";case K:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case M:return(s.displayName||"Context")+".Consumer";case L:return(s._context.displayName||"Context")+".Provider";case I:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Z:return l=s.displayName||null,l!==null?l:le(s.type)||"Memo";case V:l=s._payload,s=s._init;try{return le(s(l))}catch{}}return null}function he(s){var l=s.type;switch(s.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=l.render,s=s.displayName||s.name||"",l.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(l);case 8:return l===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ke(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Q(s){var l=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function se(s){var l=Q(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,l),v=""+s[l];if(!s.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,_=p.set;return Object.defineProperty(s,l,{configurable:!0,get:function(){return S.call(this)},set:function(T){v=""+T,_.call(this,T)}}),Object.defineProperty(s,l,{enumerable:p.enumerable}),{getValue:function(){return v},setValue:function(T){v=""+T},stopTracking:function(){s._valueTracker=null,delete s[l]}}}}function be(s){s._valueTracker||(s._valueTracker=se(s))}function re(s){if(!s)return!1;var l=s._valueTracker;if(!l)return!0;var p=l.getValue(),v="";return s&&(v=Q(s)?s.checked?"true":"false":s.value),s=v,s!==p?(l.setValue(s),!0):!1}function Ue(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Se(s,l){var p=l.checked;return Y({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function Me(s,l){var p=l.defaultValue==null?"":l.defaultValue,v=l.checked!=null?l.checked:l.defaultChecked;p=ke(l.value!=null?l.value:p),s._wrapperState={initialChecked:v,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function rt(s,l){l=l.checked,l!=null&&$(s,"checked",l,!1)}function et(s,l){rt(s,l);var p=ke(l.value),v=l.type;if(p!=null)v==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(v==="submit"||v==="reset"){s.removeAttribute("value");return}l.hasOwnProperty("value")?ft(s,l.type,p):l.hasOwnProperty("defaultValue")&&ft(s,l.type,ke(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(s.defaultChecked=!!l.defaultChecked)}function ot(s,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var v=l.type;if(!(v!=="submit"&&v!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+s._wrapperState.initialValue,p||l===s.value||(s.value=l),s.defaultValue=l}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function ft(s,l,p){(l!=="number"||Ue(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var ut=Array.isArray;function Ye(s,l,p,v){if(s=s.options,l){l={};for(var S=0;S<p.length;S++)l["$"+p[S]]=!0;for(p=0;p<s.length;p++)S=l.hasOwnProperty("$"+s[p].value),s[p].selected!==S&&(s[p].selected=S),S&&v&&(s[p].defaultSelected=!0)}else{for(p=""+ke(p),l=null,S=0;S<s.length;S++){if(s[S].value===p){s[S].selected=!0,v&&(s[S].defaultSelected=!0);return}l!==null||s[S].disabled||(l=s[S])}l!==null&&(l.selected=!0)}}function Oe(s,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return Y({},l,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function yr(s,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(r(92));if(ut(p)){if(1<p.length)throw Error(r(93));p=p[0]}l=p}l==null&&(l=""),p=l}s._wrapperState={initialValue:ke(p)}}function mt(s,l){var p=ke(l.value),v=ke(l.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),l.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),v!=null&&(s.defaultValue=""+v)}function Zr(s){var l=s.textContent;l===s._wrapperState.initialValue&&l!==""&&l!==null&&(s.value=l)}function ur(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function er(s,l){return s==null||s==="http://www.w3.org/1999/xhtml"?ur(l):s==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var jr,br=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,v,S){MSApp.execUnsafeLocalFunction(function(){return s(l,p,v,S)})}:s})(function(s,l){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=l;else{for(jr=jr||document.createElement("div"),jr.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=jr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}});function ht(s,l){if(l){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=l;return}}s.textContent=l}var Te={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rt=["Webkit","ms","Moz","O"];Object.keys(Te).forEach(function(s){Rt.forEach(function(l){l=l+s.charAt(0).toUpperCase()+s.substring(1),Te[l]=Te[s]})});function Ot(s,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||Te.hasOwnProperty(s)&&Te[s]?(""+l).trim():l+"px"}function bt(s,l){s=s.style;for(var p in l)if(l.hasOwnProperty(p)){var v=p.indexOf("--")===0,S=Ot(p,l[p],v);p==="float"&&(p="cssFloat"),v?s.setProperty(p,S):s[p]=S}}var as=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ki(s,l){if(l){if(as[s]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function la(s,l){if(s.indexOf("-")===-1)return typeof l.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ua(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ca=null,Re=null,st=null;function qt(s){if(s=kc(s)){if(typeof ca!="function")throw Error(r(280));var l=s.stateNode;l&&(l=mp(l),ca(s.stateNode,s.type,l))}}function hi(s){Re?st?st.push(s):st=[s]:Re=s}function ss(){if(Re){var s=Re,l=st;if(st=Re=null,qt(s),l)for(s=0;s<l.length;s++)qt(l[s])}}function Hd(s,l){return s(l)}function Ge(){}var qr=!1;function tc(s,l,p){if(qr)return s(l,p);qr=!0;try{return Hd(s,l,p)}finally{qr=!1,(Re!==null||st!==null)&&(Ge(),ss())}}function rc(s,l){var p=s.stateNode;if(p===null)return null;var v=mp(p);if(v===null)return null;p=v[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(s=s.type,v=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!v;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,l,typeof p));return p}var Hg=!1;if(u)try{var nc={};Object.defineProperty(nc,"passive",{get:function(){Hg=!0}}),window.addEventListener("test",nc,nc),window.removeEventListener("test",nc,nc)}catch{Hg=!1}function K3(s,l,p,v,S,_,T,U,H){var ne=Array.prototype.slice.call(arguments,3);try{l.apply(p,ne)}catch(de){this.onError(de)}}var ic=!1,Zd=null,qd=!1,Zg=null,H3={onError:function(s){ic=!0,Zd=s}};function Z3(s,l,p,v,S,_,T,U,H){ic=!1,Zd=null,K3.apply(H3,arguments)}function q3(s,l,p,v,S,_,T,U,H){if(Z3.apply(this,arguments),ic){if(ic){var ne=Zd;ic=!1,Zd=null}else throw Error(r(198));qd||(qd=!0,Zg=ne)}}function ls(s){var l=s,p=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(p=l.return),s=l.return;while(s)}return l.tag===3?p:null}function B_(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function W_(s){if(ls(s)!==s)throw Error(r(188))}function V3(s){var l=s.alternate;if(!l){if(l=ls(s),l===null)throw Error(r(188));return l!==s?null:s}for(var p=s,v=l;;){var S=p.return;if(S===null)break;var _=S.alternate;if(_===null){if(v=S.return,v!==null){p=v;continue}break}if(S.child===_.child){for(_=S.child;_;){if(_===p)return W_(S),s;if(_===v)return W_(S),l;_=_.sibling}throw Error(r(188))}if(p.return!==v.return)p=S,v=_;else{for(var T=!1,U=S.child;U;){if(U===p){T=!0,p=S,v=_;break}if(U===v){T=!0,v=S,p=_;break}U=U.sibling}if(!T){for(U=_.child;U;){if(U===p){T=!0,p=_,v=S;break}if(U===v){T=!0,v=_,p=S;break}U=U.sibling}if(!T)throw Error(r(189))}}if(p.alternate!==v)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:l}function K_(s){return s=V3(s),s!==null?H_(s):null}function H_(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var l=H_(s);if(l!==null)return l;s=s.sibling}return null}var Z_=t.unstable_scheduleCallback,q_=t.unstable_cancelCallback,G3=t.unstable_shouldYield,Y3=t.unstable_requestPaint,tr=t.unstable_now,X3=t.unstable_getCurrentPriorityLevel,qg=t.unstable_ImmediatePriority,V_=t.unstable_UserBlockingPriority,Vd=t.unstable_NormalPriority,Q3=t.unstable_LowPriority,G_=t.unstable_IdlePriority,Gd=null,Hi=null;function J3(s){if(Hi&&typeof Hi.onCommitFiberRoot=="function")try{Hi.onCommitFiberRoot(Gd,s,void 0,(s.current.flags&128)===128)}catch{}}var vi=Math.clz32?Math.clz32:rB,eB=Math.log,tB=Math.LN2;function rB(s){return s>>>=0,s===0?32:31-(eB(s)/tB|0)|0}var Yd=64,Xd=4194304;function oc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Qd(s,l){var p=s.pendingLanes;if(p===0)return 0;var v=0,S=s.suspendedLanes,_=s.pingedLanes,T=p&268435455;if(T!==0){var U=T&~S;U!==0?v=oc(U):(_&=T,_!==0&&(v=oc(_)))}else T=p&~S,T!==0?v=oc(T):_!==0&&(v=oc(_));if(v===0)return 0;if(l!==0&&l!==v&&(l&S)===0&&(S=v&-v,_=l&-l,S>=_||S===16&&(_&4194240)!==0))return l;if((v&4)!==0&&(v|=p&16),l=s.entangledLanes,l!==0)for(s=s.entanglements,l&=v;0<l;)p=31-vi(l),S=1<<p,v|=s[p],l&=~S;return v}function nB(s,l){switch(s){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iB(s,l){for(var p=s.suspendedLanes,v=s.pingedLanes,S=s.expirationTimes,_=s.pendingLanes;0<_;){var T=31-vi(_),U=1<<T,H=S[T];H===-1?((U&p)===0||(U&v)!==0)&&(S[T]=nB(U,l)):H<=l&&(s.expiredLanes|=U),_&=~U}}function Vg(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Y_(){var s=Yd;return Yd<<=1,(Yd&4194240)===0&&(Yd=64),s}function Gg(s){for(var l=[],p=0;31>p;p++)l.push(s);return l}function ac(s,l,p){s.pendingLanes|=l,l!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,l=31-vi(l),s[l]=p}function oB(s,l){var p=s.pendingLanes&~l;s.pendingLanes=l,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=l,s.mutableReadLanes&=l,s.entangledLanes&=l,l=s.entanglements;var v=s.eventTimes;for(s=s.expirationTimes;0<p;){var S=31-vi(p),_=1<<S;l[S]=0,v[S]=-1,s[S]=-1,p&=~_}}function Yg(s,l){var p=s.entangledLanes|=l;for(s=s.entanglements;p;){var v=31-vi(p),S=1<<v;S&l|s[v]&l&&(s[v]|=l),p&=~S}}var kt=0;function X_(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Q_,Xg,J_,eP,tP,Qg=!1,Jd=[],fa=null,da=null,pa=null,sc=new Map,lc=new Map,ma=[],aB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rP(s,l){switch(s){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":sc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":lc.delete(l.pointerId)}}function uc(s,l,p,v,S,_){return s===null||s.nativeEvent!==_?(s={blockedOn:l,domEventName:p,eventSystemFlags:v,nativeEvent:_,targetContainers:[S]},l!==null&&(l=kc(l),l!==null&&Xg(l)),s):(s.eventSystemFlags|=v,l=s.targetContainers,S!==null&&l.indexOf(S)===-1&&l.push(S),s)}function sB(s,l,p,v,S){switch(l){case"focusin":return fa=uc(fa,s,l,p,v,S),!0;case"dragenter":return da=uc(da,s,l,p,v,S),!0;case"mouseover":return pa=uc(pa,s,l,p,v,S),!0;case"pointerover":var _=S.pointerId;return sc.set(_,uc(sc.get(_)||null,s,l,p,v,S)),!0;case"gotpointercapture":return _=S.pointerId,lc.set(_,uc(lc.get(_)||null,s,l,p,v,S)),!0}return!1}function nP(s){var l=us(s.target);if(l!==null){var p=ls(l);if(p!==null){if(l=p.tag,l===13){if(l=B_(p),l!==null){s.blockedOn=l,tP(s.priority,function(){J_(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ep(s){if(s.blockedOn!==null)return!1;for(var l=s.targetContainers;0<l.length;){var p=ey(s.domEventName,s.eventSystemFlags,l[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var v=new p.constructor(p.type,p);mi=v,p.target.dispatchEvent(v),mi=null}else return l=kc(p),l!==null&&Xg(l),s.blockedOn=p,!1;l.shift()}return!0}function iP(s,l,p){ep(s)&&p.delete(l)}function lB(){Qg=!1,fa!==null&&ep(fa)&&(fa=null),da!==null&&ep(da)&&(da=null),pa!==null&&ep(pa)&&(pa=null),sc.forEach(iP),lc.forEach(iP)}function cc(s,l){s.blockedOn===l&&(s.blockedOn=null,Qg||(Qg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,lB)))}function fc(s){function l(S){return cc(S,s)}if(0<Jd.length){cc(Jd[0],s);for(var p=1;p<Jd.length;p++){var v=Jd[p];v.blockedOn===s&&(v.blockedOn=null)}}for(fa!==null&&cc(fa,s),da!==null&&cc(da,s),pa!==null&&cc(pa,s),sc.forEach(l),lc.forEach(l),p=0;p<ma.length;p++)v=ma[p],v.blockedOn===s&&(v.blockedOn=null);for(;0<ma.length&&(p=ma[0],p.blockedOn===null);)nP(p),p.blockedOn===null&&ma.shift()}var gl=P.ReactCurrentBatchConfig,tp=!0;function uB(s,l,p,v){var S=kt,_=gl.transition;gl.transition=null;try{kt=1,Jg(s,l,p,v)}finally{kt=S,gl.transition=_}}function cB(s,l,p,v){var S=kt,_=gl.transition;gl.transition=null;try{kt=4,Jg(s,l,p,v)}finally{kt=S,gl.transition=_}}function Jg(s,l,p,v){if(tp){var S=ey(s,l,p,v);if(S===null)gy(s,l,v,rp,p),rP(s,v);else if(sB(S,s,l,p,v))v.stopPropagation();else if(rP(s,v),l&4&&-1<aB.indexOf(s)){for(;S!==null;){var _=kc(S);if(_!==null&&Q_(_),_=ey(s,l,p,v),_===null&&gy(s,l,v,rp,p),_===S)break;S=_}S!==null&&v.stopPropagation()}else gy(s,l,v,null,p)}}var rp=null;function ey(s,l,p,v){if(rp=null,s=ua(v),s=us(s),s!==null)if(l=ls(s),l===null)s=null;else if(p=l.tag,p===13){if(s=B_(l),s!==null)return s;s=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;s=null}else l!==s&&(s=null);return rp=s,null}function oP(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(X3()){case qg:return 1;case V_:return 4;case Vd:case Q3:return 16;case G_:return 536870912;default:return 16}default:return 16}}var ha=null,ty=null,np=null;function aP(){if(np)return np;var s,l=ty,p=l.length,v,S="value"in ha?ha.value:ha.textContent,_=S.length;for(s=0;s<p&&l[s]===S[s];s++);var T=p-s;for(v=1;v<=T&&l[p-v]===S[_-v];v++);return np=S.slice(s,1<v?1-v:void 0)}function ip(s){var l=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&l===13&&(s=13)):s=l,s===10&&(s=13),32<=s||s===13?s:0}function op(){return!0}function sP(){return!1}function kn(s){function l(p,v,S,_,T){this._reactName=p,this._targetInst=S,this.type=v,this.nativeEvent=_,this.target=T,this.currentTarget=null;for(var U in s)s.hasOwnProperty(U)&&(p=s[U],this[U]=p?p(_):_[U]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?op:sP,this.isPropagationStopped=sP,this}return Y(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=op)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=op)},persist:function(){},isPersistent:op}),l}var yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ry=kn(yl),dc=Y({},yl,{view:0,detail:0}),fB=kn(dc),ny,iy,pc,ap=Y({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ay,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==pc&&(pc&&s.type==="mousemove"?(ny=s.screenX-pc.screenX,iy=s.screenY-pc.screenY):iy=ny=0,pc=s),ny)},movementY:function(s){return"movementY"in s?s.movementY:iy}}),lP=kn(ap),dB=Y({},ap,{dataTransfer:0}),pB=kn(dB),mB=Y({},dc,{relatedTarget:0}),oy=kn(mB),hB=Y({},yl,{animationName:0,elapsedTime:0,pseudoElement:0}),vB=kn(hB),gB=Y({},yl,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),yB=kn(gB),bB=Y({},yl,{data:0}),uP=kn(bB),wB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},SB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kB(s){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(s):(s=SB[s])?!!l[s]:!1}function ay(){return kB}var $B=Y({},dc,{key:function(s){if(s.key){var l=wB[s.key]||s.key;if(l!=="Unidentified")return l}return s.type==="keypress"?(s=ip(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?xB[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ay,charCode:function(s){return s.type==="keypress"?ip(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?ip(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),_B=kn($B),PB=Y({},ap,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cP=kn(PB),OB=Y({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ay}),CB=kn(OB),EB=Y({},yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),IB=kn(EB),TB=Y({},ap,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),jB=kn(TB),AB=[9,13,27,32],sy=u&&"CompositionEvent"in window,mc=null;u&&"documentMode"in document&&(mc=document.documentMode);var RB=u&&"TextEvent"in window&&!mc,fP=u&&(!sy||mc&&8<mc&&11>=mc),dP=" ",pP=!1;function mP(s,l){switch(s){case"keyup":return AB.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hP(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var bl=!1;function NB(s,l){switch(s){case"compositionend":return hP(l);case"keypress":return l.which!==32?null:(pP=!0,dP);case"textInput":return s=l.data,s===dP&&pP?null:s;default:return null}}function MB(s,l){if(bl)return s==="compositionend"||!sy&&mP(s,l)?(s=aP(),np=ty=ha=null,bl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return fP&&l.locale!=="ko"?null:l.data;default:return null}}var DB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vP(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l==="input"?!!DB[s.type]:l==="textarea"}function gP(s,l,p,v){hi(v),l=fp(l,"onChange"),0<l.length&&(p=new ry("onChange","change",null,p,v),s.push({event:p,listeners:l}))}var hc=null,vc=null;function zB(s){NP(s,0)}function sp(s){var l=$l(s);if(re(l))return s}function LB(s,l){if(s==="change")return l}var yP=!1;if(u){var ly;if(u){var uy="oninput"in document;if(!uy){var bP=document.createElement("div");bP.setAttribute("oninput","return;"),uy=typeof bP.oninput=="function"}ly=uy}else ly=!1;yP=ly&&(!document.documentMode||9<document.documentMode)}function wP(){hc&&(hc.detachEvent("onpropertychange",xP),vc=hc=null)}function xP(s){if(s.propertyName==="value"&&sp(vc)){var l=[];gP(l,vc,s,ua(s)),tc(zB,l)}}function UB(s,l,p){s==="focusin"?(wP(),hc=l,vc=p,hc.attachEvent("onpropertychange",xP)):s==="focusout"&&wP()}function FB(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return sp(vc)}function BB(s,l){if(s==="click")return sp(l)}function WB(s,l){if(s==="input"||s==="change")return sp(l)}function KB(s,l){return s===l&&(s!==0||1/s===1/l)||s!==s&&l!==l}var gi=typeof Object.is=="function"?Object.is:KB;function gc(s,l){if(gi(s,l))return!0;if(typeof s!="object"||s===null||typeof l!="object"||l===null)return!1;var p=Object.keys(s),v=Object.keys(l);if(p.length!==v.length)return!1;for(v=0;v<p.length;v++){var S=p[v];if(!c.call(l,S)||!gi(s[S],l[S]))return!1}return!0}function SP(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function kP(s,l){var p=SP(s);s=0;for(var v;p;){if(p.nodeType===3){if(v=s+p.textContent.length,s<=l&&v>=l)return{node:p,offset:l-s};s=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=SP(p)}}function $P(s,l){return s&&l?s===l?!0:s&&s.nodeType===3?!1:l&&l.nodeType===3?$P(s,l.parentNode):"contains"in s?s.contains(l):s.compareDocumentPosition?!!(s.compareDocumentPosition(l)&16):!1:!1}function _P(){for(var s=window,l=Ue();l instanceof s.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)s=l.contentWindow;else break;l=Ue(s.document)}return l}function cy(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l&&(l==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||l==="textarea"||s.contentEditable==="true")}function HB(s){var l=_P(),p=s.focusedElem,v=s.selectionRange;if(l!==p&&p&&p.ownerDocument&&$P(p.ownerDocument.documentElement,p)){if(v!==null&&cy(p)){if(l=v.start,s=v.end,s===void 0&&(s=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(s,p.value.length);else if(s=(l=p.ownerDocument||document)&&l.defaultView||window,s.getSelection){s=s.getSelection();var S=p.textContent.length,_=Math.min(v.start,S);v=v.end===void 0?_:Math.min(v.end,S),!s.extend&&_>v&&(S=v,v=_,_=S),S=kP(p,_);var T=kP(p,v);S&&T&&(s.rangeCount!==1||s.anchorNode!==S.node||s.anchorOffset!==S.offset||s.focusNode!==T.node||s.focusOffset!==T.offset)&&(l=l.createRange(),l.setStart(S.node,S.offset),s.removeAllRanges(),_>v?(s.addRange(l),s.extend(T.node,T.offset)):(l.setEnd(T.node,T.offset),s.addRange(l)))}}for(l=[],s=p;s=s.parentNode;)s.nodeType===1&&l.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)s=l[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var ZB=u&&"documentMode"in document&&11>=document.documentMode,wl=null,fy=null,yc=null,dy=!1;function PP(s,l,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;dy||wl==null||wl!==Ue(v)||(v=wl,"selectionStart"in v&&cy(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),yc&&gc(yc,v)||(yc=v,v=fp(fy,"onSelect"),0<v.length&&(l=new ry("onSelect","select",null,l,p),s.push({event:l,listeners:v}),l.target=wl)))}function lp(s,l){var p={};return p[s.toLowerCase()]=l.toLowerCase(),p["Webkit"+s]="webkit"+l,p["Moz"+s]="moz"+l,p}var xl={animationend:lp("Animation","AnimationEnd"),animationiteration:lp("Animation","AnimationIteration"),animationstart:lp("Animation","AnimationStart"),transitionend:lp("Transition","TransitionEnd")},py={},OP={};u&&(OP=document.createElement("div").style,"AnimationEvent"in window||(delete xl.animationend.animation,delete xl.animationiteration.animation,delete xl.animationstart.animation),"TransitionEvent"in window||delete xl.transitionend.transition);function up(s){if(py[s])return py[s];if(!xl[s])return s;var l=xl[s],p;for(p in l)if(l.hasOwnProperty(p)&&p in OP)return py[s]=l[p];return s}var CP=up("animationend"),EP=up("animationiteration"),IP=up("animationstart"),TP=up("transitionend"),jP=new Map,AP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function va(s,l){jP.set(s,l),o(l,[s])}for(var my=0;my<AP.length;my++){var hy=AP[my],qB=hy.toLowerCase(),VB=hy[0].toUpperCase()+hy.slice(1);va(qB,"on"+VB)}va(CP,"onAnimationEnd"),va(EP,"onAnimationIteration"),va(IP,"onAnimationStart"),va("dblclick","onDoubleClick"),va("focusin","onFocus"),va("focusout","onBlur"),va(TP,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),GB=new Set("cancel close invalid load scroll toggle".split(" ").concat(bc));function RP(s,l,p){var v=s.type||"unknown-event";s.currentTarget=p,q3(v,l,void 0,s),s.currentTarget=null}function NP(s,l){l=(l&4)!==0;for(var p=0;p<s.length;p++){var v=s[p],S=v.event;v=v.listeners;e:{var _=void 0;if(l)for(var T=v.length-1;0<=T;T--){var U=v[T],H=U.instance,ne=U.currentTarget;if(U=U.listener,H!==_&&S.isPropagationStopped())break e;RP(S,U,ne),_=H}else for(T=0;T<v.length;T++){if(U=v[T],H=U.instance,ne=U.currentTarget,U=U.listener,H!==_&&S.isPropagationStopped())break e;RP(S,U,ne),_=H}}}if(qd)throw s=Zg,qd=!1,Zg=null,s}function Nt(s,l){var p=l[ky];p===void 0&&(p=l[ky]=new Set);var v=s+"__bubble";p.has(v)||(MP(l,s,2,!1),p.add(v))}function vy(s,l,p){var v=0;l&&(v|=4),MP(p,s,v,l)}var cp="_reactListening"+Math.random().toString(36).slice(2);function wc(s){if(!s[cp]){s[cp]=!0,n.forEach(function(p){p!=="selectionchange"&&(GB.has(p)||vy(p,!1,s),vy(p,!0,s))});var l=s.nodeType===9?s:s.ownerDocument;l===null||l[cp]||(l[cp]=!0,vy("selectionchange",!1,l))}}function MP(s,l,p,v){switch(oP(l)){case 1:var S=uB;break;case 4:S=cB;break;default:S=Jg}p=S.bind(null,l,p,s),S=void 0,!Hg||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(S=!0),v?S!==void 0?s.addEventListener(l,p,{capture:!0,passive:S}):s.addEventListener(l,p,!0):S!==void 0?s.addEventListener(l,p,{passive:S}):s.addEventListener(l,p,!1)}function gy(s,l,p,v,S){var _=v;if((l&1)===0&&(l&2)===0&&v!==null)e:for(;;){if(v===null)return;var T=v.tag;if(T===3||T===4){var U=v.stateNode.containerInfo;if(U===S||U.nodeType===8&&U.parentNode===S)break;if(T===4)for(T=v.return;T!==null;){var H=T.tag;if((H===3||H===4)&&(H=T.stateNode.containerInfo,H===S||H.nodeType===8&&H.parentNode===S))return;T=T.return}for(;U!==null;){if(T=us(U),T===null)return;if(H=T.tag,H===5||H===6){v=_=T;continue e}U=U.parentNode}}v=v.return}tc(function(){var ne=_,de=ua(p),me=[];e:{var fe=jP.get(s);if(fe!==void 0){var Pe=ry,Ie=s;switch(s){case"keypress":if(ip(p)===0)break e;case"keydown":case"keyup":Pe=_B;break;case"focusin":Ie="focus",Pe=oy;break;case"focusout":Ie="blur",Pe=oy;break;case"beforeblur":case"afterblur":Pe=oy;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=lP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=pB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=CB;break;case CP:case EP:case IP:Pe=vB;break;case TP:Pe=IB;break;case"scroll":Pe=fB;break;case"wheel":Pe=jB;break;case"copy":case"cut":case"paste":Pe=yB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=cP}var je=(l&4)!==0,rr=!je&&s==="scroll",J=je?fe!==null?fe+"Capture":null:fe;je=[];for(var q=ne,te;q!==null;){te=q;var we=te.stateNode;if(te.tag===5&&we!==null&&(te=we,J!==null&&(we=rc(q,J),we!=null&&je.push(xc(q,we,te)))),rr)break;q=q.return}0<je.length&&(fe=new Pe(fe,Ie,null,p,de),me.push({event:fe,listeners:je}))}}if((l&7)===0){e:{if(fe=s==="mouseover"||s==="pointerover",Pe=s==="mouseout"||s==="pointerout",fe&&p!==mi&&(Ie=p.relatedTarget||p.fromElement)&&(us(Ie)||Ie[go]))break e;if((Pe||fe)&&(fe=de.window===de?de:(fe=de.ownerDocument)?fe.defaultView||fe.parentWindow:window,Pe?(Ie=p.relatedTarget||p.toElement,Pe=ne,Ie=Ie?us(Ie):null,Ie!==null&&(rr=ls(Ie),Ie!==rr||Ie.tag!==5&&Ie.tag!==6)&&(Ie=null)):(Pe=null,Ie=ne),Pe!==Ie)){if(je=lP,we="onMouseLeave",J="onMouseEnter",q="mouse",(s==="pointerout"||s==="pointerover")&&(je=cP,we="onPointerLeave",J="onPointerEnter",q="pointer"),rr=Pe==null?fe:$l(Pe),te=Ie==null?fe:$l(Ie),fe=new je(we,q+"leave",Pe,p,de),fe.target=rr,fe.relatedTarget=te,we=null,us(de)===ne&&(je=new je(J,q+"enter",Ie,p,de),je.target=te,je.relatedTarget=rr,we=je),rr=we,Pe&&Ie)t:{for(je=Pe,J=Ie,q=0,te=je;te;te=Sl(te))q++;for(te=0,we=J;we;we=Sl(we))te++;for(;0<q-te;)je=Sl(je),q--;for(;0<te-q;)J=Sl(J),te--;for(;q--;){if(je===J||J!==null&&je===J.alternate)break t;je=Sl(je),J=Sl(J)}je=null}else je=null;Pe!==null&&DP(me,fe,Pe,je,!1),Ie!==null&&rr!==null&&DP(me,rr,Ie,je,!0)}}e:{if(fe=ne?$l(ne):window,Pe=fe.nodeName&&fe.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&fe.type==="file")var Ae=LB;else if(vP(fe))if(yP)Ae=WB;else{Ae=FB;var De=UB}else(Pe=fe.nodeName)&&Pe.toLowerCase()==="input"&&(fe.type==="checkbox"||fe.type==="radio")&&(Ae=BB);if(Ae&&(Ae=Ae(s,ne))){gP(me,Ae,p,de);break e}De&&De(s,fe,ne),s==="focusout"&&(De=fe._wrapperState)&&De.controlled&&fe.type==="number"&&ft(fe,"number",fe.value)}switch(De=ne?$l(ne):window,s){case"focusin":(vP(De)||De.contentEditable==="true")&&(wl=De,fy=ne,yc=null);break;case"focusout":yc=fy=wl=null;break;case"mousedown":dy=!0;break;case"contextmenu":case"mouseup":case"dragend":dy=!1,PP(me,p,de);break;case"selectionchange":if(ZB)break;case"keydown":case"keyup":PP(me,p,de)}var ze;if(sy)e:{switch(s){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else bl?mP(s,p)&&(We="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(We="onCompositionStart");We&&(fP&&p.locale!=="ko"&&(bl||We!=="onCompositionStart"?We==="onCompositionEnd"&&bl&&(ze=aP()):(ha=de,ty="value"in ha?ha.value:ha.textContent,bl=!0)),De=fp(ne,We),0<De.length&&(We=new uP(We,s,null,p,de),me.push({event:We,listeners:De}),ze?We.data=ze:(ze=hP(p),ze!==null&&(We.data=ze)))),(ze=RB?NB(s,p):MB(s,p))&&(ne=fp(ne,"onBeforeInput"),0<ne.length&&(de=new uP("onBeforeInput","beforeinput",null,p,de),me.push({event:de,listeners:ne}),de.data=ze))}NP(me,l)})}function xc(s,l,p){return{instance:s,listener:l,currentTarget:p}}function fp(s,l){for(var p=l+"Capture",v=[];s!==null;){var S=s,_=S.stateNode;S.tag===5&&_!==null&&(S=_,_=rc(s,p),_!=null&&v.unshift(xc(s,_,S)),_=rc(s,l),_!=null&&v.push(xc(s,_,S))),s=s.return}return v}function Sl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function DP(s,l,p,v,S){for(var _=l._reactName,T=[];p!==null&&p!==v;){var U=p,H=U.alternate,ne=U.stateNode;if(H!==null&&H===v)break;U.tag===5&&ne!==null&&(U=ne,S?(H=rc(p,_),H!=null&&T.unshift(xc(p,H,U))):S||(H=rc(p,_),H!=null&&T.push(xc(p,H,U)))),p=p.return}T.length!==0&&s.push({event:l,listeners:T})}var YB=/\r\n?/g,XB=/\u0000|\uFFFD/g;function zP(s){return(typeof s=="string"?s:""+s).replace(YB,`
|
|
45
|
-
`).replace(XB,"")}function dp(s,l,p){if(l=zP(l),zP(s)!==l&&p)throw Error(r(425))}function pp(){}var yy=null,by=null;function wy(s,l){return s==="textarea"||s==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var xy=typeof setTimeout=="function"?setTimeout:void 0,QB=typeof clearTimeout=="function"?clearTimeout:void 0,LP=typeof Promise=="function"?Promise:void 0,JB=typeof queueMicrotask=="function"?queueMicrotask:typeof LP<"u"?function(s){return LP.resolve(null).then(s).catch(eW)}:xy;function eW(s){setTimeout(function(){throw s})}function Sy(s,l){var p=l,v=0;do{var S=p.nextSibling;if(s.removeChild(p),S&&S.nodeType===8)if(p=S.data,p==="/$"){if(v===0){s.removeChild(S),fc(l);return}v--}else p!=="$"&&p!=="$?"&&p!=="$!"||v++;p=S}while(p);fc(l)}function ga(s){for(;s!=null;s=s.nextSibling){var l=s.nodeType;if(l===1||l===3)break;if(l===8){if(l=s.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return s}function UP(s){s=s.previousSibling;for(var l=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return s;l--}else p==="/$"&&l++}s=s.previousSibling}return null}var kl=Math.random().toString(36).slice(2),Zi="__reactFiber$"+kl,Sc="__reactProps$"+kl,go="__reactContainer$"+kl,ky="__reactEvents$"+kl,tW="__reactListeners$"+kl,rW="__reactHandles$"+kl;function us(s){var l=s[Zi];if(l)return l;for(var p=s.parentNode;p;){if(l=p[go]||p[Zi]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(s=UP(s);s!==null;){if(p=s[Zi])return p;s=UP(s)}return l}s=p,p=s.parentNode}return null}function kc(s){return s=s[Zi]||s[go],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function $l(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function mp(s){return s[Sc]||null}var $y=[],_l=-1;function ya(s){return{current:s}}function Mt(s){0>_l||(s.current=$y[_l],$y[_l]=null,_l--)}function Tt(s,l){_l++,$y[_l]=s.current,s.current=l}var ba={},Lr=ya(ba),an=ya(!1),cs=ba;function Pl(s,l){var p=s.type.contextTypes;if(!p)return ba;var v=s.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===l)return v.__reactInternalMemoizedMaskedChildContext;var S={},_;for(_ in p)S[_]=l[_];return v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=l,s.__reactInternalMemoizedMaskedChildContext=S),S}function sn(s){return s=s.childContextTypes,s!=null}function hp(){Mt(an),Mt(Lr)}function FP(s,l,p){if(Lr.current!==ba)throw Error(r(168));Tt(Lr,l),Tt(an,p)}function BP(s,l,p){var v=s.stateNode;if(l=l.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var S in v)if(!(S in l))throw Error(r(108,he(s)||"Unknown",S));return Y({},p,v)}function vp(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||ba,cs=Lr.current,Tt(Lr,s),Tt(an,an.current),!0}function WP(s,l,p){var v=s.stateNode;if(!v)throw Error(r(169));p?(s=BP(s,l,cs),v.__reactInternalMemoizedMergedChildContext=s,Mt(an),Mt(Lr),Tt(Lr,s)):Mt(an),Tt(an,p)}var yo=null,gp=!1,_y=!1;function KP(s){yo===null?yo=[s]:yo.push(s)}function nW(s){gp=!0,KP(s)}function wa(){if(!_y&&yo!==null){_y=!0;var s=0,l=kt;try{var p=yo;for(kt=1;s<p.length;s++){var v=p[s];do v=v(!0);while(v!==null)}yo=null,gp=!1}catch(S){throw yo!==null&&(yo=yo.slice(s+1)),Z_(qg,wa),S}finally{kt=l,_y=!1}}return null}var Ol=[],Cl=0,yp=null,bp=0,Kn=[],Hn=0,fs=null,bo=1,wo="";function ds(s,l){Ol[Cl++]=bp,Ol[Cl++]=yp,yp=s,bp=l}function HP(s,l,p){Kn[Hn++]=bo,Kn[Hn++]=wo,Kn[Hn++]=fs,fs=s;var v=bo;s=wo;var S=32-vi(v)-1;v&=~(1<<S),p+=1;var _=32-vi(l)+S;if(30<_){var T=S-S%5;_=(v&(1<<T)-1).toString(32),v>>=T,S-=T,bo=1<<32-vi(l)+S|p<<S|v,wo=_+s}else bo=1<<_|p<<S|v,wo=s}function Py(s){s.return!==null&&(ds(s,1),HP(s,1,0))}function Oy(s){for(;s===yp;)yp=Ol[--Cl],Ol[Cl]=null,bp=Ol[--Cl],Ol[Cl]=null;for(;s===fs;)fs=Kn[--Hn],Kn[Hn]=null,wo=Kn[--Hn],Kn[Hn]=null,bo=Kn[--Hn],Kn[Hn]=null}var $n=null,_n=null,Lt=!1,yi=null;function ZP(s,l){var p=Gn(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=s,l=s.deletions,l===null?(s.deletions=[p],s.flags|=16):l.push(p)}function qP(s,l){switch(s.tag){case 5:var p=s.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(s.stateNode=l,$n=s,_n=ga(l.firstChild),!0):!1;case 6:return l=s.pendingProps===""||l.nodeType!==3?null:l,l!==null?(s.stateNode=l,$n=s,_n=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=fs!==null?{id:bo,overflow:wo}:null,s.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=Gn(18,null,null,0),p.stateNode=l,p.return=s,s.child=p,$n=s,_n=null,!0):!1;default:return!1}}function Cy(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Ey(s){if(Lt){var l=_n;if(l){var p=l;if(!qP(s,l)){if(Cy(s))throw Error(r(418));l=ga(p.nextSibling);var v=$n;l&&qP(s,l)?ZP(v,p):(s.flags=s.flags&-4097|2,Lt=!1,$n=s)}}else{if(Cy(s))throw Error(r(418));s.flags=s.flags&-4097|2,Lt=!1,$n=s}}}function VP(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;$n=s}function wp(s){if(s!==$n)return!1;if(!Lt)return VP(s),Lt=!0,!1;var l;if((l=s.tag!==3)&&!(l=s.tag!==5)&&(l=s.type,l=l!=="head"&&l!=="body"&&!wy(s.type,s.memoizedProps)),l&&(l=_n)){if(Cy(s))throw GP(),Error(r(418));for(;l;)ZP(s,l),l=ga(l.nextSibling)}if(VP(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,l=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(l===0){_n=ga(s.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}s=s.nextSibling}_n=null}}else _n=$n?ga(s.stateNode.nextSibling):null;return!0}function GP(){for(var s=_n;s;)s=ga(s.nextSibling)}function El(){_n=$n=null,Lt=!1}function Iy(s){yi===null?yi=[s]:yi.push(s)}var iW=P.ReactCurrentBatchConfig;function $c(s,l,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var v=p.stateNode}if(!v)throw Error(r(147,s));var S=v,_=""+s;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===_?l.ref:(l=function(T){var U=S.refs;T===null?delete U[_]:U[_]=T},l._stringRef=_,l)}if(typeof s!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,s))}return s}function xp(s,l){throw s=Object.prototype.toString.call(l),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":s))}function YP(s){var l=s._init;return l(s._payload)}function XP(s){function l(J,q){if(s){var te=J.deletions;te===null?(J.deletions=[q],J.flags|=16):te.push(q)}}function p(J,q){if(!s)return null;for(;q!==null;)l(J,q),q=q.sibling;return null}function v(J,q){for(J=new Map;q!==null;)q.key!==null?J.set(q.key,q):J.set(q.index,q),q=q.sibling;return J}function S(J,q){return J=Ca(J,q),J.index=0,J.sibling=null,J}function _(J,q,te){return J.index=te,s?(te=J.alternate,te!==null?(te=te.index,te<q?(J.flags|=2,q):te):(J.flags|=2,q)):(J.flags|=1048576,q)}function T(J){return s&&J.alternate===null&&(J.flags|=2),J}function U(J,q,te,we){return q===null||q.tag!==6?(q=xb(te,J.mode,we),q.return=J,q):(q=S(q,te),q.return=J,q)}function H(J,q,te,we){var Ae=te.type;return Ae===j?de(J,q,te.props.children,we,te.key):q!==null&&(q.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===V&&YP(Ae)===q.type)?(we=S(q,te.props),we.ref=$c(J,q,te),we.return=J,we):(we=Hp(te.type,te.key,te.props,null,J.mode,we),we.ref=$c(J,q,te),we.return=J,we)}function ne(J,q,te,we){return q===null||q.tag!==4||q.stateNode.containerInfo!==te.containerInfo||q.stateNode.implementation!==te.implementation?(q=Sb(te,J.mode,we),q.return=J,q):(q=S(q,te.children||[]),q.return=J,q)}function de(J,q,te,we,Ae){return q===null||q.tag!==7?(q=ws(te,J.mode,we,Ae),q.return=J,q):(q=S(q,te),q.return=J,q)}function me(J,q,te){if(typeof q=="string"&&q!==""||typeof q=="number")return q=xb(""+q,J.mode,te),q.return=J,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case O:return te=Hp(q.type,q.key,q.props,null,J.mode,te),te.ref=$c(J,null,q),te.return=J,te;case E:return q=Sb(q,J.mode,te),q.return=J,q;case V:var we=q._init;return me(J,we(q._payload),te)}if(ut(q)||z(q))return q=ws(q,J.mode,te,null),q.return=J,q;xp(J,q)}return null}function fe(J,q,te,we){var Ae=q!==null?q.key:null;if(typeof te=="string"&&te!==""||typeof te=="number")return Ae!==null?null:U(J,q,""+te,we);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case O:return te.key===Ae?H(J,q,te,we):null;case E:return te.key===Ae?ne(J,q,te,we):null;case V:return Ae=te._init,fe(J,q,Ae(te._payload),we)}if(ut(te)||z(te))return Ae!==null?null:de(J,q,te,we,null);xp(J,te)}return null}function Pe(J,q,te,we,Ae){if(typeof we=="string"&&we!==""||typeof we=="number")return J=J.get(te)||null,U(q,J,""+we,Ae);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case O:return J=J.get(we.key===null?te:we.key)||null,H(q,J,we,Ae);case E:return J=J.get(we.key===null?te:we.key)||null,ne(q,J,we,Ae);case V:var De=we._init;return Pe(J,q,te,De(we._payload),Ae)}if(ut(we)||z(we))return J=J.get(te)||null,de(q,J,we,Ae,null);xp(q,we)}return null}function Ie(J,q,te,we){for(var Ae=null,De=null,ze=q,We=q=0,Sr=null;ze!==null&&We<te.length;We++){ze.index>We?(Sr=ze,ze=null):Sr=ze.sibling;var dt=fe(J,ze,te[We],we);if(dt===null){ze===null&&(ze=Sr);break}s&&ze&&dt.alternate===null&&l(J,ze),q=_(dt,q,We),De===null?Ae=dt:De.sibling=dt,De=dt,ze=Sr}if(We===te.length)return p(J,ze),Lt&&ds(J,We),Ae;if(ze===null){for(;We<te.length;We++)ze=me(J,te[We],we),ze!==null&&(q=_(ze,q,We),De===null?Ae=ze:De.sibling=ze,De=ze);return Lt&&ds(J,We),Ae}for(ze=v(J,ze);We<te.length;We++)Sr=Pe(ze,J,We,te[We],we),Sr!==null&&(s&&Sr.alternate!==null&&ze.delete(Sr.key===null?We:Sr.key),q=_(Sr,q,We),De===null?Ae=Sr:De.sibling=Sr,De=Sr);return s&&ze.forEach(function(Ea){return l(J,Ea)}),Lt&&ds(J,We),Ae}function je(J,q,te,we){var Ae=z(te);if(typeof Ae!="function")throw Error(r(150));if(te=Ae.call(te),te==null)throw Error(r(151));for(var De=Ae=null,ze=q,We=q=0,Sr=null,dt=te.next();ze!==null&&!dt.done;We++,dt=te.next()){ze.index>We?(Sr=ze,ze=null):Sr=ze.sibling;var Ea=fe(J,ze,dt.value,we);if(Ea===null){ze===null&&(ze=Sr);break}s&&ze&&Ea.alternate===null&&l(J,ze),q=_(Ea,q,We),De===null?Ae=Ea:De.sibling=Ea,De=Ea,ze=Sr}if(dt.done)return p(J,ze),Lt&&ds(J,We),Ae;if(ze===null){for(;!dt.done;We++,dt=te.next())dt=me(J,dt.value,we),dt!==null&&(q=_(dt,q,We),De===null?Ae=dt:De.sibling=dt,De=dt);return Lt&&ds(J,We),Ae}for(ze=v(J,ze);!dt.done;We++,dt=te.next())dt=Pe(ze,J,We,dt.value,we),dt!==null&&(s&&dt.alternate!==null&&ze.delete(dt.key===null?We:dt.key),q=_(dt,q,We),De===null?Ae=dt:De.sibling=dt,De=dt);return s&&ze.forEach(function(DW){return l(J,DW)}),Lt&&ds(J,We),Ae}function rr(J,q,te,we){if(typeof te=="object"&&te!==null&&te.type===j&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case O:e:{for(var Ae=te.key,De=q;De!==null;){if(De.key===Ae){if(Ae=te.type,Ae===j){if(De.tag===7){p(J,De.sibling),q=S(De,te.props.children),q.return=J,J=q;break e}}else if(De.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===V&&YP(Ae)===De.type){p(J,De.sibling),q=S(De,te.props),q.ref=$c(J,De,te),q.return=J,J=q;break e}p(J,De);break}else l(J,De);De=De.sibling}te.type===j?(q=ws(te.props.children,J.mode,we,te.key),q.return=J,J=q):(we=Hp(te.type,te.key,te.props,null,J.mode,we),we.ref=$c(J,q,te),we.return=J,J=we)}return T(J);case E:e:{for(De=te.key;q!==null;){if(q.key===De)if(q.tag===4&&q.stateNode.containerInfo===te.containerInfo&&q.stateNode.implementation===te.implementation){p(J,q.sibling),q=S(q,te.children||[]),q.return=J,J=q;break e}else{p(J,q);break}else l(J,q);q=q.sibling}q=Sb(te,J.mode,we),q.return=J,J=q}return T(J);case V:return De=te._init,rr(J,q,De(te._payload),we)}if(ut(te))return Ie(J,q,te,we);if(z(te))return je(J,q,te,we);xp(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"?(te=""+te,q!==null&&q.tag===6?(p(J,q.sibling),q=S(q,te),q.return=J,J=q):(p(J,q),q=xb(te,J.mode,we),q.return=J,J=q),T(J)):p(J,q)}return rr}var Il=XP(!0),QP=XP(!1),Sp=ya(null),kp=null,Tl=null,Ty=null;function jy(){Ty=Tl=kp=null}function Ay(s){var l=Sp.current;Mt(Sp),s._currentValue=l}function Ry(s,l,p){for(;s!==null;){var v=s.alternate;if((s.childLanes&l)!==l?(s.childLanes|=l,v!==null&&(v.childLanes|=l)):v!==null&&(v.childLanes&l)!==l&&(v.childLanes|=l),s===p)break;s=s.return}}function jl(s,l){kp=s,Ty=Tl=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&l)!==0&&(ln=!0),s.firstContext=null)}function Zn(s){var l=s._currentValue;if(Ty!==s)if(s={context:s,memoizedValue:l,next:null},Tl===null){if(kp===null)throw Error(r(308));Tl=s,kp.dependencies={lanes:0,firstContext:s}}else Tl=Tl.next=s;return l}var ps=null;function Ny(s){ps===null?ps=[s]:ps.push(s)}function JP(s,l,p,v){var S=l.interleaved;return S===null?(p.next=p,Ny(l)):(p.next=S.next,S.next=p),l.interleaved=p,xo(s,v)}function xo(s,l){s.lanes|=l;var p=s.alternate;for(p!==null&&(p.lanes|=l),p=s,s=s.return;s!==null;)s.childLanes|=l,p=s.alternate,p!==null&&(p.childLanes|=l),p=s,s=s.return;return p.tag===3?p.stateNode:null}var xa=!1;function My(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eO(s,l){s=s.updateQueue,l.updateQueue===s&&(l.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function So(s,l){return{eventTime:s,lane:l,tag:0,payload:null,callback:null,next:null}}function Sa(s,l,p){var v=s.updateQueue;if(v===null)return null;if(v=v.shared,(ct&2)!==0){var S=v.pending;return S===null?l.next=l:(l.next=S.next,S.next=l),v.pending=l,xo(s,p)}return S=v.interleaved,S===null?(l.next=l,Ny(v)):(l.next=S.next,S.next=l),v.interleaved=l,xo(s,p)}function $p(s,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var v=l.lanes;v&=s.pendingLanes,p|=v,l.lanes=p,Yg(s,p)}}function tO(s,l){var p=s.updateQueue,v=s.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var S=null,_=null;if(p=p.firstBaseUpdate,p!==null){do{var T={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};_===null?S=_=T:_=_.next=T,p=p.next}while(p!==null);_===null?S=_=l:_=_.next=l}else S=_=l;p={baseState:v.baseState,firstBaseUpdate:S,lastBaseUpdate:_,shared:v.shared,effects:v.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=l:s.next=l,p.lastBaseUpdate=l}function _p(s,l,p,v){var S=s.updateQueue;xa=!1;var _=S.firstBaseUpdate,T=S.lastBaseUpdate,U=S.shared.pending;if(U!==null){S.shared.pending=null;var H=U,ne=H.next;H.next=null,T===null?_=ne:T.next=ne,T=H;var de=s.alternate;de!==null&&(de=de.updateQueue,U=de.lastBaseUpdate,U!==T&&(U===null?de.firstBaseUpdate=ne:U.next=ne,de.lastBaseUpdate=H))}if(_!==null){var me=S.baseState;T=0,de=ne=H=null,U=_;do{var fe=U.lane,Pe=U.eventTime;if((v&fe)===fe){de!==null&&(de=de.next={eventTime:Pe,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var Ie=s,je=U;switch(fe=l,Pe=p,je.tag){case 1:if(Ie=je.payload,typeof Ie=="function"){me=Ie.call(Pe,me,fe);break e}me=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=je.payload,fe=typeof Ie=="function"?Ie.call(Pe,me,fe):Ie,fe==null)break e;me=Y({},me,fe);break e;case 2:xa=!0}}U.callback!==null&&U.lane!==0&&(s.flags|=64,fe=S.effects,fe===null?S.effects=[U]:fe.push(U))}else Pe={eventTime:Pe,lane:fe,tag:U.tag,payload:U.payload,callback:U.callback,next:null},de===null?(ne=de=Pe,H=me):de=de.next=Pe,T|=fe;if(U=U.next,U===null){if(U=S.shared.pending,U===null)break;fe=U,U=fe.next,fe.next=null,S.lastBaseUpdate=fe,S.shared.pending=null}}while(!0);if(de===null&&(H=me),S.baseState=H,S.firstBaseUpdate=ne,S.lastBaseUpdate=de,l=S.shared.interleaved,l!==null){S=l;do T|=S.lane,S=S.next;while(S!==l)}else _===null&&(S.shared.lanes=0);vs|=T,s.lanes=T,s.memoizedState=me}}function rO(s,l,p){if(s=l.effects,l.effects=null,s!==null)for(l=0;l<s.length;l++){var v=s[l],S=v.callback;if(S!==null){if(v.callback=null,v=p,typeof S!="function")throw Error(r(191,S));S.call(v)}}}var _c={},qi=ya(_c),Pc=ya(_c),Oc=ya(_c);function ms(s){if(s===_c)throw Error(r(174));return s}function Dy(s,l){switch(Tt(Oc,l),Tt(Pc,s),Tt(qi,_c),s=l.nodeType,s){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:er(null,"");break;default:s=s===8?l.parentNode:l,l=s.namespaceURI||null,s=s.tagName,l=er(l,s)}Mt(qi),Tt(qi,l)}function Al(){Mt(qi),Mt(Pc),Mt(Oc)}function nO(s){ms(Oc.current);var l=ms(qi.current),p=er(l,s.type);l!==p&&(Tt(Pc,s),Tt(qi,p))}function zy(s){Pc.current===s&&(Mt(qi),Mt(Pc))}var Ht=ya(0);function Pp(s){for(var l=s;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ly=[];function Uy(){for(var s=0;s<Ly.length;s++)Ly[s]._workInProgressVersionPrimary=null;Ly.length=0}var Op=P.ReactCurrentDispatcher,Fy=P.ReactCurrentBatchConfig,hs=0,Zt=null,cr=null,wr=null,Cp=!1,Cc=!1,Ec=0,oW=0;function Ur(){throw Error(r(321))}function By(s,l){if(l===null)return!1;for(var p=0;p<l.length&&p<s.length;p++)if(!gi(s[p],l[p]))return!1;return!0}function Wy(s,l,p,v,S,_){if(hs=_,Zt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Op.current=s===null||s.memoizedState===null?uW:cW,s=p(v,S),Cc){_=0;do{if(Cc=!1,Ec=0,25<=_)throw Error(r(301));_+=1,wr=cr=null,l.updateQueue=null,Op.current=fW,s=p(v,S)}while(Cc)}if(Op.current=Tp,l=cr!==null&&cr.next!==null,hs=0,wr=cr=Zt=null,Cp=!1,l)throw Error(r(300));return s}function Ky(){var s=Ec!==0;return Ec=0,s}function Vi(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wr===null?Zt.memoizedState=wr=s:wr=wr.next=s,wr}function qn(){if(cr===null){var s=Zt.alternate;s=s!==null?s.memoizedState:null}else s=cr.next;var l=wr===null?Zt.memoizedState:wr.next;if(l!==null)wr=l,cr=s;else{if(s===null)throw Error(r(310));cr=s,s={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null},wr===null?Zt.memoizedState=wr=s:wr=wr.next=s}return wr}function Ic(s,l){return typeof l=="function"?l(s):l}function Hy(s){var l=qn(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var v=cr,S=v.baseQueue,_=p.pending;if(_!==null){if(S!==null){var T=S.next;S.next=_.next,_.next=T}v.baseQueue=S=_,p.pending=null}if(S!==null){_=S.next,v=v.baseState;var U=T=null,H=null,ne=_;do{var de=ne.lane;if((hs&de)===de)H!==null&&(H=H.next={lane:0,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),v=ne.hasEagerState?ne.eagerState:s(v,ne.action);else{var me={lane:de,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null};H===null?(U=H=me,T=v):H=H.next=me,Zt.lanes|=de,vs|=de}ne=ne.next}while(ne!==null&&ne!==_);H===null?T=v:H.next=U,gi(v,l.memoizedState)||(ln=!0),l.memoizedState=v,l.baseState=T,l.baseQueue=H,p.lastRenderedState=v}if(s=p.interleaved,s!==null){S=s;do _=S.lane,Zt.lanes|=_,vs|=_,S=S.next;while(S!==s)}else S===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function Zy(s){var l=qn(),p=l.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var v=p.dispatch,S=p.pending,_=l.memoizedState;if(S!==null){p.pending=null;var T=S=S.next;do _=s(_,T.action),T=T.next;while(T!==S);gi(_,l.memoizedState)||(ln=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),p.lastRenderedState=_}return[_,v]}function iO(){}function oO(s,l){var p=Zt,v=qn(),S=l(),_=!gi(v.memoizedState,S);if(_&&(v.memoizedState=S,ln=!0),v=v.queue,qy(lO.bind(null,p,v,s),[s]),v.getSnapshot!==l||_||wr!==null&&wr.memoizedState.tag&1){if(p.flags|=2048,Tc(9,sO.bind(null,p,v,S,l),void 0,null),xr===null)throw Error(r(349));(hs&30)!==0||aO(p,l,S)}return S}function aO(s,l,p){s.flags|=16384,s={getSnapshot:l,value:p},l=Zt.updateQueue,l===null?(l={lastEffect:null,stores:null},Zt.updateQueue=l,l.stores=[s]):(p=l.stores,p===null?l.stores=[s]:p.push(s))}function sO(s,l,p,v){l.value=p,l.getSnapshot=v,uO(l)&&cO(s)}function lO(s,l,p){return p(function(){uO(l)&&cO(s)})}function uO(s){var l=s.getSnapshot;s=s.value;try{var p=l();return!gi(s,p)}catch{return!0}}function cO(s){var l=xo(s,1);l!==null&&Si(l,s,1,-1)}function fO(s){var l=Vi();return typeof s=="function"&&(s=s()),l.memoizedState=l.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ic,lastRenderedState:s},l.queue=s,s=s.dispatch=lW.bind(null,Zt,s),[l.memoizedState,s]}function Tc(s,l,p,v){return s={tag:s,create:l,destroy:p,deps:v,next:null},l=Zt.updateQueue,l===null?(l={lastEffect:null,stores:null},Zt.updateQueue=l,l.lastEffect=s.next=s):(p=l.lastEffect,p===null?l.lastEffect=s.next=s:(v=p.next,p.next=s,s.next=v,l.lastEffect=s)),s}function dO(){return qn().memoizedState}function Ep(s,l,p,v){var S=Vi();Zt.flags|=s,S.memoizedState=Tc(1|l,p,void 0,v===void 0?null:v)}function Ip(s,l,p,v){var S=qn();v=v===void 0?null:v;var _=void 0;if(cr!==null){var T=cr.memoizedState;if(_=T.destroy,v!==null&&By(v,T.deps)){S.memoizedState=Tc(l,p,_,v);return}}Zt.flags|=s,S.memoizedState=Tc(1|l,p,_,v)}function pO(s,l){return Ep(8390656,8,s,l)}function qy(s,l){return Ip(2048,8,s,l)}function mO(s,l){return Ip(4,2,s,l)}function hO(s,l){return Ip(4,4,s,l)}function vO(s,l){if(typeof l=="function")return s=s(),l(s),function(){l(null)};if(l!=null)return s=s(),l.current=s,function(){l.current=null}}function gO(s,l,p){return p=p!=null?p.concat([s]):null,Ip(4,4,vO.bind(null,l,s),p)}function Vy(){}function yO(s,l){var p=qn();l=l===void 0?null:l;var v=p.memoizedState;return v!==null&&l!==null&&By(l,v[1])?v[0]:(p.memoizedState=[s,l],s)}function bO(s,l){var p=qn();l=l===void 0?null:l;var v=p.memoizedState;return v!==null&&l!==null&&By(l,v[1])?v[0]:(s=s(),p.memoizedState=[s,l],s)}function wO(s,l,p){return(hs&21)===0?(s.baseState&&(s.baseState=!1,ln=!0),s.memoizedState=p):(gi(p,l)||(p=Y_(),Zt.lanes|=p,vs|=p,s.baseState=!0),l)}function aW(s,l){var p=kt;kt=p!==0&&4>p?p:4,s(!0);var v=Fy.transition;Fy.transition={};try{s(!1),l()}finally{kt=p,Fy.transition=v}}function xO(){return qn().memoizedState}function sW(s,l,p){var v=Pa(s);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},SO(s))kO(l,p);else if(p=JP(s,l,p,v),p!==null){var S=Gr();Si(p,s,v,S),$O(p,l,v)}}function lW(s,l,p){var v=Pa(s),S={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(SO(s))kO(l,S);else{var _=s.alternate;if(s.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var T=l.lastRenderedState,U=_(T,p);if(S.hasEagerState=!0,S.eagerState=U,gi(U,T)){var H=l.interleaved;H===null?(S.next=S,Ny(l)):(S.next=H.next,H.next=S),l.interleaved=S;return}}catch{}finally{}p=JP(s,l,S,v),p!==null&&(S=Gr(),Si(p,s,v,S),$O(p,l,v))}}function SO(s){var l=s.alternate;return s===Zt||l!==null&&l===Zt}function kO(s,l){Cc=Cp=!0;var p=s.pending;p===null?l.next=l:(l.next=p.next,p.next=l),s.pending=l}function $O(s,l,p){if((p&4194240)!==0){var v=l.lanes;v&=s.pendingLanes,p|=v,l.lanes=p,Yg(s,p)}}var Tp={readContext:Zn,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},uW={readContext:Zn,useCallback:function(s,l){return Vi().memoizedState=[s,l===void 0?null:l],s},useContext:Zn,useEffect:pO,useImperativeHandle:function(s,l,p){return p=p!=null?p.concat([s]):null,Ep(4194308,4,vO.bind(null,l,s),p)},useLayoutEffect:function(s,l){return Ep(4194308,4,s,l)},useInsertionEffect:function(s,l){return Ep(4,2,s,l)},useMemo:function(s,l){var p=Vi();return l=l===void 0?null:l,s=s(),p.memoizedState=[s,l],s},useReducer:function(s,l,p){var v=Vi();return l=p!==void 0?p(l):l,v.memoizedState=v.baseState=l,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:l},v.queue=s,s=s.dispatch=sW.bind(null,Zt,s),[v.memoizedState,s]},useRef:function(s){var l=Vi();return s={current:s},l.memoizedState=s},useState:fO,useDebugValue:Vy,useDeferredValue:function(s){return Vi().memoizedState=s},useTransition:function(){var s=fO(!1),l=s[0];return s=aW.bind(null,s[1]),Vi().memoizedState=s,[l,s]},useMutableSource:function(){},useSyncExternalStore:function(s,l,p){var v=Zt,S=Vi();if(Lt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=l(),xr===null)throw Error(r(349));(hs&30)!==0||aO(v,l,p)}S.memoizedState=p;var _={value:p,getSnapshot:l};return S.queue=_,pO(lO.bind(null,v,_,s),[s]),v.flags|=2048,Tc(9,sO.bind(null,v,_,p,l),void 0,null),p},useId:function(){var s=Vi(),l=xr.identifierPrefix;if(Lt){var p=wo,v=bo;p=(v&~(1<<32-vi(v)-1)).toString(32)+p,l=":"+l+"R"+p,p=Ec++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=oW++,l=":"+l+"r"+p.toString(32)+":";return s.memoizedState=l},unstable_isNewReconciler:!1},cW={readContext:Zn,useCallback:yO,useContext:Zn,useEffect:qy,useImperativeHandle:gO,useInsertionEffect:mO,useLayoutEffect:hO,useMemo:bO,useReducer:Hy,useRef:dO,useState:function(){return Hy(Ic)},useDebugValue:Vy,useDeferredValue:function(s){var l=qn();return wO(l,cr.memoizedState,s)},useTransition:function(){var s=Hy(Ic)[0],l=qn().memoizedState;return[s,l]},useMutableSource:iO,useSyncExternalStore:oO,useId:xO,unstable_isNewReconciler:!1},fW={readContext:Zn,useCallback:yO,useContext:Zn,useEffect:qy,useImperativeHandle:gO,useInsertionEffect:mO,useLayoutEffect:hO,useMemo:bO,useReducer:Zy,useRef:dO,useState:function(){return Zy(Ic)},useDebugValue:Vy,useDeferredValue:function(s){var l=qn();return cr===null?l.memoizedState=s:wO(l,cr.memoizedState,s)},useTransition:function(){var s=Zy(Ic)[0],l=qn().memoizedState;return[s,l]},useMutableSource:iO,useSyncExternalStore:oO,useId:xO,unstable_isNewReconciler:!1};function bi(s,l){if(s&&s.defaultProps){l=Y({},l),s=s.defaultProps;for(var p in s)l[p]===void 0&&(l[p]=s[p]);return l}return l}function Gy(s,l,p,v){l=s.memoizedState,p=p(v,l),p=p==null?l:Y({},l,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var jp={isMounted:function(s){return(s=s._reactInternals)?ls(s)===s:!1},enqueueSetState:function(s,l,p){s=s._reactInternals;var v=Gr(),S=Pa(s),_=So(v,S);_.payload=l,p!=null&&(_.callback=p),l=Sa(s,_,S),l!==null&&(Si(l,s,S,v),$p(l,s,S))},enqueueReplaceState:function(s,l,p){s=s._reactInternals;var v=Gr(),S=Pa(s),_=So(v,S);_.tag=1,_.payload=l,p!=null&&(_.callback=p),l=Sa(s,_,S),l!==null&&(Si(l,s,S,v),$p(l,s,S))},enqueueForceUpdate:function(s,l){s=s._reactInternals;var p=Gr(),v=Pa(s),S=So(p,v);S.tag=2,l!=null&&(S.callback=l),l=Sa(s,S,v),l!==null&&(Si(l,s,v,p),$p(l,s,v))}};function _O(s,l,p,v,S,_,T){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(v,_,T):l.prototype&&l.prototype.isPureReactComponent?!gc(p,v)||!gc(S,_):!0}function PO(s,l,p){var v=!1,S=ba,_=l.contextType;return typeof _=="object"&&_!==null?_=Zn(_):(S=sn(l)?cs:Lr.current,v=l.contextTypes,_=(v=v!=null)?Pl(s,S):ba),l=new l(p,_),s.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=jp,s.stateNode=l,l._reactInternals=s,v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=S,s.__reactInternalMemoizedMaskedChildContext=_),l}function OO(s,l,p,v){s=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,v),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,v),l.state!==s&&jp.enqueueReplaceState(l,l.state,null)}function Yy(s,l,p,v){var S=s.stateNode;S.props=p,S.state=s.memoizedState,S.refs={},My(s);var _=l.contextType;typeof _=="object"&&_!==null?S.context=Zn(_):(_=sn(l)?cs:Lr.current,S.context=Pl(s,_)),S.state=s.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(Gy(s,l,_,p),S.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(l=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),l!==S.state&&jp.enqueueReplaceState(S,S.state,null),_p(s,p,S,v),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308)}function Rl(s,l){try{var p="",v=l;do p+=pe(v),v=v.return;while(v);var S=p}catch(_){S=`
|
|
46
|
-
Error generating stack: `+
|
|
47
|
-
`+_.stack}return{value:s,source:l,stack:S,digest:null}}function Xy(s,l,p){return{value:s,source:null,stack:p??null,digest:l??null}}function Qy(s,l){try{console.error(l.value)}catch(p){setTimeout(function(){throw p})}}var dW=typeof WeakMap=="function"?WeakMap:Map;function CO(s,l,p){p=So(-1,p),p.tag=3,p.payload={element:null};var v=l.value;return p.callback=function(){Lp||(Lp=!0,pb=v),Qy(s,l)},p}function EO(s,l,p){p=So(-1,p),p.tag=3;var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var S=l.value;p.payload=function(){return v(S)},p.callback=function(){Qy(s,l)}}var _=s.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(p.callback=function(){Qy(s,l),typeof v!="function"&&($a===null?$a=new Set([this]):$a.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})}),p}function IO(s,l,p){var v=s.pingCache;if(v===null){v=s.pingCache=new dW;var S=new Set;v.set(l,S)}else S=v.get(l),S===void 0&&(S=new Set,v.set(l,S));S.has(p)||(S.add(p),s=PW.bind(null,s,l,p),l.then(s,s))}function TO(s){do{var l;if((l=s.tag===13)&&(l=s.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return s;s=s.return}while(s!==null);return null}function jO(s,l,p,v,S){return(s.mode&1)===0?(s===l?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=So(-1,1),l.tag=2,Sa(p,l,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=S,s)}var pW=P.ReactCurrentOwner,ln=!1;function Vr(s,l,p,v){l.child=s===null?QP(l,null,p,v):Il(l,s.child,p,v)}function AO(s,l,p,v,S){p=p.render;var _=l.ref;return jl(l,S),v=Wy(s,l,p,v,_,S),p=Ky(),s!==null&&!ln?(l.updateQueue=s.updateQueue,l.flags&=-2053,s.lanes&=~S,ko(s,l,S)):(Lt&&p&&Py(l),l.flags|=1,Vr(s,l,v,S),l.child)}function RO(s,l,p,v,S){if(s===null){var _=p.type;return typeof _=="function"&&!wb(_)&&_.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=_,NO(s,l,_,v,S)):(s=Hp(p.type,null,v,l,l.mode,S),s.ref=l.ref,s.return=l,l.child=s)}if(_=s.child,(s.lanes&S)===0){var T=_.memoizedProps;if(p=p.compare,p=p!==null?p:gc,p(T,v)&&s.ref===l.ref)return ko(s,l,S)}return l.flags|=1,s=Ca(_,v),s.ref=l.ref,s.return=l,l.child=s}function NO(s,l,p,v,S){if(s!==null){var _=s.memoizedProps;if(gc(_,v)&&s.ref===l.ref)if(ln=!1,l.pendingProps=v=_,(s.lanes&S)!==0)(s.flags&131072)!==0&&(ln=!0);else return l.lanes=s.lanes,ko(s,l,S)}return Jy(s,l,p,v,S)}function MO(s,l,p){var v=l.pendingProps,S=v.children,_=s!==null?s.memoizedState:null;if(v.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Ml,Pn),Pn|=p;else{if((p&1073741824)===0)return s=_!==null?_.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:s,cachePool:null,transitions:null},l.updateQueue=null,Tt(Ml,Pn),Pn|=s,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=_!==null?_.baseLanes:p,Tt(Ml,Pn),Pn|=v}else _!==null?(v=_.baseLanes|p,l.memoizedState=null):v=p,Tt(Ml,Pn),Pn|=v;return Vr(s,l,S,p),l.child}function DO(s,l){var p=l.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function Jy(s,l,p,v,S){var _=sn(p)?cs:Lr.current;return _=Pl(l,_),jl(l,S),p=Wy(s,l,p,v,_,S),v=Ky(),s!==null&&!ln?(l.updateQueue=s.updateQueue,l.flags&=-2053,s.lanes&=~S,ko(s,l,S)):(Lt&&v&&Py(l),l.flags|=1,Vr(s,l,p,S),l.child)}function zO(s,l,p,v,S){if(sn(p)){var _=!0;vp(l)}else _=!1;if(jl(l,S),l.stateNode===null)Rp(s,l),PO(l,p,v),Yy(l,p,v,S),v=!0;else if(s===null){var T=l.stateNode,U=l.memoizedProps;T.props=U;var H=T.context,ne=p.contextType;typeof ne=="object"&&ne!==null?ne=Zn(ne):(ne=sn(p)?cs:Lr.current,ne=Pl(l,ne));var de=p.getDerivedStateFromProps,me=typeof de=="function"||typeof T.getSnapshotBeforeUpdate=="function";me||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(U!==v||H!==ne)&&OO(l,T,v,ne),xa=!1;var fe=l.memoizedState;T.state=fe,_p(l,v,T,S),H=l.memoizedState,U!==v||fe!==H||an.current||xa?(typeof de=="function"&&(Gy(l,p,de,v),H=l.memoizedState),(U=xa||_O(l,p,U,v,fe,H,ne))?(me||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(l.flags|=4194308)):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=v,l.memoizedState=H),T.props=v,T.state=H,T.context=ne,v=U):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),v=!1)}else{T=l.stateNode,eO(s,l),U=l.memoizedProps,ne=l.type===l.elementType?U:bi(l.type,U),T.props=ne,me=l.pendingProps,fe=T.context,H=p.contextType,typeof H=="object"&&H!==null?H=Zn(H):(H=sn(p)?cs:Lr.current,H=Pl(l,H));var Pe=p.getDerivedStateFromProps;(de=typeof Pe=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(U!==me||fe!==H)&&OO(l,T,v,H),xa=!1,fe=l.memoizedState,T.state=fe,_p(l,v,T,S);var Ie=l.memoizedState;U!==me||fe!==Ie||an.current||xa?(typeof Pe=="function"&&(Gy(l,p,Pe,v),Ie=l.memoizedState),(ne=xa||_O(l,p,ne,v,fe,Ie,H)||!1)?(de||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(v,Ie,H),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(v,Ie,H)),typeof T.componentDidUpdate=="function"&&(l.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof T.componentDidUpdate!="function"||U===s.memoizedProps&&fe===s.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&fe===s.memoizedState||(l.flags|=1024),l.memoizedProps=v,l.memoizedState=Ie),T.props=v,T.state=Ie,T.context=H,v=ne):(typeof T.componentDidUpdate!="function"||U===s.memoizedProps&&fe===s.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&fe===s.memoizedState||(l.flags|=1024),v=!1)}return eb(s,l,p,v,_,S)}function eb(s,l,p,v,S,_){DO(s,l);var T=(l.flags&128)!==0;if(!v&&!T)return S&&WP(l,p,!1),ko(s,l,_);v=l.stateNode,pW.current=l;var U=T&&typeof p.getDerivedStateFromError!="function"?null:v.render();return l.flags|=1,s!==null&&T?(l.child=Il(l,s.child,null,_),l.child=Il(l,null,U,_)):Vr(s,l,U,_),l.memoizedState=v.state,S&&WP(l,p,!0),l.child}function LO(s){var l=s.stateNode;l.pendingContext?FP(s,l.pendingContext,l.pendingContext!==l.context):l.context&&FP(s,l.context,!1),Dy(s,l.containerInfo)}function UO(s,l,p,v,S){return El(),Iy(S),l.flags|=256,Vr(s,l,p,v),l.child}var tb={dehydrated:null,treeContext:null,retryLane:0};function rb(s){return{baseLanes:s,cachePool:null,transitions:null}}function FO(s,l,p){var v=l.pendingProps,S=Ht.current,_=!1,T=(l.flags&128)!==0,U;if((U=T)||(U=s!==null&&s.memoizedState===null?!1:(S&2)!==0),U?(_=!0,l.flags&=-129):(s===null||s.memoizedState!==null)&&(S|=1),Tt(Ht,S&1),s===null)return Ey(l),s=l.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((l.mode&1)===0?l.lanes=1:s.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(T=v.children,s=v.fallback,_?(v=l.mode,_=l.child,T={mode:"hidden",children:T},(v&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=T):_=Zp(T,v,0,null),s=ws(s,v,p,null),_.return=l,s.return=l,_.sibling=s,l.child=_,l.child.memoizedState=rb(p),l.memoizedState=tb,s):nb(l,T));if(S=s.memoizedState,S!==null&&(U=S.dehydrated,U!==null))return mW(s,l,T,v,U,S,p);if(_){_=v.fallback,T=l.mode,S=s.child,U=S.sibling;var H={mode:"hidden",children:v.children};return(T&1)===0&&l.child!==S?(v=l.child,v.childLanes=0,v.pendingProps=H,l.deletions=null):(v=Ca(S,H),v.subtreeFlags=S.subtreeFlags&14680064),U!==null?_=Ca(U,_):(_=ws(_,T,p,null),_.flags|=2),_.return=l,v.return=l,v.sibling=_,l.child=v,v=_,_=l.child,T=s.child.memoizedState,T=T===null?rb(p):{baseLanes:T.baseLanes|p,cachePool:null,transitions:T.transitions},_.memoizedState=T,_.childLanes=s.childLanes&~p,l.memoizedState=tb,v}return _=s.child,s=_.sibling,v=Ca(_,{mode:"visible",children:v.children}),(l.mode&1)===0&&(v.lanes=p),v.return=l,v.sibling=null,s!==null&&(p=l.deletions,p===null?(l.deletions=[s],l.flags|=16):p.push(s)),l.child=v,l.memoizedState=null,v}function nb(s,l){return l=Zp({mode:"visible",children:l},s.mode,0,null),l.return=s,s.child=l}function Ap(s,l,p,v){return v!==null&&Iy(v),Il(l,s.child,null,p),s=nb(l,l.pendingProps.children),s.flags|=2,l.memoizedState=null,s}function mW(s,l,p,v,S,_,T){if(p)return l.flags&256?(l.flags&=-257,v=Xy(Error(r(422))),Ap(s,l,T,v)):l.memoizedState!==null?(l.child=s.child,l.flags|=128,null):(_=v.fallback,S=l.mode,v=Zp({mode:"visible",children:v.children},S,0,null),_=ws(_,S,T,null),_.flags|=2,v.return=l,_.return=l,v.sibling=_,l.child=v,(l.mode&1)!==0&&Il(l,s.child,null,T),l.child.memoizedState=rb(T),l.memoizedState=tb,_);if((l.mode&1)===0)return Ap(s,l,T,null);if(S.data==="$!"){if(v=S.nextSibling&&S.nextSibling.dataset,v)var U=v.dgst;return v=U,_=Error(r(419)),v=Xy(_,v,void 0),Ap(s,l,T,v)}if(U=(T&s.childLanes)!==0,ln||U){if(v=xr,v!==null){switch(T&-T){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=(S&(v.suspendedLanes|T))!==0?0:S,S!==0&&S!==_.retryLane&&(_.retryLane=S,xo(s,S),Si(v,s,S,-1))}return bb(),v=Xy(Error(r(421))),Ap(s,l,T,v)}return S.data==="$?"?(l.flags|=128,l.child=s.child,l=OW.bind(null,s),S._reactRetry=l,null):(s=_.treeContext,_n=ga(S.nextSibling),$n=l,Lt=!0,yi=null,s!==null&&(Kn[Hn++]=bo,Kn[Hn++]=wo,Kn[Hn++]=fs,bo=s.id,wo=s.overflow,fs=l),l=nb(l,v.children),l.flags|=4096,l)}function BO(s,l,p){s.lanes|=l;var v=s.alternate;v!==null&&(v.lanes|=l),Ry(s.return,l,p)}function ib(s,l,p,v,S){var _=s.memoizedState;_===null?s.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:S}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=v,_.tail=p,_.tailMode=S)}function WO(s,l,p){var v=l.pendingProps,S=v.revealOrder,_=v.tail;if(Vr(s,l,v.children,p),v=Ht.current,(v&2)!==0)v=v&1|2,l.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=l.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&BO(s,p,l);else if(s.tag===19)BO(s,p,l);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}v&=1}if(Tt(Ht,v),(l.mode&1)===0)l.memoizedState=null;else switch(S){case"forwards":for(p=l.child,S=null;p!==null;)s=p.alternate,s!==null&&Pp(s)===null&&(S=p),p=p.sibling;p=S,p===null?(S=l.child,l.child=null):(S=p.sibling,p.sibling=null),ib(l,!1,S,p,_);break;case"backwards":for(p=null,S=l.child,l.child=null;S!==null;){if(s=S.alternate,s!==null&&Pp(s)===null){l.child=S;break}s=S.sibling,S.sibling=p,p=S,S=s}ib(l,!0,p,null,_);break;case"together":ib(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Rp(s,l){(l.mode&1)===0&&s!==null&&(s.alternate=null,l.alternate=null,l.flags|=2)}function ko(s,l,p){if(s!==null&&(l.dependencies=s.dependencies),vs|=l.lanes,(p&l.childLanes)===0)return null;if(s!==null&&l.child!==s.child)throw Error(r(153));if(l.child!==null){for(s=l.child,p=Ca(s,s.pendingProps),l.child=p,p.return=l;s.sibling!==null;)s=s.sibling,p=p.sibling=Ca(s,s.pendingProps),p.return=l;p.sibling=null}return l.child}function hW(s,l,p){switch(l.tag){case 3:LO(l),El();break;case 5:nO(l);break;case 1:sn(l.type)&&vp(l);break;case 4:Dy(l,l.stateNode.containerInfo);break;case 10:var v=l.type._context,S=l.memoizedProps.value;Tt(Sp,v._currentValue),v._currentValue=S;break;case 13:if(v=l.memoizedState,v!==null)return v.dehydrated!==null?(Tt(Ht,Ht.current&1),l.flags|=128,null):(p&l.child.childLanes)!==0?FO(s,l,p):(Tt(Ht,Ht.current&1),s=ko(s,l,p),s!==null?s.sibling:null);Tt(Ht,Ht.current&1);break;case 19:if(v=(p&l.childLanes)!==0,(s.flags&128)!==0){if(v)return WO(s,l,p);l.flags|=128}if(S=l.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),Tt(Ht,Ht.current),v)break;return null;case 22:case 23:return l.lanes=0,MO(s,l,p)}return ko(s,l,p)}var KO,ob,HO,ZO;KO=function(s,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},ob=function(){},HO=function(s,l,p,v){var S=s.memoizedProps;if(S!==v){s=l.stateNode,ms(qi.current);var _=null;switch(p){case"input":S=Se(s,S),v=Se(s,v),_=[];break;case"select":S=Y({},S,{value:void 0}),v=Y({},v,{value:void 0}),_=[];break;case"textarea":S=Oe(s,S),v=Oe(s,v),_=[];break;default:typeof S.onClick!="function"&&typeof v.onClick=="function"&&(s.onclick=pp)}Ki(p,v);var T;p=null;for(ne in S)if(!v.hasOwnProperty(ne)&&S.hasOwnProperty(ne)&&S[ne]!=null)if(ne==="style"){var U=S[ne];for(T in U)U.hasOwnProperty(T)&&(p||(p={}),p[T]="")}else ne!=="dangerouslySetInnerHTML"&&ne!=="children"&&ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&ne!=="autoFocus"&&(i.hasOwnProperty(ne)?_||(_=[]):(_=_||[]).push(ne,null));for(ne in v){var H=v[ne];if(U=S!=null?S[ne]:void 0,v.hasOwnProperty(ne)&&H!==U&&(H!=null||U!=null))if(ne==="style")if(U){for(T in U)!U.hasOwnProperty(T)||H&&H.hasOwnProperty(T)||(p||(p={}),p[T]="");for(T in H)H.hasOwnProperty(T)&&U[T]!==H[T]&&(p||(p={}),p[T]=H[T])}else p||(_||(_=[]),_.push(ne,p)),p=H;else ne==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,U=U?U.__html:void 0,H!=null&&U!==H&&(_=_||[]).push(ne,H)):ne==="children"?typeof H!="string"&&typeof H!="number"||(_=_||[]).push(ne,""+H):ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&(i.hasOwnProperty(ne)?(H!=null&&ne==="onScroll"&&Nt("scroll",s),_||U===H||(_=[])):(_=_||[]).push(ne,H))}p&&(_=_||[]).push("style",p);var ne=_;(l.updateQueue=ne)&&(l.flags|=4)}},ZO=function(s,l,p,v){p!==v&&(l.flags|=4)};function jc(s,l){if(!Lt)switch(s.tailMode){case"hidden":l=s.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?l||s.tail===null?s.tail=null:s.tail.sibling=null:v.sibling=null}}function Fr(s){var l=s.alternate!==null&&s.alternate.child===s.child,p=0,v=0;if(l)for(var S=s.child;S!==null;)p|=S.lanes|S.childLanes,v|=S.subtreeFlags&14680064,v|=S.flags&14680064,S.return=s,S=S.sibling;else for(S=s.child;S!==null;)p|=S.lanes|S.childLanes,v|=S.subtreeFlags,v|=S.flags,S.return=s,S=S.sibling;return s.subtreeFlags|=v,s.childLanes=p,l}function vW(s,l,p){var v=l.pendingProps;switch(Oy(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fr(l),null;case 1:return sn(l.type)&&hp(),Fr(l),null;case 3:return v=l.stateNode,Al(),Mt(an),Mt(Lr),Uy(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(s===null||s.child===null)&&(wp(l)?l.flags|=4:s===null||s.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,yi!==null&&(vb(yi),yi=null))),ob(s,l),Fr(l),null;case 5:zy(l);var S=ms(Oc.current);if(p=l.type,s!==null&&l.stateNode!=null)HO(s,l,p,v,S),s.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!v){if(l.stateNode===null)throw Error(r(166));return Fr(l),null}if(s=ms(qi.current),wp(l)){v=l.stateNode,p=l.type;var _=l.memoizedProps;switch(v[Zi]=l,v[Sc]=_,s=(l.mode&1)!==0,p){case"dialog":Nt("cancel",v),Nt("close",v);break;case"iframe":case"object":case"embed":Nt("load",v);break;case"video":case"audio":for(S=0;S<bc.length;S++)Nt(bc[S],v);break;case"source":Nt("error",v);break;case"img":case"image":case"link":Nt("error",v),Nt("load",v);break;case"details":Nt("toggle",v);break;case"input":Me(v,_),Nt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!_.multiple},Nt("invalid",v);break;case"textarea":yr(v,_),Nt("invalid",v)}Ki(p,_),S=null;for(var T in _)if(_.hasOwnProperty(T)){var U=_[T];T==="children"?typeof U=="string"?v.textContent!==U&&(_.suppressHydrationWarning!==!0&&dp(v.textContent,U,s),S=["children",U]):typeof U=="number"&&v.textContent!==""+U&&(_.suppressHydrationWarning!==!0&&dp(v.textContent,U,s),S=["children",""+U]):i.hasOwnProperty(T)&&U!=null&&T==="onScroll"&&Nt("scroll",v)}switch(p){case"input":be(v),ot(v,_,!0);break;case"textarea":be(v),Zr(v);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(v.onclick=pp)}v=S,l.updateQueue=v,v!==null&&(l.flags|=4)}else{T=S.nodeType===9?S:S.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=ur(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=T.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof v.is=="string"?s=T.createElement(p,{is:v.is}):(s=T.createElement(p),p==="select"&&(T=s,v.multiple?T.multiple=!0:v.size&&(T.size=v.size))):s=T.createElementNS(s,p),s[Zi]=l,s[Sc]=v,KO(s,l,!1,!1),l.stateNode=s;e:{switch(T=la(p,v),p){case"dialog":Nt("cancel",s),Nt("close",s),S=v;break;case"iframe":case"object":case"embed":Nt("load",s),S=v;break;case"video":case"audio":for(S=0;S<bc.length;S++)Nt(bc[S],s);S=v;break;case"source":Nt("error",s),S=v;break;case"img":case"image":case"link":Nt("error",s),Nt("load",s),S=v;break;case"details":Nt("toggle",s),S=v;break;case"input":Me(s,v),S=Se(s,v),Nt("invalid",s);break;case"option":S=v;break;case"select":s._wrapperState={wasMultiple:!!v.multiple},S=Y({},v,{value:void 0}),Nt("invalid",s);break;case"textarea":yr(s,v),S=Oe(s,v),Nt("invalid",s);break;default:S=v}Ki(p,S),U=S;for(_ in U)if(U.hasOwnProperty(_)){var H=U[_];_==="style"?bt(s,H):_==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&br(s,H)):_==="children"?typeof H=="string"?(p!=="textarea"||H!=="")&&ht(s,H):typeof H=="number"&&ht(s,""+H):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(i.hasOwnProperty(_)?H!=null&&_==="onScroll"&&Nt("scroll",s):H!=null&&$(s,_,H,T))}switch(p){case"input":be(s),ot(s,v,!1);break;case"textarea":be(s),Zr(s);break;case"option":v.value!=null&&s.setAttribute("value",""+ke(v.value));break;case"select":s.multiple=!!v.multiple,_=v.value,_!=null?Ye(s,!!v.multiple,_,!1):v.defaultValue!=null&&Ye(s,!!v.multiple,v.defaultValue,!0);break;default:typeof S.onClick=="function"&&(s.onclick=pp)}switch(p){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return Fr(l),null;case 6:if(s&&l.stateNode!=null)ZO(s,l,s.memoizedProps,v);else{if(typeof v!="string"&&l.stateNode===null)throw Error(r(166));if(p=ms(Oc.current),ms(qi.current),wp(l)){if(v=l.stateNode,p=l.memoizedProps,v[Zi]=l,(_=v.nodeValue!==p)&&(s=$n,s!==null))switch(s.tag){case 3:dp(v.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&dp(v.nodeValue,p,(s.mode&1)!==0)}_&&(l.flags|=4)}else v=(p.nodeType===9?p:p.ownerDocument).createTextNode(v),v[Zi]=l,l.stateNode=v}return Fr(l),null;case 13:if(Mt(Ht),v=l.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Lt&&_n!==null&&(l.mode&1)!==0&&(l.flags&128)===0)GP(),El(),l.flags|=98560,_=!1;else if(_=wp(l),v!==null&&v.dehydrated!==null){if(s===null){if(!_)throw Error(r(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Zi]=l}else El(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Fr(l),_=!1}else yi!==null&&(vb(yi),yi=null),_=!0;if(!_)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=p,l):(v=v!==null,v!==(s!==null&&s.memoizedState!==null)&&v&&(l.child.flags|=8192,(l.mode&1)!==0&&(s===null||(Ht.current&1)!==0?fr===0&&(fr=3):bb())),l.updateQueue!==null&&(l.flags|=4),Fr(l),null);case 4:return Al(),ob(s,l),s===null&&wc(l.stateNode.containerInfo),Fr(l),null;case 10:return Ay(l.type._context),Fr(l),null;case 17:return sn(l.type)&&hp(),Fr(l),null;case 19:if(Mt(Ht),_=l.memoizedState,_===null)return Fr(l),null;if(v=(l.flags&128)!==0,T=_.rendering,T===null)if(v)jc(_,!1);else{if(fr!==0||s!==null&&(s.flags&128)!==0)for(s=l.child;s!==null;){if(T=Pp(s),T!==null){for(l.flags|=128,jc(_,!1),v=T.updateQueue,v!==null&&(l.updateQueue=v,l.flags|=4),l.subtreeFlags=0,v=p,p=l.child;p!==null;)_=p,s=v,_.flags&=14680066,T=_.alternate,T===null?(_.childLanes=0,_.lanes=s,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=T.childLanes,_.lanes=T.lanes,_.child=T.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=T.memoizedProps,_.memoizedState=T.memoizedState,_.updateQueue=T.updateQueue,_.type=T.type,s=T.dependencies,_.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return Tt(Ht,Ht.current&1|2),l.child}s=s.sibling}_.tail!==null&&tr()>Dl&&(l.flags|=128,v=!0,jc(_,!1),l.lanes=4194304)}else{if(!v)if(s=Pp(T),s!==null){if(l.flags|=128,v=!0,p=s.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),jc(_,!0),_.tail===null&&_.tailMode==="hidden"&&!T.alternate&&!Lt)return Fr(l),null}else 2*tr()-_.renderingStartTime>Dl&&p!==1073741824&&(l.flags|=128,v=!0,jc(_,!1),l.lanes=4194304);_.isBackwards?(T.sibling=l.child,l.child=T):(p=_.last,p!==null?p.sibling=T:l.child=T,_.last=T)}return _.tail!==null?(l=_.tail,_.rendering=l,_.tail=l.sibling,_.renderingStartTime=tr(),l.sibling=null,p=Ht.current,Tt(Ht,v?p&1|2:p&1),l):(Fr(l),null);case 22:case 23:return yb(),v=l.memoizedState!==null,s!==null&&s.memoizedState!==null!==v&&(l.flags|=8192),v&&(l.mode&1)!==0?(Pn&1073741824)!==0&&(Fr(l),l.subtreeFlags&6&&(l.flags|=8192)):Fr(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function gW(s,l){switch(Oy(l),l.tag){case 1:return sn(l.type)&&hp(),s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 3:return Al(),Mt(an),Mt(Lr),Uy(),s=l.flags,(s&65536)!==0&&(s&128)===0?(l.flags=s&-65537|128,l):null;case 5:return zy(l),null;case 13:if(Mt(Ht),s=l.memoizedState,s!==null&&s.dehydrated!==null){if(l.alternate===null)throw Error(r(340));El()}return s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 19:return Mt(Ht),null;case 4:return Al(),null;case 10:return Ay(l.type._context),null;case 22:case 23:return yb(),null;case 24:return null;default:return null}}var Np=!1,Br=!1,yW=typeof WeakSet=="function"?WeakSet:Set,Ce=null;function Nl(s,l){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){Vt(s,l,v)}else p.current=null}function ab(s,l,p){try{p()}catch(v){Vt(s,l,v)}}var qO=!1;function bW(s,l){if(yy=tp,s=_P(),cy(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var S=v.anchorOffset,_=v.focusNode;v=v.focusOffset;try{p.nodeType,_.nodeType}catch{p=null;break e}var T=0,U=-1,H=-1,ne=0,de=0,me=s,fe=null;t:for(;;){for(var Pe;me!==p||S!==0&&me.nodeType!==3||(U=T+S),me!==_||v!==0&&me.nodeType!==3||(H=T+v),me.nodeType===3&&(T+=me.nodeValue.length),(Pe=me.firstChild)!==null;)fe=me,me=Pe;for(;;){if(me===s)break t;if(fe===p&&++ne===S&&(U=T),fe===_&&++de===v&&(H=T),(Pe=me.nextSibling)!==null)break;me=fe,fe=me.parentNode}me=Pe}p=U===-1||H===-1?null:{start:U,end:H}}else p=null}p=p||{start:0,end:0}}else p=null;for(by={focusedElem:s,selectionRange:p},tp=!1,Ce=l;Ce!==null;)if(l=Ce,s=l.child,(l.subtreeFlags&1028)!==0&&s!==null)s.return=l,Ce=s;else for(;Ce!==null;){l=Ce;try{var Ie=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Ie!==null){var je=Ie.memoizedProps,rr=Ie.memoizedState,J=l.stateNode,q=J.getSnapshotBeforeUpdate(l.elementType===l.type?je:bi(l.type,je),rr);J.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var te=l.stateNode.containerInfo;te.nodeType===1?te.textContent="":te.nodeType===9&&te.documentElement&&te.removeChild(te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(we){Vt(l,l.return,we)}if(s=l.sibling,s!==null){s.return=l.return,Ce=s;break}Ce=l.return}return Ie=qO,qO=!1,Ie}function Ac(s,l,p){var v=l.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var S=v=v.next;do{if((S.tag&s)===s){var _=S.destroy;S.destroy=void 0,_!==void 0&&ab(l,p,_)}S=S.next}while(S!==v)}}function Mp(s,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&s)===s){var v=p.create;p.destroy=v()}p=p.next}while(p!==l)}}function sb(s){var l=s.ref;if(l!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof l=="function"?l(s):l.current=s}}function VO(s){var l=s.alternate;l!==null&&(s.alternate=null,VO(l)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(l=s.stateNode,l!==null&&(delete l[Zi],delete l[Sc],delete l[ky],delete l[tW],delete l[rW])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function GO(s){return s.tag===5||s.tag===3||s.tag===4}function YO(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||GO(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function lb(s,l,p){var v=s.tag;if(v===5||v===6)s=s.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(s,l):p.insertBefore(s,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(s,p)):(l=p,l.appendChild(s)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=pp));else if(v!==4&&(s=s.child,s!==null))for(lb(s,l,p),s=s.sibling;s!==null;)lb(s,l,p),s=s.sibling}function ub(s,l,p){var v=s.tag;if(v===5||v===6)s=s.stateNode,l?p.insertBefore(s,l):p.appendChild(s);else if(v!==4&&(s=s.child,s!==null))for(ub(s,l,p),s=s.sibling;s!==null;)ub(s,l,p),s=s.sibling}var Ar=null,wi=!1;function ka(s,l,p){for(p=p.child;p!==null;)XO(s,l,p),p=p.sibling}function XO(s,l,p){if(Hi&&typeof Hi.onCommitFiberUnmount=="function")try{Hi.onCommitFiberUnmount(Gd,p)}catch{}switch(p.tag){case 5:Br||Nl(p,l);case 6:var v=Ar,S=wi;Ar=null,ka(s,l,p),Ar=v,wi=S,Ar!==null&&(wi?(s=Ar,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):Ar.removeChild(p.stateNode));break;case 18:Ar!==null&&(wi?(s=Ar,p=p.stateNode,s.nodeType===8?Sy(s.parentNode,p):s.nodeType===1&&Sy(s,p),fc(s)):Sy(Ar,p.stateNode));break;case 4:v=Ar,S=wi,Ar=p.stateNode.containerInfo,wi=!0,ka(s,l,p),Ar=v,wi=S;break;case 0:case 11:case 14:case 15:if(!Br&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){S=v=v.next;do{var _=S,T=_.destroy;_=_.tag,T!==void 0&&((_&2)!==0||(_&4)!==0)&&ab(p,l,T),S=S.next}while(S!==v)}ka(s,l,p);break;case 1:if(!Br&&(Nl(p,l),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(U){Vt(p,l,U)}ka(s,l,p);break;case 21:ka(s,l,p);break;case 22:p.mode&1?(Br=(v=Br)||p.memoizedState!==null,ka(s,l,p),Br=v):ka(s,l,p);break;default:ka(s,l,p)}}function QO(s){var l=s.updateQueue;if(l!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new yW),l.forEach(function(v){var S=CW.bind(null,s,v);p.has(v)||(p.add(v),v.then(S,S))})}}function xi(s,l){var p=l.deletions;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v];try{var _=s,T=l,U=T;e:for(;U!==null;){switch(U.tag){case 5:Ar=U.stateNode,wi=!1;break e;case 3:Ar=U.stateNode.containerInfo,wi=!0;break e;case 4:Ar=U.stateNode.containerInfo,wi=!0;break e}U=U.return}if(Ar===null)throw Error(r(160));XO(_,T,S),Ar=null,wi=!1;var H=S.alternate;H!==null&&(H.return=null),S.return=null}catch(ne){Vt(S,l,ne)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)JO(l,s),l=l.sibling}function JO(s,l){var p=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(xi(l,s),Gi(s),v&4){try{Ac(3,s,s.return),Mp(3,s)}catch(je){Vt(s,s.return,je)}try{Ac(5,s,s.return)}catch(je){Vt(s,s.return,je)}}break;case 1:xi(l,s),Gi(s),v&512&&p!==null&&Nl(p,p.return);break;case 5:if(xi(l,s),Gi(s),v&512&&p!==null&&Nl(p,p.return),s.flags&32){var S=s.stateNode;try{ht(S,"")}catch(je){Vt(s,s.return,je)}}if(v&4&&(S=s.stateNode,S!=null)){var _=s.memoizedProps,T=p!==null?p.memoizedProps:_,U=s.type,H=s.updateQueue;if(s.updateQueue=null,H!==null)try{U==="input"&&_.type==="radio"&&_.name!=null&&rt(S,_),la(U,T);var ne=la(U,_);for(T=0;T<H.length;T+=2){var de=H[T],me=H[T+1];de==="style"?bt(S,me):de==="dangerouslySetInnerHTML"?br(S,me):de==="children"?ht(S,me):$(S,de,me,ne)}switch(U){case"input":et(S,_);break;case"textarea":mt(S,_);break;case"select":var fe=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!_.multiple;var Pe=_.value;Pe!=null?Ye(S,!!_.multiple,Pe,!1):fe!==!!_.multiple&&(_.defaultValue!=null?Ye(S,!!_.multiple,_.defaultValue,!0):Ye(S,!!_.multiple,_.multiple?[]:"",!1))}S[Sc]=_}catch(je){Vt(s,s.return,je)}}break;case 6:if(xi(l,s),Gi(s),v&4){if(s.stateNode===null)throw Error(r(162));S=s.stateNode,_=s.memoizedProps;try{S.nodeValue=_}catch(je){Vt(s,s.return,je)}}break;case 3:if(xi(l,s),Gi(s),v&4&&p!==null&&p.memoizedState.isDehydrated)try{fc(l.containerInfo)}catch(je){Vt(s,s.return,je)}break;case 4:xi(l,s),Gi(s);break;case 13:xi(l,s),Gi(s),S=s.child,S.flags&8192&&(_=S.memoizedState!==null,S.stateNode.isHidden=_,!_||S.alternate!==null&&S.alternate.memoizedState!==null||(db=tr())),v&4&&QO(s);break;case 22:if(de=p!==null&&p.memoizedState!==null,s.mode&1?(Br=(ne=Br)||de,xi(l,s),Br=ne):xi(l,s),Gi(s),v&8192){if(ne=s.memoizedState!==null,(s.stateNode.isHidden=ne)&&!de&&(s.mode&1)!==0)for(Ce=s,de=s.child;de!==null;){for(me=Ce=de;Ce!==null;){switch(fe=Ce,Pe=fe.child,fe.tag){case 0:case 11:case 14:case 15:Ac(4,fe,fe.return);break;case 1:Nl(fe,fe.return);var Ie=fe.stateNode;if(typeof Ie.componentWillUnmount=="function"){v=fe,p=fe.return;try{l=v,Ie.props=l.memoizedProps,Ie.state=l.memoizedState,Ie.componentWillUnmount()}catch(je){Vt(v,p,je)}}break;case 5:Nl(fe,fe.return);break;case 22:if(fe.memoizedState!==null){rC(me);continue}}Pe!==null?(Pe.return=fe,Ce=Pe):rC(me)}de=de.sibling}e:for(de=null,me=s;;){if(me.tag===5){if(de===null){de=me;try{S=me.stateNode,ne?(_=S.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(U=me.stateNode,H=me.memoizedProps.style,T=H!=null&&H.hasOwnProperty("display")?H.display:null,U.style.display=Ot("display",T))}catch(je){Vt(s,s.return,je)}}}else if(me.tag===6){if(de===null)try{me.stateNode.nodeValue=ne?"":me.memoizedProps}catch(je){Vt(s,s.return,je)}}else if((me.tag!==22&&me.tag!==23||me.memoizedState===null||me===s)&&me.child!==null){me.child.return=me,me=me.child;continue}if(me===s)break e;for(;me.sibling===null;){if(me.return===null||me.return===s)break e;de===me&&(de=null),me=me.return}de===me&&(de=null),me.sibling.return=me.return,me=me.sibling}}break;case 19:xi(l,s),Gi(s),v&4&&QO(s);break;case 21:break;default:xi(l,s),Gi(s)}}function Gi(s){var l=s.flags;if(l&2){try{e:{for(var p=s.return;p!==null;){if(GO(p)){var v=p;break e}p=p.return}throw Error(r(160))}switch(v.tag){case 5:var S=v.stateNode;v.flags&32&&(ht(S,""),v.flags&=-33);var _=YO(s);ub(s,_,S);break;case 3:case 4:var T=v.stateNode.containerInfo,U=YO(s);lb(s,U,T);break;default:throw Error(r(161))}}catch(H){Vt(s,s.return,H)}s.flags&=-3}l&4096&&(s.flags&=-4097)}function wW(s,l,p){Ce=s,eC(s)}function eC(s,l,p){for(var v=(s.mode&1)!==0;Ce!==null;){var S=Ce,_=S.child;if(S.tag===22&&v){var T=S.memoizedState!==null||Np;if(!T){var U=S.alternate,H=U!==null&&U.memoizedState!==null||Br;U=Np;var ne=Br;if(Np=T,(Br=H)&&!ne)for(Ce=S;Ce!==null;)T=Ce,H=T.child,T.tag===22&&T.memoizedState!==null?nC(S):H!==null?(H.return=T,Ce=H):nC(S);for(;_!==null;)Ce=_,eC(_),_=_.sibling;Ce=S,Np=U,Br=ne}tC(s)}else(S.subtreeFlags&8772)!==0&&_!==null?(_.return=S,Ce=_):tC(s)}}function tC(s){for(;Ce!==null;){var l=Ce;if((l.flags&8772)!==0){var p=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:Br||Mp(5,l);break;case 1:var v=l.stateNode;if(l.flags&4&&!Br)if(p===null)v.componentDidMount();else{var S=l.elementType===l.type?p.memoizedProps:bi(l.type,p.memoizedProps);v.componentDidUpdate(S,p.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var _=l.updateQueue;_!==null&&rO(l,_,v);break;case 3:var T=l.updateQueue;if(T!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}rO(l,T,p)}break;case 5:var U=l.stateNode;if(p===null&&l.flags&4){p=U;var H=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&p.focus();break;case"img":H.src&&(p.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var ne=l.alternate;if(ne!==null){var de=ne.memoizedState;if(de!==null){var me=de.dehydrated;me!==null&&fc(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Br||l.flags&512&&sb(l)}catch(fe){Vt(l,l.return,fe)}}if(l===s){Ce=null;break}if(p=l.sibling,p!==null){p.return=l.return,Ce=p;break}Ce=l.return}}function rC(s){for(;Ce!==null;){var l=Ce;if(l===s){Ce=null;break}var p=l.sibling;if(p!==null){p.return=l.return,Ce=p;break}Ce=l.return}}function nC(s){for(;Ce!==null;){var l=Ce;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{Mp(4,l)}catch(H){Vt(l,p,H)}break;case 1:var v=l.stateNode;if(typeof v.componentDidMount=="function"){var S=l.return;try{v.componentDidMount()}catch(H){Vt(l,S,H)}}var _=l.return;try{sb(l)}catch(H){Vt(l,_,H)}break;case 5:var T=l.return;try{sb(l)}catch(H){Vt(l,T,H)}}}catch(H){Vt(l,l.return,H)}if(l===s){Ce=null;break}var U=l.sibling;if(U!==null){U.return=l.return,Ce=U;break}Ce=l.return}}var xW=Math.ceil,Dp=P.ReactCurrentDispatcher,cb=P.ReactCurrentOwner,Vn=P.ReactCurrentBatchConfig,ct=0,xr=null,or=null,Rr=0,Pn=0,Ml=ya(0),fr=0,Rc=null,vs=0,zp=0,fb=0,Nc=null,un=null,db=0,Dl=1/0,$o=null,Lp=!1,pb=null,$a=null,Up=!1,_a=null,Fp=0,Mc=0,mb=null,Bp=-1,Wp=0;function Gr(){return(ct&6)!==0?tr():Bp!==-1?Bp:Bp=tr()}function Pa(s){return(s.mode&1)===0?1:(ct&2)!==0&&Rr!==0?Rr&-Rr:iW.transition!==null?(Wp===0&&(Wp=Y_()),Wp):(s=kt,s!==0||(s=window.event,s=s===void 0?16:oP(s.type)),s)}function Si(s,l,p,v){if(50<Mc)throw Mc=0,mb=null,Error(r(185));ac(s,p,v),((ct&2)===0||s!==xr)&&(s===xr&&((ct&2)===0&&(zp|=p),fr===4&&Oa(s,Rr)),cn(s,v),p===1&&ct===0&&(l.mode&1)===0&&(Dl=tr()+500,gp&&wa()))}function cn(s,l){var p=s.callbackNode;iB(s,l);var v=Qd(s,s===xr?Rr:0);if(v===0)p!==null&&q_(p),s.callbackNode=null,s.callbackPriority=0;else if(l=v&-v,s.callbackPriority!==l){if(p!=null&&q_(p),l===1)s.tag===0?nW(oC.bind(null,s)):KP(oC.bind(null,s)),JB(function(){(ct&6)===0&&wa()}),p=null;else{switch(X_(v)){case 1:p=qg;break;case 4:p=V_;break;case 16:p=Vd;break;case 536870912:p=G_;break;default:p=Vd}p=pC(p,iC.bind(null,s))}s.callbackPriority=l,s.callbackNode=p}}function iC(s,l){if(Bp=-1,Wp=0,(ct&6)!==0)throw Error(r(327));var p=s.callbackNode;if(zl()&&s.callbackNode!==p)return null;var v=Qd(s,s===xr?Rr:0);if(v===0)return null;if((v&30)!==0||(v&s.expiredLanes)!==0||l)l=Kp(s,v);else{l=v;var S=ct;ct|=2;var _=sC();(xr!==s||Rr!==l)&&($o=null,Dl=tr()+500,ys(s,l));do try{$W();break}catch(U){aC(s,U)}while(!0);jy(),Dp.current=_,ct=S,or!==null?l=0:(xr=null,Rr=0,l=fr)}if(l!==0){if(l===2&&(S=Vg(s),S!==0&&(v=S,l=hb(s,S))),l===1)throw p=Rc,ys(s,0),Oa(s,v),cn(s,tr()),p;if(l===6)Oa(s,v);else{if(S=s.current.alternate,(v&30)===0&&!SW(S)&&(l=Kp(s,v),l===2&&(_=Vg(s),_!==0&&(v=_,l=hb(s,_))),l===1))throw p=Rc,ys(s,0),Oa(s,v),cn(s,tr()),p;switch(s.finishedWork=S,s.finishedLanes=v,l){case 0:case 1:throw Error(r(345));case 2:bs(s,un,$o);break;case 3:if(Oa(s,v),(v&130023424)===v&&(l=db+500-tr(),10<l)){if(Qd(s,0)!==0)break;if(S=s.suspendedLanes,(S&v)!==v){Gr(),s.pingedLanes|=s.suspendedLanes&S;break}s.timeoutHandle=xy(bs.bind(null,s,un,$o),l);break}bs(s,un,$o);break;case 4:if(Oa(s,v),(v&4194240)===v)break;for(l=s.eventTimes,S=-1;0<v;){var T=31-vi(v);_=1<<T,T=l[T],T>S&&(S=T),v&=~_}if(v=S,v=tr()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*xW(v/1960))-v,10<v){s.timeoutHandle=xy(bs.bind(null,s,un,$o),v);break}bs(s,un,$o);break;case 5:bs(s,un,$o);break;default:throw Error(r(329))}}}return cn(s,tr()),s.callbackNode===p?iC.bind(null,s):null}function hb(s,l){var p=Nc;return s.current.memoizedState.isDehydrated&&(ys(s,l).flags|=256),s=Kp(s,l),s!==2&&(l=un,un=p,l!==null&&vb(l)),s}function vb(s){un===null?un=s:un.push.apply(un,s)}function SW(s){for(var l=s;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var v=0;v<p.length;v++){var S=p[v],_=S.getSnapshot;S=S.value;try{if(!gi(_(),S))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Oa(s,l){for(l&=~fb,l&=~zp,s.suspendedLanes|=l,s.pingedLanes&=~l,s=s.expirationTimes;0<l;){var p=31-vi(l),v=1<<p;s[p]=-1,l&=~v}}function oC(s){if((ct&6)!==0)throw Error(r(327));zl();var l=Qd(s,0);if((l&1)===0)return cn(s,tr()),null;var p=Kp(s,l);if(s.tag!==0&&p===2){var v=Vg(s);v!==0&&(l=v,p=hb(s,v))}if(p===1)throw p=Rc,ys(s,0),Oa(s,l),cn(s,tr()),p;if(p===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=l,bs(s,un,$o),cn(s,tr()),null}function gb(s,l){var p=ct;ct|=1;try{return s(l)}finally{ct=p,ct===0&&(Dl=tr()+500,gp&&wa())}}function gs(s){_a!==null&&_a.tag===0&&(ct&6)===0&&zl();var l=ct;ct|=1;var p=Vn.transition,v=kt;try{if(Vn.transition=null,kt=1,s)return s()}finally{kt=v,Vn.transition=p,ct=l,(ct&6)===0&&wa()}}function yb(){Pn=Ml.current,Mt(Ml)}function ys(s,l){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,QB(p)),or!==null)for(p=or.return;p!==null;){var v=p;switch(Oy(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&hp();break;case 3:Al(),Mt(an),Mt(Lr),Uy();break;case 5:zy(v);break;case 4:Al();break;case 13:Mt(Ht);break;case 19:Mt(Ht);break;case 10:Ay(v.type._context);break;case 22:case 23:yb()}p=p.return}if(xr=s,or=s=Ca(s.current,null),Rr=Pn=l,fr=0,Rc=null,fb=zp=vs=0,un=Nc=null,ps!==null){for(l=0;l<ps.length;l++)if(p=ps[l],v=p.interleaved,v!==null){p.interleaved=null;var S=v.next,_=p.pending;if(_!==null){var T=_.next;_.next=S,v.next=T}p.pending=v}ps=null}return s}function aC(s,l){do{var p=or;try{if(jy(),Op.current=Tp,Cp){for(var v=Zt.memoizedState;v!==null;){var S=v.queue;S!==null&&(S.pending=null),v=v.next}Cp=!1}if(hs=0,wr=cr=Zt=null,Cc=!1,Ec=0,cb.current=null,p===null||p.return===null){fr=1,Rc=l,or=null;break}e:{var _=s,T=p.return,U=p,H=l;if(l=Rr,U.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var ne=H,de=U,me=de.tag;if((de.mode&1)===0&&(me===0||me===11||me===15)){var fe=de.alternate;fe?(de.updateQueue=fe.updateQueue,de.memoizedState=fe.memoizedState,de.lanes=fe.lanes):(de.updateQueue=null,de.memoizedState=null)}var Pe=TO(T);if(Pe!==null){Pe.flags&=-257,jO(Pe,T,U,_,l),Pe.mode&1&&IO(_,ne,l),l=Pe,H=ne;var Ie=l.updateQueue;if(Ie===null){var je=new Set;je.add(H),l.updateQueue=je}else Ie.add(H);break e}else{if((l&1)===0){IO(_,ne,l),bb();break e}H=Error(r(426))}}else if(Lt&&U.mode&1){var rr=TO(T);if(rr!==null){(rr.flags&65536)===0&&(rr.flags|=256),jO(rr,T,U,_,l),Iy(Rl(H,U));break e}}_=H=Rl(H,U),fr!==4&&(fr=2),Nc===null?Nc=[_]:Nc.push(_),_=T;do{switch(_.tag){case 3:_.flags|=65536,l&=-l,_.lanes|=l;var J=CO(_,H,l);tO(_,J);break e;case 1:U=H;var q=_.type,te=_.stateNode;if((_.flags&128)===0&&(typeof q.getDerivedStateFromError=="function"||te!==null&&typeof te.componentDidCatch=="function"&&($a===null||!$a.has(te)))){_.flags|=65536,l&=-l,_.lanes|=l;var we=EO(_,U,l);tO(_,we);break e}}_=_.return}while(_!==null)}uC(p)}catch(Ae){l=Ae,or===p&&p!==null&&(or=p=p.return);continue}break}while(!0)}function sC(){var s=Dp.current;return Dp.current=Tp,s===null?Tp:s}function bb(){(fr===0||fr===3||fr===2)&&(fr=4),xr===null||(vs&268435455)===0&&(zp&268435455)===0||Oa(xr,Rr)}function Kp(s,l){var p=ct;ct|=2;var v=sC();(xr!==s||Rr!==l)&&($o=null,ys(s,l));do try{kW();break}catch(S){aC(s,S)}while(!0);if(jy(),ct=p,Dp.current=v,or!==null)throw Error(r(261));return xr=null,Rr=0,fr}function kW(){for(;or!==null;)lC(or)}function $W(){for(;or!==null&&!G3();)lC(or)}function lC(s){var l=dC(s.alternate,s,Pn);s.memoizedProps=s.pendingProps,l===null?uC(s):or=l,cb.current=null}function uC(s){var l=s;do{var p=l.alternate;if(s=l.return,(l.flags&32768)===0){if(p=vW(p,l,Pn),p!==null){or=p;return}}else{if(p=gW(p,l),p!==null){p.flags&=32767,or=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{fr=6,or=null;return}}if(l=l.sibling,l!==null){or=l;return}or=l=s}while(l!==null);fr===0&&(fr=5)}function bs(s,l,p){var v=kt,S=Vn.transition;try{Vn.transition=null,kt=1,_W(s,l,p,v)}finally{Vn.transition=S,kt=v}return null}function _W(s,l,p,v){do zl();while(_a!==null);if((ct&6)!==0)throw Error(r(327));p=s.finishedWork;var S=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var _=p.lanes|p.childLanes;if(oB(s,_),s===xr&&(or=xr=null,Rr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Up||(Up=!0,pC(Vd,function(){return zl(),null})),_=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||_){_=Vn.transition,Vn.transition=null;var T=kt;kt=1;var U=ct;ct|=4,cb.current=null,bW(s,p),JO(p,s),HB(by),tp=!!yy,by=yy=null,s.current=p,wW(p),Y3(),ct=U,kt=T,Vn.transition=_}else s.current=p;if(Up&&(Up=!1,_a=s,Fp=S),_=s.pendingLanes,_===0&&($a=null),J3(p.stateNode),cn(s,tr()),l!==null)for(v=s.onRecoverableError,p=0;p<l.length;p++)S=l[p],v(S.value,{componentStack:S.stack,digest:S.digest});if(Lp)throw Lp=!1,s=pb,pb=null,s;return(Fp&1)!==0&&s.tag!==0&&zl(),_=s.pendingLanes,(_&1)!==0?s===mb?Mc++:(Mc=0,mb=s):Mc=0,wa(),null}function zl(){if(_a!==null){var s=X_(Fp),l=Vn.transition,p=kt;try{if(Vn.transition=null,kt=16>s?16:s,_a===null)var v=!1;else{if(s=_a,_a=null,Fp=0,(ct&6)!==0)throw Error(r(331));var S=ct;for(ct|=4,Ce=s.current;Ce!==null;){var _=Ce,T=_.child;if((Ce.flags&16)!==0){var U=_.deletions;if(U!==null){for(var H=0;H<U.length;H++){var ne=U[H];for(Ce=ne;Ce!==null;){var de=Ce;switch(de.tag){case 0:case 11:case 15:Ac(8,de,_)}var me=de.child;if(me!==null)me.return=de,Ce=me;else for(;Ce!==null;){de=Ce;var fe=de.sibling,Pe=de.return;if(VO(de),de===ne){Ce=null;break}if(fe!==null){fe.return=Pe,Ce=fe;break}Ce=Pe}}}var Ie=_.alternate;if(Ie!==null){var je=Ie.child;if(je!==null){Ie.child=null;do{var rr=je.sibling;je.sibling=null,je=rr}while(je!==null)}}Ce=_}}if((_.subtreeFlags&2064)!==0&&T!==null)T.return=_,Ce=T;else e:for(;Ce!==null;){if(_=Ce,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:Ac(9,_,_.return)}var J=_.sibling;if(J!==null){J.return=_.return,Ce=J;break e}Ce=_.return}}var q=s.current;for(Ce=q;Ce!==null;){T=Ce;var te=T.child;if((T.subtreeFlags&2064)!==0&&te!==null)te.return=T,Ce=te;else e:for(T=q;Ce!==null;){if(U=Ce,(U.flags&2048)!==0)try{switch(U.tag){case 0:case 11:case 15:Mp(9,U)}}catch(Ae){Vt(U,U.return,Ae)}if(U===T){Ce=null;break e}var we=U.sibling;if(we!==null){we.return=U.return,Ce=we;break e}Ce=U.return}}if(ct=S,wa(),Hi&&typeof Hi.onPostCommitFiberRoot=="function")try{Hi.onPostCommitFiberRoot(Gd,s)}catch{}v=!0}return v}finally{kt=p,Vn.transition=l}}return!1}function cC(s,l,p){l=Rl(p,l),l=CO(s,l,1),s=Sa(s,l,1),l=Gr(),s!==null&&(ac(s,1,l),cn(s,l))}function Vt(s,l,p){if(s.tag===3)cC(s,s,p);else for(;l!==null;){if(l.tag===3){cC(l,s,p);break}else if(l.tag===1){var v=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&($a===null||!$a.has(v))){s=Rl(p,s),s=EO(l,s,1),l=Sa(l,s,1),s=Gr(),l!==null&&(ac(l,1,s),cn(l,s));break}}l=l.return}}function PW(s,l,p){var v=s.pingCache;v!==null&&v.delete(l),l=Gr(),s.pingedLanes|=s.suspendedLanes&p,xr===s&&(Rr&p)===p&&(fr===4||fr===3&&(Rr&130023424)===Rr&&500>tr()-db?ys(s,0):fb|=p),cn(s,l)}function fC(s,l){l===0&&((s.mode&1)===0?l=1:(l=Xd,Xd<<=1,(Xd&130023424)===0&&(Xd=4194304)));var p=Gr();s=xo(s,l),s!==null&&(ac(s,l,p),cn(s,p))}function OW(s){var l=s.memoizedState,p=0;l!==null&&(p=l.retryLane),fC(s,p)}function CW(s,l){var p=0;switch(s.tag){case 13:var v=s.stateNode,S=s.memoizedState;S!==null&&(p=S.retryLane);break;case 19:v=s.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(l),fC(s,p)}var dC;dC=function(s,l,p){if(s!==null)if(s.memoizedProps!==l.pendingProps||an.current)ln=!0;else{if((s.lanes&p)===0&&(l.flags&128)===0)return ln=!1,hW(s,l,p);ln=(s.flags&131072)!==0}else ln=!1,Lt&&(l.flags&1048576)!==0&&HP(l,bp,l.index);switch(l.lanes=0,l.tag){case 2:var v=l.type;Rp(s,l),s=l.pendingProps;var S=Pl(l,Lr.current);jl(l,p),S=Wy(null,l,v,s,S,p);var _=Ky();return l.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,sn(v)?(_=!0,vp(l)):_=!1,l.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,My(l),S.updater=jp,l.stateNode=S,S._reactInternals=l,Yy(l,v,s,p),l=eb(null,l,v,!0,_,p)):(l.tag=0,Lt&&_&&Py(l),Vr(null,l,S,p),l=l.child),l;case 16:v=l.elementType;e:{switch(Rp(s,l),s=l.pendingProps,S=v._init,v=S(v._payload),l.type=v,S=l.tag=IW(v),s=bi(v,s),S){case 0:l=Jy(null,l,v,s,p);break e;case 1:l=zO(null,l,v,s,p);break e;case 11:l=AO(null,l,v,s,p);break e;case 14:l=RO(null,l,v,bi(v.type,s),p);break e}throw Error(r(306,v,""))}return l;case 0:return v=l.type,S=l.pendingProps,S=l.elementType===v?S:bi(v,S),Jy(s,l,v,S,p);case 1:return v=l.type,S=l.pendingProps,S=l.elementType===v?S:bi(v,S),zO(s,l,v,S,p);case 3:e:{if(LO(l),s===null)throw Error(r(387));v=l.pendingProps,_=l.memoizedState,S=_.element,eO(s,l),_p(l,v,null,p);var T=l.memoizedState;if(v=T.element,_.isDehydrated)if(_={element:v,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){S=Rl(Error(r(423)),l),l=UO(s,l,v,p,S);break e}else if(v!==S){S=Rl(Error(r(424)),l),l=UO(s,l,v,p,S);break e}else for(_n=ga(l.stateNode.containerInfo.firstChild),$n=l,Lt=!0,yi=null,p=QP(l,null,v,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(El(),v===S){l=ko(s,l,p);break e}Vr(s,l,v,p)}l=l.child}return l;case 5:return nO(l),s===null&&Ey(l),v=l.type,S=l.pendingProps,_=s!==null?s.memoizedProps:null,T=S.children,wy(v,S)?T=null:_!==null&&wy(v,_)&&(l.flags|=32),DO(s,l),Vr(s,l,T,p),l.child;case 6:return s===null&&Ey(l),null;case 13:return FO(s,l,p);case 4:return Dy(l,l.stateNode.containerInfo),v=l.pendingProps,s===null?l.child=Il(l,null,v,p):Vr(s,l,v,p),l.child;case 11:return v=l.type,S=l.pendingProps,S=l.elementType===v?S:bi(v,S),AO(s,l,v,S,p);case 7:return Vr(s,l,l.pendingProps,p),l.child;case 8:return Vr(s,l,l.pendingProps.children,p),l.child;case 12:return Vr(s,l,l.pendingProps.children,p),l.child;case 10:e:{if(v=l.type._context,S=l.pendingProps,_=l.memoizedProps,T=S.value,Tt(Sp,v._currentValue),v._currentValue=T,_!==null)if(gi(_.value,T)){if(_.children===S.children&&!an.current){l=ko(s,l,p);break e}}else for(_=l.child,_!==null&&(_.return=l);_!==null;){var U=_.dependencies;if(U!==null){T=_.child;for(var H=U.firstContext;H!==null;){if(H.context===v){if(_.tag===1){H=So(-1,p&-p),H.tag=2;var ne=_.updateQueue;if(ne!==null){ne=ne.shared;var de=ne.pending;de===null?H.next=H:(H.next=de.next,de.next=H),ne.pending=H}}_.lanes|=p,H=_.alternate,H!==null&&(H.lanes|=p),Ry(_.return,p,l),U.lanes|=p;break}H=H.next}}else if(_.tag===10)T=_.type===l.type?null:_.child;else if(_.tag===18){if(T=_.return,T===null)throw Error(r(341));T.lanes|=p,U=T.alternate,U!==null&&(U.lanes|=p),Ry(T,p,l),T=_.sibling}else T=_.child;if(T!==null)T.return=_;else for(T=_;T!==null;){if(T===l){T=null;break}if(_=T.sibling,_!==null){_.return=T.return,T=_;break}T=T.return}_=T}Vr(s,l,S.children,p),l=l.child}return l;case 9:return S=l.type,v=l.pendingProps.children,jl(l,p),S=Zn(S),v=v(S),l.flags|=1,Vr(s,l,v,p),l.child;case 14:return v=l.type,S=bi(v,l.pendingProps),S=bi(v.type,S),RO(s,l,v,S,p);case 15:return NO(s,l,l.type,l.pendingProps,p);case 17:return v=l.type,S=l.pendingProps,S=l.elementType===v?S:bi(v,S),Rp(s,l),l.tag=1,sn(v)?(s=!0,vp(l)):s=!1,jl(l,p),PO(l,v,S),Yy(l,v,S,p),eb(null,l,v,!0,s,p);case 19:return WO(s,l,p);case 22:return MO(s,l,p)}throw Error(r(156,l.tag))};function pC(s,l){return Z_(s,l)}function EW(s,l,p,v){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(s,l,p,v){return new EW(s,l,p,v)}function wb(s){return s=s.prototype,!(!s||!s.isReactComponent)}function IW(s){if(typeof s=="function")return wb(s)?1:0;if(s!=null){if(s=s.$$typeof,s===I)return 11;if(s===Z)return 14}return 2}function Ca(s,l){var p=s.alternate;return p===null?(p=Gn(s.tag,l,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=l,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,l=s.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Hp(s,l,p,v,S,_){var T=2;if(v=s,typeof s=="function")wb(s)&&(T=1);else if(typeof s=="string")T=5;else e:switch(s){case j:return ws(p.children,S,_,l);case R:T=8,S|=8;break;case D:return s=Gn(12,p,l,S|2),s.elementType=D,s.lanes=_,s;case W:return s=Gn(13,p,l,S),s.elementType=W,s.lanes=_,s;case K:return s=Gn(19,p,l,S),s.elementType=K,s.lanes=_,s;case ee:return Zp(p,S,_,l);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case L:T=10;break e;case M:T=9;break e;case I:T=11;break e;case Z:T=14;break e;case V:T=16,v=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return l=Gn(T,p,l,S),l.elementType=s,l.type=v,l.lanes=_,l}function ws(s,l,p,v){return s=Gn(7,s,v,l),s.lanes=p,s}function Zp(s,l,p,v){return s=Gn(22,s,v,l),s.elementType=ee,s.lanes=p,s.stateNode={isHidden:!1},s}function xb(s,l,p){return s=Gn(6,s,null,l),s.lanes=p,s}function Sb(s,l,p){return l=Gn(4,s.children!==null?s.children:[],s.key,l),l.lanes=p,l.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},l}function TW(s,l,p,v,S){this.tag=l,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gg(0),this.expirationTimes=Gg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gg(0),this.identifierPrefix=v,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function kb(s,l,p,v,S,_,T,U,H){return s=new TW(s,l,p,U,H),l===1?(l=1,_===!0&&(l|=8)):l=0,_=Gn(3,null,null,l),s.current=_,_.stateNode=s,_.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},My(_),s}function jW(s,l,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:v==null?null:""+v,children:s,containerInfo:l,implementation:p}}function mC(s){if(!s)return ba;s=s._reactInternals;e:{if(ls(s)!==s||s.tag!==1)throw Error(r(170));var l=s;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(sn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(r(171))}if(s.tag===1){var p=s.type;if(sn(p))return BP(s,p,l)}return l}function hC(s,l,p,v,S,_,T,U,H){return s=kb(p,v,!0,s,S,_,T,U,H),s.context=mC(null),p=s.current,v=Gr(),S=Pa(p),_=So(v,S),_.callback=l??null,Sa(p,_,S),s.current.lanes=S,ac(s,S,v),cn(s,v),s}function qp(s,l,p,v){var S=l.current,_=Gr(),T=Pa(S);return p=mC(p),l.context===null?l.context=p:l.pendingContext=p,l=So(_,T),l.payload={element:s},v=v===void 0?null:v,v!==null&&(l.callback=v),s=Sa(S,l,T),s!==null&&(Si(s,S,T,_),$p(s,S,T)),T}function Vp(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function vC(s,l){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<l?p:l}}function $b(s,l){vC(s,l),(s=s.alternate)&&vC(s,l)}function AW(){return null}var gC=typeof reportError=="function"?reportError:function(s){console.error(s)};function _b(s){this._internalRoot=s}Gp.prototype.render=_b.prototype.render=function(s){var l=this._internalRoot;if(l===null)throw Error(r(409));qp(s,l,null,null)},Gp.prototype.unmount=_b.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var l=s.containerInfo;gs(function(){qp(null,s,null,null)}),l[go]=null}};function Gp(s){this._internalRoot=s}Gp.prototype.unstable_scheduleHydration=function(s){if(s){var l=eP();s={blockedOn:null,target:s,priority:l};for(var p=0;p<ma.length&&l!==0&&l<ma[p].priority;p++);ma.splice(p,0,s),p===0&&nP(s)}};function Pb(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Yp(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function yC(){}function RW(s,l,p,v,S){if(S){if(typeof v=="function"){var _=v;v=function(){var ne=Vp(T);_.call(ne)}}var T=hC(l,v,s,0,null,!1,!1,"",yC);return s._reactRootContainer=T,s[go]=T.current,wc(s.nodeType===8?s.parentNode:s),gs(),T}for(;S=s.lastChild;)s.removeChild(S);if(typeof v=="function"){var U=v;v=function(){var ne=Vp(H);U.call(ne)}}var H=kb(s,0,!1,null,null,!1,!1,"",yC);return s._reactRootContainer=H,s[go]=H.current,wc(s.nodeType===8?s.parentNode:s),gs(function(){qp(l,H,p,v)}),H}function Xp(s,l,p,v,S){var _=p._reactRootContainer;if(_){var T=_;if(typeof S=="function"){var U=S;S=function(){var H=Vp(T);U.call(H)}}qp(l,T,s,S)}else T=RW(p,l,s,S,v);return Vp(T)}Q_=function(s){switch(s.tag){case 3:var l=s.stateNode;if(l.current.memoizedState.isDehydrated){var p=oc(l.pendingLanes);p!==0&&(Yg(l,p|1),cn(l,tr()),(ct&6)===0&&(Dl=tr()+500,wa()))}break;case 13:gs(function(){var v=xo(s,1);if(v!==null){var S=Gr();Si(v,s,1,S)}}),$b(s,1)}},Xg=function(s){if(s.tag===13){var l=xo(s,134217728);if(l!==null){var p=Gr();Si(l,s,134217728,p)}$b(s,134217728)}},J_=function(s){if(s.tag===13){var l=Pa(s),p=xo(s,l);if(p!==null){var v=Gr();Si(p,s,l,v)}$b(s,l)}},eP=function(){return kt},tP=function(s,l){var p=kt;try{return kt=s,l()}finally{kt=p}},ca=function(s,l,p){switch(l){case"input":if(et(s,p),l=p.name,p.type==="radio"&&l!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var v=p[l];if(v!==s&&v.form===s.form){var S=mp(v);if(!S)throw Error(r(90));re(v),et(v,S)}}}break;case"textarea":mt(s,p);break;case"select":l=p.value,l!=null&&Ye(s,!!p.multiple,l,!1)}},Hd=gb,Ge=gs;var NW={usingClientEntryPoint:!1,Events:[kc,$l,mp,hi,ss,gb]},Dc={findFiberByHostInstance:us,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},MW={bundleType:Dc.bundleType,version:Dc.version,rendererPackageName:Dc.rendererPackageName,rendererConfig:Dc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=K_(s),s===null?null:s.stateNode},findFiberByHostInstance:Dc.findFiberByHostInstance||AW,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qp.isDisabled&&Qp.supportsFiber)try{Gd=Qp.inject(MW),Hi=Qp}catch{}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NW,fn.createPortal=function(s,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pb(l))throw Error(r(200));return jW(s,l,null,p)},fn.createRoot=function(s,l){if(!Pb(s))throw Error(r(299));var p=!1,v="",S=gC;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),l=kb(s,1,!1,null,null,p,!1,v,S),s[go]=l.current,wc(s.nodeType===8?s.parentNode:s),new _b(l)},fn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var l=s._reactInternals;if(l===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=K_(l),s=s===null?null:s.stateNode,s},fn.flushSync=function(s){return gs(s)},fn.hydrate=function(s,l,p){if(!Yp(l))throw Error(r(200));return Xp(null,s,l,!0,p)},fn.hydrateRoot=function(s,l,p){if(!Pb(s))throw Error(r(405));var v=p!=null&&p.hydratedSources||null,S=!1,_="",T=gC;if(p!=null&&(p.unstable_strictMode===!0&&(S=!0),p.identifierPrefix!==void 0&&(_=p.identifierPrefix),p.onRecoverableError!==void 0&&(T=p.onRecoverableError)),l=hC(l,null,s,1,p??null,S,!1,_,T),s[go]=l.current,wc(s),v)for(s=0;s<v.length;s++)p=v[s],S=p._getVersion,S=S(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,S]:l.mutableSourceEagerHydrationData.push(p,S);return new Gp(l)},fn.render=function(s,l,p){if(!Yp(l))throw Error(r(200));return Xp(null,s,l,!1,p)},fn.unmountComponentAtNode=function(s){if(!Yp(s))throw Error(r(40));return s._reactRootContainer?(gs(function(){Xp(null,null,s,!1,function(){s._reactRootContainer=null,s[go]=null})}),!0):!1},fn.unstable_batchedUpdates=gb,fn.unstable_renderSubtreeIntoContainer=function(s,l,p,v){if(!Yp(p))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return Xp(s,l,p,!1,v)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var zC;function mR(){if(zC)return Ab.exports;zC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ab.exports=M8(),Ab.exports}var LC;function D8(){if(LC)return tm;LC=1;var e=mR();return tm.createRoot=e.createRoot,tm.hydrateRoot=e.hydrateRoot,tm}var z8=D8();/**
|
|
40
|
+
*/var hg;function FS(){if(hg)return Kt;hg=1;var e=Cd(),t=DS();function o(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function u(n,r){c(n,r),c(n+"Capture",r)}function c(n,r){for(a[n]=r,n=0;n<r.length;n++)i.add(r[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function x(n){return h.call(y,n)?!0:h.call(g,n)?!1:m.test(n)?y[n]=!0:(g[n]=!0,!1)}function E(n,r,s,l){if(s!==null&&s.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function C(n,r,s,l){if(r===null||typeof r>"u"||E(n,r,s,l))return!0;if(l)return!1;if(s!==null)switch(s.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function w(n,r,s,l,f,p,v){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=v}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){b[n]=new w(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];b[r]=new w(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){b[n]=new w(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){b[n]=new w(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){b[n]=new w(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){b[n]=new w(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){b[n]=new w(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){b[n]=new w(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){b[n]=new w(n,5,!1,n.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var r=n.replace(I,L);b[r]=new w(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(I,L);b[r]=new w(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(I,L);b[r]=new w(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){b[n]=new w(n,1,!1,n.toLowerCase(),null,!1,!1)}),b.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){b[n]=new w(n,1,!1,n.toLowerCase(),null,!0,!0)});function $(n,r,s,l){var f=b.hasOwnProperty(r)?b[r]:null;(f!==null?f.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(C(r,s,f,l)&&(s=null),l||f===null?x(r)&&(s===null?n.removeAttribute(r):n.setAttribute(r,""+s)):f.mustUseProperty?n[f.propertyName]=s===null?f.type===3?!1:"":s:(r=f.attributeName,l=f.attributeNamespace,s===null?n.removeAttribute(r):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,l?n.setAttributeNS(l,r,s):n.setAttribute(r,s))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),z=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),J=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),Z=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=Z&&n[Z]||n["@@iterator"],typeof n=="function"?n:null)}var K=Object.assign,P;function j(n){if(P===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);P=r&&r[1]||""}return`
|
|
41
|
+
`+P+n}var se=!1;function le(n,r){if(!n||se)return"";se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(B){var l=B}Reflect.construct(n,[],r)}else{try{r.call()}catch(B){l=B}n.call(r.prototype)}else{try{throw Error()}catch(B){l=B}n()}}catch(B){if(B&&l&&typeof B.stack=="string"){for(var f=B.stack.split(`
|
|
42
|
+
`),p=l.stack.split(`
|
|
43
|
+
`),v=f.length-1,R=p.length-1;1<=v&&0<=R&&f[v]!==p[R];)R--;for(;1<=v&&0<=R;v--,R--)if(f[v]!==p[R]){if(v!==1||R!==1)do if(v--,R--,0>R||f[v]!==p[R]){var O=`
|
|
44
|
+
`+f[v].replace(" at new "," at ");return n.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",n.displayName)),O}while(1<=v&&0<=R);break}}}finally{se=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?j(n):""}function de(n){switch(n.tag){case 5:return j(n.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return n=le(n.type,!1),n;case 11:return n=le(n.type.render,!1),n;case 1:return n=le(n.type,!0),n;default:return""}}function ge(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case F:return"Fragment";case z:return"Portal";case H:return"Profiler";case U:return"StrictMode";case q:return"Suspense";case W:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case J:return(n.displayName||"Context")+".Consumer";case V:return(n._context.displayName||"Context")+".Provider";case k:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case te:return r=n.displayName||null,r!==null?r:ge(n.type)||"Memo";case re:r=n._payload,n=n._init;try{return ge(n(r))}catch{}}return null}function ve(n){var r=n.type;switch(n.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=r.render,n=n.displayName||n.name||"",r.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(r);case 8:return r===U?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ce(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function _e(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Pe(n){var r=_e(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),l=""+n[r];if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,p.call(this,v)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ne(n){n._valueTracker||(n._valueTracker=Pe(n))}function kt(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),l="";return n&&(l=_e(n)?n.checked?"true":"false":n.value),n=l,n!==s?(r.setValue(n),!0):!1}function Ve(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function kn(n,r){var s=r.checked;return K({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function no(n,r){var s=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;s=Ce(r.value!=null?r.value:s),n._wrapperState={initialChecked:l,initialValue:s,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Fo(n,r){r=r.checked,r!=null&&$(n,"checked",r,!1)}function Cn(n,r){Fo(n,r);var s=Ce(r.value),l=r.type;if(s!=null)l==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(l==="submit"||l==="reset"){n.removeAttribute("value");return}r.hasOwnProperty("value")?Ct(n,r.type,s):r.hasOwnProperty("defaultValue")&&Ct(n,r.type,Ce(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(n.defaultChecked=!!r.defaultChecked)}function un(n,r,s){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+n._wrapperState.initialValue,s||r===n.value||(n.value=r),n.defaultValue=r}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function Ct(n,r,s){(r!=="number"||Ve(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Jt=Array.isArray;function Bt(n,r,s,l){if(n=n.options,r){r={};for(var f=0;f<s.length;f++)r["$"+s[f]]=!0;for(s=0;s<n.length;s++)f=r.hasOwnProperty("$"+n[s].value),n[s].selected!==f&&(n[s].selected=f),f&&l&&(n[s].defaultSelected=!0)}else{for(s=""+Ce(s),r=null,f=0;f<n.length;f++){if(n[f].value===s){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}r!==null||n[f].disabled||(r=n[f])}r!==null&&(r.selected=!0)}}function xe(n,r){if(r.dangerouslySetInnerHTML!=null)throw Error(o(91));return K({},r,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function ha(n,r){var s=r.value;if(s==null){if(s=r.children,r=r.defaultValue,s!=null){if(r!=null)throw Error(o(92));if(Jt(s)){if(1<s.length)throw Error(o(93));s=s[0]}r=s}r==null&&(r=""),s=r}n._wrapperState={initialValue:Ce(s)}}function Vi(n,r){var s=Ce(r.value),l=Ce(r.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),r.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),l!=null&&(n.defaultValue=""+l)}function Zi(n){var r=n.textContent;r===n._wrapperState.initialValue&&r!==""&&r!==null&&(n.value=r)}function Hi(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jo(n,r){return n==null||n==="http://www.w3.org/1999/xhtml"?Hi(r):n==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ro,Qi=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,s,l,f){MSApp.execUnsafeLocalFunction(function(){return n(r,s,l,f)})}:n})(function(n,r){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=r;else{for(ro=ro||document.createElement("div"),ro.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=ro.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;r.firstChild;)n.appendChild(r.firstChild)}});function ct(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var We={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},er=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(n){er.forEach(function(r){r=r+n.charAt(0).toUpperCase()+n.substring(1),We[r]=We[n]})});function en(n,r,s){return r==null||typeof r=="boolean"||r===""?"":s||typeof r!="number"||r===0||We.hasOwnProperty(n)&&We[n]?(""+r).trim():r+"px"}function Ut(n,r){n=n.style;for(var s in r)if(r.hasOwnProperty(s)){var l=s.indexOf("--")===0,f=en(s,r[s],l);s==="float"&&(s="cssFloat"),l?n.setProperty(s,f):n[s]=f}}var _u=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pu(n,r){if(r){if(_u[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(o(137,n));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(o(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(o(61))}if(r.style!=null&&typeof r.style!="object")throw Error(o(62))}}function Tu(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $u=null;function Iu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ou=null,Bo=null,Uo=null;function pp(n){if(n=ms(n)){if(typeof Ou!="function")throw Error(o(280));var r=n.stateNode;r&&(r=Na(r),Ou(n.stateNode,n.type,r))}}function hp(n){Bo?Uo?Uo.push(n):Uo=[n]:Bo=n}function mp(){if(Bo){var n=Bo,r=Uo;if(Uo=Bo=null,pp(n),r)for(n=0;n<r.length;n++)pp(r[n])}}function gp(n,r){return n(r)}function yp(){}var Au=!1;function vp(n,r,s){if(Au)return n(r,s);Au=!0;try{return gp(n,r,s)}finally{Au=!1,(Bo!==null||Uo!==null)&&(yp(),mp())}}function Ki(n,r){var s=n.stateNode;if(s===null)return null;var l=Na(s);if(l===null)return null;s=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(o(231,r,typeof s));return s}var Mu=!1;if(d)try{var Gi={};Object.defineProperty(Gi,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{Mu=!1}function Q0(n,r,s,l,f,p,v,R,O){var B=Array.prototype.slice.call(arguments,3);try{r.apply(s,B)}catch(ee){this.onError(ee)}}var qi=!1,ma=null,ga=!1,zu=null,K0={onError:function(n){qi=!0,ma=n}};function G0(n,r,s,l,f,p,v,R,O){qi=!1,ma=null,Q0.apply(K0,arguments)}function q0(n,r,s,l,f,p,v,R,O){if(G0.apply(this,arguments),qi){if(qi){var B=ma;qi=!1,ma=null}else throw Error(o(198));ga||(ga=!0,zu=B)}}function oo(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function wp(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function Sp(n){if(oo(n)!==n)throw Error(o(188))}function Y0(n){var r=n.alternate;if(!r){if(r=oo(n),r===null)throw Error(o(188));return r!==n?null:n}for(var s=n,l=r;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(l=f.return,l!==null){s=l;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return Sp(f),n;if(p===l)return Sp(f),r;p=p.sibling}throw Error(o(188))}if(s.return!==l.return)s=f,l=p;else{for(var v=!1,R=f.child;R;){if(R===s){v=!0,s=f,l=p;break}if(R===l){v=!0,l=f,s=p;break}R=R.sibling}if(!v){for(R=p.child;R;){if(R===s){v=!0,s=p,l=f;break}if(R===l){v=!0,l=p,s=f;break}R=R.sibling}if(!v)throw Error(o(189))}}if(s.alternate!==l)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?n:r}function xp(n){return n=Y0(n),n!==null?kp(n):null}function kp(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var r=kp(n);if(r!==null)return r;n=n.sibling}return null}var Cp=t.unstable_scheduleCallback,Ep=t.unstable_cancelCallback,X0=t.unstable_shouldYield,J0=t.unstable_requestPaint,at=t.unstable_now,e1=t.unstable_getCurrentPriorityLevel,Lu=t.unstable_ImmediatePriority,bp=t.unstable_UserBlockingPriority,ya=t.unstable_NormalPriority,t1=t.unstable_LowPriority,Rp=t.unstable_IdlePriority,va=null,Nn=null;function n1(n){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(va,n,void 0,(n.current.flags&128)===128)}catch{}}var En=Math.clz32?Math.clz32:i1,r1=Math.log,o1=Math.LN2;function i1(n){return n>>>=0,n===0?32:31-(r1(n)/o1|0)|0}var wa=64,Sa=4194304;function Yi(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function xa(n,r){var s=n.pendingLanes;if(s===0)return 0;var l=0,f=n.suspendedLanes,p=n.pingedLanes,v=s&268435455;if(v!==0){var R=v&~f;R!==0?l=Yi(R):(p&=v,p!==0&&(l=Yi(p)))}else v=s&~f,v!==0?l=Yi(v):p!==0&&(l=Yi(p));if(l===0)return 0;if(r!==0&&r!==l&&(r&f)===0&&(f=l&-l,p=r&-r,f>=p||f===16&&(p&4194240)!==0))return r;if((l&4)!==0&&(l|=s&16),r=n.entangledLanes,r!==0)for(n=n.entanglements,r&=l;0<r;)s=31-En(r),f=1<<s,l|=n[s],r&=~f;return l}function s1(n,r){switch(n){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function a1(n,r){for(var s=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes;0<p;){var v=31-En(p),R=1<<v,O=f[v];O===-1?((R&s)===0||(R&l)!==0)&&(f[v]=s1(R,r)):O<=r&&(n.expiredLanes|=R),p&=~R}}function Nu(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function _p(){var n=wa;return wa<<=1,(wa&4194240)===0&&(wa=64),n}function Du(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function Xi(n,r,s){n.pendingLanes|=r,r!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,r=31-En(r),n[r]=s}function l1(n,r){var s=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;var l=n.eventTimes;for(n=n.expirationTimes;0<s;){var f=31-En(s),p=1<<f;r[f]=0,l[f]=-1,n[f]=-1,s&=~p}}function Fu(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var l=31-En(s),f=1<<l;f&r|n[l]&r&&(n[l]|=r),s&=~f}}var De=0;function Pp(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Tp,ju,$p,Ip,Op,Bu=!1,ka=[],Cr=null,Er=null,br=null,Ji=new Map,es=new Map,Rr=[],u1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ap(n,r){switch(n){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":br=null;break;case"pointerover":case"pointerout":Ji.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(r.pointerId)}}function ts(n,r,s,l,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:r,domEventName:s,eventSystemFlags:l,nativeEvent:p,targetContainers:[f]},r!==null&&(r=ms(r),r!==null&&ju(r)),n):(n.eventSystemFlags|=l,r=n.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),n)}function c1(n,r,s,l,f){switch(r){case"focusin":return Cr=ts(Cr,n,r,s,l,f),!0;case"dragenter":return Er=ts(Er,n,r,s,l,f),!0;case"mouseover":return br=ts(br,n,r,s,l,f),!0;case"pointerover":var p=f.pointerId;return Ji.set(p,ts(Ji.get(p)||null,n,r,s,l,f)),!0;case"gotpointercapture":return p=f.pointerId,es.set(p,ts(es.get(p)||null,n,r,s,l,f)),!0}return!1}function Mp(n){var r=io(n.target);if(r!==null){var s=oo(r);if(s!==null){if(r=s.tag,r===13){if(r=wp(s),r!==null){n.blockedOn=r,Op(n.priority,function(){$p(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ca(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=Wu(n.domEventName,n.eventSystemFlags,r[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var l=new s.constructor(s.type,s);$u=l,s.target.dispatchEvent(l),$u=null}else return r=ms(s),r!==null&&ju(r),n.blockedOn=s,!1;r.shift()}return!0}function zp(n,r,s){Ca(n)&&s.delete(r)}function f1(){Bu=!1,Cr!==null&&Ca(Cr)&&(Cr=null),Er!==null&&Ca(Er)&&(Er=null),br!==null&&Ca(br)&&(br=null),Ji.forEach(zp),es.forEach(zp)}function ns(n,r){n.blockedOn===r&&(n.blockedOn=null,Bu||(Bu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,f1)))}function rs(n){function r(f){return ns(f,n)}if(0<ka.length){ns(ka[0],n);for(var s=1;s<ka.length;s++){var l=ka[s];l.blockedOn===n&&(l.blockedOn=null)}}for(Cr!==null&&ns(Cr,n),Er!==null&&ns(Er,n),br!==null&&ns(br,n),Ji.forEach(r),es.forEach(r),s=0;s<Rr.length;s++)l=Rr[s],l.blockedOn===n&&(l.blockedOn=null);for(;0<Rr.length&&(s=Rr[0],s.blockedOn===null);)Mp(s),s.blockedOn===null&&Rr.shift()}var Wo=T.ReactCurrentBatchConfig,Ea=!0;function d1(n,r,s,l){var f=De,p=Wo.transition;Wo.transition=null;try{De=1,Uu(n,r,s,l)}finally{De=f,Wo.transition=p}}function p1(n,r,s,l){var f=De,p=Wo.transition;Wo.transition=null;try{De=4,Uu(n,r,s,l)}finally{De=f,Wo.transition=p}}function Uu(n,r,s,l){if(Ea){var f=Wu(n,r,s,l);if(f===null)sc(n,r,l,ba,s),Ap(n,l);else if(c1(f,n,r,s,l))l.stopPropagation();else if(Ap(n,l),r&4&&-1<u1.indexOf(n)){for(;f!==null;){var p=ms(f);if(p!==null&&Tp(p),p=Wu(n,r,s,l),p===null&&sc(n,r,l,ba,s),p===f)break;f=p}f!==null&&l.stopPropagation()}else sc(n,r,l,null,s)}}var ba=null;function Wu(n,r,s,l){if(ba=null,n=Iu(l),n=io(n),n!==null)if(r=oo(n),r===null)n=null;else if(s=r.tag,s===13){if(n=wp(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null);return ba=n,null}function Lp(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e1()){case Lu:return 1;case bp:return 4;case ya:case t1:return 16;case Rp:return 536870912;default:return 16}default:return 16}}var _r=null,Vu=null,Ra=null;function Np(){if(Ra)return Ra;var n,r=Vu,s=r.length,l,f="value"in _r?_r.value:_r.textContent,p=f.length;for(n=0;n<s&&r[n]===f[n];n++);var v=s-n;for(l=1;l<=v&&r[s-l]===f[p-l];l++);return Ra=f.slice(n,1<l?1-l:void 0)}function _a(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Pa(){return!0}function Dp(){return!1}function tn(n){function r(s,l,f,p,v){this._reactName=s,this._targetInst=f,this.type=l,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(s=n[R],this[R]=s?s(p):p[R]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Pa:Dp,this.isPropagationStopped=Dp,this}return K(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Pa)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Pa)},persist:function(){},isPersistent:Pa}),r}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zu=tn(Vo),os=K({},Vo,{view:0,detail:0}),h1=tn(os),Hu,Qu,is,Ta=K({},os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==is&&(is&&n.type==="mousemove"?(Hu=n.screenX-is.screenX,Qu=n.screenY-is.screenY):Qu=Hu=0,is=n),Hu)},movementY:function(n){return"movementY"in n?n.movementY:Qu}}),Fp=tn(Ta),m1=K({},Ta,{dataTransfer:0}),g1=tn(m1),y1=K({},os,{relatedTarget:0}),Ku=tn(y1),v1=K({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),w1=tn(v1),S1=K({},Vo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),x1=tn(S1),k1=K({},Vo,{data:0}),jp=tn(k1),C1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},b1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R1(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=b1[n])?!!r[n]:!1}function Gu(){return R1}var _1=K({},os,{key:function(n){if(n.key){var r=C1[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=_a(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?E1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(n){return n.type==="keypress"?_a(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?_a(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),P1=tn(_1),T1=K({},Ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bp=tn(T1),$1=K({},os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),I1=tn($1),O1=K({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),A1=tn(O1),M1=K({},Ta,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=tn(M1),L1=[9,13,27,32],qu=d&&"CompositionEvent"in window,ss=null;d&&"documentMode"in document&&(ss=document.documentMode);var N1=d&&"TextEvent"in window&&!ss,Up=d&&(!qu||ss&&8<ss&&11>=ss),Wp=" ",Vp=!1;function Zp(n,r){switch(n){case"keyup":return L1.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Zo=!1;function D1(n,r){switch(n){case"compositionend":return Hp(r);case"keypress":return r.which!==32?null:(Vp=!0,Wp);case"textInput":return n=r.data,n===Wp&&Vp?null:n;default:return null}}function F1(n,r){if(Zo)return n==="compositionend"||!qu&&Zp(n,r)?(n=Np(),Ra=Vu=_r=null,Zo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Up&&r.locale!=="ko"?null:r.data;default:return null}}var j1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qp(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!j1[n.type]:r==="textarea"}function Kp(n,r,s,l){hp(l),r=Ma(r,"onChange"),0<r.length&&(s=new Zu("onChange","change",null,s,l),n.push({event:s,listeners:r}))}var as=null,ls=null;function B1(n){dh(n,0)}function $a(n){var r=qo(n);if(kt(r))return n}function U1(n,r){if(n==="change")return r}var Gp=!1;if(d){var Yu;if(d){var Xu="oninput"in document;if(!Xu){var qp=document.createElement("div");qp.setAttribute("oninput","return;"),Xu=typeof qp.oninput=="function"}Yu=Xu}else Yu=!1;Gp=Yu&&(!document.documentMode||9<document.documentMode)}function Yp(){as&&(as.detachEvent("onpropertychange",Xp),ls=as=null)}function Xp(n){if(n.propertyName==="value"&&$a(ls)){var r=[];Kp(r,ls,n,Iu(n)),vp(B1,r)}}function W1(n,r,s){n==="focusin"?(Yp(),as=r,ls=s,as.attachEvent("onpropertychange",Xp)):n==="focusout"&&Yp()}function V1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $a(ls)}function Z1(n,r){if(n==="click")return $a(r)}function H1(n,r){if(n==="input"||n==="change")return $a(r)}function Q1(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var bn=typeof Object.is=="function"?Object.is:Q1;function us(n,r){if(bn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),l=Object.keys(r);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var f=s[l];if(!h.call(r,f)||!bn(n[f],r[f]))return!1}return!0}function Jp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function eh(n,r){var s=Jp(n);n=0;for(var l;s;){if(s.nodeType===3){if(l=n+s.textContent.length,n<=r&&l>=r)return{node:s,offset:r-n};n=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Jp(s)}}function th(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?th(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function nh(){for(var n=window,r=Ve();r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=Ve(n.document)}return r}function Ju(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function K1(n){var r=nh(),s=n.focusedElem,l=n.selectionRange;if(r!==s&&s&&s.ownerDocument&&th(s.ownerDocument.documentElement,s)){if(l!==null&&Ju(s)){if(r=l.start,n=l.end,n===void 0&&(n=r),"selectionStart"in s)s.selectionStart=r,s.selectionEnd=Math.min(n,s.value.length);else if(n=(r=s.ownerDocument||document)&&r.defaultView||window,n.getSelection){n=n.getSelection();var f=s.textContent.length,p=Math.min(l.start,f);l=l.end===void 0?p:Math.min(l.end,f),!n.extend&&p>l&&(f=l,l=p,p=f),f=eh(s,p);var v=eh(s,l);f&&v&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==v.node||n.focusOffset!==v.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),n.removeAllRanges(),p>l?(n.addRange(r),n.extend(v.node,v.offset)):(r.setEnd(v.node,v.offset),n.addRange(r)))}}for(r=[],n=s;n=n.parentNode;)n.nodeType===1&&r.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<r.length;s++)n=r[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var G1=d&&"documentMode"in document&&11>=document.documentMode,Ho=null,ec=null,cs=null,tc=!1;function rh(n,r,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;tc||Ho==null||Ho!==Ve(l)||(l=Ho,"selectionStart"in l&&Ju(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),cs&&us(cs,l)||(cs=l,l=Ma(ec,"onSelect"),0<l.length&&(r=new Zu("onSelect","select",null,r,s),n.push({event:r,listeners:l}),r.target=Ho)))}function Ia(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var Qo={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionend:Ia("Transition","TransitionEnd")},nc={},oh={};d&&(oh=document.createElement("div").style,"AnimationEvent"in window||(delete Qo.animationend.animation,delete Qo.animationiteration.animation,delete Qo.animationstart.animation),"TransitionEvent"in window||delete Qo.transitionend.transition);function Oa(n){if(nc[n])return nc[n];if(!Qo[n])return n;var r=Qo[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in oh)return nc[n]=r[s];return n}var ih=Oa("animationend"),sh=Oa("animationiteration"),ah=Oa("animationstart"),lh=Oa("transitionend"),uh=new Map,ch="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(n,r){uh.set(n,r),u(r,[n])}for(var rc=0;rc<ch.length;rc++){var oc=ch[rc],q1=oc.toLowerCase(),Y1=oc[0].toUpperCase()+oc.slice(1);Pr(q1,"on"+Y1)}Pr(ih,"onAnimationEnd"),Pr(sh,"onAnimationIteration"),Pr(ah,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(lh,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),X1=new Set("cancel close invalid load scroll toggle".split(" ").concat(fs));function fh(n,r,s){var l=n.type||"unknown-event";n.currentTarget=s,q0(l,r,void 0,n),n.currentTarget=null}function dh(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var l=n[s],f=l.event;l=l.listeners;e:{var p=void 0;if(r)for(var v=l.length-1;0<=v;v--){var R=l[v],O=R.instance,B=R.currentTarget;if(R=R.listener,O!==p&&f.isPropagationStopped())break e;fh(f,R,B),p=O}else for(v=0;v<l.length;v++){if(R=l[v],O=R.instance,B=R.currentTarget,R=R.listener,O!==p&&f.isPropagationStopped())break e;fh(f,R,B),p=O}}}if(ga)throw n=zu,ga=!1,zu=null,n}function Qe(n,r){var s=r[dc];s===void 0&&(s=r[dc]=new Set);var l=n+"__bubble";s.has(l)||(ph(r,n,2,!1),s.add(l))}function ic(n,r,s){var l=0;r&&(l|=4),ph(s,n,l,r)}var Aa="_reactListening"+Math.random().toString(36).slice(2);function ds(n){if(!n[Aa]){n[Aa]=!0,i.forEach(function(s){s!=="selectionchange"&&(X1.has(s)||ic(s,!1,n),ic(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Aa]||(r[Aa]=!0,ic("selectionchange",!1,r))}}function ph(n,r,s,l){switch(Lp(r)){case 1:var f=d1;break;case 4:f=p1;break;default:f=Uu}s=f.bind(null,r,s,n),f=void 0,!Mu||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(r,s,{capture:!0,passive:f}):n.addEventListener(r,s,!0):f!==void 0?n.addEventListener(r,s,{passive:f}):n.addEventListener(r,s,!1)}function sc(n,r,s,l,f){var p=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var R=l.stateNode.containerInfo;if(R===f||R.nodeType===8&&R.parentNode===f)break;if(v===4)for(v=l.return;v!==null;){var O=v.tag;if((O===3||O===4)&&(O=v.stateNode.containerInfo,O===f||O.nodeType===8&&O.parentNode===f))return;v=v.return}for(;R!==null;){if(v=io(R),v===null)return;if(O=v.tag,O===5||O===6){l=p=v;continue e}R=R.parentNode}}l=l.return}vp(function(){var B=p,ee=Iu(s),ne=[];e:{var X=uh.get(n);if(X!==void 0){var ue=Zu,pe=n;switch(n){case"keypress":if(_a(s)===0)break e;case"keydown":case"keyup":ue=P1;break;case"focusin":pe="focus",ue=Ku;break;case"focusout":pe="blur",ue=Ku;break;case"beforeblur":case"afterblur":ue=Ku;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=Fp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=I1;break;case ih:case sh:case ah:ue=w1;break;case lh:ue=A1;break;case"scroll":ue=h1;break;case"wheel":ue=z1;break;case"copy":case"cut":case"paste":ue=x1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=Bp}var he=(r&4)!==0,lt=!he&&n==="scroll",N=he?X!==null?X+"Capture":null:X;he=[];for(var M=B,D;M!==null;){D=M;var ie=D.stateNode;if(D.tag===5&&ie!==null&&(D=ie,N!==null&&(ie=Ki(M,N),ie!=null&&he.push(ps(M,ie,D)))),lt)break;M=M.return}0<he.length&&(X=new ue(X,pe,null,s,ee),ne.push({event:X,listeners:he}))}}if((r&7)===0){e:{if(X=n==="mouseover"||n==="pointerover",ue=n==="mouseout"||n==="pointerout",X&&s!==$u&&(pe=s.relatedTarget||s.fromElement)&&(io(pe)||pe[tr]))break e;if((ue||X)&&(X=ee.window===ee?ee:(X=ee.ownerDocument)?X.defaultView||X.parentWindow:window,ue?(pe=s.relatedTarget||s.toElement,ue=B,pe=pe?io(pe):null,pe!==null&&(lt=oo(pe),pe!==lt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(ue=null,pe=B),ue!==pe)){if(he=Fp,ie="onMouseLeave",N="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(he=Bp,ie="onPointerLeave",N="onPointerEnter",M="pointer"),lt=ue==null?X:qo(ue),D=pe==null?X:qo(pe),X=new he(ie,M+"leave",ue,s,ee),X.target=lt,X.relatedTarget=D,ie=null,io(ee)===B&&(he=new he(N,M+"enter",pe,s,ee),he.target=D,he.relatedTarget=lt,ie=he),lt=ie,ue&&pe)t:{for(he=ue,N=pe,M=0,D=he;D;D=Ko(D))M++;for(D=0,ie=N;ie;ie=Ko(ie))D++;for(;0<M-D;)he=Ko(he),M--;for(;0<D-M;)N=Ko(N),D--;for(;M--;){if(he===N||N!==null&&he===N.alternate)break t;he=Ko(he),N=Ko(N)}he=null}else he=null;ue!==null&&hh(ne,X,ue,he,!1),pe!==null&<!==null&&hh(ne,lt,pe,he,!0)}}e:{if(X=B?qo(B):window,ue=X.nodeName&&X.nodeName.toLowerCase(),ue==="select"||ue==="input"&&X.type==="file")var me=U1;else if(Qp(X))if(Gp)me=H1;else{me=V1;var we=W1}else(ue=X.nodeName)&&ue.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(me=Z1);if(me&&(me=me(n,B))){Kp(ne,me,s,ee);break e}we&&we(n,X,B),n==="focusout"&&(we=X._wrapperState)&&we.controlled&&X.type==="number"&&Ct(X,"number",X.value)}switch(we=B?qo(B):window,n){case"focusin":(Qp(we)||we.contentEditable==="true")&&(Ho=we,ec=B,cs=null);break;case"focusout":cs=ec=Ho=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,rh(ne,s,ee);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":rh(ne,s,ee)}var Se;if(qu)e:{switch(n){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Zo?Zp(n,s)&&(ke="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(ke="onCompositionStart");ke&&(Up&&s.locale!=="ko"&&(Zo||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Zo&&(Se=Np()):(_r=ee,Vu="value"in _r?_r.value:_r.textContent,Zo=!0)),we=Ma(B,ke),0<we.length&&(ke=new jp(ke,n,null,s,ee),ne.push({event:ke,listeners:we}),Se?ke.data=Se:(Se=Hp(s),Se!==null&&(ke.data=Se)))),(Se=N1?D1(n,s):F1(n,s))&&(B=Ma(B,"onBeforeInput"),0<B.length&&(ee=new jp("onBeforeInput","beforeinput",null,s,ee),ne.push({event:ee,listeners:B}),ee.data=Se))}dh(ne,r)})}function ps(n,r,s){return{instance:n,listener:r,currentTarget:s}}function Ma(n,r){for(var s=r+"Capture",l=[];n!==null;){var f=n,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=Ki(n,s),p!=null&&l.unshift(ps(n,p,f)),p=Ki(n,r),p!=null&&l.push(ps(n,p,f))),n=n.return}return l}function Ko(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function hh(n,r,s,l,f){for(var p=r._reactName,v=[];s!==null&&s!==l;){var R=s,O=R.alternate,B=R.stateNode;if(O!==null&&O===l)break;R.tag===5&&B!==null&&(R=B,f?(O=Ki(s,p),O!=null&&v.unshift(ps(s,O,R))):f||(O=Ki(s,p),O!=null&&v.push(ps(s,O,R)))),s=s.return}v.length!==0&&n.push({event:r,listeners:v})}var J1=/\r\n?/g,ew=/\u0000|\uFFFD/g;function mh(n){return(typeof n=="string"?n:""+n).replace(J1,`
|
|
45
|
+
`).replace(ew,"")}function za(n,r,s){if(r=mh(r),mh(n)!==r&&s)throw Error(o(425))}function La(){}var ac=null,lc=null;function uc(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var cc=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,nw=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(n){return gh.resolve(null).then(n).catch(rw)}:cc;function rw(n){setTimeout(function(){throw n})}function fc(n,r){var s=r,l=0;do{var f=s.nextSibling;if(n.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(l===0){n.removeChild(f),rs(r);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=f}while(s);rs(r)}function Tr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return n}function yh(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(r===0)return n;r--}else s==="/$"&&r++}n=n.previousSibling}return null}var Go=Math.random().toString(36).slice(2),Dn="__reactFiber$"+Go,hs="__reactProps$"+Go,tr="__reactContainer$"+Go,dc="__reactEvents$"+Go,ow="__reactListeners$"+Go,iw="__reactHandles$"+Go;function io(n){var r=n[Dn];if(r)return r;for(var s=n.parentNode;s;){if(r=s[tr]||s[Dn]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=yh(n);n!==null;){if(s=n[Dn])return s;n=yh(n)}return r}n=s,s=n.parentNode}return null}function ms(n){return n=n[Dn]||n[tr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function qo(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(o(33))}function Na(n){return n[hs]||null}var pc=[],Yo=-1;function $r(n){return{current:n}}function Ke(n){0>Yo||(n.current=pc[Yo],pc[Yo]=null,Yo--)}function Ze(n,r){Yo++,pc[Yo]=n.current,n.current=r}var Ir={},Tt=$r(Ir),Wt=$r(!1),so=Ir;function Xo(n,r){var s=n.type.contextTypes;if(!s)return Ir;var l=n.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in s)f[p]=r[p];return l&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=r,n.__reactInternalMemoizedMaskedChildContext=f),f}function Vt(n){return n=n.childContextTypes,n!=null}function Da(){Ke(Wt),Ke(Tt)}function vh(n,r,s){if(Tt.current!==Ir)throw Error(o(168));Ze(Tt,r),Ze(Wt,s)}function wh(n,r,s){var l=n.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return s;l=l.getChildContext();for(var f in l)if(!(f in r))throw Error(o(108,ve(n)||"Unknown",f));return K({},s,l)}function Fa(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Ir,so=Tt.current,Ze(Tt,n),Ze(Wt,Wt.current),!0}function Sh(n,r,s){var l=n.stateNode;if(!l)throw Error(o(169));s?(n=wh(n,r,so),l.__reactInternalMemoizedMergedChildContext=n,Ke(Wt),Ke(Tt),Ze(Tt,n)):Ke(Wt),Ze(Wt,s)}var nr=null,ja=!1,hc=!1;function xh(n){nr===null?nr=[n]:nr.push(n)}function sw(n){ja=!0,xh(n)}function Or(){if(!hc&&nr!==null){hc=!0;var n=0,r=De;try{var s=nr;for(De=1;n<s.length;n++){var l=s[n];do l=l(!0);while(l!==null)}nr=null,ja=!1}catch(f){throw nr!==null&&(nr=nr.slice(n+1)),Cp(Lu,Or),f}finally{De=r,hc=!1}}return null}var Jo=[],ei=0,Ba=null,Ua=0,cn=[],fn=0,ao=null,rr=1,or="";function lo(n,r){Jo[ei++]=Ua,Jo[ei++]=Ba,Ba=n,Ua=r}function kh(n,r,s){cn[fn++]=rr,cn[fn++]=or,cn[fn++]=ao,ao=n;var l=rr;n=or;var f=32-En(l)-1;l&=~(1<<f),s+=1;var p=32-En(r)+f;if(30<p){var v=f-f%5;p=(l&(1<<v)-1).toString(32),l>>=v,f-=v,rr=1<<32-En(r)+f|s<<f|l,or=p+n}else rr=1<<p|s<<f|l,or=n}function mc(n){n.return!==null&&(lo(n,1),kh(n,1,0))}function gc(n){for(;n===Ba;)Ba=Jo[--ei],Jo[ei]=null,Ua=Jo[--ei],Jo[ei]=null;for(;n===ao;)ao=cn[--fn],cn[fn]=null,or=cn[--fn],cn[fn]=null,rr=cn[--fn],cn[fn]=null}var nn=null,rn=null,Ge=!1,Rn=null;function Ch(n,r){var s=mn(5,null,null,0);s.elementType="DELETED",s.stateNode=r,s.return=n,r=n.deletions,r===null?(n.deletions=[s],n.flags|=16):r.push(s)}function Eh(n,r){switch(n.tag){case 5:var s=n.type;return r=r.nodeType!==1||s.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(n.stateNode=r,nn=n,rn=Tr(r.firstChild),!0):!1;case 6:return r=n.pendingProps===""||r.nodeType!==3?null:r,r!==null?(n.stateNode=r,nn=n,rn=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(s=ao!==null?{id:rr,overflow:or}:null,n.memoizedState={dehydrated:r,treeContext:s,retryLane:1073741824},s=mn(18,null,null,0),s.stateNode=r,s.return=n,n.child=s,nn=n,rn=null,!0):!1;default:return!1}}function yc(n){return(n.mode&1)!==0&&(n.flags&128)===0}function vc(n){if(Ge){var r=rn;if(r){var s=r;if(!Eh(n,r)){if(yc(n))throw Error(o(418));r=Tr(s.nextSibling);var l=nn;r&&Eh(n,r)?Ch(l,s):(n.flags=n.flags&-4097|2,Ge=!1,nn=n)}}else{if(yc(n))throw Error(o(418));n.flags=n.flags&-4097|2,Ge=!1,nn=n}}}function bh(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;nn=n}function Wa(n){if(n!==nn)return!1;if(!Ge)return bh(n),Ge=!0,!1;var r;if((r=n.tag!==3)&&!(r=n.tag!==5)&&(r=n.type,r=r!=="head"&&r!=="body"&&!uc(n.type,n.memoizedProps)),r&&(r=rn)){if(yc(n))throw Rh(),Error(o(418));for(;r;)Ch(n,r),r=Tr(r.nextSibling)}if(bh(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(r===0){rn=Tr(n.nextSibling);break e}r--}else s!=="$"&&s!=="$!"&&s!=="$?"||r++}n=n.nextSibling}rn=null}}else rn=nn?Tr(n.stateNode.nextSibling):null;return!0}function Rh(){for(var n=rn;n;)n=Tr(n.nextSibling)}function ti(){rn=nn=null,Ge=!1}function wc(n){Rn===null?Rn=[n]:Rn.push(n)}var aw=T.ReactCurrentBatchConfig;function gs(n,r,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var l=s.stateNode}if(!l)throw Error(o(147,n));var f=l,p=""+n;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===p?r.ref:(r=function(v){var R=f.refs;v===null?delete R[p]:R[p]=v},r._stringRef=p,r)}if(typeof n!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,n))}return n}function Va(n,r){throw n=Object.prototype.toString.call(r),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n))}function _h(n){var r=n._init;return r(n._payload)}function Ph(n){function r(N,M){if(n){var D=N.deletions;D===null?(N.deletions=[M],N.flags|=16):D.push(M)}}function s(N,M){if(!n)return null;for(;M!==null;)r(N,M),M=M.sibling;return null}function l(N,M){for(N=new Map;M!==null;)M.key!==null?N.set(M.key,M):N.set(M.index,M),M=M.sibling;return N}function f(N,M){return N=jr(N,M),N.index=0,N.sibling=null,N}function p(N,M,D){return N.index=D,n?(D=N.alternate,D!==null?(D=D.index,D<M?(N.flags|=2,M):D):(N.flags|=2,M)):(N.flags|=1048576,M)}function v(N){return n&&N.alternate===null&&(N.flags|=2),N}function R(N,M,D,ie){return M===null||M.tag!==6?(M=ff(D,N.mode,ie),M.return=N,M):(M=f(M,D),M.return=N,M)}function O(N,M,D,ie){var me=D.type;return me===F?ee(N,M,D.props.children,ie,D.key):M!==null&&(M.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===re&&_h(me)===M.type)?(ie=f(M,D.props),ie.ref=gs(N,M,D),ie.return=N,ie):(ie=hl(D.type,D.key,D.props,null,N.mode,ie),ie.ref=gs(N,M,D),ie.return=N,ie)}function B(N,M,D,ie){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=df(D,N.mode,ie),M.return=N,M):(M=f(M,D.children||[]),M.return=N,M)}function ee(N,M,D,ie,me){return M===null||M.tag!==7?(M=yo(D,N.mode,ie,me),M.return=N,M):(M=f(M,D),M.return=N,M)}function ne(N,M,D){if(typeof M=="string"&&M!==""||typeof M=="number")return M=ff(""+M,N.mode,D),M.return=N,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case A:return D=hl(M.type,M.key,M.props,null,N.mode,D),D.ref=gs(N,null,M),D.return=N,D;case z:return M=df(M,N.mode,D),M.return=N,M;case re:var ie=M._init;return ne(N,ie(M._payload),D)}if(Jt(M)||G(M))return M=yo(M,N.mode,D,null),M.return=N,M;Va(N,M)}return null}function X(N,M,D,ie){var me=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return me!==null?null:R(N,M,""+D,ie);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===me?O(N,M,D,ie):null;case z:return D.key===me?B(N,M,D,ie):null;case re:return me=D._init,X(N,M,me(D._payload),ie)}if(Jt(D)||G(D))return me!==null?null:ee(N,M,D,ie,null);Va(N,D)}return null}function ue(N,M,D,ie,me){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return N=N.get(D)||null,R(M,N,""+ie,me);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case A:return N=N.get(ie.key===null?D:ie.key)||null,O(M,N,ie,me);case z:return N=N.get(ie.key===null?D:ie.key)||null,B(M,N,ie,me);case re:var we=ie._init;return ue(N,M,D,we(ie._payload),me)}if(Jt(ie)||G(ie))return N=N.get(D)||null,ee(M,N,ie,me,null);Va(M,ie)}return null}function pe(N,M,D,ie){for(var me=null,we=null,Se=M,ke=M=0,vt=null;Se!==null&&ke<D.length;ke++){Se.index>ke?(vt=Se,Se=null):vt=Se.sibling;var Oe=X(N,Se,D[ke],ie);if(Oe===null){Se===null&&(Se=vt);break}n&&Se&&Oe.alternate===null&&r(N,Se),M=p(Oe,M,ke),we===null?me=Oe:we.sibling=Oe,we=Oe,Se=vt}if(ke===D.length)return s(N,Se),Ge&&lo(N,ke),me;if(Se===null){for(;ke<D.length;ke++)Se=ne(N,D[ke],ie),Se!==null&&(M=p(Se,M,ke),we===null?me=Se:we.sibling=Se,we=Se);return Ge&&lo(N,ke),me}for(Se=l(N,Se);ke<D.length;ke++)vt=ue(Se,N,ke,D[ke],ie),vt!==null&&(n&&vt.alternate!==null&&Se.delete(vt.key===null?ke:vt.key),M=p(vt,M,ke),we===null?me=vt:we.sibling=vt,we=vt);return n&&Se.forEach(function(Br){return r(N,Br)}),Ge&&lo(N,ke),me}function he(N,M,D,ie){var me=G(D);if(typeof me!="function")throw Error(o(150));if(D=me.call(D),D==null)throw Error(o(151));for(var we=me=null,Se=M,ke=M=0,vt=null,Oe=D.next();Se!==null&&!Oe.done;ke++,Oe=D.next()){Se.index>ke?(vt=Se,Se=null):vt=Se.sibling;var Br=X(N,Se,Oe.value,ie);if(Br===null){Se===null&&(Se=vt);break}n&&Se&&Br.alternate===null&&r(N,Se),M=p(Br,M,ke),we===null?me=Br:we.sibling=Br,we=Br,Se=vt}if(Oe.done)return s(N,Se),Ge&&lo(N,ke),me;if(Se===null){for(;!Oe.done;ke++,Oe=D.next())Oe=ne(N,Oe.value,ie),Oe!==null&&(M=p(Oe,M,ke),we===null?me=Oe:we.sibling=Oe,we=Oe);return Ge&&lo(N,ke),me}for(Se=l(N,Se);!Oe.done;ke++,Oe=D.next())Oe=ue(Se,N,ke,Oe.value,ie),Oe!==null&&(n&&Oe.alternate!==null&&Se.delete(Oe.key===null?ke:Oe.key),M=p(Oe,M,ke),we===null?me=Oe:we.sibling=Oe,we=Oe);return n&&Se.forEach(function(jw){return r(N,jw)}),Ge&&lo(N,ke),me}function lt(N,M,D,ie){if(typeof D=="object"&&D!==null&&D.type===F&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var me=D.key,we=M;we!==null;){if(we.key===me){if(me=D.type,me===F){if(we.tag===7){s(N,we.sibling),M=f(we,D.props.children),M.return=N,N=M;break e}}else if(we.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===re&&_h(me)===we.type){s(N,we.sibling),M=f(we,D.props),M.ref=gs(N,we,D),M.return=N,N=M;break e}s(N,we);break}else r(N,we);we=we.sibling}D.type===F?(M=yo(D.props.children,N.mode,ie,D.key),M.return=N,N=M):(ie=hl(D.type,D.key,D.props,null,N.mode,ie),ie.ref=gs(N,M,D),ie.return=N,N=ie)}return v(N);case z:e:{for(we=D.key;M!==null;){if(M.key===we)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){s(N,M.sibling),M=f(M,D.children||[]),M.return=N,N=M;break e}else{s(N,M);break}else r(N,M);M=M.sibling}M=df(D,N.mode,ie),M.return=N,N=M}return v(N);case re:return we=D._init,lt(N,M,we(D._payload),ie)}if(Jt(D))return pe(N,M,D,ie);if(G(D))return he(N,M,D,ie);Va(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,M!==null&&M.tag===6?(s(N,M.sibling),M=f(M,D),M.return=N,N=M):(s(N,M),M=ff(D,N.mode,ie),M.return=N,N=M),v(N)):s(N,M)}return lt}var ni=Ph(!0),Th=Ph(!1),Za=$r(null),Ha=null,ri=null,Sc=null;function xc(){Sc=ri=Ha=null}function kc(n){var r=Za.current;Ke(Za),n._currentValue=r}function Cc(n,r,s){for(;n!==null;){var l=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),n===s)break;n=n.return}}function oi(n,r){Ha=n,Sc=ri=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&r)!==0&&(Zt=!0),n.firstContext=null)}function dn(n){var r=n._currentValue;if(Sc!==n)if(n={context:n,memoizedValue:r,next:null},ri===null){if(Ha===null)throw Error(o(308));ri=n,Ha.dependencies={lanes:0,firstContext:n}}else ri=ri.next=n;return r}var uo=null;function Ec(n){uo===null?uo=[n]:uo.push(n)}function $h(n,r,s,l){var f=r.interleaved;return f===null?(s.next=s,Ec(r)):(s.next=f.next,f.next=s),r.interleaved=s,ir(n,l)}function ir(n,r){n.lanes|=r;var s=n.alternate;for(s!==null&&(s.lanes|=r),s=n,n=n.return;n!==null;)n.childLanes|=r,s=n.alternate,s!==null&&(s.childLanes|=r),s=n,n=n.return;return s.tag===3?s.stateNode:null}var Ar=!1;function bc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ih(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function sr(n,r){return{eventTime:n,lane:r,tag:0,payload:null,callback:null,next:null}}function Mr(n,r,s){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var f=l.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r,ir(n,s)}return f=l.interleaved,f===null?(r.next=r,Ec(l)):(r.next=f.next,f.next=r),l.interleaved=r,ir(n,s)}function Qa(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194240)!==0)){var l=r.lanes;l&=n.pendingLanes,s|=l,r.lanes=s,Fu(n,s)}}function Oh(n,r){var s=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var v={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?f=p=v:p=p.next=v,s=s.next}while(s!==null);p===null?f=p=r:p=p.next=r}else f=p=r;s={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:l.shared,effects:l.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}function Ka(n,r,s,l){var f=n.updateQueue;Ar=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var O=R,B=O.next;O.next=null,v===null?p=B:v.next=B,v=O;var ee=n.alternate;ee!==null&&(ee=ee.updateQueue,R=ee.lastBaseUpdate,R!==v&&(R===null?ee.firstBaseUpdate=B:R.next=B,ee.lastBaseUpdate=O))}if(p!==null){var ne=f.baseState;v=0,ee=B=O=null,R=p;do{var X=R.lane,ue=R.eventTime;if((l&X)===X){ee!==null&&(ee=ee.next={eventTime:ue,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var pe=n,he=R;switch(X=r,ue=s,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){ne=pe.call(ue,ne,X);break e}ne=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,X=typeof pe=="function"?pe.call(ue,ne,X):pe,X==null)break e;ne=K({},ne,X);break e;case 2:Ar=!0}}R.callback!==null&&R.lane!==0&&(n.flags|=64,X=f.effects,X===null?f.effects=[R]:X.push(R))}else ue={eventTime:ue,lane:X,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ee===null?(B=ee=ue,O=ne):ee=ee.next=ue,v|=X;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;X=R,R=X.next,X.next=null,f.lastBaseUpdate=X,f.shared.pending=null}}while(!0);if(ee===null&&(O=ne),f.baseState=O,f.firstBaseUpdate=B,f.lastBaseUpdate=ee,r=f.shared.interleaved,r!==null){f=r;do v|=f.lane,f=f.next;while(f!==r)}else p===null&&(f.shared.lanes=0);po|=v,n.lanes=v,n.memoizedState=ne}}function Ah(n,r,s){if(n=r.effects,r.effects=null,n!==null)for(r=0;r<n.length;r++){var l=n[r],f=l.callback;if(f!==null){if(l.callback=null,l=s,typeof f!="function")throw Error(o(191,f));f.call(l)}}}var ys={},Fn=$r(ys),vs=$r(ys),ws=$r(ys);function co(n){if(n===ys)throw Error(o(174));return n}function Rc(n,r){switch(Ze(ws,r),Ze(vs,n),Ze(Fn,ys),n=r.nodeType,n){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:jo(null,"");break;default:n=n===8?r.parentNode:r,r=n.namespaceURI||null,n=n.tagName,r=jo(r,n)}Ke(Fn),Ze(Fn,r)}function ii(){Ke(Fn),Ke(vs),Ke(ws)}function Mh(n){co(ws.current);var r=co(Fn.current),s=jo(r,n.type);r!==s&&(Ze(vs,n),Ze(Fn,s))}function _c(n){vs.current===n&&(Ke(Fn),Ke(vs))}var Je=$r(0);function Ga(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Pc=[];function Tc(){for(var n=0;n<Pc.length;n++)Pc[n]._workInProgressVersionPrimary=null;Pc.length=0}var qa=T.ReactCurrentDispatcher,$c=T.ReactCurrentBatchConfig,fo=0,et=null,pt=null,gt=null,Ya=!1,Ss=!1,xs=0,lw=0;function $t(){throw Error(o(321))}function Ic(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!bn(n[s],r[s]))return!1;return!0}function Oc(n,r,s,l,f,p){if(fo=p,et=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,qa.current=n===null||n.memoizedState===null?dw:pw,n=s(l,f),Ss){p=0;do{if(Ss=!1,xs=0,25<=p)throw Error(o(301));p+=1,gt=pt=null,r.updateQueue=null,qa.current=hw,n=s(l,f)}while(Ss)}if(qa.current=el,r=pt!==null&&pt.next!==null,fo=0,gt=pt=et=null,Ya=!1,r)throw Error(o(300));return n}function Ac(){var n=xs!==0;return xs=0,n}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?et.memoizedState=gt=n:gt=gt.next=n,gt}function pn(){if(pt===null){var n=et.alternate;n=n!==null?n.memoizedState:null}else n=pt.next;var r=gt===null?et.memoizedState:gt.next;if(r!==null)gt=r,pt=n;else{if(n===null)throw Error(o(310));pt=n,n={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},gt===null?et.memoizedState=gt=n:gt=gt.next=n}return gt}function ks(n,r){return typeof r=="function"?r(n):r}function Mc(n){var r=pn(),s=r.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var l=pt,f=l.baseQueue,p=s.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}l.baseQueue=f=p,s.pending=null}if(f!==null){p=f.next,l=l.baseState;var R=v=null,O=null,B=p;do{var ee=B.lane;if((fo&ee)===ee)O!==null&&(O=O.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),l=B.hasEagerState?B.eagerState:n(l,B.action);else{var ne={lane:ee,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};O===null?(R=O=ne,v=l):O=O.next=ne,et.lanes|=ee,po|=ee}B=B.next}while(B!==null&&B!==p);O===null?v=l:O.next=R,bn(l,r.memoizedState)||(Zt=!0),r.memoizedState=l,r.baseState=v,r.baseQueue=O,s.lastRenderedState=l}if(n=s.interleaved,n!==null){f=n;do p=f.lane,et.lanes|=p,po|=p,f=f.next;while(f!==n)}else f===null&&(s.lanes=0);return[r.memoizedState,s.dispatch]}function zc(n){var r=pn(),s=r.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var l=s.dispatch,f=s.pending,p=r.memoizedState;if(f!==null){s.pending=null;var v=f=f.next;do p=n(p,v.action),v=v.next;while(v!==f);bn(p,r.memoizedState)||(Zt=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),s.lastRenderedState=p}return[p,l]}function zh(){}function Lh(n,r){var s=et,l=pn(),f=r(),p=!bn(l.memoizedState,f);if(p&&(l.memoizedState=f,Zt=!0),l=l.queue,Lc(Fh.bind(null,s,l,n),[n]),l.getSnapshot!==r||p||gt!==null&>.memoizedState.tag&1){if(s.flags|=2048,Cs(9,Dh.bind(null,s,l,f,r),void 0,null),yt===null)throw Error(o(349));(fo&30)!==0||Nh(s,r,f)}return f}function Nh(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=et.updateQueue,r===null?(r={lastEffect:null,stores:null},et.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function Dh(n,r,s,l){r.value=s,r.getSnapshot=l,jh(r)&&Bh(n)}function Fh(n,r,s){return s(function(){jh(r)&&Bh(n)})}function jh(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!bn(n,s)}catch{return!0}}function Bh(n){var r=ir(n,1);r!==null&&$n(r,n,1,-1)}function Uh(n){var r=jn();return typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:n},r.queue=n,n=n.dispatch=fw.bind(null,et,n),[r.memoizedState,n]}function Cs(n,r,s,l){return n={tag:n,create:r,destroy:s,deps:l,next:null},r=et.updateQueue,r===null?(r={lastEffect:null,stores:null},et.updateQueue=r,r.lastEffect=n.next=n):(s=r.lastEffect,s===null?r.lastEffect=n.next=n:(l=s.next,s.next=n,n.next=l,r.lastEffect=n)),n}function Wh(){return pn().memoizedState}function Xa(n,r,s,l){var f=jn();et.flags|=n,f.memoizedState=Cs(1|r,s,void 0,l===void 0?null:l)}function Ja(n,r,s,l){var f=pn();l=l===void 0?null:l;var p=void 0;if(pt!==null){var v=pt.memoizedState;if(p=v.destroy,l!==null&&Ic(l,v.deps)){f.memoizedState=Cs(r,s,p,l);return}}et.flags|=n,f.memoizedState=Cs(1|r,s,p,l)}function Vh(n,r){return Xa(8390656,8,n,r)}function Lc(n,r){return Ja(2048,8,n,r)}function Zh(n,r){return Ja(4,2,n,r)}function Hh(n,r){return Ja(4,4,n,r)}function Qh(n,r){if(typeof r=="function")return n=n(),r(n),function(){r(null)};if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Kh(n,r,s){return s=s!=null?s.concat([n]):null,Ja(4,4,Qh.bind(null,r,n),s)}function Nc(){}function Gh(n,r){var s=pn();r=r===void 0?null:r;var l=s.memoizedState;return l!==null&&r!==null&&Ic(r,l[1])?l[0]:(s.memoizedState=[n,r],n)}function qh(n,r){var s=pn();r=r===void 0?null:r;var l=s.memoizedState;return l!==null&&r!==null&&Ic(r,l[1])?l[0]:(n=n(),s.memoizedState=[n,r],n)}function Yh(n,r,s){return(fo&21)===0?(n.baseState&&(n.baseState=!1,Zt=!0),n.memoizedState=s):(bn(s,r)||(s=_p(),et.lanes|=s,po|=s,n.baseState=!0),r)}function uw(n,r){var s=De;De=s!==0&&4>s?s:4,n(!0);var l=$c.transition;$c.transition={};try{n(!1),r()}finally{De=s,$c.transition=l}}function Xh(){return pn().memoizedState}function cw(n,r,s){var l=Dr(n);if(s={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null},Jh(n))em(r,s);else if(s=$h(n,r,s,l),s!==null){var f=Lt();$n(s,n,l,f),tm(s,r,l)}}function fw(n,r,s){var l=Dr(n),f={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(Jh(n))em(r,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var v=r.lastRenderedState,R=p(v,s);if(f.hasEagerState=!0,f.eagerState=R,bn(R,v)){var O=r.interleaved;O===null?(f.next=f,Ec(r)):(f.next=O.next,O.next=f),r.interleaved=f;return}}catch{}finally{}s=$h(n,r,f,l),s!==null&&(f=Lt(),$n(s,n,l,f),tm(s,r,l))}}function Jh(n){var r=n.alternate;return n===et||r!==null&&r===et}function em(n,r){Ss=Ya=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function tm(n,r,s){if((s&4194240)!==0){var l=r.lanes;l&=n.pendingLanes,s|=l,r.lanes=s,Fu(n,s)}}var el={readContext:dn,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},dw={readContext:dn,useCallback:function(n,r){return jn().memoizedState=[n,r===void 0?null:r],n},useContext:dn,useEffect:Vh,useImperativeHandle:function(n,r,s){return s=s!=null?s.concat([n]):null,Xa(4194308,4,Qh.bind(null,r,n),s)},useLayoutEffect:function(n,r){return Xa(4194308,4,n,r)},useInsertionEffect:function(n,r){return Xa(4,2,n,r)},useMemo:function(n,r){var s=jn();return r=r===void 0?null:r,n=n(),s.memoizedState=[n,r],n},useReducer:function(n,r,s){var l=jn();return r=s!==void 0?s(r):r,l.memoizedState=l.baseState=r,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},l.queue=n,n=n.dispatch=cw.bind(null,et,n),[l.memoizedState,n]},useRef:function(n){var r=jn();return n={current:n},r.memoizedState=n},useState:Uh,useDebugValue:Nc,useDeferredValue:function(n){return jn().memoizedState=n},useTransition:function(){var n=Uh(!1),r=n[0];return n=uw.bind(null,n[1]),jn().memoizedState=n,[r,n]},useMutableSource:function(){},useSyncExternalStore:function(n,r,s){var l=et,f=jn();if(Ge){if(s===void 0)throw Error(o(407));s=s()}else{if(s=r(),yt===null)throw Error(o(349));(fo&30)!==0||Nh(l,r,s)}f.memoizedState=s;var p={value:s,getSnapshot:r};return f.queue=p,Vh(Fh.bind(null,l,p,n),[n]),l.flags|=2048,Cs(9,Dh.bind(null,l,p,s,r),void 0,null),s},useId:function(){var n=jn(),r=yt.identifierPrefix;if(Ge){var s=or,l=rr;s=(l&~(1<<32-En(l)-1)).toString(32)+s,r=":"+r+"R"+s,s=xs++,0<s&&(r+="H"+s.toString(32)),r+=":"}else s=lw++,r=":"+r+"r"+s.toString(32)+":";return n.memoizedState=r},unstable_isNewReconciler:!1},pw={readContext:dn,useCallback:Gh,useContext:dn,useEffect:Lc,useImperativeHandle:Kh,useInsertionEffect:Zh,useLayoutEffect:Hh,useMemo:qh,useReducer:Mc,useRef:Wh,useState:function(){return Mc(ks)},useDebugValue:Nc,useDeferredValue:function(n){var r=pn();return Yh(r,pt.memoizedState,n)},useTransition:function(){var n=Mc(ks)[0],r=pn().memoizedState;return[n,r]},useMutableSource:zh,useSyncExternalStore:Lh,useId:Xh,unstable_isNewReconciler:!1},hw={readContext:dn,useCallback:Gh,useContext:dn,useEffect:Lc,useImperativeHandle:Kh,useInsertionEffect:Zh,useLayoutEffect:Hh,useMemo:qh,useReducer:zc,useRef:Wh,useState:function(){return zc(ks)},useDebugValue:Nc,useDeferredValue:function(n){var r=pn();return pt===null?r.memoizedState=n:Yh(r,pt.memoizedState,n)},useTransition:function(){var n=zc(ks)[0],r=pn().memoizedState;return[n,r]},useMutableSource:zh,useSyncExternalStore:Lh,useId:Xh,unstable_isNewReconciler:!1};function _n(n,r){if(n&&n.defaultProps){r=K({},r),n=n.defaultProps;for(var s in n)r[s]===void 0&&(r[s]=n[s]);return r}return r}function Dc(n,r,s,l){r=n.memoizedState,s=s(l,r),s=s==null?r:K({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var tl={isMounted:function(n){return(n=n._reactInternals)?oo(n)===n:!1},enqueueSetState:function(n,r,s){n=n._reactInternals;var l=Lt(),f=Dr(n),p=sr(l,f);p.payload=r,s!=null&&(p.callback=s),r=Mr(n,p,f),r!==null&&($n(r,n,f,l),Qa(r,n,f))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var l=Lt(),f=Dr(n),p=sr(l,f);p.tag=1,p.payload=r,s!=null&&(p.callback=s),r=Mr(n,p,f),r!==null&&($n(r,n,f,l),Qa(r,n,f))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=Lt(),l=Dr(n),f=sr(s,l);f.tag=2,r!=null&&(f.callback=r),r=Mr(n,f,l),r!==null&&($n(r,n,l,s),Qa(r,n,l))}};function nm(n,r,s,l,f,p,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,p,v):r.prototype&&r.prototype.isPureReactComponent?!us(s,l)||!us(f,p):!0}function rm(n,r,s){var l=!1,f=Ir,p=r.contextType;return typeof p=="object"&&p!==null?p=dn(p):(f=Vt(r)?so:Tt.current,l=r.contextTypes,p=(l=l!=null)?Xo(n,f):Ir),r=new r(s,p),n.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=tl,n.stateNode=r,r._reactInternals=n,l&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=p),r}function om(n,r,s,l){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,l),r.state!==n&&tl.enqueueReplaceState(r,r.state,null)}function Fc(n,r,s,l){var f=n.stateNode;f.props=s,f.state=n.memoizedState,f.refs={},bc(n);var p=r.contextType;typeof p=="object"&&p!==null?f.context=dn(p):(p=Vt(r)?so:Tt.current,f.context=Xo(n,p)),f.state=n.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Dc(n,r,p,s),f.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&tl.enqueueReplaceState(f,f.state,null),Ka(n,s,f,l),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function si(n,r){try{var s="",l=r;do s+=de(l),l=l.return;while(l);var f=s}catch(p){f=`
|
|
46
|
+
Error generating stack: `+p.message+`
|
|
47
|
+
`+p.stack}return{value:n,source:r,stack:f,digest:null}}function jc(n,r,s){return{value:n,source:null,stack:s??null,digest:r??null}}function Bc(n,r){try{console.error(r.value)}catch(s){setTimeout(function(){throw s})}}var mw=typeof WeakMap=="function"?WeakMap:Map;function im(n,r,s){s=sr(-1,s),s.tag=3,s.payload={element:null};var l=r.value;return s.callback=function(){ll||(ll=!0,nf=l),Bc(n,r)},s}function sm(n,r,s){s=sr(-1,s),s.tag=3;var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var f=r.value;s.payload=function(){return l(f)},s.callback=function(){Bc(n,r)}}var p=n.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(s.callback=function(){Bc(n,r),typeof l!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})}),s}function am(n,r,s){var l=n.pingCache;if(l===null){l=n.pingCache=new mw;var f=new Set;l.set(r,f)}else f=l.get(r),f===void 0&&(f=new Set,l.set(r,f));f.has(s)||(f.add(s),n=Tw.bind(null,n,r,s),r.then(n,n))}function lm(n){do{var r;if((r=n.tag===13)&&(r=n.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return n;n=n.return}while(n!==null);return null}function um(n,r,s,l,f){return(n.mode&1)===0?(n===r?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(r=sr(-1,1),r.tag=2,Mr(s,r,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var gw=T.ReactCurrentOwner,Zt=!1;function zt(n,r,s,l){r.child=n===null?Th(r,null,s,l):ni(r,n.child,s,l)}function cm(n,r,s,l,f){s=s.render;var p=r.ref;return oi(r,f),l=Oc(n,r,s,l,p,f),s=Ac(),n!==null&&!Zt?(r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~f,ar(n,r,f)):(Ge&&s&&mc(r),r.flags|=1,zt(n,r,l,f),r.child)}function fm(n,r,s,l,f){if(n===null){var p=s.type;return typeof p=="function"&&!cf(p)&&p.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(r.tag=15,r.type=p,dm(n,r,p,l,f)):(n=hl(s.type,null,l,r,r.mode,f),n.ref=r.ref,n.return=r,r.child=n)}if(p=n.child,(n.lanes&f)===0){var v=p.memoizedProps;if(s=s.compare,s=s!==null?s:us,s(v,l)&&n.ref===r.ref)return ar(n,r,f)}return r.flags|=1,n=jr(p,l),n.ref=r.ref,n.return=r,r.child=n}function dm(n,r,s,l,f){if(n!==null){var p=n.memoizedProps;if(us(p,l)&&n.ref===r.ref)if(Zt=!1,r.pendingProps=l=p,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Zt=!0);else return r.lanes=n.lanes,ar(n,r,f)}return Uc(n,r,s,l,f)}function pm(n,r,s){var l=r.pendingProps,f=l.children,p=n!==null?n.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(li,on),on|=s;else{if((s&1073741824)===0)return n=p!==null?p.baseLanes|s:s,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:n,cachePool:null,transitions:null},r.updateQueue=null,Ze(li,on),on|=n,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=p!==null?p.baseLanes:s,Ze(li,on),on|=l}else p!==null?(l=p.baseLanes|s,r.memoizedState=null):l=s,Ze(li,on),on|=l;return zt(n,r,f,s),r.child}function hm(n,r){var s=r.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(r.flags|=512,r.flags|=2097152)}function Uc(n,r,s,l,f){var p=Vt(s)?so:Tt.current;return p=Xo(r,p),oi(r,f),s=Oc(n,r,s,l,p,f),l=Ac(),n!==null&&!Zt?(r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~f,ar(n,r,f)):(Ge&&l&&mc(r),r.flags|=1,zt(n,r,s,f),r.child)}function mm(n,r,s,l,f){if(Vt(s)){var p=!0;Fa(r)}else p=!1;if(oi(r,f),r.stateNode===null)rl(n,r),rm(r,s,l),Fc(r,s,l,f),l=!0;else if(n===null){var v=r.stateNode,R=r.memoizedProps;v.props=R;var O=v.context,B=s.contextType;typeof B=="object"&&B!==null?B=dn(B):(B=Vt(s)?so:Tt.current,B=Xo(r,B));var ee=s.getDerivedStateFromProps,ne=typeof ee=="function"||typeof v.getSnapshotBeforeUpdate=="function";ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==l||O!==B)&&om(r,v,l,B),Ar=!1;var X=r.memoizedState;v.state=X,Ka(r,l,v,f),O=r.memoizedState,R!==l||X!==O||Wt.current||Ar?(typeof ee=="function"&&(Dc(r,s,ee,l),O=r.memoizedState),(R=Ar||nm(r,s,R,l,X,O,B))?(ne||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=O),v.props=l,v.state=O,v.context=B,l=R):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{v=r.stateNode,Ih(n,r),R=r.memoizedProps,B=r.type===r.elementType?R:_n(r.type,R),v.props=B,ne=r.pendingProps,X=v.context,O=s.contextType,typeof O=="object"&&O!==null?O=dn(O):(O=Vt(s)?so:Tt.current,O=Xo(r,O));var ue=s.getDerivedStateFromProps;(ee=typeof ue=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==ne||X!==O)&&om(r,v,l,O),Ar=!1,X=r.memoizedState,v.state=X,Ka(r,l,v,f);var pe=r.memoizedState;R!==ne||X!==pe||Wt.current||Ar?(typeof ue=="function"&&(Dc(r,s,ue,l),pe=r.memoizedState),(B=Ar||nm(r,s,B,l,X,pe,O)||!1)?(ee||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(l,pe,O),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(l,pe,O)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||R===n.memoizedProps&&X===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&X===n.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=pe),v.props=l,v.state=pe,v.context=O,l=B):(typeof v.componentDidUpdate!="function"||R===n.memoizedProps&&X===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&X===n.memoizedState||(r.flags|=1024),l=!1)}return Wc(n,r,s,l,p,f)}function Wc(n,r,s,l,f,p){hm(n,r);var v=(r.flags&128)!==0;if(!l&&!v)return f&&Sh(r,s,!1),ar(n,r,p);l=r.stateNode,gw.current=r;var R=v&&typeof s.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,n!==null&&v?(r.child=ni(r,n.child,null,p),r.child=ni(r,null,R,p)):zt(n,r,R,p),r.memoizedState=l.state,f&&Sh(r,s,!0),r.child}function gm(n){var r=n.stateNode;r.pendingContext?vh(n,r.pendingContext,r.pendingContext!==r.context):r.context&&vh(n,r.context,!1),Rc(n,r.containerInfo)}function ym(n,r,s,l,f){return ti(),wc(f),r.flags|=256,zt(n,r,s,l),r.child}var Vc={dehydrated:null,treeContext:null,retryLane:0};function Zc(n){return{baseLanes:n,cachePool:null,transitions:null}}function vm(n,r,s){var l=r.pendingProps,f=Je.current,p=!1,v=(r.flags&128)!==0,R;if((R=v)||(R=n!==null&&n.memoizedState===null?!1:(f&2)!==0),R?(p=!0,r.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),Ze(Je,f&1),n===null)return vc(r),n=r.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((r.mode&1)===0?r.lanes=1:n.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(v=l.children,n=l.fallback,p?(l=r.mode,p=r.child,v={mode:"hidden",children:v},(l&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=v):p=ml(v,l,0,null),n=yo(n,l,s,null),p.return=r,n.return=r,p.sibling=n,r.child=p,r.child.memoizedState=Zc(s),r.memoizedState=Vc,n):Hc(r,v));if(f=n.memoizedState,f!==null&&(R=f.dehydrated,R!==null))return yw(n,r,v,l,R,f,s);if(p){p=l.fallback,v=r.mode,f=n.child,R=f.sibling;var O={mode:"hidden",children:l.children};return(v&1)===0&&r.child!==f?(l=r.child,l.childLanes=0,l.pendingProps=O,r.deletions=null):(l=jr(f,O),l.subtreeFlags=f.subtreeFlags&14680064),R!==null?p=jr(R,p):(p=yo(p,v,s,null),p.flags|=2),p.return=r,l.return=r,l.sibling=p,r.child=l,l=p,p=r.child,v=n.child.memoizedState,v=v===null?Zc(s):{baseLanes:v.baseLanes|s,cachePool:null,transitions:v.transitions},p.memoizedState=v,p.childLanes=n.childLanes&~s,r.memoizedState=Vc,l}return p=n.child,n=p.sibling,l=jr(p,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=s),l.return=r,l.sibling=null,n!==null&&(s=r.deletions,s===null?(r.deletions=[n],r.flags|=16):s.push(n)),r.child=l,r.memoizedState=null,l}function Hc(n,r){return r=ml({mode:"visible",children:r},n.mode,0,null),r.return=n,n.child=r}function nl(n,r,s,l){return l!==null&&wc(l),ni(r,n.child,null,s),n=Hc(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function yw(n,r,s,l,f,p,v){if(s)return r.flags&256?(r.flags&=-257,l=jc(Error(o(422))),nl(n,r,v,l)):r.memoizedState!==null?(r.child=n.child,r.flags|=128,null):(p=l.fallback,f=r.mode,l=ml({mode:"visible",children:l.children},f,0,null),p=yo(p,f,v,null),p.flags|=2,l.return=r,p.return=r,l.sibling=p,r.child=l,(r.mode&1)!==0&&ni(r,n.child,null,v),r.child.memoizedState=Zc(v),r.memoizedState=Vc,p);if((r.mode&1)===0)return nl(n,r,v,null);if(f.data==="$!"){if(l=f.nextSibling&&f.nextSibling.dataset,l)var R=l.dgst;return l=R,p=Error(o(419)),l=jc(p,l,void 0),nl(n,r,v,l)}if(R=(v&n.childLanes)!==0,Zt||R){if(l=yt,l!==null){switch(v&-v){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(l.suspendedLanes|v))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,ir(n,f),$n(l,n,f,-1))}return uf(),l=jc(Error(o(421))),nl(n,r,v,l)}return f.data==="$?"?(r.flags|=128,r.child=n.child,r=$w.bind(null,n),f._reactRetry=r,null):(n=p.treeContext,rn=Tr(f.nextSibling),nn=r,Ge=!0,Rn=null,n!==null&&(cn[fn++]=rr,cn[fn++]=or,cn[fn++]=ao,rr=n.id,or=n.overflow,ao=r),r=Hc(r,l.children),r.flags|=4096,r)}function wm(n,r,s){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r),Cc(n.return,r,s)}function Qc(n,r,s,l,f){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:f}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=s,p.tailMode=f)}function Sm(n,r,s){var l=r.pendingProps,f=l.revealOrder,p=l.tail;if(zt(n,r,l.children,s),l=Je.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&wm(n,s,r);else if(n.tag===19)wm(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}if(Ze(Je,l),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(s=r.child,f=null;s!==null;)n=s.alternate,n!==null&&Ga(n)===null&&(f=s),s=s.sibling;s=f,s===null?(f=r.child,r.child=null):(f=s.sibling,s.sibling=null),Qc(r,!1,f,s,p);break;case"backwards":for(s=null,f=r.child,r.child=null;f!==null;){if(n=f.alternate,n!==null&&Ga(n)===null){r.child=f;break}n=f.sibling,f.sibling=s,s=f,f=n}Qc(r,!0,s,null,p);break;case"together":Qc(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function rl(n,r){(r.mode&1)===0&&n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2)}function ar(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),po|=r.lanes,(s&r.childLanes)===0)return null;if(n!==null&&r.child!==n.child)throw Error(o(153));if(r.child!==null){for(n=r.child,s=jr(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=jr(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function vw(n,r,s){switch(r.tag){case 3:gm(r),ti();break;case 5:Mh(r);break;case 1:Vt(r.type)&&Fa(r);break;case 4:Rc(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,f=r.memoizedProps.value;Ze(Za,l._currentValue),l._currentValue=f;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?(Ze(Je,Je.current&1),r.flags|=128,null):(s&r.child.childLanes)!==0?vm(n,r,s):(Ze(Je,Je.current&1),n=ar(n,r,s),n!==null?n.sibling:null);Ze(Je,Je.current&1);break;case 19:if(l=(s&r.childLanes)!==0,(n.flags&128)!==0){if(l)return Sm(n,r,s);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ze(Je,Je.current),l)break;return null;case 22:case 23:return r.lanes=0,pm(n,r,s)}return ar(n,r,s)}var xm,Kc,km,Cm;xm=function(n,r){for(var s=r.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Kc=function(){},km=function(n,r,s,l){var f=n.memoizedProps;if(f!==l){n=r.stateNode,co(Fn.current);var p=null;switch(s){case"input":f=kn(n,f),l=kn(n,l),p=[];break;case"select":f=K({},f,{value:void 0}),l=K({},l,{value:void 0}),p=[];break;case"textarea":f=xe(n,f),l=xe(n,l),p=[];break;default:typeof f.onClick!="function"&&typeof l.onClick=="function"&&(n.onclick=La)}Pu(s,l);var v;s=null;for(B in f)if(!l.hasOwnProperty(B)&&f.hasOwnProperty(B)&&f[B]!=null)if(B==="style"){var R=f[B];for(v in R)R.hasOwnProperty(v)&&(s||(s={}),s[v]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(a.hasOwnProperty(B)?p||(p=[]):(p=p||[]).push(B,null));for(B in l){var O=l[B];if(R=f!=null?f[B]:void 0,l.hasOwnProperty(B)&&O!==R&&(O!=null||R!=null))if(B==="style")if(R){for(v in R)!R.hasOwnProperty(v)||O&&O.hasOwnProperty(v)||(s||(s={}),s[v]="");for(v in O)O.hasOwnProperty(v)&&R[v]!==O[v]&&(s||(s={}),s[v]=O[v])}else s||(p||(p=[]),p.push(B,s)),s=O;else B==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,R=R?R.__html:void 0,O!=null&&R!==O&&(p=p||[]).push(B,O)):B==="children"?typeof O!="string"&&typeof O!="number"||(p=p||[]).push(B,""+O):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(a.hasOwnProperty(B)?(O!=null&&B==="onScroll"&&Qe("scroll",n),p||R===O||(p=[])):(p=p||[]).push(B,O))}s&&(p=p||[]).push("style",s);var B=p;(r.updateQueue=B)&&(r.flags|=4)}},Cm=function(n,r,s,l){s!==l&&(r.flags|=4)};function Es(n,r){if(!Ge)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function It(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,l=0;if(r)for(var f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags&14680064,l|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=s,r}function ww(n,r,s){var l=r.pendingProps;switch(gc(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(r),null;case 1:return Vt(r.type)&&Da(),It(r),null;case 3:return l=r.stateNode,ii(),Ke(Wt),Ke(Tt),Tc(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Wa(r)?r.flags|=4:n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Rn!==null&&(sf(Rn),Rn=null))),Kc(n,r),It(r),null;case 5:_c(r);var f=co(ws.current);if(s=r.type,n!==null&&r.stateNode!=null)km(n,r,s,l,f),n.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(o(166));return It(r),null}if(n=co(Fn.current),Wa(r)){l=r.stateNode,s=r.type;var p=r.memoizedProps;switch(l[Dn]=r,l[hs]=p,n=(r.mode&1)!==0,s){case"dialog":Qe("cancel",l),Qe("close",l);break;case"iframe":case"object":case"embed":Qe("load",l);break;case"video":case"audio":for(f=0;f<fs.length;f++)Qe(fs[f],l);break;case"source":Qe("error",l);break;case"img":case"image":case"link":Qe("error",l),Qe("load",l);break;case"details":Qe("toggle",l);break;case"input":no(l,p),Qe("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!p.multiple},Qe("invalid",l);break;case"textarea":ha(l,p),Qe("invalid",l)}Pu(s,p),f=null;for(var v in p)if(p.hasOwnProperty(v)){var R=p[v];v==="children"?typeof R=="string"?l.textContent!==R&&(p.suppressHydrationWarning!==!0&&za(l.textContent,R,n),f=["children",R]):typeof R=="number"&&l.textContent!==""+R&&(p.suppressHydrationWarning!==!0&&za(l.textContent,R,n),f=["children",""+R]):a.hasOwnProperty(v)&&R!=null&&v==="onScroll"&&Qe("scroll",l)}switch(s){case"input":Ne(l),un(l,p,!0);break;case"textarea":Ne(l),Zi(l);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(l.onclick=La)}l=f,r.updateQueue=l,l!==null&&(r.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Hi(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=v.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof l.is=="string"?n=v.createElement(s,{is:l.is}):(n=v.createElement(s),s==="select"&&(v=n,l.multiple?v.multiple=!0:l.size&&(v.size=l.size))):n=v.createElementNS(n,s),n[Dn]=r,n[hs]=l,xm(n,r,!1,!1),r.stateNode=n;e:{switch(v=Tu(s,l),s){case"dialog":Qe("cancel",n),Qe("close",n),f=l;break;case"iframe":case"object":case"embed":Qe("load",n),f=l;break;case"video":case"audio":for(f=0;f<fs.length;f++)Qe(fs[f],n);f=l;break;case"source":Qe("error",n),f=l;break;case"img":case"image":case"link":Qe("error",n),Qe("load",n),f=l;break;case"details":Qe("toggle",n),f=l;break;case"input":no(n,l),f=kn(n,l),Qe("invalid",n);break;case"option":f=l;break;case"select":n._wrapperState={wasMultiple:!!l.multiple},f=K({},l,{value:void 0}),Qe("invalid",n);break;case"textarea":ha(n,l),f=xe(n,l),Qe("invalid",n);break;default:f=l}Pu(s,f),R=f;for(p in R)if(R.hasOwnProperty(p)){var O=R[p];p==="style"?Ut(n,O):p==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&Qi(n,O)):p==="children"?typeof O=="string"?(s!=="textarea"||O!=="")&&ct(n,O):typeof O=="number"&&ct(n,""+O):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?O!=null&&p==="onScroll"&&Qe("scroll",n):O!=null&&$(n,p,O,v))}switch(s){case"input":Ne(n),un(n,l,!1);break;case"textarea":Ne(n),Zi(n);break;case"option":l.value!=null&&n.setAttribute("value",""+Ce(l.value));break;case"select":n.multiple=!!l.multiple,p=l.value,p!=null?Bt(n,!!l.multiple,p,!1):l.defaultValue!=null&&Bt(n,!!l.multiple,l.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=La)}switch(s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return It(r),null;case 6:if(n&&r.stateNode!=null)Cm(n,r,n.memoizedProps,l);else{if(typeof l!="string"&&r.stateNode===null)throw Error(o(166));if(s=co(ws.current),co(Fn.current),Wa(r)){if(l=r.stateNode,s=r.memoizedProps,l[Dn]=r,(p=l.nodeValue!==s)&&(n=nn,n!==null))switch(n.tag){case 3:za(l.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&za(l.nodeValue,s,(n.mode&1)!==0)}p&&(r.flags|=4)}else l=(s.nodeType===9?s:s.ownerDocument).createTextNode(l),l[Dn]=r,r.stateNode=l}return It(r),null;case 13:if(Ke(Je),l=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ge&&rn!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Rh(),ti(),r.flags|=98560,p=!1;else if(p=Wa(r),l!==null&&l.dehydrated!==null){if(n===null){if(!p)throw Error(o(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[Dn]=r}else ti(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;It(r),p=!1}else Rn!==null&&(sf(Rn),Rn=null),p=!0;if(!p)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=s,r):(l=l!==null,l!==(n!==null&&n.memoizedState!==null)&&l&&(r.child.flags|=8192,(r.mode&1)!==0&&(n===null||(Je.current&1)!==0?ht===0&&(ht=3):uf())),r.updateQueue!==null&&(r.flags|=4),It(r),null);case 4:return ii(),Kc(n,r),n===null&&ds(r.stateNode.containerInfo),It(r),null;case 10:return kc(r.type._context),It(r),null;case 17:return Vt(r.type)&&Da(),It(r),null;case 19:if(Ke(Je),p=r.memoizedState,p===null)return It(r),null;if(l=(r.flags&128)!==0,v=p.rendering,v===null)if(l)Es(p,!1);else{if(ht!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Ga(n),v!==null){for(r.flags|=128,Es(p,!1),l=v.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),r.subtreeFlags=0,l=s,s=r.child;s!==null;)p=s,n=l,p.flags&=14680066,v=p.alternate,v===null?(p.childLanes=0,p.lanes=n,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=v.childLanes,p.lanes=v.lanes,p.child=v.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=v.memoizedProps,p.memoizedState=v.memoizedState,p.updateQueue=v.updateQueue,p.type=v.type,n=v.dependencies,p.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return Ze(Je,Je.current&1|2),r.child}n=n.sibling}p.tail!==null&&at()>ui&&(r.flags|=128,l=!0,Es(p,!1),r.lanes=4194304)}else{if(!l)if(n=Ga(v),n!==null){if(r.flags|=128,l=!0,s=n.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),Es(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Ge)return It(r),null}else 2*at()-p.renderingStartTime>ui&&s!==1073741824&&(r.flags|=128,l=!0,Es(p,!1),r.lanes=4194304);p.isBackwards?(v.sibling=r.child,r.child=v):(s=p.last,s!==null?s.sibling=v:r.child=v,p.last=v)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=at(),r.sibling=null,s=Je.current,Ze(Je,l?s&1|2:s&1),r):(It(r),null);case 22:case 23:return lf(),l=r.memoizedState!==null,n!==null&&n.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(on&1073741824)!==0&&(It(r),r.subtreeFlags&6&&(r.flags|=8192)):It(r),null;case 24:return null;case 25:return null}throw Error(o(156,r.tag))}function Sw(n,r){switch(gc(r),r.tag){case 1:return Vt(r.type)&&Da(),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return ii(),Ke(Wt),Ke(Tt),Tc(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 5:return _c(r),null;case 13:if(Ke(Je),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(o(340));ti()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return Ke(Je),null;case 4:return ii(),null;case 10:return kc(r.type._context),null;case 22:case 23:return lf(),null;case 24:return null;default:return null}}var ol=!1,Ot=!1,xw=typeof WeakSet=="function"?WeakSet:Set,ce=null;function ai(n,r){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(l){rt(n,r,l)}else s.current=null}function Gc(n,r,s){try{s()}catch(l){rt(n,r,l)}}var Em=!1;function kw(n,r){if(ac=Ea,n=nh(),Ju(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var f=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var v=0,R=-1,O=-1,B=0,ee=0,ne=n,X=null;t:for(;;){for(var ue;ne!==s||f!==0&&ne.nodeType!==3||(R=v+f),ne!==p||l!==0&&ne.nodeType!==3||(O=v+l),ne.nodeType===3&&(v+=ne.nodeValue.length),(ue=ne.firstChild)!==null;)X=ne,ne=ue;for(;;){if(ne===n)break t;if(X===s&&++B===f&&(R=v),X===p&&++ee===l&&(O=v),(ue=ne.nextSibling)!==null)break;ne=X,X=ne.parentNode}ne=ue}s=R===-1||O===-1?null:{start:R,end:O}}else s=null}s=s||{start:0,end:0}}else s=null;for(lc={focusedElem:n,selectionRange:s},Ea=!1,ce=r;ce!==null;)if(r=ce,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,ce=n;else for(;ce!==null;){r=ce;try{var pe=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,lt=pe.memoizedState,N=r.stateNode,M=N.getSnapshotBeforeUpdate(r.elementType===r.type?he:_n(r.type,he),lt);N.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var D=r.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ie){rt(r,r.return,ie)}if(n=r.sibling,n!==null){n.return=r.return,ce=n;break}ce=r.return}return pe=Em,Em=!1,pe}function bs(n,r,s){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var f=l=l.next;do{if((f.tag&n)===n){var p=f.destroy;f.destroy=void 0,p!==void 0&&Gc(r,s,p)}f=f.next}while(f!==l)}}function il(n,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&n)===n){var l=s.create;s.destroy=l()}s=s.next}while(s!==r)}}function qc(n){var r=n.ref;if(r!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof r=="function"?r(n):r.current=n}}function bm(n){var r=n.alternate;r!==null&&(n.alternate=null,bm(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&(delete r[Dn],delete r[hs],delete r[dc],delete r[ow],delete r[iw])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Rm(n){return n.tag===5||n.tag===3||n.tag===4}function _m(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Yc(n,r,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?s.nodeType===8?s.parentNode.insertBefore(n,r):s.insertBefore(n,r):(s.nodeType===8?(r=s.parentNode,r.insertBefore(n,s)):(r=s,r.appendChild(n)),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=La));else if(l!==4&&(n=n.child,n!==null))for(Yc(n,r,s),n=n.sibling;n!==null;)Yc(n,r,s),n=n.sibling}function Xc(n,r,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(l!==4&&(n=n.child,n!==null))for(Xc(n,r,s),n=n.sibling;n!==null;)Xc(n,r,s),n=n.sibling}var Et=null,Pn=!1;function zr(n,r,s){for(s=s.child;s!==null;)Pm(n,r,s),s=s.sibling}function Pm(n,r,s){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(va,s)}catch{}switch(s.tag){case 5:Ot||ai(s,r);case 6:var l=Et,f=Pn;Et=null,zr(n,r,s),Et=l,Pn=f,Et!==null&&(Pn?(n=Et,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Et.removeChild(s.stateNode));break;case 18:Et!==null&&(Pn?(n=Et,s=s.stateNode,n.nodeType===8?fc(n.parentNode,s):n.nodeType===1&&fc(n,s),rs(n)):fc(Et,s.stateNode));break;case 4:l=Et,f=Pn,Et=s.stateNode.containerInfo,Pn=!0,zr(n,r,s),Et=l,Pn=f;break;case 0:case 11:case 14:case 15:if(!Ot&&(l=s.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){f=l=l.next;do{var p=f,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&Gc(s,r,v),f=f.next}while(f!==l)}zr(n,r,s);break;case 1:if(!Ot&&(ai(s,r),l=s.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=s.memoizedProps,l.state=s.memoizedState,l.componentWillUnmount()}catch(R){rt(s,r,R)}zr(n,r,s);break;case 21:zr(n,r,s);break;case 22:s.mode&1?(Ot=(l=Ot)||s.memoizedState!==null,zr(n,r,s),Ot=l):zr(n,r,s);break;default:zr(n,r,s)}}function Tm(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new xw),r.forEach(function(l){var f=Iw.bind(null,n,l);s.has(l)||(s.add(l),l.then(f,f))})}}function Tn(n,r){var s=r.deletions;if(s!==null)for(var l=0;l<s.length;l++){var f=s[l];try{var p=n,v=r,R=v;e:for(;R!==null;){switch(R.tag){case 5:Et=R.stateNode,Pn=!1;break e;case 3:Et=R.stateNode.containerInfo,Pn=!0;break e;case 4:Et=R.stateNode.containerInfo,Pn=!0;break e}R=R.return}if(Et===null)throw Error(o(160));Pm(p,v,f),Et=null,Pn=!1;var O=f.alternate;O!==null&&(O.return=null),f.return=null}catch(B){rt(f,r,B)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)$m(r,n),r=r.sibling}function $m(n,r){var s=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Tn(r,n),Bn(n),l&4){try{bs(3,n,n.return),il(3,n)}catch(he){rt(n,n.return,he)}try{bs(5,n,n.return)}catch(he){rt(n,n.return,he)}}break;case 1:Tn(r,n),Bn(n),l&512&&s!==null&&ai(s,s.return);break;case 5:if(Tn(r,n),Bn(n),l&512&&s!==null&&ai(s,s.return),n.flags&32){var f=n.stateNode;try{ct(f,"")}catch(he){rt(n,n.return,he)}}if(l&4&&(f=n.stateNode,f!=null)){var p=n.memoizedProps,v=s!==null?s.memoizedProps:p,R=n.type,O=n.updateQueue;if(n.updateQueue=null,O!==null)try{R==="input"&&p.type==="radio"&&p.name!=null&&Fo(f,p),Tu(R,v);var B=Tu(R,p);for(v=0;v<O.length;v+=2){var ee=O[v],ne=O[v+1];ee==="style"?Ut(f,ne):ee==="dangerouslySetInnerHTML"?Qi(f,ne):ee==="children"?ct(f,ne):$(f,ee,ne,B)}switch(R){case"input":Cn(f,p);break;case"textarea":Vi(f,p);break;case"select":var X=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var ue=p.value;ue!=null?Bt(f,!!p.multiple,ue,!1):X!==!!p.multiple&&(p.defaultValue!=null?Bt(f,!!p.multiple,p.defaultValue,!0):Bt(f,!!p.multiple,p.multiple?[]:"",!1))}f[hs]=p}catch(he){rt(n,n.return,he)}}break;case 6:if(Tn(r,n),Bn(n),l&4){if(n.stateNode===null)throw Error(o(162));f=n.stateNode,p=n.memoizedProps;try{f.nodeValue=p}catch(he){rt(n,n.return,he)}}break;case 3:if(Tn(r,n),Bn(n),l&4&&s!==null&&s.memoizedState.isDehydrated)try{rs(r.containerInfo)}catch(he){rt(n,n.return,he)}break;case 4:Tn(r,n),Bn(n);break;case 13:Tn(r,n),Bn(n),f=n.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(tf=at())),l&4&&Tm(n);break;case 22:if(ee=s!==null&&s.memoizedState!==null,n.mode&1?(Ot=(B=Ot)||ee,Tn(r,n),Ot=B):Tn(r,n),Bn(n),l&8192){if(B=n.memoizedState!==null,(n.stateNode.isHidden=B)&&!ee&&(n.mode&1)!==0)for(ce=n,ee=n.child;ee!==null;){for(ne=ce=ee;ce!==null;){switch(X=ce,ue=X.child,X.tag){case 0:case 11:case 14:case 15:bs(4,X,X.return);break;case 1:ai(X,X.return);var pe=X.stateNode;if(typeof pe.componentWillUnmount=="function"){l=X,s=X.return;try{r=l,pe.props=r.memoizedProps,pe.state=r.memoizedState,pe.componentWillUnmount()}catch(he){rt(l,s,he)}}break;case 5:ai(X,X.return);break;case 22:if(X.memoizedState!==null){Am(ne);continue}}ue!==null?(ue.return=X,ce=ue):Am(ne)}ee=ee.sibling}e:for(ee=null,ne=n;;){if(ne.tag===5){if(ee===null){ee=ne;try{f=ne.stateNode,B?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(R=ne.stateNode,O=ne.memoizedProps.style,v=O!=null&&O.hasOwnProperty("display")?O.display:null,R.style.display=en("display",v))}catch(he){rt(n,n.return,he)}}}else if(ne.tag===6){if(ee===null)try{ne.stateNode.nodeValue=B?"":ne.memoizedProps}catch(he){rt(n,n.return,he)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===n)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===n)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===n)break e;ee===ne&&(ee=null),ne=ne.return}ee===ne&&(ee=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:Tn(r,n),Bn(n),l&4&&Tm(n);break;case 21:break;default:Tn(r,n),Bn(n)}}function Bn(n){var r=n.flags;if(r&2){try{e:{for(var s=n.return;s!==null;){if(Rm(s)){var l=s;break e}s=s.return}throw Error(o(160))}switch(l.tag){case 5:var f=l.stateNode;l.flags&32&&(ct(f,""),l.flags&=-33);var p=_m(n);Xc(n,p,f);break;case 3:case 4:var v=l.stateNode.containerInfo,R=_m(n);Yc(n,R,v);break;default:throw Error(o(161))}}catch(O){rt(n,n.return,O)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Cw(n,r,s){ce=n,Im(n)}function Im(n,r,s){for(var l=(n.mode&1)!==0;ce!==null;){var f=ce,p=f.child;if(f.tag===22&&l){var v=f.memoizedState!==null||ol;if(!v){var R=f.alternate,O=R!==null&&R.memoizedState!==null||Ot;R=ol;var B=Ot;if(ol=v,(Ot=O)&&!B)for(ce=f;ce!==null;)v=ce,O=v.child,v.tag===22&&v.memoizedState!==null?Mm(f):O!==null?(O.return=v,ce=O):Mm(f);for(;p!==null;)ce=p,Im(p),p=p.sibling;ce=f,ol=R,Ot=B}Om(n)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,ce=p):Om(n)}}function Om(n){for(;ce!==null;){var r=ce;if((r.flags&8772)!==0){var s=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:Ot||il(5,r);break;case 1:var l=r.stateNode;if(r.flags&4&&!Ot)if(s===null)l.componentDidMount();else{var f=r.elementType===r.type?s.memoizedProps:_n(r.type,s.memoizedProps);l.componentDidUpdate(f,s.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var p=r.updateQueue;p!==null&&Ah(r,p,l);break;case 3:var v=r.updateQueue;if(v!==null){if(s=null,r.child!==null)switch(r.child.tag){case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}Ah(r,v,s)}break;case 5:var R=r.stateNode;if(s===null&&r.flags&4){s=R;var O=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&s.focus();break;case"img":O.src&&(s.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var B=r.alternate;if(B!==null){var ee=B.memoizedState;if(ee!==null){var ne=ee.dehydrated;ne!==null&&rs(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ot||r.flags&512&&qc(r)}catch(X){rt(r,r.return,X)}}if(r===n){ce=null;break}if(s=r.sibling,s!==null){s.return=r.return,ce=s;break}ce=r.return}}function Am(n){for(;ce!==null;){var r=ce;if(r===n){ce=null;break}var s=r.sibling;if(s!==null){s.return=r.return,ce=s;break}ce=r.return}}function Mm(n){for(;ce!==null;){var r=ce;try{switch(r.tag){case 0:case 11:case 15:var s=r.return;try{il(4,r)}catch(O){rt(r,s,O)}break;case 1:var l=r.stateNode;if(typeof l.componentDidMount=="function"){var f=r.return;try{l.componentDidMount()}catch(O){rt(r,f,O)}}var p=r.return;try{qc(r)}catch(O){rt(r,p,O)}break;case 5:var v=r.return;try{qc(r)}catch(O){rt(r,v,O)}}}catch(O){rt(r,r.return,O)}if(r===n){ce=null;break}var R=r.sibling;if(R!==null){R.return=r.return,ce=R;break}ce=r.return}}var Ew=Math.ceil,sl=T.ReactCurrentDispatcher,Jc=T.ReactCurrentOwner,hn=T.ReactCurrentBatchConfig,Ie=0,yt=null,ft=null,bt=0,on=0,li=$r(0),ht=0,Rs=null,po=0,al=0,ef=0,_s=null,Ht=null,tf=0,ui=1/0,lr=null,ll=!1,nf=null,Lr=null,ul=!1,Nr=null,cl=0,Ps=0,rf=null,fl=-1,dl=0;function Lt(){return(Ie&6)!==0?at():fl!==-1?fl:fl=at()}function Dr(n){return(n.mode&1)===0?1:(Ie&2)!==0&&bt!==0?bt&-bt:aw.transition!==null?(dl===0&&(dl=_p()),dl):(n=De,n!==0||(n=window.event,n=n===void 0?16:Lp(n.type)),n)}function $n(n,r,s,l){if(50<Ps)throw Ps=0,rf=null,Error(o(185));Xi(n,s,l),((Ie&2)===0||n!==yt)&&(n===yt&&((Ie&2)===0&&(al|=s),ht===4&&Fr(n,bt)),Qt(n,l),s===1&&Ie===0&&(r.mode&1)===0&&(ui=at()+500,ja&&Or()))}function Qt(n,r){var s=n.callbackNode;a1(n,r);var l=xa(n,n===yt?bt:0);if(l===0)s!==null&&Ep(s),n.callbackNode=null,n.callbackPriority=0;else if(r=l&-l,n.callbackPriority!==r){if(s!=null&&Ep(s),r===1)n.tag===0?sw(Lm.bind(null,n)):xh(Lm.bind(null,n)),nw(function(){(Ie&6)===0&&Or()}),s=null;else{switch(Pp(l)){case 1:s=Lu;break;case 4:s=bp;break;case 16:s=ya;break;case 536870912:s=Rp;break;default:s=ya}s=Vm(s,zm.bind(null,n))}n.callbackPriority=r,n.callbackNode=s}}function zm(n,r){if(fl=-1,dl=0,(Ie&6)!==0)throw Error(o(327));var s=n.callbackNode;if(ci()&&n.callbackNode!==s)return null;var l=xa(n,n===yt?bt:0);if(l===0)return null;if((l&30)!==0||(l&n.expiredLanes)!==0||r)r=pl(n,l);else{r=l;var f=Ie;Ie|=2;var p=Dm();(yt!==n||bt!==r)&&(lr=null,ui=at()+500,mo(n,r));do try{_w();break}catch(R){Nm(n,R)}while(!0);xc(),sl.current=p,Ie=f,ft!==null?r=0:(yt=null,bt=0,r=ht)}if(r!==0){if(r===2&&(f=Nu(n),f!==0&&(l=f,r=of(n,f))),r===1)throw s=Rs,mo(n,0),Fr(n,l),Qt(n,at()),s;if(r===6)Fr(n,l);else{if(f=n.current.alternate,(l&30)===0&&!bw(f)&&(r=pl(n,l),r===2&&(p=Nu(n),p!==0&&(l=p,r=of(n,p))),r===1))throw s=Rs,mo(n,0),Fr(n,l),Qt(n,at()),s;switch(n.finishedWork=f,n.finishedLanes=l,r){case 0:case 1:throw Error(o(345));case 2:go(n,Ht,lr);break;case 3:if(Fr(n,l),(l&130023424)===l&&(r=tf+500-at(),10<r)){if(xa(n,0)!==0)break;if(f=n.suspendedLanes,(f&l)!==l){Lt(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=cc(go.bind(null,n,Ht,lr),r);break}go(n,Ht,lr);break;case 4:if(Fr(n,l),(l&4194240)===l)break;for(r=n.eventTimes,f=-1;0<l;){var v=31-En(l);p=1<<v,v=r[v],v>f&&(f=v),l&=~p}if(l=f,l=at()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Ew(l/1960))-l,10<l){n.timeoutHandle=cc(go.bind(null,n,Ht,lr),l);break}go(n,Ht,lr);break;case 5:go(n,Ht,lr);break;default:throw Error(o(329))}}}return Qt(n,at()),n.callbackNode===s?zm.bind(null,n):null}function of(n,r){var s=_s;return n.current.memoizedState.isDehydrated&&(mo(n,r).flags|=256),n=pl(n,r),n!==2&&(r=Ht,Ht=s,r!==null&&sf(r)),n}function sf(n){Ht===null?Ht=n:Ht.push.apply(Ht,n)}function bw(n){for(var r=n;;){if(r.flags&16384){var s=r.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var l=0;l<s.length;l++){var f=s[l],p=f.getSnapshot;f=f.value;try{if(!bn(p(),f))return!1}catch{return!1}}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Fr(n,r){for(r&=~ef,r&=~al,n.suspendedLanes|=r,n.pingedLanes&=~r,n=n.expirationTimes;0<r;){var s=31-En(r),l=1<<s;n[s]=-1,r&=~l}}function Lm(n){if((Ie&6)!==0)throw Error(o(327));ci();var r=xa(n,0);if((r&1)===0)return Qt(n,at()),null;var s=pl(n,r);if(n.tag!==0&&s===2){var l=Nu(n);l!==0&&(r=l,s=of(n,l))}if(s===1)throw s=Rs,mo(n,0),Fr(n,r),Qt(n,at()),s;if(s===6)throw Error(o(345));return n.finishedWork=n.current.alternate,n.finishedLanes=r,go(n,Ht,lr),Qt(n,at()),null}function af(n,r){var s=Ie;Ie|=1;try{return n(r)}finally{Ie=s,Ie===0&&(ui=at()+500,ja&&Or())}}function ho(n){Nr!==null&&Nr.tag===0&&(Ie&6)===0&&ci();var r=Ie;Ie|=1;var s=hn.transition,l=De;try{if(hn.transition=null,De=1,n)return n()}finally{De=l,hn.transition=s,Ie=r,(Ie&6)===0&&Or()}}function lf(){on=li.current,Ke(li)}function mo(n,r){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,tw(s)),ft!==null)for(s=ft.return;s!==null;){var l=s;switch(gc(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Da();break;case 3:ii(),Ke(Wt),Ke(Tt),Tc();break;case 5:_c(l);break;case 4:ii();break;case 13:Ke(Je);break;case 19:Ke(Je);break;case 10:kc(l.type._context);break;case 22:case 23:lf()}s=s.return}if(yt=n,ft=n=jr(n.current,null),bt=on=r,ht=0,Rs=null,ef=al=po=0,Ht=_s=null,uo!==null){for(r=0;r<uo.length;r++)if(s=uo[r],l=s.interleaved,l!==null){s.interleaved=null;var f=l.next,p=s.pending;if(p!==null){var v=p.next;p.next=f,l.next=v}s.pending=l}uo=null}return n}function Nm(n,r){do{var s=ft;try{if(xc(),qa.current=el,Ya){for(var l=et.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}Ya=!1}if(fo=0,gt=pt=et=null,Ss=!1,xs=0,Jc.current=null,s===null||s.return===null){ht=1,Rs=r,ft=null;break}e:{var p=n,v=s.return,R=s,O=r;if(r=bt,R.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var B=O,ee=R,ne=ee.tag;if((ee.mode&1)===0&&(ne===0||ne===11||ne===15)){var X=ee.alternate;X?(ee.updateQueue=X.updateQueue,ee.memoizedState=X.memoizedState,ee.lanes=X.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var ue=lm(v);if(ue!==null){ue.flags&=-257,um(ue,v,R,p,r),ue.mode&1&&am(p,B,r),r=ue,O=B;var pe=r.updateQueue;if(pe===null){var he=new Set;he.add(O),r.updateQueue=he}else pe.add(O);break e}else{if((r&1)===0){am(p,B,r),uf();break e}O=Error(o(426))}}else if(Ge&&R.mode&1){var lt=lm(v);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),um(lt,v,R,p,r),wc(si(O,R));break e}}p=O=si(O,R),ht!==4&&(ht=2),_s===null?_s=[p]:_s.push(p),p=v;do{switch(p.tag){case 3:p.flags|=65536,r&=-r,p.lanes|=r;var N=im(p,O,r);Oh(p,N);break e;case 1:R=O;var M=p.type,D=p.stateNode;if((p.flags&128)===0&&(typeof M.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(Lr===null||!Lr.has(D)))){p.flags|=65536,r&=-r,p.lanes|=r;var ie=sm(p,R,r);Oh(p,ie);break e}}p=p.return}while(p!==null)}jm(s)}catch(me){r=me,ft===s&&s!==null&&(ft=s=s.return);continue}break}while(!0)}function Dm(){var n=sl.current;return sl.current=el,n===null?el:n}function uf(){(ht===0||ht===3||ht===2)&&(ht=4),yt===null||(po&268435455)===0&&(al&268435455)===0||Fr(yt,bt)}function pl(n,r){var s=Ie;Ie|=2;var l=Dm();(yt!==n||bt!==r)&&(lr=null,mo(n,r));do try{Rw();break}catch(f){Nm(n,f)}while(!0);if(xc(),Ie=s,sl.current=l,ft!==null)throw Error(o(261));return yt=null,bt=0,ht}function Rw(){for(;ft!==null;)Fm(ft)}function _w(){for(;ft!==null&&!X0();)Fm(ft)}function Fm(n){var r=Wm(n.alternate,n,on);n.memoizedProps=n.pendingProps,r===null?jm(n):ft=r,Jc.current=null}function jm(n){var r=n;do{var s=r.alternate;if(n=r.return,(r.flags&32768)===0){if(s=ww(s,r,on),s!==null){ft=s;return}}else{if(s=Sw(s,r),s!==null){s.flags&=32767,ft=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ht=6,ft=null;return}}if(r=r.sibling,r!==null){ft=r;return}ft=r=n}while(r!==null);ht===0&&(ht=5)}function go(n,r,s){var l=De,f=hn.transition;try{hn.transition=null,De=1,Pw(n,r,s,l)}finally{hn.transition=f,De=l}return null}function Pw(n,r,s,l){do ci();while(Nr!==null);if((Ie&6)!==0)throw Error(o(327));s=n.finishedWork;var f=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(o(177));n.callbackNode=null,n.callbackPriority=0;var p=s.lanes|s.childLanes;if(l1(n,p),n===yt&&(ft=yt=null,bt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ul||(ul=!0,Vm(ya,function(){return ci(),null})),p=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||p){p=hn.transition,hn.transition=null;var v=De;De=1;var R=Ie;Ie|=4,Jc.current=null,kw(n,s),$m(s,n),K1(lc),Ea=!!ac,lc=ac=null,n.current=s,Cw(s),J0(),Ie=R,De=v,hn.transition=p}else n.current=s;if(ul&&(ul=!1,Nr=n,cl=f),p=n.pendingLanes,p===0&&(Lr=null),n1(s.stateNode),Qt(n,at()),r!==null)for(l=n.onRecoverableError,s=0;s<r.length;s++)f=r[s],l(f.value,{componentStack:f.stack,digest:f.digest});if(ll)throw ll=!1,n=nf,nf=null,n;return(cl&1)!==0&&n.tag!==0&&ci(),p=n.pendingLanes,(p&1)!==0?n===rf?Ps++:(Ps=0,rf=n):Ps=0,Or(),null}function ci(){if(Nr!==null){var n=Pp(cl),r=hn.transition,s=De;try{if(hn.transition=null,De=16>n?16:n,Nr===null)var l=!1;else{if(n=Nr,Nr=null,cl=0,(Ie&6)!==0)throw Error(o(331));var f=Ie;for(Ie|=4,ce=n.current;ce!==null;){var p=ce,v=p.child;if((ce.flags&16)!==0){var R=p.deletions;if(R!==null){for(var O=0;O<R.length;O++){var B=R[O];for(ce=B;ce!==null;){var ee=ce;switch(ee.tag){case 0:case 11:case 15:bs(8,ee,p)}var ne=ee.child;if(ne!==null)ne.return=ee,ce=ne;else for(;ce!==null;){ee=ce;var X=ee.sibling,ue=ee.return;if(bm(ee),ee===B){ce=null;break}if(X!==null){X.return=ue,ce=X;break}ce=ue}}}var pe=p.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var lt=he.sibling;he.sibling=null,he=lt}while(he!==null)}}ce=p}}if((p.subtreeFlags&2064)!==0&&v!==null)v.return=p,ce=v;else e:for(;ce!==null;){if(p=ce,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:bs(9,p,p.return)}var N=p.sibling;if(N!==null){N.return=p.return,ce=N;break e}ce=p.return}}var M=n.current;for(ce=M;ce!==null;){v=ce;var D=v.child;if((v.subtreeFlags&2064)!==0&&D!==null)D.return=v,ce=D;else e:for(v=M;ce!==null;){if(R=ce,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:il(9,R)}}catch(me){rt(R,R.return,me)}if(R===v){ce=null;break e}var ie=R.sibling;if(ie!==null){ie.return=R.return,ce=ie;break e}ce=R.return}}if(Ie=f,Or(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(va,n)}catch{}l=!0}return l}finally{De=s,hn.transition=r}}return!1}function Bm(n,r,s){r=si(s,r),r=im(n,r,1),n=Mr(n,r,1),r=Lt(),n!==null&&(Xi(n,1,r),Qt(n,r))}function rt(n,r,s){if(n.tag===3)Bm(n,n,s);else for(;r!==null;){if(r.tag===3){Bm(r,n,s);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Lr===null||!Lr.has(l))){n=si(s,n),n=sm(r,n,1),r=Mr(r,n,1),n=Lt(),r!==null&&(Xi(r,1,n),Qt(r,n));break}}r=r.return}}function Tw(n,r,s){var l=n.pingCache;l!==null&&l.delete(r),r=Lt(),n.pingedLanes|=n.suspendedLanes&s,yt===n&&(bt&s)===s&&(ht===4||ht===3&&(bt&130023424)===bt&&500>at()-tf?mo(n,0):ef|=s),Qt(n,r)}function Um(n,r){r===0&&((n.mode&1)===0?r=1:(r=Sa,Sa<<=1,(Sa&130023424)===0&&(Sa=4194304)));var s=Lt();n=ir(n,r),n!==null&&(Xi(n,r,s),Qt(n,s))}function $w(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),Um(n,s)}function Iw(n,r){var s=0;switch(n.tag){case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(s=f.retryLane);break;case 19:l=n.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(r),Um(n,s)}var Wm;Wm=function(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps||Wt.current)Zt=!0;else{if((n.lanes&s)===0&&(r.flags&128)===0)return Zt=!1,vw(n,r,s);Zt=(n.flags&131072)!==0}else Zt=!1,Ge&&(r.flags&1048576)!==0&&kh(r,Ua,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;rl(n,r),n=r.pendingProps;var f=Xo(r,Tt.current);oi(r,s),f=Oc(null,r,l,n,f,s);var p=Ac();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Vt(l)?(p=!0,Fa(r)):p=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,bc(r),f.updater=tl,r.stateNode=f,f._reactInternals=r,Fc(r,l,n,s),r=Wc(null,r,l,!0,p,s)):(r.tag=0,Ge&&p&&mc(r),zt(null,r,f,s),r=r.child),r;case 16:l=r.elementType;e:{switch(rl(n,r),n=r.pendingProps,f=l._init,l=f(l._payload),r.type=l,f=r.tag=Aw(l),n=_n(l,n),f){case 0:r=Uc(null,r,l,n,s);break e;case 1:r=mm(null,r,l,n,s);break e;case 11:r=cm(null,r,l,n,s);break e;case 14:r=fm(null,r,l,_n(l.type,n),s);break e}throw Error(o(306,l,""))}return r;case 0:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:_n(l,f),Uc(n,r,l,f,s);case 1:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:_n(l,f),mm(n,r,l,f,s);case 3:e:{if(gm(r),n===null)throw Error(o(387));l=r.pendingProps,p=r.memoizedState,f=p.element,Ih(n,r),Ka(r,l,null,s);var v=r.memoizedState;if(l=v.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){f=si(Error(o(423)),r),r=ym(n,r,l,s,f);break e}else if(l!==f){f=si(Error(o(424)),r),r=ym(n,r,l,s,f);break e}else for(rn=Tr(r.stateNode.containerInfo.firstChild),nn=r,Ge=!0,Rn=null,s=Th(r,null,l,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ti(),l===f){r=ar(n,r,s);break e}zt(n,r,l,s)}r=r.child}return r;case 5:return Mh(r),n===null&&vc(r),l=r.type,f=r.pendingProps,p=n!==null?n.memoizedProps:null,v=f.children,uc(l,f)?v=null:p!==null&&uc(l,p)&&(r.flags|=32),hm(n,r),zt(n,r,v,s),r.child;case 6:return n===null&&vc(r),null;case 13:return vm(n,r,s);case 4:return Rc(r,r.stateNode.containerInfo),l=r.pendingProps,n===null?r.child=ni(r,null,l,s):zt(n,r,l,s),r.child;case 11:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:_n(l,f),cm(n,r,l,f,s);case 7:return zt(n,r,r.pendingProps,s),r.child;case 8:return zt(n,r,r.pendingProps.children,s),r.child;case 12:return zt(n,r,r.pendingProps.children,s),r.child;case 10:e:{if(l=r.type._context,f=r.pendingProps,p=r.memoizedProps,v=f.value,Ze(Za,l._currentValue),l._currentValue=v,p!==null)if(bn(p.value,v)){if(p.children===f.children&&!Wt.current){r=ar(n,r,s);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var R=p.dependencies;if(R!==null){v=p.child;for(var O=R.firstContext;O!==null;){if(O.context===l){if(p.tag===1){O=sr(-1,s&-s),O.tag=2;var B=p.updateQueue;if(B!==null){B=B.shared;var ee=B.pending;ee===null?O.next=O:(O.next=ee.next,ee.next=O),B.pending=O}}p.lanes|=s,O=p.alternate,O!==null&&(O.lanes|=s),Cc(p.return,s,r),R.lanes|=s;break}O=O.next}}else if(p.tag===10)v=p.type===r.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(o(341));v.lanes|=s,R=v.alternate,R!==null&&(R.lanes|=s),Cc(v,s,r),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===r){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}zt(n,r,f.children,s),r=r.child}return r;case 9:return f=r.type,l=r.pendingProps.children,oi(r,s),f=dn(f),l=l(f),r.flags|=1,zt(n,r,l,s),r.child;case 14:return l=r.type,f=_n(l,r.pendingProps),f=_n(l.type,f),fm(n,r,l,f,s);case 15:return dm(n,r,r.type,r.pendingProps,s);case 17:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:_n(l,f),rl(n,r),r.tag=1,Vt(l)?(n=!0,Fa(r)):n=!1,oi(r,s),rm(r,l,f),Fc(r,l,f,s),Wc(null,r,l,!0,n,s);case 19:return Sm(n,r,s);case 22:return pm(n,r,s)}throw Error(o(156,r.tag))};function Vm(n,r){return Cp(n,r)}function Ow(n,r,s,l){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(n,r,s,l){return new Ow(n,r,s,l)}function cf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Aw(n){if(typeof n=="function")return cf(n)?1:0;if(n!=null){if(n=n.$$typeof,n===k)return 11;if(n===te)return 14}return 2}function jr(n,r){var s=n.alternate;return s===null?(s=mn(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function hl(n,r,s,l,f,p){var v=2;if(l=n,typeof n=="function")cf(n)&&(v=1);else if(typeof n=="string")v=5;else e:switch(n){case F:return yo(s.children,f,p,r);case U:v=8,f|=8;break;case H:return n=mn(12,s,r,f|2),n.elementType=H,n.lanes=p,n;case q:return n=mn(13,s,r,f),n.elementType=q,n.lanes=p,n;case W:return n=mn(19,s,r,f),n.elementType=W,n.lanes=p,n;case fe:return ml(s,f,p,r);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case V:v=10;break e;case J:v=9;break e;case k:v=11;break e;case te:v=14;break e;case re:v=16,l=null;break e}throw Error(o(130,n==null?n:typeof n,""))}return r=mn(v,s,r,f),r.elementType=n,r.type=l,r.lanes=p,r}function yo(n,r,s,l){return n=mn(7,n,l,r),n.lanes=s,n}function ml(n,r,s,l){return n=mn(22,n,l,r),n.elementType=fe,n.lanes=s,n.stateNode={isHidden:!1},n}function ff(n,r,s){return n=mn(6,n,null,r),n.lanes=s,n}function df(n,r,s){return r=mn(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}function Mw(n,r,s,l,f){this.tag=r,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Du(0),this.expirationTimes=Du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.identifierPrefix=l,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function pf(n,r,s,l,f,p,v,R,O){return n=new Mw(n,r,s,R,O),r===1?(r=1,p===!0&&(r|=8)):r=0,p=mn(3,null,null,r),n.current=p,p.stateNode=n,p.memoizedState={element:l,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},bc(p),n}function zw(n,r,s){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:l==null?null:""+l,children:n,containerInfo:r,implementation:s}}function Zm(n){if(!n)return Ir;n=n._reactInternals;e:{if(oo(n)!==n||n.tag!==1)throw Error(o(170));var r=n;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Vt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(o(171))}if(n.tag===1){var s=n.type;if(Vt(s))return wh(n,s,r)}return r}function Hm(n,r,s,l,f,p,v,R,O){return n=pf(s,l,!0,n,f,p,v,R,O),n.context=Zm(null),s=n.current,l=Lt(),f=Dr(s),p=sr(l,f),p.callback=r??null,Mr(s,p,f),n.current.lanes=f,Xi(n,f,l),Qt(n,l),n}function gl(n,r,s,l){var f=r.current,p=Lt(),v=Dr(f);return s=Zm(s),r.context===null?r.context=s:r.pendingContext=s,r=sr(p,v),r.payload={element:n},l=l===void 0?null:l,l!==null&&(r.callback=l),n=Mr(f,r,v),n!==null&&($n(n,f,v,p),Qa(n,f,v)),v}function yl(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Qm(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function hf(n,r){Qm(n,r),(n=n.alternate)&&Qm(n,r)}function Lw(){return null}var Km=typeof reportError=="function"?reportError:function(n){console.error(n)};function mf(n){this._internalRoot=n}vl.prototype.render=mf.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(o(409));gl(n,r,null,null)},vl.prototype.unmount=mf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;ho(function(){gl(null,n,null,null)}),r[tr]=null}};function vl(n){this._internalRoot=n}vl.prototype.unstable_scheduleHydration=function(n){if(n){var r=Ip();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Rr.length&&r!==0&&r<Rr[s].priority;s++);Rr.splice(s,0,n),s===0&&Mp(n)}};function gf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function wl(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Gm(){}function Nw(n,r,s,l,f){if(f){if(typeof l=="function"){var p=l;l=function(){var B=yl(v);p.call(B)}}var v=Hm(r,l,n,0,null,!1,!1,"",Gm);return n._reactRootContainer=v,n[tr]=v.current,ds(n.nodeType===8?n.parentNode:n),ho(),v}for(;f=n.lastChild;)n.removeChild(f);if(typeof l=="function"){var R=l;l=function(){var B=yl(O);R.call(B)}}var O=pf(n,0,!1,null,null,!1,!1,"",Gm);return n._reactRootContainer=O,n[tr]=O.current,ds(n.nodeType===8?n.parentNode:n),ho(function(){gl(r,O,s,l)}),O}function Sl(n,r,s,l,f){var p=s._reactRootContainer;if(p){var v=p;if(typeof f=="function"){var R=f;f=function(){var O=yl(v);R.call(O)}}gl(r,v,n,f)}else v=Nw(s,r,n,f,l);return yl(v)}Tp=function(n){switch(n.tag){case 3:var r=n.stateNode;if(r.current.memoizedState.isDehydrated){var s=Yi(r.pendingLanes);s!==0&&(Fu(r,s|1),Qt(r,at()),(Ie&6)===0&&(ui=at()+500,Or()))}break;case 13:ho(function(){var l=ir(n,1);if(l!==null){var f=Lt();$n(l,n,1,f)}}),hf(n,1)}},ju=function(n){if(n.tag===13){var r=ir(n,134217728);if(r!==null){var s=Lt();$n(r,n,134217728,s)}hf(n,134217728)}},$p=function(n){if(n.tag===13){var r=Dr(n),s=ir(n,r);if(s!==null){var l=Lt();$n(s,n,r,l)}hf(n,r)}},Ip=function(){return De},Op=function(n,r){var s=De;try{return De=n,r()}finally{De=s}},Ou=function(n,r,s){switch(r){case"input":if(Cn(n,s),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<s.length;r++){var l=s[r];if(l!==n&&l.form===n.form){var f=Na(l);if(!f)throw Error(o(90));kt(l),Cn(l,f)}}}break;case"textarea":Vi(n,s);break;case"select":r=s.value,r!=null&&Bt(n,!!s.multiple,r,!1)}},gp=af,yp=ho;var Dw={usingClientEntryPoint:!1,Events:[ms,qo,Na,hp,mp,af]},Ts={findFiberByHostInstance:io,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fw={bundleType:Ts.bundleType,version:Ts.version,rendererPackageName:Ts.rendererPackageName,rendererConfig:Ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=xp(n),n===null?null:n.stateNode},findFiberByHostInstance:Ts.findFiberByHostInstance||Lw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xl.isDisabled&&xl.supportsFiber)try{va=xl.inject(Fw),Nn=xl}catch{}}return Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dw,Kt.createPortal=function(n,r){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gf(r))throw Error(o(200));return zw(n,r,null,s)},Kt.createRoot=function(n,r){if(!gf(n))throw Error(o(299));var s=!1,l="",f=Km;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=pf(n,1,!1,null,null,s,!1,l,f),n[tr]=r.current,ds(n.nodeType===8?n.parentNode:n),new mf(r)},Kt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=xp(r),n=n===null?null:n.stateNode,n},Kt.flushSync=function(n){return ho(n)},Kt.hydrate=function(n,r,s){if(!wl(r))throw Error(o(200));return Sl(null,n,r,!0,s)},Kt.hydrateRoot=function(n,r,s){if(!gf(n))throw Error(o(405));var l=s!=null&&s.hydratedSources||null,f=!1,p="",v=Km;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(v=s.onRecoverableError)),r=Hm(r,null,n,1,s??null,f,!1,p,v),n[tr]=r.current,ds(n),l)for(n=0;n<l.length;n++)s=l[n],f=s._getVersion,f=f(s._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[s,f]:r.mutableSourceEagerHydrationData.push(s,f);return new vl(r)},Kt.render=function(n,r,s){if(!wl(r))throw Error(o(200));return Sl(null,n,r,!1,s)},Kt.unmountComponentAtNode=function(n){if(!wl(n))throw Error(o(40));return n._reactRootContainer?(ho(function(){Sl(null,null,n,!1,function(){n._reactRootContainer=null,n[tr]=null})}),!0):!1},Kt.unstable_batchedUpdates=af,Kt.unstable_renderSubtreeIntoContainer=function(n,r,s,l){if(!wl(s))throw Error(o(200));if(n==null||n._reactInternals===void 0)throw Error(o(38));return Sl(n,r,s,!1,l)},Kt.version="18.3.1-next-f1338f8080-20240426",Kt}var mg;function fv(){if(mg)return Cf.exports;mg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cf.exports=FS(),Cf.exports}var gg;function jS(){if(gg)return El;gg=1;var e=fv();return El.createRoot=e.createRoot,El.hydrateRoot=e.hydrateRoot,El}var BS=jS();/**
|
|
48
48
|
* react-router v7.10.0
|
|
49
49
|
*
|
|
50
50
|
* Copyright (c) Remix Software Inc.
|
|
@@ -53,9 +53,9 @@ Error generating stack: `+_.message+`
|
|
|
53
53
|
* LICENSE.md file in the root directory of this source tree.
|
|
54
54
|
*
|
|
55
55
|
* @license MIT
|
|
56
|
-
*/var UC="popstate";function L8(e={}){function t(n,i){let{pathname:o,search:a,hash:u}=n.location;return Dw("",{pathname:o,search:a,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:kf(i)}return F8(t,r,null,e)}function Wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function oi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function U8(){return Math.random().toString(36).substring(2,10)}function FC(e,t){return{usr:e.state,key:e.key,idx:t}}function Dw(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Uu(t):t,state:r,key:t&&t.key||n||U8()}}function kf({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Uu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function F8(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,u="POP",c=null,f=d();f==null&&(f=0,a.replaceState({...a.state,idx:f},""));function d(){return(a.state||{idx:null}).idx}function m(){u="POP";let w=d(),k=w==null?null:w-f;f=w,c&&c({action:u,location:x.location,delta:k})}function h(w,k){u="PUSH";let C=Dw(x.location,w,k);f=d()+1;let $=FC(C,f),P=x.createHref(C);try{a.pushState($,"",P)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(P)}o&&c&&c({action:u,location:x.location,delta:1})}function g(w,k){u="REPLACE";let C=Dw(x.location,w,k);f=d();let $=FC(C,f),P=x.createHref(C);a.replaceState($,"",P),o&&c&&c({action:u,location:x.location,delta:0})}function y(w){return B8(w)}let x={get action(){return u},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(UC,m),c=w,()=>{i.removeEventListener(UC,m),c=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let k=y(w);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:h,replace:g,go(w){return a.go(w)}};return x}function B8(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Wt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:kf(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function hR(e,t,r="/"){return W8(e,t,r,!1)}function W8(e,t,r,n){let i=typeof t=="string"?Uu(t):t,o=Bo(i.pathname||"/",r);if(o==null)return null;let a=vR(e);K8(a);let u=null;for(let c=0;u==null&&c<a.length;++c){let f=t9(o);u=J8(a[c],f,n)}return u}function vR(e,t=[],r=[],n="",i=!1){let o=(a,u,c=i,f)=>{let d={relativePath:f===void 0?a.path||"":f,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&c)return;Wt(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let m=zo([n,d.relativePath]),h=r.concat(d);a.children&&a.children.length>0&&(Wt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),vR(a.children,t,h,m,c)),!(a.path==null&&!a.index)&&t.push({path:m,score:X8(m,a.index),routesMeta:h})};return e.forEach((a,u)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,u);else for(let f of gR(a.path))o(a,u,!0,f)}),t}function gR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=gR(n.join("/")),u=[];return u.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function K8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Q8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var H8=/^:[\w-]+$/,Z8=3,q8=2,V8=1,G8=10,Y8=-2,BC=e=>e==="*";function X8(e,t){let r=e.split("/"),n=r.length;return r.some(BC)&&(n+=Y8),t&&(n+=q8),r.filter(i=>!BC(i)).reduce((i,o)=>i+(H8.test(o)?Z8:o===""?V8:G8),n)}function Q8(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function J8(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let u=0;u<n.length;++u){let c=n[u],f=u===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",m=Jm({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},d),h=c.route;if(!m&&f&&r&&!n[n.length-1].route.index&&(m=Jm({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!m)return null;Object.assign(i,m.params),a.push({params:i,pathname:zo([o,m.pathname]),pathnameBase:a9(zo([o,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(o=zo([o,m.pathnameBase]))}return a}function Jm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=e9(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:n.reduce((f,{paramName:d,isOptional:m},h)=>{if(d==="*"){let y=u[h]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=u[h];return m&&!g?f[d]=void 0:f[d]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:a,pattern:e}}function e9(e,t=!1,r=!0){oi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,c)=>(n.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function t9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return oi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Bo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var r9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n9=e=>r9.test(e);function i9(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Uu(e):e,o;if(r)if(n9(r))o=r;else{if(r.includes("//")){let a=r;r=r.replace(/\/\/+/g,"/"),oi(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${r}`)}r.startsWith("/")?o=WC(r.substring(1),"/"):o=WC(r,t)}else o=t;return{pathname:o,search:s9(n),hash:l9(i)}}function WC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Mb(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function o9(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function MS(e){let t=o9(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function DS(e,t,r,n=!1){let i;typeof e=="string"?i=Uu(e):(i={...e},Wt(!i.pathname||!i.pathname.includes("?"),Mb("?","pathname","search",i)),Wt(!i.pathname||!i.pathname.includes("#"),Mb("#","pathname","hash",i)),Wt(!i.search||!i.search.includes("#"),Mb("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,u;if(a==null)u=r;else{let m=t.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),m-=1;i.pathname=h.join("/")}u=m>=0?t[m]:"/"}let c=i9(i,u),f=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(f||d)&&(c.pathname+="/"),c}var zo=e=>e.join("/").replace(/\/\/+/g,"/"),a9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),s9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function u9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function c9(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var yR=["POST","PUT","PATCH","DELETE"];new Set(yR);var f9=["GET",...yR];new Set(f9);var Fu=b.createContext(null);Fu.displayName="DataRouter";var mv=b.createContext(null);mv.displayName="DataRouterState";b.createContext(!1);var bR=b.createContext({isTransitioning:!1});bR.displayName="ViewTransition";var d9=b.createContext(new Map);d9.displayName="Fetchers";var p9=b.createContext(null);p9.displayName="Await";var ci=b.createContext(null);ci.displayName="Navigation";var id=b.createContext(null);id.displayName="Location";var Ui=b.createContext({outlet:null,matches:[],isDataRoute:!1});Ui.displayName="Route";var zS=b.createContext(null);zS.displayName="RouteError";function m9(e,{relative:t}={}){Wt(Bu(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=b.useContext(ci),{hash:i,pathname:o,search:a}=od(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:zo([r,o])),n.createHref({pathname:u,search:a,hash:i})}function Bu(){return b.useContext(id)!=null}function vo(){return Wt(Bu(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(id).location}var wR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xR(e){b.useContext(ci).static||b.useLayoutEffect(e)}function hv(){let{isDataRoute:e}=b.useContext(Ui);return e?C9():h9()}function h9(){Wt(Bu(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Fu),{basename:t,navigator:r}=b.useContext(ci),{matches:n}=b.useContext(Ui),{pathname:i}=vo(),o=JSON.stringify(MS(n)),a=b.useRef(!1);return xR(()=>{a.current=!0}),b.useCallback((c,f={})=>{if(oi(a.current,wR),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=DS(c,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:zo([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,o,i,e])}b.createContext(null);function v9(){let{matches:e}=b.useContext(Ui),t=e[e.length-1];return t?t.params:{}}function od(e,{relative:t}={}){let{matches:r}=b.useContext(Ui),{pathname:n}=vo(),i=JSON.stringify(MS(r));return b.useMemo(()=>DS(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function g9(e,t){return SR(e,t)}function SR(e,t,r,n,i){var C;Wt(Bu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(ci),{matches:a}=b.useContext(Ui),u=a[a.length-1],c=u?u.params:{},f=u?u.pathname:"/",d=u?u.pathnameBase:"/",m=u&&u.route;{let $=m&&m.path||"";kR(f,!m||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${$}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
56
|
+
*/var yg="popstate";function US(e={}){function t(i,a){let{pathname:u,search:c,hash:d}=i.location;return Uf("",{pathname:u,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function o(i,a){return typeof a=="string"?a:Hs(a)}return VS(t,o,null,e)}function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WS(){return Math.random().toString(36).substring(2,10)}function vg(e,t){return{usr:e.state,key:e.key,idx:t}}function Uf(e,t,o=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ji(t):t,state:o,key:t&&t.key||i||WS()}}function Hs({pathname:e="/",search:t="",hash:o=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function ji(e){let t={};if(e){let o=e.indexOf("#");o>=0&&(t.hash=e.substring(o),e=e.substring(0,o));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function VS(e,t,o,i={}){let{window:a=document.defaultView,v5Compat:u=!1}=i,c=a.history,d="POP",h=null,m=g();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function g(){return(c.state||{idx:null}).idx}function y(){d="POP";let b=g(),I=b==null?null:b-m;m=b,h&&h({action:d,location:w.location,delta:I})}function x(b,I){d="PUSH";let L=Uf(w.location,b,I);m=g()+1;let $=vg(L,m),T=w.createHref(L);try{c.pushState($,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;a.location.assign(T)}u&&h&&h({action:d,location:w.location,delta:1})}function E(b,I){d="REPLACE";let L=Uf(w.location,b,I);m=g();let $=vg(L,m),T=w.createHref(L);c.replaceState($,"",T),u&&h&&h({action:d,location:w.location,delta:0})}function C(b){return ZS(b)}let w={get action(){return d},get location(){return e(a,c)},listen(b){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(yg,y),h=b,()=>{a.removeEventListener(yg,y),h=null}},createHref(b){return t(a,b)},createURL:C,encodeLocation(b){let I=C(b);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:x,replace:E,go(b){return c.go(b)}};return w}function ZS(e,t=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),tt(o,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Hs(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function dv(e,t,o="/"){return HS(e,t,o,!1)}function HS(e,t,o,i){let a=typeof t=="string"?ji(t):t,u=vr(a.pathname||"/",o);if(u==null)return null;let c=pv(e);QS(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let m=ox(u);d=nx(c[h],m,i)}return d}function pv(e,t=[],o=[],i="",a=!1){let u=(c,d,h=a,m)=>{let g={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;tt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let y=gr([i,g.relativePath]),x=o.concat(g);c.children&&c.children.length>0&&(tt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),pv(c.children,t,x,y,h)),!(c.path==null&&!c.index)&&t.push({path:y,score:ex(y,c.index),routesMeta:x})};return e.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))u(c,d);else for(let m of hv(c.path))u(c,d,!0,m)}),t}function hv(e){let t=e.split("/");if(t.length===0)return[];let[o,...i]=t,a=o.endsWith("?"),u=o.replace(/\?$/,"");if(i.length===0)return a?[u,""]:[u];let c=hv(i.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),a&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function QS(e){e.sort((t,o)=>t.score!==o.score?o.score-t.score:tx(t.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var KS=/^:[\w-]+$/,GS=3,qS=2,YS=1,XS=10,JS=-2,wg=e=>e==="*";function ex(e,t){let o=e.split("/"),i=o.length;return o.some(wg)&&(i+=JS),t&&(i+=qS),o.filter(a=>!wg(a)).reduce((a,u)=>a+(KS.test(u)?GS:u===""?YS:XS),i)}function tx(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function nx(e,t,o=!1){let{routesMeta:i}=e,a={},u="/",c=[];for(let d=0;d<i.length;++d){let h=i[d],m=d===i.length-1,g=u==="/"?t:t.slice(u.length)||"/",y=Gl({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),x=h.route;if(!y&&m&&o&&!i[i.length-1].route.index&&(y=Gl({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!y)return null;Object.assign(a,y.params),c.push({params:a,pathname:gr([u,y.pathname]),pathnameBase:ux(gr([u,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(u=gr([u,y.pathnameBase]))}return c}function Gl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[o,i]=rx(e.path,e.caseSensitive,e.end),a=t.match(o);if(!a)return null;let u=a[0],c=u.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((m,{paramName:g,isOptional:y},x)=>{if(g==="*"){let C=d[x]||"";c=u.slice(0,u.length-C.length).replace(/(.)\/+$/,"$1")}const E=d[x];return y&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:c,pattern:e}}function rx(e,t=!1,o=!0){zn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function ox(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function vr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let o=t.endsWith("/")?t.length-1:t.length,i=e.charAt(o);return i&&i!=="/"?null:e.slice(o)||"/"}var ix=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sx=e=>ix.test(e);function ax(e,t="/"){let{pathname:o,search:i="",hash:a=""}=typeof e=="string"?ji(e):e,u;if(o)if(sx(o))u=o;else{if(o.includes("//")){let c=o;o=o.replace(/\/\/+/g,"/"),zn(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${o}`)}o.startsWith("/")?u=Sg(o.substring(1),"/"):u=Sg(o,t)}else u=t;return{pathname:u,search:cx(i),hash:fx(a)}}function Sg(e,t){let o=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?o.length>1&&o.pop():a!=="."&&o.push(a)}),o.length>1?o.join("/"):"/"}function Rf(e,t,o,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lx(e){return e.filter((t,o)=>o===0||t.route.path&&t.route.path.length>0)}function mv(e){let t=lx(e);return t.map((o,i)=>i===t.length-1?o.pathname:o.pathnameBase)}function gv(e,t,o,i=!1){let a;typeof e=="string"?a=ji(e):(a={...e},tt(!a.pathname||!a.pathname.includes("?"),Rf("?","pathname","search",a)),tt(!a.pathname||!a.pathname.includes("#"),Rf("#","pathname","hash",a)),tt(!a.search||!a.search.includes("#"),Rf("#","search","hash",a)));let u=e===""||a.pathname==="",c=u?"/":a.pathname,d;if(c==null)d=o;else{let y=t.length-1;if(!i&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;a.pathname=x.join("/")}d=y>=0?t[y]:"/"}let h=ax(a,d),m=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&o.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var gr=e=>e.join("/").replace(/\/\/+/g,"/"),ux=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function px(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var yv=["POST","PUT","PATCH","DELETE"];new Set(yv);var hx=["GET",...yv];new Set(hx);var Bi=S.createContext(null);Bi.displayName="DataRouter";var uu=S.createContext(null);uu.displayName="DataRouterState";S.createContext(!1);var vv=S.createContext({isTransitioning:!1});vv.displayName="ViewTransition";var mx=S.createContext(new Map);mx.displayName="Fetchers";var gx=S.createContext(null);gx.displayName="Await";var Ln=S.createContext(null);Ln.displayName="Navigation";var aa=S.createContext(null);aa.displayName="Location";var xr=S.createContext({outlet:null,matches:[],isDataRoute:!1});xr.displayName="Route";var Od=S.createContext(null);Od.displayName="RouteError";function yx(e,{relative:t}={}){tt(la(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=S.useContext(Ln),{hash:a,pathname:u,search:c}=ua(e,{relative:t}),d=u;return o!=="/"&&(d=u==="/"?o:gr([o,u])),i.createHref({pathname:d,search:c,hash:a})}function la(){return S.useContext(aa)!=null}function kr(){return tt(la(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(aa).location}var wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sv(e){S.useContext(Ln).static||S.useLayoutEffect(e)}function xv(){let{isDataRoute:e}=S.useContext(xr);return e?$x():vx()}function vx(){tt(la(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Bi),{basename:t,navigator:o}=S.useContext(Ln),{matches:i}=S.useContext(xr),{pathname:a}=kr(),u=JSON.stringify(mv(i)),c=S.useRef(!1);return Sv(()=>{c.current=!0}),S.useCallback((h,m={})=>{if(zn(c.current,wv),!c.current)return;if(typeof h=="number"){o.go(h);return}let g=gv(h,JSON.parse(u),a,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:gr([t,g.pathname])),(m.replace?o.replace:o.push)(g,m.state,m)},[t,o,u,a,e])}S.createContext(null);function ua(e,{relative:t}={}){let{matches:o}=S.useContext(xr),{pathname:i}=kr(),a=JSON.stringify(mv(o));return S.useMemo(()=>gv(e,JSON.parse(a),i,t==="path"),[e,a,i,t])}function wx(e,t){return kv(e,t)}function kv(e,t,o,i,a){var L;tt(la(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=S.useContext(Ln),{matches:c}=S.useContext(xr),d=c[c.length-1],h=d?d.params:{},m=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let $=y&&y.path||"";Cv(m,!y||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${$}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
57
57
|
|
|
58
|
-
Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let h=vo(),g;if(t){let $=typeof t=="string"?Uu(t):t;Wt(d==="/"||((C=$.pathname)==null?void 0:C.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${$.pathname}" was given in the \`location\` prop.`),g=$}else g=h;let y=g.pathname||"/",x=y;if(d!=="/"){let $=d.replace(/^\//,"").split("/");x="/"+y.replace(/^\//,"").split("/").slice($.length).join("/")}let w=hR(e,{pathname:x});oi(m||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),oi(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=S9(w&&w.map($=>Object.assign({},$,{params:Object.assign({},c,$.params),pathname:zo([d,o.encodeLocation?o.encodeLocation($.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?d:zo([d,o.encodeLocation?o.encodeLocation($.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathnameBase])})),a,r,n,i);return t&&k?b.createElement(id.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},k):k}function y9(){let e=O9(),t=u9(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"ErrorBoundary")," or"," ",b.createElement("code",{style:o},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:i},r):null,a)}var b9=b.createElement(y9,null),w9=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?b.createElement(Ui.Provider,{value:this.props.routeContext},b.createElement(zS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function x9({routeContext:e,match:t,children:r}){let n=b.useContext(Fu);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Ui.Provider,{value:e},r)}function S9(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=r==null?void 0:r.errors;if(a!=null){let d=o.findIndex(m=>m.route.id&&(a==null?void 0:a[m.route.id])!==void 0);Wt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,c=-1;if(r)for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=d),m.route.id){let{loaderData:h,errors:g}=r,y=m.route.loader&&!h.hasOwnProperty(m.route.id)&&(!g||g[m.route.id]===void 0);if(m.route.lazy||y){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let f=r&&n?(d,m)=>{var h,g;n(d,{location:r.location,params:((g=(h=r.matches)==null?void 0:h[0])==null?void 0:g.params)??{},unstable_pattern:c9(r.matches),errorInfo:m})}:void 0;return o.reduceRight((d,m,h)=>{let g,y=!1,x=null,w=null;r&&(g=a&&m.route.id?a[m.route.id]:void 0,x=m.route.errorElement||b9,u&&(c<0&&h===0?(kR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):c===h&&(y=!0,w=m.route.hydrateFallbackElement||null)));let k=t.concat(o.slice(0,h+1)),C=()=>{let $;return g?$=x:y?$=w:m.route.Component?$=b.createElement(m.route.Component,null):m.route.element?$=m.route.element:$=d,b.createElement(x9,{match:m,routeContext:{outlet:d,matches:k,isDataRoute:r!=null},children:$})};return r&&(m.route.ErrorBoundary||m.route.errorElement||h===0)?b.createElement(w9,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:C(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:f}):C()},null)}function LS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k9(e){let t=b.useContext(Fu);return Wt(t,LS(e)),t}function $9(e){let t=b.useContext(mv);return Wt(t,LS(e)),t}function _9(e){let t=b.useContext(Ui);return Wt(t,LS(e)),t}function US(e){let t=_9(e),r=t.matches[t.matches.length-1];return Wt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function P9(){return US("useRouteId")}function O9(){var n;let e=b.useContext(zS),t=$9("useRouteError"),r=US("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function C9(){let{router:e}=k9("useNavigate"),t=US("useNavigate"),r=b.useRef(!1);return xR(()=>{r.current=!0}),b.useCallback(async(i,o={})=>{oi(r.current,wR),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var KC={};function kR(e,t,r){!t&&!KC[e]&&(KC[e]=!0,oi(!1,r))}b.memo(E9);function E9({routes:e,future:t,state:r,unstable_onError:n}){return SR(e,void 0,r,n,t)}function I9({to:e,replace:t,state:r,relative:n}){Wt(Bu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=b.useContext(ci);oi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=b.useContext(Ui),{pathname:a}=vo(),u=hv(),c=DS(e,MS(o),a,n==="path"),f=JSON.stringify(c);return b.useEffect(()=>{u(JSON.parse(f),{replace:t,state:r,relative:n})},[u,f,n,t,r]),null}function rf(e){Wt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function T9({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Wt(!Bu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:u,navigator:i,static:o,unstable_useTransitions:a,future:{}}),[u,i,o,a]);typeof r=="string"&&(r=Uu(r));let{pathname:f="/",search:d="",hash:m="",state:h=null,key:g="default"}=r,y=b.useMemo(()=>{let x=Bo(f,u);return x==null?null:{location:{pathname:x,search:d,hash:m,state:h,key:g},navigationType:n}},[u,f,d,m,h,g,n]);return oi(y!=null,`<Router basename="${u}"> is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:b.createElement(ci.Provider,{value:c},b.createElement(id.Provider,{children:t,value:y}))}function j9({children:e,location:t}){return g9(zw(e),t)}function zw(e,t=[]){let r=[];return b.Children.forEach(e,(n,i)=>{if(!b.isValidElement(n))return;let o=[...t,i];if(n.type===b.Fragment){r.push.apply(r,zw(n.props.children,o));return}Wt(n.type===rf,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Wt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=zw(n.props.children,o)),r.push(a)}),r}var Lm="get",Um="application/x-www-form-urlencoded";function vv(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function A9(e){return vv(e)&&e.tagName.toLowerCase()==="button"}function R9(e){return vv(e)&&e.tagName.toLowerCase()==="form"}function N9(e){return vv(e)&&e.tagName.toLowerCase()==="input"}function M9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D9(e,t){return e.button===0&&(!t||t==="_self")&&!M9(e)}var rm=null;function z9(){if(rm===null)try{new FormData(document.createElement("form"),0),rm=!1}catch{rm=!0}return rm}var L9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Db(e){return e!=null&&!L9.has(e)?(oi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Um}"`),null):e}function U9(e,t){let r,n,i,o,a;if(R9(e)){let u=e.getAttribute("action");n=u?Bo(u,t):null,r=e.getAttribute("method")||Lm,i=Db(e.getAttribute("enctype"))||Um,o=new FormData(e)}else if(A9(e)||N9(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(n=c?Bo(c,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||Lm,i=Db(e.getAttribute("formenctype"))||Db(u.getAttribute("enctype"))||Um,o=new FormData(u,e),!z9()){let{name:f,type:d,value:m}=e;if(d==="image"){let h=f?`${f}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else f&&o.append(f,m)}}else{if(vv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Lm,n=null,i=Um,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function FS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function F9(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&Bo(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function B9(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function W9(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function K9(e,t,r){let n=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await B9(o,r);return a.links?a.links():[]}return[]}));return V9(n.flat(1).filter(W9).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function HC(e,t,r,n,i,o){let a=(c,f)=>r[f]?c.route.id!==r[f].route.id:!0,u=(c,f)=>{var d;return r[f].pathname!==c.pathname||((d=r[f].route.path)==null?void 0:d.endsWith("*"))&&r[f].params["*"]!==c.params["*"]};return o==="assets"?t.filter((c,f)=>a(c,f)||u(c,f)):o==="data"?t.filter((c,f)=>{var m;let d=n.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,f)||u(c,f))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=r[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function H9(e,t,{includeHydrateFallback:r}={}){return Z9(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function Z9(e){return[...new Set(e)]}function q9(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function V9(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let o=JSON.stringify(q9(i));return r.has(o)||(r.add(o),n.push({key:o,link:i})),n},[])}function $R(){let e=b.useContext(Fu);return FS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function G9(){let e=b.useContext(mv);return FS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var BS=b.createContext(void 0);BS.displayName="FrameworkContext";function _R(){let e=b.useContext(BS);return FS(e,"You must render this element inside a <HydratedRouter> element"),e}function Y9(e,t){let r=b.useContext(BS),[n,i]=b.useState(!1),[o,a]=b.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:f,onMouseLeave:d,onTouchStart:m}=t,h=b.useRef(null);b.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let x=k=>{k.forEach(C=>{a(C.isIntersecting)})},w=new IntersectionObserver(x,{threshold:.5});return h.current&&w.observe(h.current),()=>{w.disconnect()}}},[e]),b.useEffect(()=>{if(n){let x=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(x)}}},[n]);let g=()=>{i(!0)},y=()=>{i(!1),a(!1)};return r?e!=="intent"?[o,h,{}]:[o,h,{onFocus:Uc(u,g),onBlur:Uc(c,y),onMouseEnter:Uc(f,g),onMouseLeave:Uc(d,y),onTouchStart:Uc(m,g)}]:[!1,h,{}]}function Uc(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function X9({page:e,...t}){let{router:r}=$R(),n=b.useMemo(()=>hR(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?b.createElement(J9,{page:e,matches:n,...t}):null}function Q9(e){let{manifest:t,routeModules:r}=_R(),[n,i]=b.useState([]);return b.useEffect(()=>{let o=!1;return K9(e,t,r).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,r]),n}function J9({page:e,matches:t,...r}){let n=vo(),{manifest:i,routeModules:o}=_R(),{basename:a}=$R(),{loaderData:u,matches:c}=G9(),f=b.useMemo(()=>HC(e,t,c,i,n,"data"),[e,t,c,i,n]),d=b.useMemo(()=>HC(e,t,c,i,n,"assets"),[e,t,c,i,n]),m=b.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,x=!1;if(t.forEach(k=>{var $;let C=i.routes[k.route.id];!C||!C.hasLoader||(!f.some(P=>P.route.id===k.route.id)&&k.route.id in u&&(($=o[k.route.id])!=null&&$.shouldRevalidate)||C.hasClientLoader?x=!0:y.add(k.route.id))}),y.size===0)return[];let w=F9(e,a,"data");return x&&y.size>0&&w.searchParams.set("_routes",t.filter(k=>y.has(k.route.id)).map(k=>k.route.id).join(",")),[w.pathname+w.search]},[a,u,n,i,f,t,e,o]),h=b.useMemo(()=>H9(d,i),[d,i]),g=Q9(d);return b.createElement(b.Fragment,null,m.map(y=>b.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),h.map(y=>b.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),g.map(({key:y,link:x})=>b.createElement("link",{key:y,nonce:r.nonce,...x})))}function eK(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var PR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PR&&(window.__reactRouterVersion="7.10.0")}catch{}function tK({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=b.useRef();i.current==null&&(i.current=L8({window:n,v5Compat:!0}));let o=i.current,[a,u]=b.useState({action:o.action,location:o.location}),c=b.useCallback(f=>{r===!1?u(f):b.startTransition(()=>u(f))},[r]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.createElement(T9,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:r===!0})}var OR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CR=b.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:o,replace:a,state:u,target:c,to:f,preventScrollReset:d,viewTransition:m,...h},g){let{basename:y,unstable_useTransitions:x}=b.useContext(ci),w=typeof f=="string"&&OR.test(f),k,C=!1;if(typeof f=="string"&&w&&(k=f,PR))try{let L=new URL(window.location.href),M=f.startsWith("//")?new URL(L.protocol+f):new URL(f),I=Bo(M.pathname,y);M.origin===L.origin&&I!=null?f=I+M.search+M.hash:C=!0}catch{oi(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=m9(f,{relative:i}),[P,O,E]=Y9(n,h),j=oK(f,{replace:a,state:u,target:c,preventScrollReset:d,relative:i,viewTransition:m,unstable_useTransitions:x});function R(L){t&&t(L),L.defaultPrevented||j(L)}let D=b.createElement("a",{...h,...E,href:k||$,onClick:C||o?t:R,ref:eK(g,O),target:c,"data-discover":!w&&r==="render"?"true":void 0});return P&&!w?b.createElement(b.Fragment,null,D,b.createElement(X9,{page:$})):D});CR.displayName="Link";var rK=b.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:o,to:a,viewTransition:u,children:c,...f},d){let m=od(a,{relative:f.relative}),h=vo(),g=b.useContext(mv),{navigator:y,basename:x}=b.useContext(ci),w=g!=null&&cK(m)&&u===!0,k=y.encodeLocation?y.encodeLocation(m).pathname:m.pathname,C=h.pathname,$=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(C=C.toLowerCase(),$=$?$.toLowerCase():null,k=k.toLowerCase()),$&&x&&($=Bo($,x)||$);const P=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let O=C===k||!i&&C.startsWith(k)&&C.charAt(P)==="/",E=$!=null&&($===k||!i&&$.startsWith(k)&&$.charAt(k.length)==="/"),j={isActive:O,isPending:E,isTransitioning:w},R=O?t:void 0,D;typeof n=="function"?D=n(j):D=[n,O?"active":null,E?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let L=typeof o=="function"?o(j):o;return b.createElement(CR,{...f,"aria-current":R,className:D,ref:d,style:L,to:a,viewTransition:u},typeof c=="function"?c(j):c)});rK.displayName="NavLink";var nK=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:o,method:a=Lm,action:u,onSubmit:c,relative:f,preventScrollReset:d,viewTransition:m,...h},g)=>{let{unstable_useTransitions:y}=b.useContext(ci),x=lK(),w=uK(u,{relative:f}),k=a.toLowerCase()==="get"?"get":"post",C=typeof u=="string"&&OR.test(u),$=P=>{if(c&&c(P),P.defaultPrevented)return;P.preventDefault();let O=P.nativeEvent.submitter,E=(O==null?void 0:O.getAttribute("formmethod"))||a,j=()=>x(O||P.currentTarget,{fetcherKey:t,method:E,navigate:r,replace:i,state:o,relative:f,preventScrollReset:d,viewTransition:m});y&&r!==!1?b.startTransition(()=>j()):j()};return b.createElement("form",{ref:g,method:k,action:w,onSubmit:n?c:$,...h,"data-discover":!C&&e==="render"?"true":void 0})});nK.displayName="Form";function iK(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ER(e){let t=b.useContext(Fu);return Wt(t,iK(e)),t}function oK(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:o,viewTransition:a,unstable_useTransitions:u}={}){let c=hv(),f=vo(),d=od(e,{relative:o});return b.useCallback(m=>{if(D9(m,t)){m.preventDefault();let h=r!==void 0?r:kf(f)===kf(d),g=()=>c(e,{replace:h,state:n,preventScrollReset:i,relative:o,viewTransition:a});u?b.startTransition(()=>g()):g()}},[f,c,d,r,n,t,e,i,o,a,u])}var aK=0,sK=()=>`__${String(++aK)}__`;function lK(){let{router:e}=ER("useSubmit"),{basename:t}=b.useContext(ci),r=P9(),n=e.fetch,i=e.navigate;return b.useCallback(async(o,a={})=>{let{action:u,method:c,encType:f,formData:d,body:m}=U9(o,t);if(a.navigate===!1){let h=a.fetcherKey||sK();await n(h,r,a.action||u,{preventScrollReset:a.preventScrollReset,formData:d,body:m,formMethod:a.method||c,formEncType:a.encType||f,flushSync:a.flushSync})}else await i(a.action||u,{preventScrollReset:a.preventScrollReset,formData:d,body:m,formMethod:a.method||c,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,i,t,r])}function uK(e,{relative:t}={}){let{basename:r}=b.useContext(ci),n=b.useContext(Ui);Wt(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...od(e||".",{relative:t})},a=vo();if(e==null){o.search=a.search;let u=new URLSearchParams(o.search),c=u.getAll("index");if(c.some(d=>d==="")){u.delete("index"),c.filter(m=>m).forEach(m=>u.append("index",m));let d=u.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:zo([r,o.pathname])),kf(o)}function cK(e,{relative:t}={}){let r=b.useContext(bR);Wt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=ER("useViewTransitionState"),i=od(e,{relative:t});if(!r.isTransitioning)return!1;let o=Bo(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=Bo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Jm(i.pathname,a)!=null||Jm(i.pathname,o)!=null}var gv=mR();const nm=ho(gv),ZC=e=>e,fK=()=>{let e=ZC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ZC}}},IR=fK();function Wo(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function xe(e){if(typeof e!="string")throw new Error(Wo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qC(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function TR(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=TR(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=TR(e))&&(n&&(n+=" "),n+=t);return n}function He(e,t,r=void 0){const n={};for(const i in e){const o=e[i];let a="",u=!0;for(let c=0;c<o.length;c+=1){const f=o[c];f&&(a+=(u===!0?"":" ")+t(f),u=!1,r&&r[f]&&(a+=" "+r[f]))}n[i]=a}return n}var zb={exports:{}},Ct={};/**
|
|
58
|
+
Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let x=kr(),E;if(t){let $=typeof t=="string"?ji(t):t;tt(g==="/"||((L=$.pathname)==null?void 0:L.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${$.pathname}" was given in the \`location\` prop.`),E=$}else E=x;let C=E.pathname||"/",w=C;if(g!=="/"){let $=g.replace(/^\//,"").split("/");w="/"+C.replace(/^\//,"").split("/").slice($.length).join("/")}let b=dv(e,{pathname:w});zn(y||b!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),zn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let I=Ex(b&&b.map($=>Object.assign({},$,{params:Object.assign({},h,$.params),pathname:gr([g,u.encodeLocation?u.encodeLocation($.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?g:gr([g,u.encodeLocation?u.encodeLocation($.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathnameBase])})),c,o,i,a);return t&&I?S.createElement(aa.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},I):I}function Sx(){let e=Tx(),t=dx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),o=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:u},"ErrorBoundary")," or"," ",S.createElement("code",{style:u},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),o?S.createElement("pre",{style:a},o):null,c)}var xx=S.createElement(Sx,null),kx=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(xr.Provider,{value:this.props.routeContext},S.createElement(Od.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cx({routeContext:e,match:t,children:o}){let i=S.useContext(Bi);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(xr.Provider,{value:e},o)}function Ex(e,t=[],o=null,i=null,a=null){if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(t.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let u=e,c=o==null?void 0:o.errors;if(c!=null){let g=u.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);tt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(o)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=g),y.route.id){let{loaderData:x,errors:E}=o,C=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||C){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}let m=o&&i?(g,y)=>{var x,E;i(g,{location:o.location,params:((E=(x=o.matches)==null?void 0:x[0])==null?void 0:E.params)??{},unstable_pattern:px(o.matches),errorInfo:y})}:void 0;return u.reduceRight((g,y,x)=>{let E,C=!1,w=null,b=null;o&&(E=c&&y.route.id?c[y.route.id]:void 0,w=y.route.errorElement||xx,d&&(h<0&&x===0?(Cv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,b=null):h===x&&(C=!0,b=y.route.hydrateFallbackElement||null)));let I=t.concat(u.slice(0,x+1)),L=()=>{let $;return E?$=w:C?$=b:y.route.Component?$=S.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=g,S.createElement(Cx,{match:y,routeContext:{outlet:g,matches:I,isDataRoute:o!=null},children:$})};return o&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?S.createElement(kx,{location:o.location,revalidation:o.revalidation,component:w,error:E,children:L(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:m}):L()},null)}function Ad(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bx(e){let t=S.useContext(Bi);return tt(t,Ad(e)),t}function Rx(e){let t=S.useContext(uu);return tt(t,Ad(e)),t}function _x(e){let t=S.useContext(xr);return tt(t,Ad(e)),t}function Md(e){let t=_x(e),o=t.matches[t.matches.length-1];return tt(o.route.id,`${e} can only be used on routes that contain a unique "id"`),o.route.id}function Px(){return Md("useRouteId")}function Tx(){var i;let e=S.useContext(Od),t=Rx("useRouteError"),o=Md("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[o]}function $x(){let{router:e}=bx("useNavigate"),t=Md("useNavigate"),o=S.useRef(!1);return Sv(()=>{o.current=!0}),S.useCallback(async(a,u={})=>{zn(o.current,wv),o.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...u}))},[e,t])}var xg={};function Cv(e,t,o){!t&&!xg[e]&&(xg[e]=!0,zn(!1,o))}S.memo(Ix);function Ix({routes:e,future:t,state:o,unstable_onError:i}){return kv(e,void 0,o,i,t)}function Ox(e){tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ax({basename:e="/",children:t=null,location:o,navigationType:i="POP",navigator:a,static:u=!1,unstable_useTransitions:c}){tt(!la(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:d,navigator:a,static:u,unstable_useTransitions:c,future:{}}),[d,a,u,c]);typeof o=="string"&&(o=ji(o));let{pathname:m="/",search:g="",hash:y="",state:x=null,key:E="default"}=o,C=S.useMemo(()=>{let w=vr(m,d);return w==null?null:{location:{pathname:w,search:g,hash:y,state:x,key:E},navigationType:i}},[d,m,g,y,x,E,i]);return zn(C!=null,`<Router basename="${d}"> is not able to match the URL "${m}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:S.createElement(Ln.Provider,{value:h},S.createElement(aa.Provider,{children:t,value:C}))}function Mx({children:e,location:t}){return wx(Wf(e),t)}function Wf(e,t=[]){let o=[];return S.Children.forEach(e,(i,a)=>{if(!S.isValidElement(i))return;let u=[...t,a];if(i.type===S.Fragment){o.push.apply(o,Wf(i.props.children,u));return}tt(i.type===Ox,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Wf(i.props.children,u)),o.push(c)}),o}var Ul="get",Wl="application/x-www-form-urlencoded";function cu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function zx(e){return cu(e)&&e.tagName.toLowerCase()==="button"}function Lx(e){return cu(e)&&e.tagName.toLowerCase()==="form"}function Nx(e){return cu(e)&&e.tagName.toLowerCase()==="input"}function Dx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fx(e,t){return e.button===0&&(!t||t==="_self")&&!Dx(e)}var bl=null;function jx(){if(bl===null)try{new FormData(document.createElement("form"),0),bl=!1}catch{bl=!0}return bl}var Bx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _f(e){return e!=null&&!Bx.has(e)?(zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wl}"`),null):e}function Ux(e,t){let o,i,a,u,c;if(Lx(e)){let d=e.getAttribute("action");i=d?vr(d,t):null,o=e.getAttribute("method")||Ul,a=_f(e.getAttribute("enctype"))||Wl,u=new FormData(e)}else if(zx(e)||Nx(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(i=h?vr(h,t):null,o=e.getAttribute("formmethod")||d.getAttribute("method")||Ul,a=_f(e.getAttribute("formenctype"))||_f(d.getAttribute("enctype"))||Wl,u=new FormData(d,e),!jx()){let{name:m,type:g,value:y}=e;if(g==="image"){let x=m?`${m}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else m&&u.append(m,y)}}else{if(cu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ul,i=null,a=Wl,c=e}return u&&a==="text/plain"&&(c=u,u=void 0),{action:i,method:o.toLowerCase(),encType:a,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zd(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wx(e,t,o){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${o}`:t&&vr(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${o}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${o}`,i}async function Vx(e,t){if(e.id in t)return t[e.id];try{let o=await import(e.module);return t[e.id]=o,o}catch(o){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zx(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Hx(e,t,o){let i=await Promise.all(e.map(async a=>{let u=t.routes[a.route.id];if(u){let c=await Vx(u,o);return c.links?c.links():[]}return[]}));return qx(i.flat(1).filter(Zx).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function kg(e,t,o,i,a,u){let c=(h,m)=>o[m]?h.route.id!==o[m].route.id:!0,d=(h,m)=>{var g;return o[m].pathname!==h.pathname||((g=o[m].route.path)==null?void 0:g.endsWith("*"))&&o[m].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,m)=>c(h,m)||d(h,m)):u==="data"?t.filter((h,m)=>{var y;let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,m)||d(h,m))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=o[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Qx(e,t,{includeHydrateFallback:o}={}){return Kx(e.map(i=>{let a=t.routes[i.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),o&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function Kx(e){return[...new Set(e)]}function Gx(e){let t={},o=Object.keys(e).sort();for(let i of o)t[i]=e[i];return t}function qx(e,t){let o=new Set;return new Set(t),e.reduce((i,a)=>{let u=JSON.stringify(Gx(a));return o.has(u)||(o.add(u),i.push({key:u,link:a})),i},[])}function Ev(){let e=S.useContext(Bi);return zd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Yx(){let e=S.useContext(uu);return zd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ld=S.createContext(void 0);Ld.displayName="FrameworkContext";function bv(){let e=S.useContext(Ld);return zd(e,"You must render this element inside a <HydratedRouter> element"),e}function Xx(e,t){let o=S.useContext(Ld),[i,a]=S.useState(!1),[u,c]=S.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:y}=t,x=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let w=I=>{I.forEach(L=>{c(L.isIntersecting)})},b=new IntersectionObserver(w,{threshold:.5});return x.current&&b.observe(x.current),()=>{b.disconnect()}}},[e]),S.useEffect(()=>{if(i){let w=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(w)}}},[i]);let E=()=>{a(!0)},C=()=>{a(!1),c(!1)};return o?e!=="intent"?[u,x,{}]:[u,x,{onFocus:As(d,E),onBlur:As(h,C),onMouseEnter:As(m,E),onMouseLeave:As(g,C),onTouchStart:As(y,E)}]:[!1,x,{}]}function As(e,t){return o=>{e&&e(o),o.defaultPrevented||t(o)}}function Jx({page:e,...t}){let{router:o}=Ev(),i=S.useMemo(()=>dv(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?S.createElement(tk,{page:e,matches:i,...t}):null}function ek(e){let{manifest:t,routeModules:o}=bv(),[i,a]=S.useState([]);return S.useEffect(()=>{let u=!1;return Hx(e,t,o).then(c=>{u||a(c)}),()=>{u=!0}},[e,t,o]),i}function tk({page:e,matches:t,...o}){let i=kr(),{manifest:a,routeModules:u}=bv(),{basename:c}=Ev(),{loaderData:d,matches:h}=Yx(),m=S.useMemo(()=>kg(e,t,h,a,i,"data"),[e,t,h,a,i]),g=S.useMemo(()=>kg(e,t,h,a,i,"assets"),[e,t,h,a,i]),y=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let C=new Set,w=!1;if(t.forEach(I=>{var $;let L=a.routes[I.route.id];!L||!L.hasLoader||(!m.some(T=>T.route.id===I.route.id)&&I.route.id in d&&(($=u[I.route.id])!=null&&$.shouldRevalidate)||L.hasClientLoader?w=!0:C.add(I.route.id))}),C.size===0)return[];let b=Wx(e,c,"data");return w&&C.size>0&&b.searchParams.set("_routes",t.filter(I=>C.has(I.route.id)).map(I=>I.route.id).join(",")),[b.pathname+b.search]},[c,d,i,a,m,t,e,u]),x=S.useMemo(()=>Qx(g,a),[g,a]),E=ek(g);return S.createElement(S.Fragment,null,y.map(C=>S.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...o})),x.map(C=>S.createElement("link",{key:C,rel:"modulepreload",href:C,...o})),E.map(({key:C,link:w})=>S.createElement("link",{key:C,nonce:o.nonce,...w})))}function nk(...e){return t=>{e.forEach(o=>{typeof o=="function"?o(t):o!=null&&(o.current=t)})}}var Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rv&&(window.__reactRouterVersion="7.10.0")}catch{}function rk({basename:e,children:t,unstable_useTransitions:o,window:i}){let a=S.useRef();a.current==null&&(a.current=US({window:i,v5Compat:!0}));let u=a.current,[c,d]=S.useState({action:u.action,location:u.location}),h=S.useCallback(m=>{o===!1?d(m):S.startTransition(()=>d(m))},[o]);return S.useLayoutEffect(()=>u.listen(h),[u,h]),S.createElement(Ax,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:o===!0})}var _v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pv=S.forwardRef(function({onClick:t,discover:o="render",prefetch:i="none",relative:a,reloadDocument:u,replace:c,state:d,target:h,to:m,preventScrollReset:g,viewTransition:y,...x},E){let{basename:C,unstable_useTransitions:w}=S.useContext(Ln),b=typeof m=="string"&&_v.test(m),I,L=!1;if(typeof m=="string"&&b&&(I=m,Rv))try{let V=new URL(window.location.href),J=m.startsWith("//")?new URL(V.protocol+m):new URL(m),k=vr(J.pathname,C);J.origin===V.origin&&k!=null?m=k+J.search+J.hash:L=!0}catch{zn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=yx(m,{relative:a}),[T,A,z]=Xx(i,x),F=ak(m,{replace:c,state:d,target:h,preventScrollReset:g,relative:a,viewTransition:y,unstable_useTransitions:w});function U(V){t&&t(V),V.defaultPrevented||F(V)}let H=S.createElement("a",{...x,...z,href:I||$,onClick:L||u?t:U,ref:nk(E,A),target:h,"data-discover":!b&&o==="render"?"true":void 0});return T&&!b?S.createElement(S.Fragment,null,H,S.createElement(Jx,{page:$})):H});Pv.displayName="Link";var ok=S.forwardRef(function({"aria-current":t="page",caseSensitive:o=!1,className:i="",end:a=!1,style:u,to:c,viewTransition:d,children:h,...m},g){let y=ua(c,{relative:m.relative}),x=kr(),E=S.useContext(uu),{navigator:C,basename:w}=S.useContext(Ln),b=E!=null&&dk(y)&&d===!0,I=C.encodeLocation?C.encodeLocation(y).pathname:y.pathname,L=x.pathname,$=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;o||(L=L.toLowerCase(),$=$?$.toLowerCase():null,I=I.toLowerCase()),$&&w&&($=vr($,w)||$);const T=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let A=L===I||!a&&L.startsWith(I)&&L.charAt(T)==="/",z=$!=null&&($===I||!a&&$.startsWith(I)&&$.charAt(I.length)==="/"),F={isActive:A,isPending:z,isTransitioning:b},U=A?t:void 0,H;typeof i=="function"?H=i(F):H=[i,A?"active":null,z?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let V=typeof u=="function"?u(F):u;return S.createElement(Pv,{...m,"aria-current":U,className:H,ref:g,style:V,to:c,viewTransition:d},typeof h=="function"?h(F):h)});ok.displayName="NavLink";var ik=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:o,reloadDocument:i,replace:a,state:u,method:c=Ul,action:d,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:y,...x},E)=>{let{unstable_useTransitions:C}=S.useContext(Ln),w=ck(),b=fk(d,{relative:m}),I=c.toLowerCase()==="get"?"get":"post",L=typeof d=="string"&&_v.test(d),$=T=>{if(h&&h(T),T.defaultPrevented)return;T.preventDefault();let A=T.nativeEvent.submitter,z=(A==null?void 0:A.getAttribute("formmethod"))||c,F=()=>w(A||T.currentTarget,{fetcherKey:t,method:z,navigate:o,replace:a,state:u,relative:m,preventScrollReset:g,viewTransition:y});C&&o!==!1?S.startTransition(()=>F()):F()};return S.createElement("form",{ref:E,method:I,action:b,onSubmit:i?h:$,...x,"data-discover":!L&&e==="render"?"true":void 0})});ik.displayName="Form";function sk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tv(e){let t=S.useContext(Bi);return tt(t,sk(e)),t}function ak(e,{target:t,replace:o,state:i,preventScrollReset:a,relative:u,viewTransition:c,unstable_useTransitions:d}={}){let h=xv(),m=kr(),g=ua(e,{relative:u});return S.useCallback(y=>{if(Fx(y,t)){y.preventDefault();let x=o!==void 0?o:Hs(m)===Hs(g),E=()=>h(e,{replace:x,state:i,preventScrollReset:a,relative:u,viewTransition:c});d?S.startTransition(()=>E()):E()}},[m,h,g,o,i,t,e,a,u,c,d])}var lk=0,uk=()=>`__${String(++lk)}__`;function ck(){let{router:e}=Tv("useSubmit"),{basename:t}=S.useContext(Ln),o=Px(),i=e.fetch,a=e.navigate;return S.useCallback(async(u,c={})=>{let{action:d,method:h,encType:m,formData:g,body:y}=Ux(u,t);if(c.navigate===!1){let x=c.fetcherKey||uk();await i(x,o,c.action||d,{preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||h,formEncType:c.encType||m,flushSync:c.flushSync})}else await a(c.action||d,{preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||h,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:o,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,a,t,o])}function fk(e,{relative:t}={}){let{basename:o}=S.useContext(Ln),i=S.useContext(xr);tt(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),u={...ua(e||".",{relative:t})},c=kr();if(e==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(y=>y).forEach(y=>d.append("index",y));let g=d.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:gr([o,u.pathname])),Hs(u)}function dk(e,{relative:t}={}){let o=S.useContext(vv);tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Tv("useViewTransitionState"),a=ua(e,{relative:t});if(!o.isTransitioning)return!1;let u=vr(o.currentLocation.pathname,i)||o.currentLocation.pathname,c=vr(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Gl(a.pathname,c)!=null||Gl(a.pathname,u)!=null}var $v=fv();const Rl=qy($v),Cg=e=>e,pk=()=>{let e=Cg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cg}}},Iv=pk();function Ao(e,...t){const o=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}function Ue(e){if(typeof e!="string")throw new Error(Ao(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Eg(...e){return e.reduce((t,o)=>o==null?t:function(...a){t.apply(this,a),o.apply(this,a)},()=>{})}function Ov(e){var t,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Ov(e[t]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function $e(){for(var e,t,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Ov(e))&&(i&&(i+=" "),i+=t);return i}function Mt(e,t,o=void 0){const i={};for(const a in e){const u=e[a];let c="",d=!0;for(let h=0;h<u.length;h+=1){const m=u[h];m&&(c+=(d===!0?"":" ")+t(m),d=!1,o&&o[m]&&(c+=" "+o[m]))}i[a]=c}return i}var Pf={exports:{}},Be={};/**
|
|
59
59
|
* @license React
|
|
60
60
|
* react-is.production.js
|
|
61
61
|
*
|
|
@@ -63,16 +63,15 @@ Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}
|
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the MIT license found in the
|
|
65
65
|
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var VC;function dK(){if(VC)return Ct;VC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case r:case i:case n:case c:case f:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case u:case m:case d:return x;case o:return x;default:return w}}case t:return w}}}return Ct.ContextConsumer=o,Ct.ContextProvider=a,Ct.Element=e,Ct.ForwardRef=u,Ct.Fragment=r,Ct.Lazy=m,Ct.Memo=d,Ct.Portal=t,Ct.Profiler=i,Ct.StrictMode=n,Ct.Suspense=c,Ct.SuspenseList=f,Ct.isContextConsumer=function(x){return y(x)===o},Ct.isContextProvider=function(x){return y(x)===a},Ct.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ct.isForwardRef=function(x){return y(x)===u},Ct.isFragment=function(x){return y(x)===r},Ct.isLazy=function(x){return y(x)===m},Ct.isMemo=function(x){return y(x)===d},Ct.isPortal=function(x){return y(x)===t},Ct.isProfiler=function(x){return y(x)===i},Ct.isStrictMode=function(x){return y(x)===n},Ct.isSuspense=function(x){return y(x)===c},Ct.isSuspenseList=function(x){return y(x)===f},Ct.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===d||x.$$typeof===a||x.$$typeof===o||x.$$typeof===u||x.$$typeof===g||x.getModuleId!==void 0)},Ct.typeOf=y,Ct}var GC;function pK(){return GC||(GC=1,zb.exports=dK()),zb.exports}var jR=pK();function oo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function AR(e){if(b.isValidElement(e)||jR.isValidElementType(e)||!oo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=AR(e[r])}),t}function Or(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return oo(e)&&oo(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])||jR.isValidElementType(t[i])?n[i]=t[i]:oo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&oo(e[i])?n[i]=Or(e[i],t[i],r):r.clone?n[i]=oo(t[i])?AR(t[i]):t[i]:n[i]=t[i]}),n}function pf(e,t){return t?Or(e,t,{clone:!1}):e}function YC(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var a,u;const o=/min-width:\s*([0-9.]+)/;return+(((a=n.match(o))==null?void 0:a[1])||0)-+(((u=i.match(o))==null?void 0:u[1])||0)});return r.length?r.reduce((n,i)=>{const o=t[i];return delete n[i],n[i]=o,n},{...t}):t}function mK(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function hK(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function vK(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function r(o,a){o.up=(...u)=>t(e.breakpoints.up(...u),a),o.down=(...u)=>t(e.breakpoints.down(...u),a),o.between=(...u)=>t(e.breakpoints.between(...u),a),o.only=(...u)=>t(e.breakpoints.only(...u),a),o.not=(...u)=>{const c=t(e.breakpoints.not(...u),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 n={},i=o=>(r(n,o),n);return r(i),{...e,containerQueries:i}}const yv={xs:0,sm:600,md:900,lg:1200,xl:1536},XC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yv[e]}px)`},gK={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:yv[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Mi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||XC;return t.reduce((a,u,c)=>(a[o.up(o.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const o=n.breakpoints||XC;return Object.keys(t).reduce((a,u)=>{if(mK(o.keys,u)){const c=hK(n.containerQueries?n:gK,u);c&&(a[c]=r(t[u],u))}else if(Object.keys(o.values||yv).includes(u)){const c=o.up(u);a[c]=r(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return r(t)}function RR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function Lw(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function yK(e,...t){const r=RR(e),n=[r,...t].reduce((i,o)=>Or(i,o),{});return Lw(Object.keys(r),n)}function bK(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function Lb({values:e,breakpoints:t,base:r}){const n=r||bK(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[o],o=u):a[u]=e,a),{})}function bv(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function eh(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=bv(e,r)||n,t&&(i=t(i,n,e)),i}function ir(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=bv(c,n)||{};return Mi(a,u,m=>{let h=eh(f,i,m);return m===h&&typeof m=="string"&&(h=eh(f,i,`${t}${m==="default"?"":xe(m)}`,m)),r===!1?h:{[r]:h}})};return o.propTypes={},o.filterProps=[t],o}function wK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xK={m:"margin",p:"padding"},SK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},QC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kK=wK(e=>{if(e.length>2)if(QC[e])e=QC[e];else return[e];const[t,r]=e.split(""),n=xK[t],i=SK[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),WS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],KS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WS,...KS];function ad(e,t,r,n){const i=bv(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),u=i[a];return o>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof i=="function"?i:()=>{}}function wv(e){return ad(e,"spacing",8)}function Js(e,t){return typeof t=="string"||t==null?t:e(t)}function $K(e,t){return r=>e.reduce((n,i)=>(n[i]=Js(t,r),n),{})}function _K(e,t,r,n){if(!t.includes(r))return null;const i=kK(r),o=$K(i,n),a=e[r];return Mi(e,a,o)}function NR(e,t){const r=wv(e.theme);return Object.keys(e).map(n=>_K(e,t,n,r)).reduce(pf,{})}function Gt(e){return NR(e,WS)}Gt.propTypes={};Gt.filterProps=WS;function Yt(e){return NR(e,KS)}Yt.propTypes={};Yt.filterProps=KS;function xv(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?pf(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ri(e){return typeof e!="number"?e:`${e}px solid`}function fi(e,t){return ir({prop:e,themeKey:"borders",transform:t})}const PK=fi("border",ri),OK=fi("borderTop",ri),CK=fi("borderRight",ri),EK=fi("borderBottom",ri),IK=fi("borderLeft",ri),TK=fi("borderColor"),jK=fi("borderTopColor"),AK=fi("borderRightColor"),RK=fi("borderBottomColor"),NK=fi("borderLeftColor"),MK=fi("outline",ri),DK=fi("outlineColor"),Sv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ad(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Js(t,n)});return Mi(e,e.borderRadius,r)}return null};Sv.propTypes={};Sv.filterProps=["borderRadius"];xv(PK,OK,CK,EK,IK,TK,jK,AK,RK,NK,Sv,MK,DK);const kv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ad(e.theme,"spacing",8),r=n=>({gap:Js(t,n)});return Mi(e,e.gap,r)}return null};kv.propTypes={};kv.filterProps=["gap"];const $v=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ad(e.theme,"spacing",8),r=n=>({columnGap:Js(t,n)});return Mi(e,e.columnGap,r)}return null};$v.propTypes={};$v.filterProps=["columnGap"];const _v=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ad(e.theme,"spacing",8),r=n=>({rowGap:Js(t,n)});return Mi(e,e.rowGap,r)}return null};_v.propTypes={};_v.filterProps=["rowGap"];const zK=ir({prop:"gridColumn"}),LK=ir({prop:"gridRow"}),UK=ir({prop:"gridAutoFlow"}),FK=ir({prop:"gridAutoColumns"}),BK=ir({prop:"gridAutoRows"}),WK=ir({prop:"gridTemplateColumns"}),KK=ir({prop:"gridTemplateRows"}),HK=ir({prop:"gridTemplateAreas"}),ZK=ir({prop:"gridArea"});xv(kv,$v,_v,zK,LK,UK,FK,BK,WK,KK,HK,ZK);function ru(e,t){return t==="grey"?t:e}const qK=ir({prop:"color",themeKey:"palette",transform:ru}),VK=ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),GK=ir({prop:"backgroundColor",themeKey:"palette",transform:ru});xv(qK,VK,GK);function En(e){return e<=1&&e!==0?`${e*100}%`:e}const YK=ir({prop:"width",transform:En}),HS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,o,a,u,c;const n=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[r])||yv[r];return n?((c=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:En(r)}};return Mi(e,e.maxWidth,t)}return null};HS.filterProps=["maxWidth"];const XK=ir({prop:"minWidth",transform:En}),QK=ir({prop:"height",transform:En}),JK=ir({prop:"maxHeight",transform:En}),eH=ir({prop:"minHeight",transform:En});ir({prop:"size",cssProperty:"width",transform:En});ir({prop:"size",cssProperty:"height",transform:En});const tH=ir({prop:"boxSizing"});xv(YK,HS,XK,QK,JK,eH,tH);const sd={border:{themeKey:"borders",transform:ri},borderTop:{themeKey:"borders",transform:ri},borderRight:{themeKey:"borders",transform:ri},borderBottom:{themeKey:"borders",transform:ri},borderLeft:{themeKey:"borders",transform:ri},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ri},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sv},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},p:{style:Yt},pt:{style:Yt},pr:{style:Yt},pb:{style:Yt},pl:{style:Yt},px:{style:Yt},py:{style:Yt},padding:{style:Yt},paddingTop:{style:Yt},paddingRight:{style:Yt},paddingBottom:{style:Yt},paddingLeft:{style:Yt},paddingX:{style:Yt},paddingY:{style:Yt},paddingInline:{style:Yt},paddingInlineStart:{style:Yt},paddingInlineEnd:{style:Yt},paddingBlock:{style:Yt},paddingBlockStart:{style:Yt},paddingBlockEnd:{style:Yt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kv},rowGap:{style:_v},columnGap:{style:$v},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:En},maxWidth:{style:HS},minWidth:{transform:En},height:{transform:En},maxHeight:{transform:En},minHeight:{transform:En},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 rH(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function nH(e,t){return typeof e=="function"?e(t):e}function iH(){function e(r,n,i,o){const a={[r]:n,theme:i},u=o[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:f,transform:d,style:m}=u;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const h=bv(i,f)||{};return m?m(a):Mi(a,n,y=>{let x=eh(h,d,y);return y===x&&typeof y=="string"&&(x=eh(h,d,`${r}${y==="default"?"":xe(y)}`,y)),c===!1?x:{[c]:x}})}function t(r){const{sx:n,theme:i={},nested:o}=r||{};if(!n)return null;const a=i.unstable_sxConfig??sd;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const d=RR(i.breakpoints),m=Object.keys(d);let h=d;return Object.keys(f).forEach(g=>{const y=nH(f[g],i);if(y!=null)if(typeof y=="object")if(a[g])h=pf(h,e(g,y,i,a));else{const x=Mi({theme:i},y,w=>({[g]:w}));rH(x,y)?h[g]=t({sx:y,theme:i,nested:!0}):h=pf(h,x)}else h=pf(h,e(g,y,i,a))}),!o&&i.modularCssLayers?{"@layer sx":YC(i,Lw(m,h))}:YC(i,Lw(m,h))}return Array.isArray(n)?n.map(u):u(n)}return t}const Za=iH();Za.filterProps=["sx"];const oH=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??sd;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function ZS(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=oH(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const u=t(...a);return oo(u)?{...n,...u}:n}:o={...n,...t},{...i,sx:o}}var aH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sH=aR(function(e){return aH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),lH=sH,uH=function(t){return t!=="theme"},JC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?lH:uH},eE=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},cH=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return TS(r,n,i),dR(function(){return jS(r,n,i)}),null},fH=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var u=eE(t,r,n),c=u||JC(i),f=!c("as");return function(){var d=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)m.push.apply(m,d);else{var h=d[0];m.push(h[0]);for(var g=d.length,y=1;y<g;y++)m.push(d[y],h[y])}var x=AS(function(w,k,C){var $=f&&w.as||i,P="",O=[],E=w;if(w.theme==null){E={};for(var j in w)E[j]=w[j];E.theme=b.useContext(rd)}typeof w.className=="string"?P=uR(k.registered,O,w.className):w.className!=null&&(P=w.className+" ");var R=td(m.concat(O),k.registered,E);P+=k.key+"-"+R.name,a!==void 0&&(P+=" "+a);var D=f&&u===void 0?JC($):c,L={};for(var M in w)f&&M==="as"||D(M)&&(L[M]=w[M]);return L.className=P,C&&(L.ref=C),b.createElement(b.Fragment,null,b.createElement(cH,{cache:k,serialized:R,isStringTag:typeof $=="string"}),b.createElement($,L))});return x.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=m,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(w,k){var C=e(w,Qm({},r,k,{shouldForwardProp:eE(x,k,!0)}));return C.apply(void 0,m)},x}},dH=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Uw=fH.bind(null);dH.forEach(function(e){Uw[e]=Uw(e)});function pH(e){return e==null||Object.keys(e).length===0}function MR(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(pH(i)?r:i):t;return A.jsx(A8,{styles:n})}function DR(e,t){return Uw(e,t)}function mH(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const tE=[];function Wa(e){return tE[0]=e,td(tE)}const hH=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function vH(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,o=hH(t),a=Object.keys(o);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function f(h,g){const y=a.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:g)-n/100}${r})`}function d(h){return a.indexOf(h)+1<a.length?f(h,a[a.indexOf(h)+1]):u(h)}function m(h){const g=a.indexOf(h);return g===0?u(a[1]):g===a.length-1?c(a[g]):f(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:u,down:c,between:f,only:d,not:m,unit:r,...i}}const gH={borderRadius:4};function zR(e=8,t=wv({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function yH(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Pv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={},...a}=e,u=vH(r),c=zR(i);let f=Or({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...gH,...o}},a);return f=vK(f),f.applyStyles=yH,f=t.reduce((d,m)=>Or(d,m),f),f.unstable_sxConfig={...sd,...a==null?void 0:a.unstable_sxConfig},f.unstable_sx=function(m){return Za({sx:m,theme:this})},f}function bH(e){return Object.keys(e).length===0}function Ov(e=null){const t=b.useContext(rd);return!t||bH(t)?e:t}const wH=Pv();function Cv(e=wH){return Ov(e)}function Ub(e){const t=Wa(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function LR({styles:e,themeId:t,defaultTheme:r={}}){const n=Cv(r),i=t&&n[t]||n;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>Ub(typeof a=="function"?a(i):a)):o=Ub(o)),A.jsx(MR,{styles:o})}function xH(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,o=DR("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Za);return b.forwardRef(function(c,f){const d=Cv(r),{className:m,component:h="div",...g}=ZS(c);return A.jsx(o,{as:h,ref:f,className:ve(m,i?i(n):n),theme:t&&d[t]||d,...g})})}const SH={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 Ze(e,t,r="Mui"){const n=SH[t];return n?`${r}-${n}`:`${IR.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ze(e,i,r)}),n}function UR(e){const{variants:t,...r}=e,n={variants:t,style:Wa(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Wa(i.style))}),n}const kH=Pv();function Fb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Es(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function $H(e){return e?(t,r)=>r[e]:null}function _H(e,t,r){e.theme=OH(e.theme)?r:e.theme[t]||e.theme}function Fm(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Fm(e,i,r));if(Array.isArray(n==null?void 0:n.variants)){let i;if(n.isProcessed)i=r?Es(n.style,r):n.style;else{const{variants:o,...a}=n;i=r?Es(Wa(a),r):a}return FR(e,n.variants,[i],r)}return n!=null&&n.isProcessed?r?Es(Wa(n.style),r):n.style:r?Es(Wa(n),r):n}function FR(e,t,r=[],n=void 0){var o;let i;e:for(let a=0;a<t.length;a+=1){const u=t[a];if(typeof u.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(i))continue}else for(const c in u.props)if(e[c]!==u.props[c]&&((o=e.ownerState)==null?void 0:o[c])!==u.props[c])continue e;typeof u.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?Es(Wa(u.style(i)),n):u.style(i))):r.push(n?Es(Wa(u.style),n):u.style)}return r}function BR(e={}){const{themeId:t,defaultTheme:r=kH,rootShouldForwardProp:n=Fb,slotShouldForwardProp:i=Fb}=e;function o(u){_H(u,t,r)}return(u,c={})=>{mH(u,E=>E.filter(j=>j!==Za));const{name:f,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:g=$H(EH(d)),...y}=c,x=f&&f.startsWith("Mui")||d?"components":"custom",w=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,k=h||!1;let C=Fb;d==="Root"||d==="root"?C=n:d?C=i:CH(u)&&(C=void 0);const $=DR(u,{shouldForwardProp:C,label:PH(),...y}),P=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return Fm(R,E,R.theme.modularCssLayers?x:void 0)};if(oo(E)){const j=UR(E);return function(D){return j.variants?Fm(D,j,D.theme.modularCssLayers?x:void 0):D.theme.modularCssLayers?Es(j.style,x):j.style}}return E},O=(...E)=>{const j=[],R=E.map(P),D=[];if(j.push(o),f&&g&&D.push(function(W){var ee,F;const Z=(F=(ee=W.theme.components)==null?void 0:ee[f])==null?void 0:F.styleOverrides;if(!Z)return null;const V={};for(const z in Z)V[z]=Fm(W,Z[z],W.theme.modularCssLayers?"theme":void 0);return g(W,V)}),f&&!w&&D.push(function(W){var V,ee;const K=W.theme,Z=(ee=(V=K==null?void 0:K.components)==null?void 0:V[f])==null?void 0:ee.variants;return Z?FR(W,Z,[],W.theme.modularCssLayers?"theme":void 0):null}),k||D.push(Za),Array.isArray(R[0])){const I=R.shift(),W=new Array(j.length).fill(""),K=new Array(D.length).fill("");let Z;Z=[...W,...I,...K],Z.raw=[...W,...I.raw,...K],j.unshift(Z)}const L=[...j,...R,...D],M=$(...L);return u.muiName&&(M.muiName=u.muiName),M};return $.withConfig&&(O.withConfig=$.withConfig),O}}function PH(e,t){return void 0}function OH(e){for(const t in e)return!1;return!0}function CH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function EH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const IH=BR();function th(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],u=t[o];if(!u)n[o]=a||{};else if(!a)n[o]=u;else{n[o]={...u};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const f=c;n[o][f]=th(a[f],u[f],r)}}}else o==="className"&&r&&t.className?n.className=ve(e==null?void 0:e.className,t==null?void 0:t.className):o==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[o]===void 0&&(n[o]=e[o])}return n}function WR(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:th(t.components[r].defaultProps,n)}function TH({props:e,name:t,defaultTheme:r,themeId:n}){let i=Cv(r);return n&&(i=i[n]||i),WR({theme:i,name:t,props:e})}const xn=typeof window<"u"?b.useLayoutEffect:b.useEffect;function jH(e,t,r,n,i){const[o,a]=b.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return xn(()=>{if(!r)return;const u=r(e),c=()=>{a(u.matches)};return c(),u.addEventListener("change",c),()=>{u.removeEventListener("change",c)}},[e,r]),o}const AH={...xf},KR=AH.useSyncExternalStore;function RH(e,t,r,n,i){const o=b.useCallback(()=>t,[t]),a=b.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return o},[o,e,n,i,r]),[u,c]=b.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const d=r(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[o,r,e]);return KR(c,u,a)}function HR(e={}){const{themeId:t}=e;return function(n,i={}){let o=Ov();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:d=!1}=WR({name:"MuiUseMediaQuery",props:i,theme:o});let m=typeof n=="function"?n(o):n;return m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
67
|
-
|
|
68
|
-
${
|
|
69
|
-
${
|
|
70
|
-
${u}.setAttribute('${h}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else d!==".%s"&&(f+=`${u}.setAttribute('${d}', colorScheme);`);return A.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
66
|
+
*/var bg;function hk(){if(bg)return Be;bg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function C(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case o:case a:case i:case h:case m:case x:return w;default:switch(w=w&&w.$$typeof,w){case c:case d:case y:case g:return w;case u:return w;default:return b}}case t:return b}}}return Be.ContextConsumer=u,Be.ContextProvider=c,Be.Element=e,Be.ForwardRef=d,Be.Fragment=o,Be.Lazy=y,Be.Memo=g,Be.Portal=t,Be.Profiler=a,Be.StrictMode=i,Be.Suspense=h,Be.SuspenseList=m,Be.isContextConsumer=function(w){return C(w)===u},Be.isContextProvider=function(w){return C(w)===c},Be.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Be.isForwardRef=function(w){return C(w)===d},Be.isFragment=function(w){return C(w)===o},Be.isLazy=function(w){return C(w)===y},Be.isMemo=function(w){return C(w)===g},Be.isPortal=function(w){return C(w)===t},Be.isProfiler=function(w){return C(w)===a},Be.isStrictMode=function(w){return C(w)===i},Be.isSuspense=function(w){return C(w)===h},Be.isSuspenseList=function(w){return C(w)===m},Be.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===i||w===h||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===g||w.$$typeof===c||w.$$typeof===u||w.$$typeof===d||w.$$typeof===E||w.getModuleId!==void 0)},Be.typeOf=C,Be}var Rg;function mk(){return Rg||(Rg=1,Pf.exports=hk()),Pf.exports}var Av=mk();function Kn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Mv(e){if(S.isValidElement(e)||Av.isValidElementType(e)||!Kn(e))return e;const t={};return Object.keys(e).forEach(o=>{t[o]=Mv(e[o])}),t}function ln(e,t,o={clone:!0}){const i=o.clone?{...e}:e;return Kn(e)&&Kn(t)&&Object.keys(t).forEach(a=>{S.isValidElement(t[a])||Av.isValidElementType(t[a])?i[a]=t[a]:Kn(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Kn(e[a])?i[a]=ln(e[a],t[a],o):o.clone?i[a]=Kn(t[a])?Mv(t[a]):t[a]:i[a]=t[a]}),i}function Bs(e,t){return t?ln(e,t,{clone:!1}):e}function _g(e,t){if(!e.containerQueries)return t;const o=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,a)=>{var c,d;const u=/min-width:\s*([0-9.]+)/;return+(((c=i.match(u))==null?void 0:c[1])||0)-+(((d=a.match(u))==null?void 0:d[1])||0)});return o.length?o.reduce((i,a)=>{const u=t[a];return delete i[a],i[a]=u,i},{...t}):t}function gk(e,t){return t==="@"||t.startsWith("@")&&(e.some(o=>t.startsWith(`@${o}`))||!!t.match(/^@\d/))}function yk(e,t){const o=t.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,i,a]=o,u=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(u)}function vk(e){const t=(u,c)=>u.replace("@media",c?`@container ${c}`:"@container");function o(u,c){u.up=(...d)=>t(e.breakpoints.up(...d),c),u.down=(...d)=>t(e.breakpoints.down(...d),c),u.between=(...d)=>t(e.breakpoints.between(...d),c),u.only=(...d)=>t(e.breakpoints.only(...d),c),u.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},a=u=>(o(i,u),i);return o(a),{...e,containerQueries:a}}const fu={xs:0,sm:600,md:900,lg:1200,xl:1536},Pg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fu[e]}px)`},wk={containerQueries:e=>({up:t=>{let o=typeof t=="number"?t:fu[t]||t;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function wr(e,t,o){const i=e.theme||{};if(Array.isArray(t)){const u=i.breakpoints||Pg;return t.reduce((c,d,h)=>(c[u.up(u.keys[h])]=o(t[h]),c),{})}if(typeof t=="object"){const u=i.breakpoints||Pg;return Object.keys(t).reduce((c,d)=>{if(gk(u.keys,d)){const h=yk(i.containerQueries?i:wk,d);h&&(c[h]=o(t[d],d))}else if(Object.keys(u.values||fu).includes(d)){const h=u.up(d);c[h]=o(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return o(t)}function Sk(e={}){var o;return((o=e.keys)==null?void 0:o.reduce((i,a)=>{const u=e.up(a);return i[u]={},i},{}))||{}}function Tg(e,t){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},t)}function du(e,t,o=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&o){const i=`vars.${t}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,e);if(i!=null)return i}return t.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function ql(e,t,o,i=o){let a;return typeof e=="function"?a=e(o):Array.isArray(e)?a=e[o]||i:a=du(e,o)||i,t&&(a=t(a,i,e)),a}function ut(e){const{prop:t,cssProperty:o=e.prop,themeKey:i,transform:a}=e,u=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,m=du(h,i)||{};return wr(c,d,y=>{let x=ql(m,a,y);return y===x&&typeof y=="string"&&(x=ql(m,a,`${t}${y==="default"?"":Ue(y)}`,y)),o===!1?x:{[o]:x}})};return u.propTypes={},u.filterProps=[t],u}function xk(e){const t={};return o=>(t[o]===void 0&&(t[o]=e(o)),t[o])}const kk={m:"margin",p:"padding"},Ck={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$g={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ek=xk(e=>{if(e.length>2)if($g[e])e=$g[e];else return[e];const[t,o]=e.split(""),i=kk[t],a=Ck[o]||"";return Array.isArray(a)?a.map(u=>i+u):[i+a]}),Nd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Nd,...Dd];function ca(e,t,o,i){const a=du(e,t,!0)??o;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:typeof a=="string"?a.startsWith("var(")&&u===0?0:a.startsWith("var(")&&u===1?a:`calc(${u} * ${a})`:a*u:Array.isArray(a)?u=>{if(typeof u=="string")return u;const c=Math.abs(u),d=a[c];return u>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function Fd(e){return ca(e,"spacing",8)}function fa(e,t){return typeof t=="string"||t==null?t:e(t)}function bk(e,t){return o=>e.reduce((i,a)=>(i[a]=fa(t,o),i),{})}function Rk(e,t,o,i){if(!t.includes(o))return null;const a=Ek(o),u=bk(a,i),c=e[o];return wr(e,c,u)}function zv(e,t){const o=Fd(e.theme);return Object.keys(e).map(i=>Rk(e,t,i,o)).reduce(Bs,{})}function ot(e){return zv(e,Nd)}ot.propTypes={};ot.filterProps=Nd;function it(e){return zv(e,Dd)}it.propTypes={};it.filterProps=Dd;function pu(...e){const t=e.reduce((i,a)=>(a.filterProps.forEach(u=>{i[u]=a}),i),{}),o=i=>Object.keys(i).reduce((a,u)=>t[u]?Bs(a,t[u](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function wn(e){return typeof e!="number"?e:`${e}px solid`}function Sn(e,t){return ut({prop:e,themeKey:"borders",transform:t})}const _k=Sn("border",wn),Pk=Sn("borderTop",wn),Tk=Sn("borderRight",wn),$k=Sn("borderBottom",wn),Ik=Sn("borderLeft",wn),Ok=Sn("borderColor"),Ak=Sn("borderTopColor"),Mk=Sn("borderRightColor"),zk=Sn("borderBottomColor"),Lk=Sn("borderLeftColor"),Nk=Sn("outline",wn),Dk=Sn("outlineColor"),hu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ca(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:fa(t,i)});return wr(e,e.borderRadius,o)}return null};hu.propTypes={};hu.filterProps=["borderRadius"];pu(_k,Pk,Tk,$k,Ik,Ok,Ak,Mk,zk,Lk,hu,Nk,Dk);const mu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ca(e.theme,"spacing",8),o=i=>({gap:fa(t,i)});return wr(e,e.gap,o)}return null};mu.propTypes={};mu.filterProps=["gap"];const gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ca(e.theme,"spacing",8),o=i=>({columnGap:fa(t,i)});return wr(e,e.columnGap,o)}return null};gu.propTypes={};gu.filterProps=["columnGap"];const yu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ca(e.theme,"spacing",8),o=i=>({rowGap:fa(t,i)});return wr(e,e.rowGap,o)}return null};yu.propTypes={};yu.filterProps=["rowGap"];const Fk=ut({prop:"gridColumn"}),jk=ut({prop:"gridRow"}),Bk=ut({prop:"gridAutoFlow"}),Uk=ut({prop:"gridAutoColumns"}),Wk=ut({prop:"gridAutoRows"}),Vk=ut({prop:"gridTemplateColumns"}),Zk=ut({prop:"gridTemplateRows"}),Hk=ut({prop:"gridTemplateAreas"}),Qk=ut({prop:"gridArea"});pu(mu,gu,yu,Fk,jk,Bk,Uk,Wk,Vk,Zk,Hk,Qk);function xi(e,t){return t==="grey"?t:e}const Kk=ut({prop:"color",themeKey:"palette",transform:xi}),Gk=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xi}),qk=ut({prop:"backgroundColor",themeKey:"palette",transform:xi});pu(Kk,Gk,qk);function sn(e){return e<=1&&e!==0?`${e*100}%`:e}const Yk=ut({prop:"width",transform:sn}),jd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=o=>{var a,u,c,d,h;const i=((c=(u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.values)==null?void 0:c[o])||fu[o];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:sn(o)}};return wr(e,e.maxWidth,t)}return null};jd.filterProps=["maxWidth"];const Xk=ut({prop:"minWidth",transform:sn}),Jk=ut({prop:"height",transform:sn}),eC=ut({prop:"maxHeight",transform:sn}),tC=ut({prop:"minHeight",transform:sn});ut({prop:"size",cssProperty:"width",transform:sn});ut({prop:"size",cssProperty:"height",transform:sn});const nC=ut({prop:"boxSizing"});pu(Yk,jd,Xk,Jk,eC,tC,nC);const da={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hu},color:{themeKey:"palette",transform:xi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xi},backgroundColor:{themeKey:"palette",transform:xi},p:{style:it},pt:{style:it},pr:{style:it},pb:{style:it},pl:{style:it},px:{style:it},py:{style:it},padding:{style:it},paddingTop:{style:it},paddingRight:{style:it},paddingBottom:{style:it},paddingLeft:{style:it},paddingX:{style:it},paddingY:{style:it},paddingInline:{style:it},paddingInlineStart:{style:it},paddingInlineEnd:{style:it},paddingBlock:{style:it},paddingBlockStart:{style:it},paddingBlockEnd:{style:it},m:{style:ot},mt:{style:ot},mr:{style:ot},mb:{style:ot},ml:{style:ot},mx:{style:ot},my:{style:ot},margin:{style:ot},marginTop:{style:ot},marginRight:{style:ot},marginBottom:{style:ot},marginLeft:{style:ot},marginX:{style:ot},marginY:{style:ot},marginInline:{style:ot},marginInlineStart:{style:ot},marginInlineEnd:{style:ot},marginBlock:{style:ot},marginBlockStart:{style:ot},marginBlockEnd:{style:ot},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:mu},rowGap:{style:yu},columnGap:{style:gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sn},maxWidth:{style:jd},minWidth:{transform:sn},height:{transform:sn},maxHeight:{transform:sn},minHeight:{transform:sn},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 rC(...e){const t=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),o=new Set(t);return e.every(i=>o.size===Object.keys(i).length)}function oC(e,t){return typeof e=="function"?e(t):e}function iC(){function e(o,i,a,u){const c={[o]:i,theme:a},d=u[o];if(!d)return{[o]:i};const{cssProperty:h=o,themeKey:m,transform:g,style:y}=d;if(i==null)return null;if(m==="typography"&&i==="inherit")return{[o]:i};const x=du(a,m)||{};return y?y(c):wr(c,i,C=>{let w=ql(x,g,C);return C===w&&typeof C=="string"&&(w=ql(x,g,`${o}${C==="default"?"":Ue(C)}`,C)),h===!1?w:{[h]:w}})}function t(o){const{sx:i,theme:a={},nested:u}=o||{};if(!i)return null;const c=a.unstable_sxConfig??da;function d(h){let m=h;if(typeof h=="function")m=h(a);else if(typeof h!="object")return h;if(!m)return null;const g=Sk(a.breakpoints),y=Object.keys(g);let x=g;return Object.keys(m).forEach(E=>{const C=oC(m[E],a);if(C!=null)if(typeof C=="object")if(c[E])x=Bs(x,e(E,C,a,c));else{const w=wr({theme:a},C,b=>({[E]:b}));rC(w,C)?x[E]=t({sx:C,theme:a,nested:!0}):x=Bs(x,w)}else x=Bs(x,e(E,C,a,c))}),!u&&a.modularCssLayers?{"@layer sx":_g(a,Tg(y,x))}:_g(a,Tg(y,x))}return Array.isArray(i)?i.map(d):d(i)}return t}const eo=iC();eo.filterProps=["sx"];const sC=e=>{var i;const t={systemProps:{},otherProps:{}},o=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??da;return Object.keys(e).forEach(a=>{o[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function Lv(e){const{sx:t,...o}=e,{systemProps:i,otherProps:a}=sC(o);let u;return Array.isArray(t)?u=[i,...t]:typeof t=="function"?u=(...c)=>{const d=t(...c);return Kn(d)?{...i,...d}:i}:u={...i,...t},{...a,sx:u}}var aC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lC=rv(function(e){return aC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uC=lC,cC=function(t){return t!=="theme"},Ig=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uC:cC},Og=function(t,o,i){var a;if(o){var u=o.shouldForwardProp;a=t.__emotion_forwardProp&&u?function(c){return t.__emotion_forwardProp(c)&&u(c)}:u}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},fC=function(t){var o=t.cache,i=t.serialized,a=t.isStringTag;return _d(o,i,a),uv(function(){return Pd(o,i,a)}),null},dC=function e(t,o){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,u,c;o!==void 0&&(u=o.label,c=o.target);var d=Og(t,o,i),h=d||Ig(a),m=!h("as");return function(){var g=arguments,y=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{var x=g[0];y.push(x[0]);for(var E=g.length,C=1;C<E;C++)y.push(g[C],x[C])}var w=Td(function(b,I,L){var $=m&&b.as||a,T="",A=[],z=b;if(b.theme==null){z={};for(var F in b)z[F]=b[F];z.theme=S.useContext(ia)}typeof b.className=="string"?T=sv(I.registered,A,b.className):b.className!=null&&(T=b.className+" ");var U=oa(y.concat(A),I.registered,z);T+=I.key+"-"+U.name,c!==void 0&&(T+=" "+c);var H=m&&d===void 0?Ig($):h,V={};for(var J in b)m&&J==="as"||H(J)&&(V[J]=b[J]);return V.className=T,L&&(V.ref=L),S.createElement(S.Fragment,null,S.createElement(fC,{cache:I,serialized:U,isStringTag:typeof $=="string"}),S.createElement($,V))});return w.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=a,w.__emotion_styles=y,w.__emotion_forwardProp=d,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(b,I){var L=e(b,Kl({},o,I,{shouldForwardProp:Og(w,I,!0)}));return L.apply(void 0,y)},w}},pC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vf=dC.bind(null);pC.forEach(function(e){Vf[e]=Vf(e)});function hC(e){return e==null||Object.keys(e).length===0}function Nv(e){const{styles:t,defaultTheme:o={}}=e,i=typeof t=="function"?a=>t(hC(a)?o:a):t;return Y.jsx(LS,{styles:i})}function Dv(e,t){return Vf(e,t)}function mC(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ag=[];function Xr(e){return Ag[0]=e,oa(Ag)}const gC=e=>{const t=Object.keys(e).map(o=>({key:o,val:e[o]}))||[];return t.sort((o,i)=>o.val-i.val),t.reduce((o,i)=>({...o,[i.key]:i.val}),{})};function yC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,u=gC(t),c=Object.keys(u);function d(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${o})`}function h(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-i/100}${o})`}function m(x,E){const C=c.indexOf(E);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${o}) and (max-width:${(C!==-1&&typeof t[c[C]]=="number"?t[c[C]]:E)-i/100}${o})`}function g(x){return c.indexOf(x)+1<c.length?m(x,c[c.indexOf(x)+1]):d(x)}function y(x){const E=c.indexOf(x);return E===0?d(c[1]):E===c.length-1?h(c[E]):m(x,c[c.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:c,values:u,up:d,down:h,between:m,only:g,not:y,unit:o,...a}}const vC={borderRadius:4};function Fv(e=8,t=Fd({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(u=>{const c=t(u);return typeof c=="number"?`${c}px`:c}).join(" ");return o.mui=!0,o}function wC(e,t){var i;const o=this;if(o.vars){if(!((i=o.colorSchemes)!=null&&i[e])||typeof o.getColorSchemeSelector!="function")return{};let a=o.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return o.palette.mode===e?t:{}}function Bd(e={},...t){const{breakpoints:o={},palette:i={},spacing:a,shape:u={},...c}=e,d=yC(o),h=Fv(a);let m=ln({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...vC,...u}},c);return m=vk(m),m.applyStyles=wC,m=t.reduce((g,y)=>ln(g,y),m),m.unstable_sxConfig={...da,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(y){return eo({sx:y,theme:this})},m}function SC(e){return Object.keys(e).length===0}function Ud(e=null){const t=S.useContext(ia);return!t||SC(t)?e:t}const xC=Bd();function Wd(e=xC){return Ud(e)}function Tf(e){const t=Xr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function jv({styles:e,themeId:t,defaultTheme:o={}}){const i=Wd(o),a=t&&i[t]||i;let u=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(u)?u=u.map(c=>Tf(typeof c=="function"?c(a):c)):u=Tf(u)),Y.jsx(Nv,{styles:u})}function kC(e={}){const{themeId:t,defaultTheme:o,defaultClassName:i="MuiBox-root",generateClassName:a}=e,u=Dv("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(eo);return S.forwardRef(function(h,m){const g=Wd(o),{className:y,component:x="div",...E}=Lv(h);return Y.jsx(u,{as:x,ref:m,className:$e(y,a?a(i):i),theme:t&&g[t]||g,...E})})}const CC={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 Pt(e,t,o="Mui"){const i=CC[t];return i?`${o}-${i}`:`${Iv.generate(e)}-${t}`}function St(e,t,o="Mui"){const i={};return t.forEach(a=>{i[a]=Pt(e,a,o)}),i}function Bv(e){const{variants:t,...o}=e,i={variants:t,style:Xr(o),isProcessed:!0};return i.style===o||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Xr(a.style))}),i}const EC=Bd();function $f(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function bC(e){return e?(t,o)=>o[e]:null}function RC(e,t,o){e.theme=TC(e.theme)?o:e.theme[t]||e.theme}function Vl(e,t,o){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(a=>Vl(e,a,o));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=o?xo(i.style,o):i.style;else{const{variants:u,...c}=i;a=o?xo(Xr(c),o):c}return Uv(e,i.variants,[a],o)}return i!=null&&i.isProcessed?o?xo(Xr(i.style),o):i.style:o?xo(Xr(i),o):i}function Uv(e,t,o=[],i=void 0){var u;let a;e:for(let c=0;c<t.length;c+=1){const d=t[c];if(typeof d.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!d.props(a))continue}else for(const h in d.props)if(e[h]!==d.props[h]&&((u=e.ownerState)==null?void 0:u[h])!==d.props[h])continue e;typeof d.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),o.push(i?xo(Xr(d.style(a)),i):d.style(a))):o.push(i?xo(Xr(d.style),i):d.style)}return o}function _C(e={}){const{themeId:t,defaultTheme:o=EC,rootShouldForwardProp:i=$f,slotShouldForwardProp:a=$f}=e;function u(d){RC(d,t,o)}return(d,h={})=>{mC(d,z=>z.filter(F=>F!==eo));const{name:m,slot:g,skipVariantsResolver:y,skipSx:x,overridesResolver:E=bC(IC(g)),...C}=h,w=m&&m.startsWith("Mui")||g?"components":"custom",b=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,I=x||!1;let L=$f;g==="Root"||g==="root"?L=i:g?L=a:$C(d)&&(L=void 0);const $=Dv(d,{shouldForwardProp:L,label:PC(),...C}),T=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function(U){return Vl(U,z,U.theme.modularCssLayers?w:void 0)};if(Kn(z)){const F=Bv(z);return function(H){return F.variants?Vl(H,F,H.theme.modularCssLayers?w:void 0):H.theme.modularCssLayers?xo(F.style,w):F.style}}return z},A=(...z)=>{const F=[],U=z.map(T),H=[];if(F.push(u),m&&E&&H.push(function(q){var fe,Z;const te=(Z=(fe=q.theme.components)==null?void 0:fe[m])==null?void 0:Z.styleOverrides;if(!te)return null;const re={};for(const G in te)re[G]=Vl(q,te[G],q.theme.modularCssLayers?"theme":void 0);return E(q,re)}),m&&!b&&H.push(function(q){var re,fe;const W=q.theme,te=(fe=(re=W==null?void 0:W.components)==null?void 0:re[m])==null?void 0:fe.variants;return te?Uv(q,te,[],q.theme.modularCssLayers?"theme":void 0):null}),I||H.push(eo),Array.isArray(U[0])){const k=U.shift(),q=new Array(F.length).fill(""),W=new Array(H.length).fill("");let te;te=[...q,...k,...W],te.raw=[...q,...k.raw,...W],F.unshift(te)}const V=[...F,...U,...H],J=$(...V);return d.muiName&&(J.muiName=d.muiName),J};return $.withConfig&&(A.withConfig=$.withConfig),A}}function PC(e,t){return void 0}function TC(e){for(const t in e)return!1;return!0}function $C(e){return typeof e=="string"&&e.charCodeAt(0)>96}function IC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Zf(e,t,o=!1){const i={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const u=a;if(u==="components"||u==="slots")i[u]={...e[u],...i[u]};else if(u==="componentsProps"||u==="slotProps"){const c=e[u],d=t[u];if(!d)i[u]=c||{};else if(!c)i[u]=d;else{i[u]={...d};for(const h in c)if(Object.prototype.hasOwnProperty.call(c,h)){const m=h;i[u][m]=Zf(c[m],d[m],o)}}}else u==="className"&&o&&t.className?i.className=$e(e==null?void 0:e.className,t==null?void 0:t.className):u==="style"&&o&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[u]===void 0&&(i[u]=e[u])}return i}const Ni=typeof window<"u"?S.useLayoutEffect:S.useEffect;function OC(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function Vd(e,t=0,o=1){return OC(e,t,o)}function AC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&o[0].length===1&&(o=o.map(i=>i+i)),o?`rgb${o.length===4?"a":""}(${o.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function to(e){if(e.type)return e;if(e.charAt(0)==="#")return to(AC(e));const t=e.indexOf("("),o=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Ao(9,e));let i=e.substring(t+1,e.length-1),a;if(o==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Ao(10,a))}else i=i.split(",");return i=i.map(u=>parseFloat(u)),{type:o,values:i,colorSpace:a}}const MC=e=>{const t=to(e);return t.values.slice(0,3).map((o,i)=>t.type.includes("hsl")&&i!==0?`${o}%`:o).join(" ")},Ns=(e,t)=>{try{return MC(e)}catch{return e}};function vu(e){const{type:t,colorSpace:o}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((a,u)=>u<3?parseInt(a,10):a):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${o} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Wv(e){e=to(e);const{values:t}=e,o=t[0],i=t[1]/100,a=t[2]/100,u=i*Math.min(a,1-a),c=(m,g=(m+o/30)%12)=>a-u*Math.max(Math.min(g-3,9-g,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),vu({type:d,values:h})}function Hf(e){e=to(e);let t=e.type==="hsl"||e.type==="hsla"?to(Wv(e)).values:e.values;return t=t.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zC(e,t){const o=Hf(e),i=Hf(t);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}function Yl(e,t){return e=to(e),t=Vd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vu(e)}function vo(e,t,o){try{return Yl(e,t)}catch{return e}}function wu(e,t){if(e=to(e),t=Vd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return vu(e)}function Fe(e,t,o){try{return wu(e,t)}catch{return e}}function Su(e,t){if(e=to(e),t=Vd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return vu(e)}function je(e,t,o){try{return Su(e,t)}catch{return e}}function LC(e,t=.15){return Hf(e)>.5?wu(e,t):Su(e,t)}function _l(e,t,o){try{return LC(e,t)}catch{return e}}const Vv=S.createContext(null);function Zd(){return S.useContext(Vv)}const NC=typeof Symbol=="function"&&Symbol.for,DC=NC?Symbol.for("mui.nested"):"__THEME_NESTED__";function FC(e,t){return typeof t=="function"?t(e):{...e,...t}}function jC(e){const{children:t,theme:o}=e,i=Zd(),a=S.useMemo(()=>{const u=i===null?{...o}:FC(i,o);return u!=null&&(u[DC]=i!==null),u},[o,i]);return Y.jsx(Vv.Provider,{value:a,children:t})}const Zv=S.createContext();function BC({value:e,...t}){return Y.jsx(Zv.Provider,{value:e??!0,...t})}const UC=()=>S.useContext(Zv)??!1,Hv=S.createContext(void 0);function WC({value:e,children:t}){return Y.jsx(Hv.Provider,{value:e,children:t})}function VC(e){const{theme:t,name:o,props:i}=e;if(!t||!t.components||!t.components[o])return i;const a=t.components[o];return a.defaultProps?Zf(a.defaultProps,i,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?Zf(a,i,t.components.mergeClassNameAndStyle):i}function ZC({props:e,name:t}){const o=S.useContext(Hv);return VC({props:e,name:t,theme:{components:o}})}let Mg=0;function HC(e){const[t,o]=S.useState(e),i=e||t;return S.useEffect(()=>{t==null&&(Mg+=1,o(`mui-${Mg}`))},[t]),i}const QC={...jf},zg=QC.useId;function Qv(e){if(zg!==void 0){const t=zg();return e??t}return HC(e)}function KC(e){const t=Ud(),o=Qv()||"",{modularCssLayers:i}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?a="":typeof i=="string"?a=i.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,Ni(()=>{var d,h;const u=document.querySelector("head");if(!u)return;const c=u.firstChild;if(a){if(c&&((d=c.hasAttribute)!=null&&d.call(c,"data-mui-layer-order"))&&c.getAttribute("data-mui-layer-order")===o)return;const m=document.createElement("style");m.setAttribute("data-mui-layer-order",o),m.textContent=a,u.prepend(m)}else(h=u.querySelector(`style[data-mui-layer-order="${o}"]`))==null||h.remove()},[a,o]),a?Y.jsx(jv,{styles:a}):null}const Lg={};function Ng(e,t,o,i=!1){return S.useMemo(()=>{const a=e&&t[e]||t;if(typeof o=="function"){const u=o(a),c=e?{...t,[e]:u}:u;return i?()=>c:c}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,i])}function Kv(e){const{children:t,theme:o,themeId:i}=e,a=Ud(Lg),u=Zd()||Lg,c=Ng(i,a,o),d=Ng(i,u,o,!0),h=(i?c[i]:c).direction==="rtl",m=KC(c);return Y.jsx(jC,{theme:d,children:Y.jsx(ia.Provider,{value:c,children:Y.jsx(BC,{value:h,children:Y.jsxs(WC,{value:i?c[i].components:c.components,children:[m,t]})})})})}const Dg={theme:void 0};function GC(e){let t,o;return function(a){let u=t;return(u===void 0||a.theme!==o)&&(Dg.theme=a.theme,u=Bv(e(Dg)),t=u,o=a.theme),u}}const Hd="mode",Qd="color-scheme",qC="data-color-scheme";function YC(e){const{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:a=Hd,colorSchemeStorageKey:u=Qd,attribute:c=qC,colorSchemeNode:d="document.documentElement",nonce:h}=e||{};let m="",g=c;if(c==="class"&&(g=".%s"),c==="data"&&(g="[data-%s]"),g.startsWith(".")){const x=g.substring(1);m+=`${d}.classList.remove('${x}'.replace('%s', light), '${x}'.replace('%s', dark));
|
|
67
|
+
${d}.classList.add('${x}'.replace('%s', colorScheme));`}const y=g.match(/\[([^[\]]+)\]/);if(y){const[x,E]=y[1].split("=");E||(m+=`${d}.removeAttribute('${x}'.replace('%s', light));
|
|
68
|
+
${d}.removeAttribute('${x}'.replace('%s', dark));`),m+=`
|
|
69
|
+
${d}.setAttribute('${x}'.replace('%s', colorScheme), ${E?`${E}.replace('%s', colorScheme)`:'""'});`}else g!==".%s"&&(m+=`${d}.setAttribute('${g}', colorScheme);`);return Y.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
71
70
|
try {
|
|
72
71
|
let colorScheme = '';
|
|
73
|
-
const mode = localStorage.getItem('${
|
|
74
|
-
const dark = localStorage.getItem('${
|
|
75
|
-
const light = localStorage.getItem('${
|
|
72
|
+
const mode = localStorage.getItem('${a}') || '${t}';
|
|
73
|
+
const dark = localStorage.getItem('${u}-dark') || '${i}';
|
|
74
|
+
const light = localStorage.getItem('${u}-light') || '${o}';
|
|
76
75
|
if (mode === 'system') {
|
|
77
76
|
// handle system mode
|
|
78
77
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
@@ -89,16 +88,16 @@ try {
|
|
|
89
88
|
colorScheme = dark;
|
|
90
89
|
}
|
|
91
90
|
if (colorScheme) {
|
|
92
|
-
${
|
|
91
|
+
${m}
|
|
93
92
|
}
|
|
94
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function eZ(){}const tZ=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return eZ;const n=i=>{const o=i.newValue;i.key===e&&r(o)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function Bb(){}function sE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function XR(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function rZ(e){return XR(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function nZ(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:o=GS,colorSchemeStorageKey:a=YS,storageWindow:u=typeof window>"u"?void 0:window,storageManager:c=tZ,noSsr:f=!1}=e,d=i.join(","),m=i.length>1,h=b.useMemo(()=>c==null?void 0:c({key:o,storageWindow:u}),[c,o,u]),g=b.useMemo(()=>c==null?void 0:c({key:`${a}-light`,storageWindow:u}),[c,a,u]),y=b.useMemo(()=>c==null?void 0:c({key:`${a}-dark`,storageWindow:u}),[c,a,u]),[x,w]=b.useState(()=>{const R=(h==null?void 0:h.get(t))||t,D=(g==null?void 0:g.get(r))||r,L=(y==null?void 0:y.get(n))||n;return{mode:R,systemMode:sE(R),lightColorScheme:D,darkColorScheme:L}}),[k,C]=b.useState(f||!m);b.useEffect(()=>{C(!0)},[]);const $=rZ(x),P=b.useCallback(R=>{w(D=>{if(R===D.mode)return D;const L=R??t;return h==null||h.set(L),{...D,mode:L,systemMode:sE(L)}})},[h,t]),O=b.useCallback(R=>{R?typeof R=="string"?R&&!d.includes(R)?console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`):w(D=>{const L={...D};return XR(D,M=>{M==="light"&&(g==null||g.set(R),L.lightColorScheme=R),M==="dark"&&(y==null||y.set(R),L.darkColorScheme=R)}),L}):w(D=>{const L={...D},M=R.light===null?r:R.light,I=R.dark===null?n:R.dark;return M&&(d.includes(M)?(L.lightColorScheme=M,g==null||g.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),I&&(d.includes(I)?(L.darkColorScheme=I,y==null||y.set(I)):console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`)),L}):w(D=>(g==null||g.set(r),y==null||y.set(n),{...D,lightColorScheme:r,darkColorScheme:n}))},[d,g,y,r,n]),E=b.useCallback(R=>{x.mode==="system"&&w(D=>{const L=R!=null&&R.matches?"dark":"light";return D.systemMode===L?D:{...D,systemMode:L}})},[x.mode]),j=b.useRef(E);return j.current=E,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const R=(...L)=>j.current(...L),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(R),R(D),()=>{D.removeListener(R)}},[m]),b.useEffect(()=>{if(m){const R=(h==null?void 0:h.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&P(M||t)}))||Bb,D=(g==null?void 0:g.subscribe(M=>{(!M||d.match(M))&&O({light:M})}))||Bb,L=(y==null?void 0:y.subscribe(M=>{(!M||d.match(M))&&O({dark:M})}))||Bb;return()=>{R(),D(),L()}}},[O,P,d,t,u,m,h,g,y]),{...x,mode:k?x.mode:void 0,systemMode:k?x.systemMode:void 0,colorScheme:k?$:void 0,setMode:P,setColorScheme:O}}const iZ="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function oZ(e){const{themeId:t,theme:r={},modeStorageKey:n=GS,colorSchemeStorageKey:i=YS,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:u}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=b.createContext(void 0),d=()=>b.useContext(f)||c,m={},h={};function g(k){var ur,er,jr,br;const{children:C,theme:$,modeStorageKey:P=n,colorSchemeStorageKey:O=i,disableTransitionOnChange:E=o,storageManager:j,storageWindow:R=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:L=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:I=!1,defaultMode:W="system",forceThemeRerender:K=!1,noSsr:Z}=k,V=b.useRef(!1),ee=VS(),F=b.useContext(f),z=!!F&&!M,Y=b.useMemo(()=>$||(typeof r=="function"?r():r),[$]),N=Y[t],G=N||Y,{colorSchemes:ae=m,components:ue=h,cssVarPrefix:pe}=G,le=Object.keys(ae).filter(ht=>!!ae[ht]).join(","),he=b.useMemo(()=>le.split(","),[le]),ke=typeof a=="string"?a:a.light,Q=typeof a=="string"?a:a.dark,se=ae[ke]&&ae[Q]?W:((er=(ur=ae[G.defaultColorScheme])==null?void 0:ur.palette)==null?void 0:er.mode)||((jr=G.palette)==null?void 0:jr.mode),{mode:be,setMode:re,systemMode:Ue,lightColorScheme:Se,darkColorScheme:Me,colorScheme:rt,setColorScheme:et}=nZ({supportedColorSchemes:he,defaultLightColorScheme:ke,defaultDarkColorScheme:Q,modeStorageKey:P,colorSchemeStorageKey:O,defaultMode:se,storageManager:j,storageWindow:R,noSsr:Z});let ot=be,ft=rt;z&&(ot=F.mode,ft=F.colorScheme);let ut=ft||G.defaultColorScheme;G.vars&&!K&&(ut=G.defaultColorScheme);const Ye=b.useMemo(()=>{var Rt;const ht=((Rt=G.generateThemeVars)==null?void 0:Rt.call(G))||G.vars,Te={...G,components:ue,colorSchemes:ae,cssVarPrefix:pe,vars:ht};if(typeof Te.generateSpacing=="function"&&(Te.spacing=Te.generateSpacing()),ut){const Ot=ae[ut];Ot&&typeof Ot=="object"&&Object.keys(Ot).forEach(bt=>{Ot[bt]&&typeof Ot[bt]=="object"?Te[bt]={...Te[bt],...Ot[bt]}:Te[bt]=Ot[bt]})}return u?u(Te):Te},[G,ut,ue,ae,pe]),Oe=G.colorSchemeSelector;xn(()=>{if(ft&&L&&Oe&&Oe!=="media"){const ht=Oe;let Te=Oe;if(ht==="class"&&(Te=".%s"),ht==="data"&&(Te="[data-%s]"),ht!=null&&ht.startsWith("data-")&&!ht.includes("%s")&&(Te=`[${ht}="%s"]`),Te.startsWith("."))L.classList.remove(...he.map(Rt=>Te.substring(1).replace("%s",Rt))),L.classList.add(Te.substring(1).replace("%s",ft));else{const Rt=Te.replace("%s",ft).match(/\[([^\]]+)\]/);if(Rt){const[Ot,bt]=Rt[1].split("=");bt||he.forEach(as=>{L.removeAttribute(Ot.replace(ft,as))}),L.setAttribute(Ot,bt?bt.replace(/"|'/g,""):"")}else L.setAttribute(Te,ft)}}},[ft,Oe,L,he]),b.useEffect(()=>{let ht;if(E&&V.current&&D){const Te=D.createElement("style");Te.appendChild(D.createTextNode(iZ)),D.head.appendChild(Te),window.getComputedStyle(D.body),ht=setTimeout(()=>{D.head.removeChild(Te)},1)}return()=>{clearTimeout(ht)}},[ft,E,D]),b.useEffect(()=>(V.current=!0,()=>{V.current=!1}),[]);const yr=b.useMemo(()=>({allColorSchemes:he,colorScheme:ft,darkColorScheme:Me,lightColorScheme:Se,mode:ot,setColorScheme:et,setMode:re,systemMode:Ue}),[he,ft,Me,Se,ot,et,re,Ue,Ye.colorSchemeSelector]);let mt=!0;(I||G.cssVariables===!1||z&&(ee==null?void 0:ee.cssVarPrefix)===pe)&&(mt=!1);const Zr=A.jsxs(b.Fragment,{children:[A.jsx(YR,{themeId:N?t:void 0,theme:Ye,children:C}),mt&&A.jsx(MR,{styles:((br=Ye.generateStyleSheets)==null?void 0:br.call(Ye))||[]})]});return z?Zr:A.jsx(f.Provider,{value:yr,children:Zr})}const y=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:g,useColorScheme:d,getInitColorSchemeScript:k=>JH({colorSchemeStorageKey:i,defaultLightColorScheme:y,defaultDarkColorScheme:x,modeStorageKey:n,...k})}}function aZ(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const lE=(e,t,r,n=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=r:i&&typeof i=="object"&&(i[o]=r):i&&typeof i=="object"&&(i[o]||(i[o]=n.includes(o)?[]:{}),i=i[o])})},sZ=(e,t,r)=>{function n(i,o=[],a=[]){Object.entries(i).forEach(([u,c])=>{(!r||r&&!r([...o,u]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...o,u],Array.isArray(c)?[...a,u]:a):t([...o,u],c,a))})}n(e)},lZ=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Wb(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},o={},a={};return sZ(e,(u,c,f)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(u,c))){const d=`--${r?`${r}-`:""}${u.join("-")}`,m=lZ(u,c);Object.assign(i,{[d]:m}),lE(o,u,`var(${d})`,f),lE(a,u,`var(${d}, ${m})`,f)}},u=>u[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function uZ(e,t={}){const{getSelector:r=k,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:u,defaultColorScheme:c="light",...f}=e,{vars:d,css:m,varsWithDefaults:h}=Wb(f,t);let g=h;const y={},{[c]:x,...w}=a;if(Object.entries(w||{}).forEach(([P,O])=>{const{vars:E,css:j,varsWithDefaults:R}=Wb(O,t);g=Or(g,R),y[P]={css:j,vars:E}}),x){const{css:P,vars:O,varsWithDefaults:E}=Wb(x,t);g=Or(g,E),y[c]={css:P,vars:O}}function k(P,O){var j,R;let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),P){if(E==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((R=(j=a[P])==null?void 0:j.palette)==null?void 0:R.mode)||P})`]:{":root":O}};if(E)return e.defaultColorScheme===P?`:root, ${E.replace("%s",String(P))}`:E.replace("%s",String(P))}return":root"}return{vars:g,generateThemeVars:()=>{let P={...d};return Object.entries(y).forEach(([,{vars:O}])=>{P=Or(P,O)}),P},generateStyleSheets:()=>{var D,L;const P=[],O=e.defaultColorScheme||"light";function E(M,I){Object.keys(I).length&&P.push(typeof M=="string"?{[M]:{...I}}:M)}E(r(void 0,{...m}),m);const{[O]:j,...R}=y;if(j){const{css:M}=j,I=(L=(D=a[O])==null?void 0:D.palette)==null?void 0:L.mode,W=!n&&I?{colorScheme:I,...M}:{...M};E(r(O,{...W}),W)}return Object.entries(R).forEach(([M,{css:I}])=>{var Z,V;const W=(V=(Z=a[M])==null?void 0:Z.palette)==null?void 0:V.mode,K=!n&&W?{colorScheme:W,...I}:{...I};E(r(M,{...K}),K)}),o&&P.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)"}}),P}}}function cZ(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Bm(e,t){var r,n,i;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}const fZ=Pv(),dZ=IH("div",{name:"MuiStack",slot:"Root"});function pZ(e){return TH({props:e,name:"MuiStack",defaultTheme:fZ})}function mZ(e,t){const r=b.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o<r.length-1&&n.push(b.cloneElement(t,{key:`separator-${o}`})),n),[])}const hZ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],vZ=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Mi({theme:t},Lb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=wv(t),i=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),o=Lb({values:e.direction,base:i}),a=Lb({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,f,d)=>{if(!o[c]){const h=f>0?o[d[f-1]]:"column";o[c]=h}}),r=Or(r,Mi({theme:t},a,(c,f)=>e.useFlexGap?{gap:Js(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${hZ(f?o[f]:e.direction)}`]:Js(n,c)}}))}return r=yK(t.breakpoints,r),r};function gZ(e={}){const{createStyledComponent:t=dZ,useThemeProps:r=pZ,componentName:n="MuiStack"}=e,i=()=>He({root:["root"]},c=>Ze(n,c),{}),o=t(vZ);return b.forwardRef(function(c,f){const d=r(c),m=ZS(d),{component:h="div",direction:g="column",spacing:y=0,divider:x,children:w,className:k,useFlexGap:C=!1,...$}=m,P={direction:g,spacing:y,useFlexGap:C},O=i();return A.jsx(o,{as:h,ownerState:P,ref:f,className:ve(O.root,k),...$,children:x?mZ(w,x):w})})}const $f={black:"#000",white:"#fff"},yZ={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"},Ll={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ul={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fc={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Fl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Bl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Wl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function QR(){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:$f.white,default:$f.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 JR=QR();function eN(){return{text:{primary:$f.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:$f.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 Bw=eN();function uE(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Tv(e.main,i):t==="dark"&&(e.dark=Iv(e.main,o)))}function cE(e,t,r,n,i){const o=i.light||i,a=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function bZ(e="light"){return e==="dark"?{main:Fl[200],light:Fl[50],dark:Fl[400]}:{main:Fl[700],light:Fl[400],dark:Fl[800]}}function wZ(e="light"){return e==="dark"?{main:Ll[200],light:Ll[50],dark:Ll[400]}:{main:Ll[500],light:Ll[300],dark:Ll[700]}}function xZ(e="light"){return e==="dark"?{main:Ul[500],light:Ul[300],dark:Ul[700]}:{main:Ul[700],light:Ul[400],dark:Ul[800]}}function SZ(e="light"){return e==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:Bl[700],light:Bl[500],dark:Bl[900]}}function kZ(e="light"){return e==="dark"?{main:Wl[400],light:Wl[300],dark:Wl[700]}:{main:Wl[800],light:Wl[500],dark:Wl[900]}}function $Z(e="light"){return e==="dark"?{main:Fc[400],light:Fc[300],dark:Fc[700]}:{main:"#ed6c02",light:Fc[500],dark:Fc[900]}}function _Z(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function XS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...o}=e,a=e.primary||bZ(t),u=e.secondary||wZ(t),c=e.error||xZ(t),f=e.info||SZ(t),d=e.success||kZ(t),m=e.warning||$Z(t);function h(w){return i?_Z(w):zH(w,Bw.text.primary)>=r?Bw.text.primary:JR.text.primary}const g=({color:w,name:k,mainShade:C=500,lightShade:$=300,darkShade:P=700})=>{if(w={...w},!w.main&&w[C]&&(w.main=w[C]),!w.hasOwnProperty("main"))throw new Error(Wo(11,k?` (${k})`:"",C));if(typeof w.main!="string")throw new Error(Wo(12,k?` (${k})`:"",JSON.stringify(w.main)));return i?(cE(i,w,"light",$,n),cE(i,w,"dark",P,n)):(uE(w,"light",$,n),uE(w,"dark",P,n)),w.contrastText||(w.contrastText=h(w.main)),w};let y;return t==="light"?y=QR():t==="dark"&&(y=eN()),Or({common:{...$f},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:m,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:d,name:"success"}),grey:yZ,contrastThreshold:r,getContrastText:h,augmentColor:g,tonalOffset:n,...y},o)}function PZ(e){const t={};return Object.entries(e).forEach(n=>{const[i,o]=n;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function OZ(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function CZ(e){return Math.round(e*1e5)/1e5}const fE={textTransform:"uppercase"},dE='"Roboto", "Helvetica", "Arial", sans-serif';function tN(e,t){const{fontFamily:r=dE,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:d,...m}=typeof t=="function"?t(e):t,h=n/14,g=d||(w=>`${w/c*h}rem`),y=(w,k,C,$,P)=>({fontFamily:r,fontWeight:w,fontSize:g(k),lineHeight:C,...r===dE?{letterSpacing:`${CZ($/k)}em`}:{},...P,...f}),x={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(a,14,1.75,.4,fE),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,fE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Or({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:u,...x},m,{clone:!1})}const EZ=.2,IZ=.14,TZ=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${EZ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${IZ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TZ})`].join(",")}const jZ=["none",Ut(0,2,1,-1,0,1,1,0,0,1,3,0),Ut(0,3,1,-2,0,2,2,0,0,1,5,0),Ut(0,3,3,-2,0,3,4,0,0,1,8,0),Ut(0,2,4,-1,0,4,5,0,0,1,10,0),Ut(0,3,5,-1,0,5,8,0,0,1,14,0),Ut(0,3,5,-1,0,6,10,0,0,1,18,0),Ut(0,4,5,-2,0,7,10,1,0,2,16,1),Ut(0,5,5,-3,0,8,10,1,0,3,14,2),Ut(0,5,6,-3,0,9,12,1,0,3,16,2),Ut(0,6,6,-3,0,10,14,1,0,4,18,3),Ut(0,6,7,-4,0,11,15,1,0,4,20,3),Ut(0,7,8,-4,0,12,17,2,0,5,22,4),Ut(0,7,8,-4,0,13,19,2,0,5,24,4),Ut(0,7,9,-4,0,14,21,2,0,5,26,4),Ut(0,8,9,-5,0,15,22,2,0,6,28,5),Ut(0,8,10,-5,0,16,24,2,0,6,30,5),Ut(0,8,11,-5,0,17,26,2,0,6,32,5),Ut(0,9,11,-5,0,18,28,2,0,7,34,6),Ut(0,9,12,-6,0,19,29,2,0,7,36,6),Ut(0,10,13,-6,0,20,31,3,0,8,38,7),Ut(0,10,13,-6,0,21,33,3,0,8,40,7),Ut(0,10,14,-6,0,22,35,3,0,8,42,7),Ut(0,11,14,-7,0,23,36,3,0,9,44,8),Ut(0,11,15,-7,0,24,38,3,0,9,46,8)],AZ={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)"},RZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pE(e){return`${Math.round(e)}ms`}function NZ(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function MZ(e){const t={...AZ,...e.easing},r={...RZ,...e.duration};return{getAutoHeightDuration:NZ,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:u=t.easeInOut,delay:c=0,...f}=o;return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof a=="string"?a:pE(a)} ${u} ${typeof c=="string"?c:pE(c)}`).join(",")},...e,easing:t,duration:r}}const DZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function zZ(e){return oo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rN(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let o=0;o<i.length;o++){const[a,u]=i[o];!zZ(u)||a.startsWith("unstable_")?delete n[a]:oo(u)&&(n[a]={...u},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
93
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function XC(){}const JC=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(o){if(typeof window>"u")return;if(!t)return o;let i;try{i=t.localStorage.getItem(e)}catch{}return i||o},set:o=>{if(t)try{t.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!t)return XC;const i=a=>{const u=a.newValue;a.key===e&&o(u)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function If(){}function Fg(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Gv(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function eE(e){return Gv(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function tE(e){const{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:u=Hd,colorSchemeStorageKey:c=Qd,storageWindow:d=typeof window>"u"?void 0:window,storageManager:h=JC,noSsr:m=!1}=e,g=a.join(","),y=a.length>1,x=S.useMemo(()=>h==null?void 0:h({key:u,storageWindow:d}),[h,u,d]),E=S.useMemo(()=>h==null?void 0:h({key:`${c}-light`,storageWindow:d}),[h,c,d]),C=S.useMemo(()=>h==null?void 0:h({key:`${c}-dark`,storageWindow:d}),[h,c,d]),[w,b]=S.useState(()=>{const U=(x==null?void 0:x.get(t))||t,H=(E==null?void 0:E.get(o))||o,V=(C==null?void 0:C.get(i))||i;return{mode:U,systemMode:Fg(U),lightColorScheme:H,darkColorScheme:V}}),[I,L]=S.useState(m||!y);S.useEffect(()=>{L(!0)},[]);const $=eE(w),T=S.useCallback(U=>{b(H=>{if(U===H.mode)return H;const V=U??t;return x==null||x.set(V),{...H,mode:V,systemMode:Fg(V)}})},[x,t]),A=S.useCallback(U=>{U?typeof U=="string"?U&&!g.includes(U)?console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`):b(H=>{const V={...H};return Gv(H,J=>{J==="light"&&(E==null||E.set(U),V.lightColorScheme=U),J==="dark"&&(C==null||C.set(U),V.darkColorScheme=U)}),V}):b(H=>{const V={...H},J=U.light===null?o:U.light,k=U.dark===null?i:U.dark;return J&&(g.includes(J)?(V.lightColorScheme=J,E==null||E.set(J)):console.error(`\`${J}\` does not exist in \`theme.colorSchemes\`.`)),k&&(g.includes(k)?(V.darkColorScheme=k,C==null||C.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),V}):b(H=>(E==null||E.set(o),C==null||C.set(i),{...H,lightColorScheme:o,darkColorScheme:i}))},[g,E,C,o,i]),z=S.useCallback(U=>{w.mode==="system"&&b(H=>{const V=U!=null&&U.matches?"dark":"light";return H.systemMode===V?H:{...H,systemMode:V}})},[w.mode]),F=S.useRef(z);return F.current=z,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const U=(...V)=>F.current(...V),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(U),U(H),()=>{H.removeListener(U)}},[y]),S.useEffect(()=>{if(y){const U=(x==null?void 0:x.subscribe(J=>{(!J||["light","dark","system"].includes(J))&&T(J||t)}))||If,H=(E==null?void 0:E.subscribe(J=>{(!J||g.match(J))&&A({light:J})}))||If,V=(C==null?void 0:C.subscribe(J=>{(!J||g.match(J))&&A({dark:J})}))||If;return()=>{U(),H(),V()}}},[A,T,g,t,d,y,x,E,C]),{...w,mode:I?w.mode:void 0,systemMode:I?w.systemMode:void 0,colorScheme:I?$:void 0,setMode:T,setColorScheme:A}}const nE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rE(e){const{themeId:t,theme:o={},modeStorageKey:i=Hd,colorSchemeStorageKey:a=Qd,disableTransitionOnChange:u=!1,defaultColorScheme:c,resolveTheme:d}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},m=S.createContext(void 0),g=()=>S.useContext(m)||h,y={},x={};function E(I){var Hi,jo,ro,Qi;const{children:L,theme:$,modeStorageKey:T=i,colorSchemeStorageKey:A=a,disableTransitionOnChange:z=u,storageManager:F,storageWindow:U=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:V=typeof document>"u"?void 0:document.documentElement,disableNestedContext:J=!1,disableStyleSheetGeneration:k=!1,defaultMode:q="system",forceThemeRerender:W=!1,noSsr:te}=I,re=S.useRef(!1),fe=Zd(),Z=S.useContext(m),G=!!Z&&!J,K=S.useMemo(()=>$||(typeof o=="function"?o():o),[$]),P=K[t],j=P||K,{colorSchemes:se=y,components:le=x,cssVarPrefix:de}=j,ge=Object.keys(se).filter(ct=>!!se[ct]).join(","),ve=S.useMemo(()=>ge.split(","),[ge]),Ce=typeof c=="string"?c:c.light,_e=typeof c=="string"?c:c.dark,Pe=se[Ce]&&se[_e]?q:((jo=(Hi=se[j.defaultColorScheme])==null?void 0:Hi.palette)==null?void 0:jo.mode)||((ro=j.palette)==null?void 0:ro.mode),{mode:Ne,setMode:kt,systemMode:Ve,lightColorScheme:kn,darkColorScheme:no,colorScheme:Fo,setColorScheme:Cn}=tE({supportedColorSchemes:ve,defaultLightColorScheme:Ce,defaultDarkColorScheme:_e,modeStorageKey:T,colorSchemeStorageKey:A,defaultMode:Pe,storageManager:F,storageWindow:U,noSsr:te});let un=Ne,Ct=Fo;G&&(un=Z.mode,Ct=Z.colorScheme);let Jt=Ct||j.defaultColorScheme;j.vars&&!W&&(Jt=j.defaultColorScheme);const Bt=S.useMemo(()=>{var er;const ct=((er=j.generateThemeVars)==null?void 0:er.call(j))||j.vars,We={...j,components:le,colorSchemes:se,cssVarPrefix:de,vars:ct};if(typeof We.generateSpacing=="function"&&(We.spacing=We.generateSpacing()),Jt){const en=se[Jt];en&&typeof en=="object"&&Object.keys(en).forEach(Ut=>{en[Ut]&&typeof en[Ut]=="object"?We[Ut]={...We[Ut],...en[Ut]}:We[Ut]=en[Ut]})}return d?d(We):We},[j,Jt,le,se,de]),xe=j.colorSchemeSelector;Ni(()=>{if(Ct&&V&&xe&&xe!=="media"){const ct=xe;let We=xe;if(ct==="class"&&(We=".%s"),ct==="data"&&(We="[data-%s]"),ct!=null&&ct.startsWith("data-")&&!ct.includes("%s")&&(We=`[${ct}="%s"]`),We.startsWith("."))V.classList.remove(...ve.map(er=>We.substring(1).replace("%s",er))),V.classList.add(We.substring(1).replace("%s",Ct));else{const er=We.replace("%s",Ct).match(/\[([^\]]+)\]/);if(er){const[en,Ut]=er[1].split("=");Ut||ve.forEach(_u=>{V.removeAttribute(en.replace(Ct,_u))}),V.setAttribute(en,Ut?Ut.replace(/"|'/g,""):"")}else V.setAttribute(We,Ct)}}},[Ct,xe,V,ve]),S.useEffect(()=>{let ct;if(z&&re.current&&H){const We=H.createElement("style");We.appendChild(H.createTextNode(nE)),H.head.appendChild(We),window.getComputedStyle(H.body),ct=setTimeout(()=>{H.head.removeChild(We)},1)}return()=>{clearTimeout(ct)}},[Ct,z,H]),S.useEffect(()=>(re.current=!0,()=>{re.current=!1}),[]);const ha=S.useMemo(()=>({allColorSchemes:ve,colorScheme:Ct,darkColorScheme:no,lightColorScheme:kn,mode:un,setColorScheme:Cn,setMode:kt,systemMode:Ve}),[ve,Ct,no,kn,un,Cn,kt,Ve,Bt.colorSchemeSelector]);let Vi=!0;(k||j.cssVariables===!1||G&&(fe==null?void 0:fe.cssVarPrefix)===de)&&(Vi=!1);const Zi=Y.jsxs(S.Fragment,{children:[Y.jsx(Kv,{themeId:P?t:void 0,theme:Bt,children:L}),Vi&&Y.jsx(Nv,{styles:((Qi=Bt.generateStyleSheets)==null?void 0:Qi.call(Bt))||[]})]});return G?Zi:Y.jsx(m.Provider,{value:ha,children:Zi})}const C=typeof c=="string"?c:c.light,w=typeof c=="string"?c:c.dark;return{CssVarsProvider:E,useColorScheme:g,getInitColorSchemeScript:I=>YC({colorSchemeStorageKey:a,defaultLightColorScheme:C,defaultDarkColorScheme:w,modeStorageKey:i,...I})}}function oE(e=""){function t(...i){if(!i.length)return"";const a=i[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...i.slice(1))})`:`, ${a}`}return(i,...a)=>`var(--${e?`${e}-`:""}${i}${t(...a)})`}const jg=(e,t,o,i=[])=>{let a=e;t.forEach((u,c)=>{c===t.length-1?Array.isArray(a)?a[Number(u)]=o:a&&typeof a=="object"&&(a[u]=o):a&&typeof a=="object"&&(a[u]||(a[u]=i.includes(u)?[]:{}),a=a[u])})},iE=(e,t,o)=>{function i(a,u=[],c=[]){Object.entries(a).forEach(([d,h])=>{(!o||o&&!o([...u,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...u,d],Array.isArray(h)?[...c,d]:c):t([...u,d],h,c))})}i(e)},sE=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Of(e,t){const{prefix:o,shouldSkipGeneratingVar:i}=t||{},a={},u={},c={};return iE(e,(d,h,m)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const g=`--${o?`${o}-`:""}${d.join("-")}`,y=sE(d,h);Object.assign(a,{[g]:y}),jg(u,d,`var(${g})`,m),jg(c,d,`var(${g}, ${y})`,m)}},d=>d[0]==="vars"),{css:a,vars:u,varsWithDefaults:c}}function aE(e,t={}){const{getSelector:o=I,disableCssColorScheme:i,colorSchemeSelector:a,enableContrastVars:u}=t,{colorSchemes:c={},components:d,defaultColorScheme:h="light",...m}=e,{vars:g,css:y,varsWithDefaults:x}=Of(m,t);let E=x;const C={},{[h]:w,...b}=c;if(Object.entries(b||{}).forEach(([T,A])=>{const{vars:z,css:F,varsWithDefaults:U}=Of(A,t);E=ln(E,U),C[T]={css:F,vars:z}}),w){const{css:T,vars:A,varsWithDefaults:z}=Of(w,t);E=ln(E,z),C[h]={css:T,vars:A}}function I(T,A){var F,U;let z=a;if(a==="class"&&(z=".%s"),a==="data"&&(z="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(z=`[${a}="%s"]`),T){if(z==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((U=(F=c[T])==null?void 0:F.palette)==null?void 0:U.mode)||T})`]:{":root":A}};if(z)return e.defaultColorScheme===T?`:root, ${z.replace("%s",String(T))}`:z.replace("%s",String(T))}return":root"}return{vars:E,generateThemeVars:()=>{let T={...g};return Object.entries(C).forEach(([,{vars:A}])=>{T=ln(T,A)}),T},generateStyleSheets:()=>{var H,V;const T=[],A=e.defaultColorScheme||"light";function z(J,k){Object.keys(k).length&&T.push(typeof J=="string"?{[J]:{...k}}:J)}z(o(void 0,{...y}),y);const{[A]:F,...U}=C;if(F){const{css:J}=F,k=(V=(H=c[A])==null?void 0:H.palette)==null?void 0:V.mode,q=!i&&k?{colorScheme:k,...J}:{...J};z(o(A,{...q}),q)}return Object.entries(U).forEach(([J,{css:k}])=>{var te,re;const q=(re=(te=c[J])==null?void 0:te.palette)==null?void 0:re.mode,W=!i&&q?{colorScheme:q,...k}:{...k};z(o(J,{...W}),W)}),u&&T.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)"}}),T}}}function lE(e){return function(o){return e==="media"?`@media (prefers-color-scheme: ${o})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${o}"] &`:e==="class"?`.${o} &`:e==="data"?`[data-${o}] &`:`${e.replace("%s",o)} &`:"&"}}const Qs={black:"#000",white:"#fff"},uE={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"},fi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},di={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ms={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},pi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},hi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},mi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function qv(){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:Qs.white,default:Qs.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 Yv=qv();function Xv(){return{text:{primary:Qs.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:Qs.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 Qf=Xv();function Bg(e,t,o,i){const a=i.light||i,u=i.dark||i*1.5;e[t]||(e.hasOwnProperty(o)?e[t]=e[o]:t==="light"?e.light=Su(e.main,a):t==="dark"&&(e.dark=wu(e.main,u)))}function Ug(e,t,o,i,a){const u=a.light||a,c=a.dark||a*1.5;t[o]||(t.hasOwnProperty(i)?t[o]=t[i]:o==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(u*100).toFixed(0)}%)`:o==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function cE(e="light"){return e==="dark"?{main:pi[200],light:pi[50],dark:pi[400]}:{main:pi[700],light:pi[400],dark:pi[800]}}function fE(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}function dE(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function pE(e="light"){return e==="dark"?{main:hi[400],light:hi[300],dark:hi[700]}:{main:hi[700],light:hi[500],dark:hi[900]}}function hE(e="light"){return e==="dark"?{main:mi[400],light:mi[300],dark:mi[700]}:{main:mi[800],light:mi[500],dark:mi[900]}}function mE(e="light"){return e==="dark"?{main:Ms[400],light:Ms[300],dark:Ms[700]}:{main:"#ed6c02",light:Ms[500],dark:Ms[900]}}function gE(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Kd(e){const{mode:t="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:a,...u}=e,c=e.primary||cE(t),d=e.secondary||fE(t),h=e.error||dE(t),m=e.info||pE(t),g=e.success||hE(t),y=e.warning||mE(t);function x(b){return a?gE(b):zC(b,Qf.text.primary)>=o?Qf.text.primary:Yv.text.primary}const E=({color:b,name:I,mainShade:L=500,lightShade:$=300,darkShade:T=700})=>{if(b={...b},!b.main&&b[L]&&(b.main=b[L]),!b.hasOwnProperty("main"))throw new Error(Ao(11,I?` (${I})`:"",L));if(typeof b.main!="string")throw new Error(Ao(12,I?` (${I})`:"",JSON.stringify(b.main)));return a?(Ug(a,b,"light",$,i),Ug(a,b,"dark",T,i)):(Bg(b,"light",$,i),Bg(b,"dark",T,i)),b.contrastText||(b.contrastText=x(b.main)),b};let C;return t==="light"?C=qv():t==="dark"&&(C=Xv()),ln({common:{...Qs},mode:t,primary:E({color:c,name:"primary"}),secondary:E({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:h,name:"error"}),warning:E({color:y,name:"warning"}),info:E({color:m,name:"info"}),success:E({color:g,name:"success"}),grey:uE,contrastThreshold:o,getContrastText:x,augmentColor:E,tonalOffset:i,...C},u)}function yE(e){const t={};return Object.entries(e).forEach(i=>{const[a,u]=i;typeof u=="object"&&(t[a]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),t}function vE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function wE(e){return Math.round(e*1e5)/1e5}const Wg={textTransform:"uppercase"},Vg='"Roboto", "Helvetica", "Arial", sans-serif';function Jv(e,t){const{fontFamily:o=Vg,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:m,pxToRem:g,...y}=typeof t=="function"?t(e):t,x=i/14,E=g||(b=>`${b/h*x}rem`),C=(b,I,L,$,T)=>({fontFamily:o,fontWeight:b,fontSize:E(I),lineHeight:L,...o===Vg?{letterSpacing:`${wE($/I)}em`}:{},...T,...m}),w={h1:C(a,96,1.167,-1.5),h2:C(a,60,1.2,-.5),h3:C(u,48,1.167,0),h4:C(u,34,1.235,.25),h5:C(u,24,1.334,0),h6:C(c,20,1.6,.15),subtitle1:C(u,16,1.75,.15),subtitle2:C(c,14,1.57,.1),body1:C(u,16,1.5,.15),body2:C(u,14,1.43,.15),button:C(c,14,1.75,.4,Wg),caption:C(u,12,1.66,.4),overline:C(u,12,2.66,1,Wg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:h,pxToRem:E,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d,...w},y,{clone:!1})}const SE=.2,xE=.14,kE=.12;function qe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kE})`].join(",")}const CE=["none",qe(0,2,1,-1,0,1,1,0,0,1,3,0),qe(0,3,1,-2,0,2,2,0,0,1,5,0),qe(0,3,3,-2,0,3,4,0,0,1,8,0),qe(0,2,4,-1,0,4,5,0,0,1,10,0),qe(0,3,5,-1,0,5,8,0,0,1,14,0),qe(0,3,5,-1,0,6,10,0,0,1,18,0),qe(0,4,5,-2,0,7,10,1,0,2,16,1),qe(0,5,5,-3,0,8,10,1,0,3,14,2),qe(0,5,6,-3,0,9,12,1,0,3,16,2),qe(0,6,6,-3,0,10,14,1,0,4,18,3),qe(0,6,7,-4,0,11,15,1,0,4,20,3),qe(0,7,8,-4,0,12,17,2,0,5,22,4),qe(0,7,8,-4,0,13,19,2,0,5,24,4),qe(0,7,9,-4,0,14,21,2,0,5,26,4),qe(0,8,9,-5,0,15,22,2,0,6,28,5),qe(0,8,10,-5,0,16,24,2,0,6,30,5),qe(0,8,11,-5,0,17,26,2,0,6,32,5),qe(0,9,11,-5,0,18,28,2,0,7,34,6),qe(0,9,12,-6,0,19,29,2,0,7,36,6),qe(0,10,13,-6,0,20,31,3,0,8,38,7),qe(0,10,13,-6,0,21,33,3,0,8,40,7),qe(0,10,14,-6,0,22,35,3,0,8,42,7),qe(0,11,14,-7,0,23,36,3,0,9,44,8),qe(0,11,15,-7,0,24,38,3,0,9,46,8)],EE={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)"},bE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zg(e){return`${Math.round(e)}ms`}function RE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _E(e){const t={...EE,...e.easing},o={...bE,...e.duration};return{getAutoHeightDuration:RE,create:(a=["all"],u={})=>{const{duration:c=o.standard,easing:d=t.easeInOut,delay:h=0,...m}=u;return(Array.isArray(a)?a:[a]).map(g=>`${g} ${typeof c=="string"?c:Zg(c)} ${d} ${typeof h=="string"?h:Zg(h)}`).join(",")},...e,easing:t,duration:o}}const PE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function TE(e){return Kn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function e0(e={}){const t={...e};function o(i){const a=Object.entries(i);for(let u=0;u<a.length;u++){const[c,d]=a[u];!TE(d)||c.startsWith("unstable_")?delete i[c]:Kn(d)&&(i[c]={...d},o(i[c]))}}return o(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
95
94
|
|
|
96
95
|
const theme = ${JSON.stringify(t,null,2)};
|
|
97
96
|
|
|
98
97
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
99
98
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
100
99
|
|
|
101
|
-
export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const LZ=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function UZ(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:rh(t,LZ(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${mE(r)})`:Tv(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${mE(r)})`:Iv(t,r)}})}function Ww(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:o={},transitions:a={},typography:u={},shape:c,colorSpace:f,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Wo(20));const m=XS({...o,colorSpace:f}),h=Pv(e);let g=Or(h,{mixins:OZ(h.breakpoints,n),palette:m,shadows:jZ.slice(),typography:tN(m,u),transitions:MZ(a),zIndex:{...DZ}});return g=Or(g,d),g=t.reduce((y,x)=>Or(y,x),g),g.unstable_sxConfig={...sd,...d==null?void 0:d.unstable_sxConfig},g.unstable_sx=function(x){return Za({sx:x,theme:this})},g.toRuntimeSource=rN,UZ(g),g}function Kw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const FZ=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Kw(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function nN(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function iN(e){return e==="dark"?FZ:[]}function BZ(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...o}=e,a=XS({...t,colorSpace:i});return{palette:a,opacity:{...nN(a.mode),...r},overlays:n||iN(a.mode),...o}}function WZ(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const KZ=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],HZ=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return KZ(e.cssVarPrefix).forEach(u=>{a[u]=r[u],delete r[u]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:o?{[o.replace("%s",t)]:a,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function ZZ(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function of(e){return typeof e!="string"||!e.startsWith("hsl")?e:ZR(e)}function _o(e,t){`${t}Channel`in e||(e[`${t}Channel`]=nf(of(e[t])))}function qZ(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Yi=e=>{try{return e()}catch{}},VZ=(e="mui")=>aZ(e);function Kb(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const o=i==="dark"?"dark":"light";if(!n){t[i]=BZ({...r,palette:{mode:o,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:a,...u}=Ww({...n,palette:{mode:o,...r==null?void 0:r.palette},colorSpace:e});return t[i]={...r,palette:a,opacity:{...nN(o),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||iN(o)},u}function GZ(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:u=WZ,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),g=VZ(o),{[h]:y,light:x,dark:w,...k}=r,C={...k};let $=y;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&($=!0),!$)throw new Error(Wo(21,h));let P;a&&(P="oklch");const O=Kb(P,C,$,d,h);x&&!C.light&&Kb(P,C,x,void 0,"light"),w&&!C.dark&&Kb(P,C,w,void 0,"dark");let E={defaultColorScheme:h,...O,cssVarPrefix:o,colorSchemeSelector:c,rootSelector:f,getCssVar:g,colorSchemes:C,font:{...PZ(O.typography),...O.font},spacing:qZ(d.spacing)};Object.keys(E.colorSchemes).forEach(M=>{const I=E.colorSchemes[M].palette,W=Z=>{const V=Z.split("-"),ee=V[1],F=V[2];return g(Z,I[ee][F])};I.mode==="light"&&(oe(I.common,"background","#fff"),oe(I.common,"onBackground","#000")),I.mode==="dark"&&(oe(I.common,"background","#000"),oe(I.common,"onBackground","#fff"));function K(Z,V,ee){if(P){let F;return Z===Ss&&(F=`transparent ${((1-ee)*100).toFixed(0)}%`),Z===$t&&(F=`#000 ${(ee*100).toFixed(0)}%`),Z===_t&&(F=`#fff ${(ee*100).toFixed(0)}%`),`color-mix(in ${P}, ${V}, ${F})`}return Z(V,ee)}if(ZZ(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){oe(I.Alert,"errorColor",K($t,I.error.light,.6)),oe(I.Alert,"infoColor",K($t,I.info.light,.6)),oe(I.Alert,"successColor",K($t,I.success.light,.6)),oe(I.Alert,"warningColor",K($t,I.warning.light,.6)),oe(I.Alert,"errorFilledBg",W("palette-error-main")),oe(I.Alert,"infoFilledBg",W("palette-info-main")),oe(I.Alert,"successFilledBg",W("palette-success-main")),oe(I.Alert,"warningFilledBg",W("palette-warning-main")),oe(I.Alert,"errorFilledColor",Yi(()=>I.getContrastText(I.error.main))),oe(I.Alert,"infoFilledColor",Yi(()=>I.getContrastText(I.info.main))),oe(I.Alert,"successFilledColor",Yi(()=>I.getContrastText(I.success.main))),oe(I.Alert,"warningFilledColor",Yi(()=>I.getContrastText(I.warning.main))),oe(I.Alert,"errorStandardBg",K(_t,I.error.light,.9)),oe(I.Alert,"infoStandardBg",K(_t,I.info.light,.9)),oe(I.Alert,"successStandardBg",K(_t,I.success.light,.9)),oe(I.Alert,"warningStandardBg",K(_t,I.warning.light,.9)),oe(I.Alert,"errorIconColor",W("palette-error-main")),oe(I.Alert,"infoIconColor",W("palette-info-main")),oe(I.Alert,"successIconColor",W("palette-success-main")),oe(I.Alert,"warningIconColor",W("palette-warning-main")),oe(I.AppBar,"defaultBg",W("palette-grey-100")),oe(I.Avatar,"defaultBg",W("palette-grey-400")),oe(I.Button,"inheritContainedBg",W("palette-grey-300")),oe(I.Button,"inheritContainedHoverBg",W("palette-grey-A100")),oe(I.Chip,"defaultBorder",W("palette-grey-400")),oe(I.Chip,"defaultAvatarColor",W("palette-grey-700")),oe(I.Chip,"defaultIconColor",W("palette-grey-700")),oe(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(I.LinearProgress,"primaryBg",K(_t,I.primary.main,.62)),oe(I.LinearProgress,"secondaryBg",K(_t,I.secondary.main,.62)),oe(I.LinearProgress,"errorBg",K(_t,I.error.main,.62)),oe(I.LinearProgress,"infoBg",K(_t,I.info.main,.62)),oe(I.LinearProgress,"successBg",K(_t,I.success.main,.62)),oe(I.LinearProgress,"warningBg",K(_t,I.warning.main,.62)),oe(I.Skeleton,"bg",P?K(Ss,I.text.primary,.11):`rgba(${W("palette-text-primaryChannel")} / 0.11)`),oe(I.Slider,"primaryTrack",K(_t,I.primary.main,.62)),oe(I.Slider,"secondaryTrack",K(_t,I.secondary.main,.62)),oe(I.Slider,"errorTrack",K(_t,I.error.main,.62)),oe(I.Slider,"infoTrack",K(_t,I.info.main,.62)),oe(I.Slider,"successTrack",K(_t,I.success.main,.62)),oe(I.Slider,"warningTrack",K(_t,I.warning.main,.62));const Z=P?K($t,I.background.default,.6825):im(I.background.default,.8);oe(I.SnackbarContent,"bg",Z),oe(I.SnackbarContent,"color",Yi(()=>P?Bw.text.primary:I.getContrastText(Z))),oe(I.SpeedDialAction,"fabHoverBg",im(I.background.paper,.15)),oe(I.StepConnector,"border",W("palette-grey-400")),oe(I.StepContent,"border",W("palette-grey-400")),oe(I.Switch,"defaultColor",W("palette-common-white")),oe(I.Switch,"defaultDisabledColor",W("palette-grey-100")),oe(I.Switch,"primaryDisabledColor",K(_t,I.primary.main,.62)),oe(I.Switch,"secondaryDisabledColor",K(_t,I.secondary.main,.62)),oe(I.Switch,"errorDisabledColor",K(_t,I.error.main,.62)),oe(I.Switch,"infoDisabledColor",K(_t,I.info.main,.62)),oe(I.Switch,"successDisabledColor",K(_t,I.success.main,.62)),oe(I.Switch,"warningDisabledColor",K(_t,I.warning.main,.62)),oe(I.TableCell,"border",K(_t,K(Ss,I.divider,1),.88)),oe(I.Tooltip,"bg",K(Ss,I.grey[700],.92))}if(I.mode==="dark"){oe(I.Alert,"errorColor",K(_t,I.error.light,.6)),oe(I.Alert,"infoColor",K(_t,I.info.light,.6)),oe(I.Alert,"successColor",K(_t,I.success.light,.6)),oe(I.Alert,"warningColor",K(_t,I.warning.light,.6)),oe(I.Alert,"errorFilledBg",W("palette-error-dark")),oe(I.Alert,"infoFilledBg",W("palette-info-dark")),oe(I.Alert,"successFilledBg",W("palette-success-dark")),oe(I.Alert,"warningFilledBg",W("palette-warning-dark")),oe(I.Alert,"errorFilledColor",Yi(()=>I.getContrastText(I.error.dark))),oe(I.Alert,"infoFilledColor",Yi(()=>I.getContrastText(I.info.dark))),oe(I.Alert,"successFilledColor",Yi(()=>I.getContrastText(I.success.dark))),oe(I.Alert,"warningFilledColor",Yi(()=>I.getContrastText(I.warning.dark))),oe(I.Alert,"errorStandardBg",K($t,I.error.light,.9)),oe(I.Alert,"infoStandardBg",K($t,I.info.light,.9)),oe(I.Alert,"successStandardBg",K($t,I.success.light,.9)),oe(I.Alert,"warningStandardBg",K($t,I.warning.light,.9)),oe(I.Alert,"errorIconColor",W("palette-error-main")),oe(I.Alert,"infoIconColor",W("palette-info-main")),oe(I.Alert,"successIconColor",W("palette-success-main")),oe(I.Alert,"warningIconColor",W("palette-warning-main")),oe(I.AppBar,"defaultBg",W("palette-grey-900")),oe(I.AppBar,"darkBg",W("palette-background-paper")),oe(I.AppBar,"darkColor",W("palette-text-primary")),oe(I.Avatar,"defaultBg",W("palette-grey-600")),oe(I.Button,"inheritContainedBg",W("palette-grey-800")),oe(I.Button,"inheritContainedHoverBg",W("palette-grey-700")),oe(I.Chip,"defaultBorder",W("palette-grey-700")),oe(I.Chip,"defaultAvatarColor",W("palette-grey-300")),oe(I.Chip,"defaultIconColor",W("palette-grey-300")),oe(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(I.LinearProgress,"primaryBg",K($t,I.primary.main,.5)),oe(I.LinearProgress,"secondaryBg",K($t,I.secondary.main,.5)),oe(I.LinearProgress,"errorBg",K($t,I.error.main,.5)),oe(I.LinearProgress,"infoBg",K($t,I.info.main,.5)),oe(I.LinearProgress,"successBg",K($t,I.success.main,.5)),oe(I.LinearProgress,"warningBg",K($t,I.warning.main,.5)),oe(I.Skeleton,"bg",P?K(Ss,I.text.primary,.13):`rgba(${W("palette-text-primaryChannel")} / 0.13)`),oe(I.Slider,"primaryTrack",K($t,I.primary.main,.5)),oe(I.Slider,"secondaryTrack",K($t,I.secondary.main,.5)),oe(I.Slider,"errorTrack",K($t,I.error.main,.5)),oe(I.Slider,"infoTrack",K($t,I.info.main,.5)),oe(I.Slider,"successTrack",K($t,I.success.main,.5)),oe(I.Slider,"warningTrack",K($t,I.warning.main,.5));const Z=P?K(_t,I.background.default,.985):im(I.background.default,.98);oe(I.SnackbarContent,"bg",Z),oe(I.SnackbarContent,"color",Yi(()=>P?JR.text.primary:I.getContrastText(Z))),oe(I.SpeedDialAction,"fabHoverBg",im(I.background.paper,.15)),oe(I.StepConnector,"border",W("palette-grey-600")),oe(I.StepContent,"border",W("palette-grey-600")),oe(I.Switch,"defaultColor",W("palette-grey-300")),oe(I.Switch,"defaultDisabledColor",W("palette-grey-600")),oe(I.Switch,"primaryDisabledColor",K($t,I.primary.main,.55)),oe(I.Switch,"secondaryDisabledColor",K($t,I.secondary.main,.55)),oe(I.Switch,"errorDisabledColor",K($t,I.error.main,.55)),oe(I.Switch,"infoDisabledColor",K($t,I.info.main,.55)),oe(I.Switch,"successDisabledColor",K($t,I.success.main,.55)),oe(I.Switch,"warningDisabledColor",K($t,I.warning.main,.55)),oe(I.TableCell,"border",K($t,K(Ss,I.divider,1),.68)),oe(I.Tooltip,"bg",K(Ss,I.grey[700],.92))}_o(I.background,"default"),_o(I.background,"paper"),_o(I.common,"background"),_o(I.common,"onBackground"),_o(I,"divider"),Object.keys(I).forEach(Z=>{const V=I[Z];Z!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&oe(I[Z],"mainChannel",nf(of(V.main))),V.light&&oe(I[Z],"lightChannel",nf(of(V.light))),V.dark&&oe(I[Z],"darkChannel",nf(of(V.dark))),V.contrastText&&oe(I[Z],"contrastTextChannel",nf(of(V.contrastText))),Z==="text"&&(_o(I[Z],"primary"),_o(I[Z],"secondary")),Z==="action"&&(V.active&&_o(I[Z],"active"),V.selected&&_o(I[Z],"selected")))})}),E=t.reduce((M,I)=>Or(M,I),E);const j={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:u,getSelector:HZ(E),enableContrastVars:a},{vars:R,generateThemeVars:D,generateStyleSheets:L}=uZ(E,j);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([M,I])=>{E[M]=I}),E.generateThemeVars=D,E.generateStyleSheets=L,E.generateSpacing=function(){return zR(d.spacing,wv(this))},E.getColorSchemeSelector=cZ(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=u,E.unstable_sxConfig={...sd,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(I){return Za({sx:I,theme:this})},E.toRuntimeSource=rN,E}function hE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:XS({...r===!0?{}:r.palette,mode:t})})}function Av(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...a}=e,u=o||"light",c=i==null?void 0:i[u],f={...i,...r?{[u]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ww(e,...t);let d=r;"palette"in e||f[u]&&(f[u]!==!0?d=f[u].palette:u==="dark"&&(d={mode:"dark"}));const m=Ww({...e,palette:d},...t);return m.defaultColorScheme=u,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},hE(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},hE(m,"light",f.light)),m}return!r&&!("light"in f)&&u==="light"&&(f.light=!0),GZ({...a,colorSchemes:f,defaultColorScheme:u,...typeof n!="boolean"&&n},...t)}const QS=Av(),ji="$$material";function ea(){const e=Cv(QS);return e[ji]||e}function YZ(e){return A.jsx(LR,{...e,defaultTheme:QS,themeId:ji})}function oN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ln=e=>oN(e)&&e!=="classes",$e=BR({themeId:ji,defaultTheme:QS,rootShouldForwardProp:Ln});function JS(e){return function(r){return A.jsx(YZ,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function XZ(){return ZS}const Qe=XH;function Ve(e){return qH(e)}function QZ(e){return Ze("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JZ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return He(i,QZ,n)},eq=$e("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(Qe(({theme:e})=>{var t,r,n,i,o,a,u,c,f,d,m,h,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var w,k;return{props:{color:x},style:{color:(k=(w=(e.vars??e).palette)==null?void 0:w[x])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(y=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Hw=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...g}=n,y=b.isValidElement(i)&&i.type==="svg",x={...n,color:a,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},w={};d||(w.viewBox=h);const k=JZ(x);return A.jsxs(eq,{as:u,className:ve(k.root,o),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...w,...g,...y&&i.props,ownerState:x,children:[y?i.props.children:i,m?A.jsx("title",{children:m}):null]})});Hw.muiName="SvgIcon";function Fi(e,t){function r(n,i){return A.jsx(Hw,{"data-testid":void 0,ref:i,...n,children:e})}return r.muiName=Hw.muiName,b.memo(b.forwardRef(r))}function e1(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Mn(e){return e&&e.ownerDocument||document}function Di(e){return Mn(e).defaultView||window}function vE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Zw(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:o}=b.useRef(t!==void 0),[a,u]=b.useState(r),c=o?t:a,f=b.useCallback(d=>{o||u(d)},[]);return[c,f]}function Lo(e){const t=b.useRef(e);return xn(()=>{t.current=e}),b.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){const t=b.useRef(void 0),r=b.useCallback(n=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,u=a(n);return typeof u=="function"?u:()=>{a(null)}}return o.current=n,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},e);return b.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function tq(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function aN(e,t){if(!e)return t;function r(a,u){const c={};return Object.keys(u).forEach(f=>{tq(f,u[f])&&typeof a[f]=="function"&&(c[f]=(...d)=>{a[f](...d),u[f](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const u=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...u}):e,f=ve(a==null?void 0:a.className,u==null?void 0:u.className,c==null?void 0:c.className),d=r(c,u);return{...u,...c,...d,...!!f&&{className:f},...(u==null?void 0:u.style)&&(c==null?void 0:c.style)&&{style:{...u.style,...c.style}},...(u==null?void 0:u.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),o=ve(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...i,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const rq=Fi(A.jsx("path",{d:"m14 12-2 2-2-2 2-2zm-2-6 2.12 2.12 2.5-2.5L12 1 7.38 5.62l2.5 2.5zm-6 6 2.12-2.12-2.5-2.5L1 12l4.62 4.62 2.5-2.5zm12 0-2.12 2.12 2.5 2.5L23 12l-4.62-4.62-2.5 2.5zm-6 6-2.12-2.12-2.5 2.5L12 23l4.62-4.62-2.5-2.5z"})),nq=Fi(A.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"})),iq=Fi(A.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"})),oq=Fi(A.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),aq=Fi(A.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}));function sq({theme:e,...t}){const r=ji in e?e[ji]:void 0;return A.jsx(YR,{...t,themeId:r?ji:void 0,theme:r||e})}const om={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:lq}=oZ({themeId:ji,theme:()=>Av({cssVariables:!0}),colorSchemeStorageKey:om.colorSchemeStorageKey,modeStorageKey:om.modeStorageKey,defaultColorScheme:{light:om.defaultLightColorScheme,dark:om.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:tN(e.palette,e.typography)};return t.unstable_sx=function(n){return Za({sx:n,theme:this})},t}}),uq=lq;function cq({theme:e,...t}){const r=b.useMemo(()=>{if(typeof e=="function")return e;const n=ji in e?e[ji]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?A.jsx(sq,{theme:r,...t}):A.jsx(uq,{theme:e,...t})}function sN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qw(e,t)}function lN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qw(e,t)}const gE={disabled:!1},nh=ao.createContext(null);var fq=function(t){return t.scrollTop},af="unmounted",$s="exited",_s="entering",Vl="entered",Vw="exiting",Bi=(function(e){lN(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,u=a&&!a.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?u?(c=$s,o.appearStatus=_s):c=Vl:n.unmountOnExit||n.mountOnEnter?c=af:c=$s,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===af?{status:$s}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==_s&&a!==Vl&&(o=_s):(a===_s||a===Vl)&&(o=Vw)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===_s){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nm.findDOMNode(this);a&&fq(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$s&&this.setState({status:af})},r.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,c=this.props.nodeRef?[u]:[nm.findDOMNode(this),u],f=c[0],d=c[1],m=this.getTimeouts(),h=u?m.appear:m.enter;if(!i&&!a||gE.disabled){this.safeSetState({status:Vl},function(){o.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:_s},function(){o.props.onEntering(f,d),o.onTransitionEnd(h,function(){o.safeSetState({status:Vl},function(){o.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:nm.findDOMNode(this);if(!o||gE.disabled){this.safeSetState({status:$s},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Vw},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:$s},function(){i.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:nm.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],d=c[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===af)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=sN(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ao.createElement(nh.Provider,{value:null},typeof a=="function"?a(i,u):ao.cloneElement(ao.Children.only(a),u))},t})(ao.Component);Bi.contextType=nh;Bi.propTypes={};function Kl(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kl,onEntering:Kl,onEntered:Kl,onExit:Kl,onExiting:Kl,onExited:Kl};Bi.UNMOUNTED=af;Bi.EXITED=$s;Bi.ENTERING=_s;Bi.ENTERED=Vl;Bi.EXITING=Vw;function dq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(e,t){var r=function(o){return t&&b.isValidElement(o)?t(o):o},n=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function pq(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,u={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var f=n[c][a];u[n[c][a]]=r(f)}u[c]=r(c)}for(a=0;a<i.length;a++)u[i[a]]=r(i[a]);return u}function Is(e,t,r){return r[t]!=null?r[t]:e.props[t]}function mq(e,t){return t1(e.children,function(r){return b.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Is(r,"appear",e),enter:Is(r,"enter",e),exit:Is(r,"exit",e)})})}function hq(e,t,r){var n=t1(e.children),i=pq(t,n);return Object.keys(i).forEach(function(o){var a=i[o];if(b.isValidElement(a)){var u=o in t,c=o in n,f=t[o],d=b.isValidElement(f)&&!f.props.in;c&&(!u||d)?i[o]=b.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Is(a,"exit",e),enter:Is(a,"enter",e)}):!c&&u&&!d?i[o]=b.cloneElement(a,{in:!1}):c&&u&&b.isValidElement(f)&&(i[o]=b.cloneElement(a,{onExited:r.bind(null,a),in:f.props.in,exit:Is(a,"exit",e),enter:Is(a,"enter",e)}))}}),i}var vq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gq={component:"div",childFactory:function(t){return t}},r1=(function(e){lN(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind(dq(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,u=o.handleExited,c=o.firstRender;return{children:c?mq(i,u):hq(i,a,u),firstRender:!1}},r.handleExited=function(i,o){var a=t1(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(u){var c=Qm({},u.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,o=i.component,a=i.childFactory,u=sN(i,["component","childFactory"]),c=this.state.contextValue,f=vq(this.state.children).map(a);return delete u.appear,delete u.enter,delete u.exit,o===null?ao.createElement(nh.Provider,{value:c},f):ao.createElement(nh.Provider,{value:c},ao.createElement(o,u,f))},t})(ao.Component);r1.propTypes={};r1.defaultProps=gq;const yE={};function uN(e,t){const r=b.useRef(yE);return r.current===yE&&(r.current=e(t)),r}const yq=[];function bq(e){b.useEffect(e,yq)}class Rv{constructor(){xs(this,"currentId",null);xs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});xs(this,"disposeEffect",()=>this.clear)}static create(){return new Rv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Xl(){const e=uN(Rv.create).current;return bq(e.disposeEffect),e}const n1=e=>e.scrollTop;function yu(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function bu(e){return typeof e=="string"}function cN(e,t,r){return e===void 0||bu(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function fN(e,t,r){return typeof e=="function"?e(t,r):e}function dN(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function pN(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const g=ve(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),y={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},x={...r,...i,...n};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=dN({...i,...n}),u=bE(n),c=bE(i),f=t(a),d=ve(f==null?void 0:f.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),m={...f==null?void 0:f.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...f,...r,...c,...u};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:f.ref}}function xt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:u=!1,...c}=t,{component:f,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=o,g=d[e]||n,y=fN(m[e],i),{props:{component:x,...w},internalRef:k}=pN({className:r,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y}),C=Jt(k,y==null?void 0:y.ref,t.ref),$=e==="root"?x||f:x,P=cN(g,{...e==="root"&&!f&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...w,...$&&!u&&{as:$},...$&&u&&{component:$},ref:C},i);return[g,P]}function wq(e){return Ze("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const xq=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return He(o,wq,i)},Sq=$e("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ts=b.forwardRef(function(t,r){var g;const n=Ve({props:t,name:"MuiPaper"}),i=ea(),{className:o,component:a="div",elevation:u=1,square:c=!1,variant:f="elevation",...d}=n,m={...n,component:a,elevation:u,square:c,variant:f},h=xq(m);return A.jsx(Sq,{as:a,ownerState:m,className:ve(h.root,o),ref:r,...d,style:{...f==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[u],...i.vars&&{"--Paper-overlay":(g=i.vars.overlays)==null?void 0:g[u]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${rh("#fff",Kw(u))}, ${rh("#fff",Kw(u))})`}},...d.style}})});function ih(e){try{return e.matches(":focus-visible")}catch{}return!1}class oh{constructor(){xs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new oh}static use(){const t=uN(oh.create).current,[r,n]=b.useState(!1);return t.shouldMount=r,t.setShouldMount=n,b.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=$q(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function kq(){return oh.use()}function $q(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function _q(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:u,onExited:c,timeout:f}=e,[d,m]=b.useState(!1),h=ve(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},y=ve(r.child,d&&r.childLeaving,n&&r.childPulsate);return!u&&!d&&m(!0),b.useEffect(()=>{if(!u&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,u,f]),A.jsx("span",{className:h,style:g,children:A.jsx("span",{className:y})})}const ei=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gw=550,Pq=80,Oq=nd`
|
|
100
|
+
export default theme;`}function Hg(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const $E=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let o=0;for(let i=0;i<t.length;i+=1)o+=+t[i];return o};function IE(e){Object.assign(e,{alpha(t,o){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof o=="string"?`calc(${o})`:o})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof o=="string"?`calc(${o})`:o})`:Yl(t,$E(o))},lighten(t,o){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${Hg(o)})`:Su(t,o)},darken(t,o){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${Hg(o)})`:wu(t,o)}})}function Kf(e={},...t){const{breakpoints:o,mixins:i={},spacing:a,palette:u={},transitions:c={},typography:d={},shape:h,colorSpace:m,...g}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ao(20));const y=Kd({...u,colorSpace:m}),x=Bd(e);let E=ln(x,{mixins:vE(x.breakpoints,i),palette:y,shadows:CE.slice(),typography:Jv(y,d),transitions:_E(c),zIndex:{...PE}});return E=ln(E,g),E=t.reduce((C,w)=>ln(C,w),E),E.unstable_sxConfig={...da,...g==null?void 0:g.unstable_sxConfig},E.unstable_sx=function(w){return eo({sx:w,theme:this})},E.toRuntimeSource=e0,IE(E),E}function Gf(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const OE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const o=Gf(t);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function t0(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function n0(e){return e==="dark"?OE:[]}function AE(e){const{palette:t={mode:"light"},opacity:o,overlays:i,colorSpace:a,...u}=e,c=Kd({...t,colorSpace:a});return{palette:c,opacity:{...t0(c.mode),...o},overlays:i||n0(c.mode),...u}}function ME(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const zE=e=>[...[...Array(25)].map((t,o)=>`--${e?`${e}-`:""}overlays-${o}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],LE=e=>(t,o)=>{const i=e.rootSelector||":root",a=e.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return zE(e.cssVarPrefix).forEach(d=>{c[d]=o[d],delete o[d]}),u==="media"?{[i]:o,"@media (prefers-color-scheme: dark)":{[i]:c}}:u?{[u.replace("%s",t)]:c,[`${i}, ${u.replace("%s",t)}`]:o}:{[i]:{...o,...c}}}if(u&&u!=="media")return`${i}, ${u.replace("%s",String(t))}`}else if(t){if(u==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:o}};if(u)return u.replace("%s",String(t))}return i};function NE(e,t){t.forEach(o=>{e[o]||(e[o]={})})}function Q(e,t,o){!e[t]&&o&&(e[t]=o)}function Ds(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wv(e)}function ur(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ns(Ds(e[t])))}function DE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Un=e=>{try{return e()}catch{}},FE=(e="mui")=>oE(e);function Af(e,t,o,i,a){if(!o)return;o=o===!0?{}:o;const u=a==="dark"?"dark":"light";if(!i){t[a]=AE({...o,palette:{mode:u,...o==null?void 0:o.palette},colorSpace:e});return}const{palette:c,...d}=Kf({...i,palette:{mode:u,...o==null?void 0:o.palette},colorSpace:e});return t[a]={...o,palette:c,opacity:{...t0(u),...o==null?void 0:o.opacity},overlays:(o==null?void 0:o.overlays)||n0(u)},d}function jE(e={},...t){const{colorSchemes:o={light:!0},defaultColorScheme:i,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",nativeColor:c=!1,shouldSkipGeneratingVar:d=ME,colorSchemeSelector:h=o.light&&o.dark?"media":void 0,rootSelector:m=":root",...g}=e,y=Object.keys(o)[0],x=i||(o.light&&y!=="light"?"light":y),E=FE(u),{[x]:C,light:w,dark:b,...I}=o,L={...I};let $=C;if((x==="dark"&&!("dark"in o)||x==="light"&&!("light"in o))&&($=!0),!$)throw new Error(Ao(21,x));let T;c&&(T="oklch");const A=Af(T,L,$,g,x);w&&!L.light&&Af(T,L,w,void 0,"light"),b&&!L.dark&&Af(T,L,b,void 0,"dark");let z={defaultColorScheme:x,...A,cssVarPrefix:u,colorSchemeSelector:h,rootSelector:m,getCssVar:E,colorSchemes:L,font:{...yE(A.typography),...A.font},spacing:DE(g.spacing)};Object.keys(z.colorSchemes).forEach(J=>{const k=z.colorSchemes[J].palette,q=te=>{const re=te.split("-"),fe=re[1],Z=re[2];return E(te,k[fe][Z])};k.mode==="light"&&(Q(k.common,"background","#fff"),Q(k.common,"onBackground","#000")),k.mode==="dark"&&(Q(k.common,"background","#000"),Q(k.common,"onBackground","#fff"));function W(te,re,fe){if(T){let Z;return te===vo&&(Z=`transparent ${((1-fe)*100).toFixed(0)}%`),te===Fe&&(Z=`#000 ${(fe*100).toFixed(0)}%`),te===je&&(Z=`#fff ${(fe*100).toFixed(0)}%`),`color-mix(in ${T}, ${re}, ${Z})`}return te(re,fe)}if(NE(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){Q(k.Alert,"errorColor",W(Fe,k.error.light,.6)),Q(k.Alert,"infoColor",W(Fe,k.info.light,.6)),Q(k.Alert,"successColor",W(Fe,k.success.light,.6)),Q(k.Alert,"warningColor",W(Fe,k.warning.light,.6)),Q(k.Alert,"errorFilledBg",q("palette-error-main")),Q(k.Alert,"infoFilledBg",q("palette-info-main")),Q(k.Alert,"successFilledBg",q("palette-success-main")),Q(k.Alert,"warningFilledBg",q("palette-warning-main")),Q(k.Alert,"errorFilledColor",Un(()=>k.getContrastText(k.error.main))),Q(k.Alert,"infoFilledColor",Un(()=>k.getContrastText(k.info.main))),Q(k.Alert,"successFilledColor",Un(()=>k.getContrastText(k.success.main))),Q(k.Alert,"warningFilledColor",Un(()=>k.getContrastText(k.warning.main))),Q(k.Alert,"errorStandardBg",W(je,k.error.light,.9)),Q(k.Alert,"infoStandardBg",W(je,k.info.light,.9)),Q(k.Alert,"successStandardBg",W(je,k.success.light,.9)),Q(k.Alert,"warningStandardBg",W(je,k.warning.light,.9)),Q(k.Alert,"errorIconColor",q("palette-error-main")),Q(k.Alert,"infoIconColor",q("palette-info-main")),Q(k.Alert,"successIconColor",q("palette-success-main")),Q(k.Alert,"warningIconColor",q("palette-warning-main")),Q(k.AppBar,"defaultBg",q("palette-grey-100")),Q(k.Avatar,"defaultBg",q("palette-grey-400")),Q(k.Button,"inheritContainedBg",q("palette-grey-300")),Q(k.Button,"inheritContainedHoverBg",q("palette-grey-A100")),Q(k.Chip,"defaultBorder",q("palette-grey-400")),Q(k.Chip,"defaultAvatarColor",q("palette-grey-700")),Q(k.Chip,"defaultIconColor",q("palette-grey-700")),Q(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(k.LinearProgress,"primaryBg",W(je,k.primary.main,.62)),Q(k.LinearProgress,"secondaryBg",W(je,k.secondary.main,.62)),Q(k.LinearProgress,"errorBg",W(je,k.error.main,.62)),Q(k.LinearProgress,"infoBg",W(je,k.info.main,.62)),Q(k.LinearProgress,"successBg",W(je,k.success.main,.62)),Q(k.LinearProgress,"warningBg",W(je,k.warning.main,.62)),Q(k.Skeleton,"bg",T?W(vo,k.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),Q(k.Slider,"primaryTrack",W(je,k.primary.main,.62)),Q(k.Slider,"secondaryTrack",W(je,k.secondary.main,.62)),Q(k.Slider,"errorTrack",W(je,k.error.main,.62)),Q(k.Slider,"infoTrack",W(je,k.info.main,.62)),Q(k.Slider,"successTrack",W(je,k.success.main,.62)),Q(k.Slider,"warningTrack",W(je,k.warning.main,.62));const te=T?W(Fe,k.background.default,.6825):_l(k.background.default,.8);Q(k.SnackbarContent,"bg",te),Q(k.SnackbarContent,"color",Un(()=>T?Qf.text.primary:k.getContrastText(te))),Q(k.SpeedDialAction,"fabHoverBg",_l(k.background.paper,.15)),Q(k.StepConnector,"border",q("palette-grey-400")),Q(k.StepContent,"border",q("palette-grey-400")),Q(k.Switch,"defaultColor",q("palette-common-white")),Q(k.Switch,"defaultDisabledColor",q("palette-grey-100")),Q(k.Switch,"primaryDisabledColor",W(je,k.primary.main,.62)),Q(k.Switch,"secondaryDisabledColor",W(je,k.secondary.main,.62)),Q(k.Switch,"errorDisabledColor",W(je,k.error.main,.62)),Q(k.Switch,"infoDisabledColor",W(je,k.info.main,.62)),Q(k.Switch,"successDisabledColor",W(je,k.success.main,.62)),Q(k.Switch,"warningDisabledColor",W(je,k.warning.main,.62)),Q(k.TableCell,"border",W(je,W(vo,k.divider,1),.88)),Q(k.Tooltip,"bg",W(vo,k.grey[700],.92))}if(k.mode==="dark"){Q(k.Alert,"errorColor",W(je,k.error.light,.6)),Q(k.Alert,"infoColor",W(je,k.info.light,.6)),Q(k.Alert,"successColor",W(je,k.success.light,.6)),Q(k.Alert,"warningColor",W(je,k.warning.light,.6)),Q(k.Alert,"errorFilledBg",q("palette-error-dark")),Q(k.Alert,"infoFilledBg",q("palette-info-dark")),Q(k.Alert,"successFilledBg",q("palette-success-dark")),Q(k.Alert,"warningFilledBg",q("palette-warning-dark")),Q(k.Alert,"errorFilledColor",Un(()=>k.getContrastText(k.error.dark))),Q(k.Alert,"infoFilledColor",Un(()=>k.getContrastText(k.info.dark))),Q(k.Alert,"successFilledColor",Un(()=>k.getContrastText(k.success.dark))),Q(k.Alert,"warningFilledColor",Un(()=>k.getContrastText(k.warning.dark))),Q(k.Alert,"errorStandardBg",W(Fe,k.error.light,.9)),Q(k.Alert,"infoStandardBg",W(Fe,k.info.light,.9)),Q(k.Alert,"successStandardBg",W(Fe,k.success.light,.9)),Q(k.Alert,"warningStandardBg",W(Fe,k.warning.light,.9)),Q(k.Alert,"errorIconColor",q("palette-error-main")),Q(k.Alert,"infoIconColor",q("palette-info-main")),Q(k.Alert,"successIconColor",q("palette-success-main")),Q(k.Alert,"warningIconColor",q("palette-warning-main")),Q(k.AppBar,"defaultBg",q("palette-grey-900")),Q(k.AppBar,"darkBg",q("palette-background-paper")),Q(k.AppBar,"darkColor",q("palette-text-primary")),Q(k.Avatar,"defaultBg",q("palette-grey-600")),Q(k.Button,"inheritContainedBg",q("palette-grey-800")),Q(k.Button,"inheritContainedHoverBg",q("palette-grey-700")),Q(k.Chip,"defaultBorder",q("palette-grey-700")),Q(k.Chip,"defaultAvatarColor",q("palette-grey-300")),Q(k.Chip,"defaultIconColor",q("palette-grey-300")),Q(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(k.LinearProgress,"primaryBg",W(Fe,k.primary.main,.5)),Q(k.LinearProgress,"secondaryBg",W(Fe,k.secondary.main,.5)),Q(k.LinearProgress,"errorBg",W(Fe,k.error.main,.5)),Q(k.LinearProgress,"infoBg",W(Fe,k.info.main,.5)),Q(k.LinearProgress,"successBg",W(Fe,k.success.main,.5)),Q(k.LinearProgress,"warningBg",W(Fe,k.warning.main,.5)),Q(k.Skeleton,"bg",T?W(vo,k.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),Q(k.Slider,"primaryTrack",W(Fe,k.primary.main,.5)),Q(k.Slider,"secondaryTrack",W(Fe,k.secondary.main,.5)),Q(k.Slider,"errorTrack",W(Fe,k.error.main,.5)),Q(k.Slider,"infoTrack",W(Fe,k.info.main,.5)),Q(k.Slider,"successTrack",W(Fe,k.success.main,.5)),Q(k.Slider,"warningTrack",W(Fe,k.warning.main,.5));const te=T?W(je,k.background.default,.985):_l(k.background.default,.98);Q(k.SnackbarContent,"bg",te),Q(k.SnackbarContent,"color",Un(()=>T?Yv.text.primary:k.getContrastText(te))),Q(k.SpeedDialAction,"fabHoverBg",_l(k.background.paper,.15)),Q(k.StepConnector,"border",q("palette-grey-600")),Q(k.StepContent,"border",q("palette-grey-600")),Q(k.Switch,"defaultColor",q("palette-grey-300")),Q(k.Switch,"defaultDisabledColor",q("palette-grey-600")),Q(k.Switch,"primaryDisabledColor",W(Fe,k.primary.main,.55)),Q(k.Switch,"secondaryDisabledColor",W(Fe,k.secondary.main,.55)),Q(k.Switch,"errorDisabledColor",W(Fe,k.error.main,.55)),Q(k.Switch,"infoDisabledColor",W(Fe,k.info.main,.55)),Q(k.Switch,"successDisabledColor",W(Fe,k.success.main,.55)),Q(k.Switch,"warningDisabledColor",W(Fe,k.warning.main,.55)),Q(k.TableCell,"border",W(Fe,W(vo,k.divider,1),.68)),Q(k.Tooltip,"bg",W(vo,k.grey[700],.92))}ur(k.background,"default"),ur(k.background,"paper"),ur(k.common,"background"),ur(k.common,"onBackground"),ur(k,"divider"),Object.keys(k).forEach(te=>{const re=k[te];te!=="tonalOffset"&&re&&typeof re=="object"&&(re.main&&Q(k[te],"mainChannel",Ns(Ds(re.main))),re.light&&Q(k[te],"lightChannel",Ns(Ds(re.light))),re.dark&&Q(k[te],"darkChannel",Ns(Ds(re.dark))),re.contrastText&&Q(k[te],"contrastTextChannel",Ns(Ds(re.contrastText))),te==="text"&&(ur(k[te],"primary"),ur(k[te],"secondary")),te==="action"&&(re.active&&ur(k[te],"active"),re.selected&&ur(k[te],"selected")))})}),z=t.reduce((J,k)=>ln(J,k),z);const F={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:d,getSelector:LE(z),enableContrastVars:c},{vars:U,generateThemeVars:H,generateStyleSheets:V}=aE(z,F);return z.vars=U,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([J,k])=>{z[J]=k}),z.generateThemeVars=H,z.generateStyleSheets=V,z.generateSpacing=function(){return Fv(g.spacing,Fd(this))},z.getColorSchemeSelector=lE(h),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=d,z.unstable_sxConfig={...da,...g==null?void 0:g.unstable_sxConfig},z.unstable_sx=function(k){return eo({sx:k,theme:this})},z.toRuntimeSource=e0,z}function Qg(e,t,o){e.colorSchemes&&o&&(e.colorSchemes[t]={...o!==!0&&o,palette:Kd({...o===!0?{}:o.palette,mode:t})})}function xu(e={},...t){const{palette:o,cssVariables:i=!1,colorSchemes:a=o?void 0:{light:!0},defaultColorScheme:u=o==null?void 0:o.mode,...c}=e,d=u||"light",h=a==null?void 0:a[d],m={...a,...o?{[d]:{...typeof h!="boolean"&&h,palette:o}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Kf(e,...t);let g=o;"palette"in e||m[d]&&(m[d]!==!0?g=m[d].palette:d==="dark"&&(g={mode:"dark"}));const y=Kf({...e,palette:g},...t);return y.defaultColorScheme=d,y.colorSchemes=m,y.palette.mode==="light"&&(y.colorSchemes.light={...m.light!==!0&&m.light,palette:y.palette},Qg(y,"dark",m.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:y.palette},Qg(y,"light",m.light)),y}return!o&&!("light"in m)&&d==="light"&&(m.light=!0),jE({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Gd=xu(),Yn="$$material";function ku(){const e=Wd(Gd);return e[Yn]||e}function BE(e){return Y.jsx(jv,{...e,defaultTheme:Gd,themeId:Yn})}function UE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qd=e=>UE(e)&&e!=="classes",He=_C({themeId:Yn,defaultTheme:Gd,rootShouldForwardProp:qd});function r0(e){return function(o){return Y.jsx(BE,{styles:typeof e=="function"?i=>e({theme:i,...o}):e})}}function WE(){return Lv}const _t=GC;function xt(e){return ZC(e)}function VE(e){return Pt("MuiSvgIcon",e)}St("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZE=e=>{const{color:t,fontSize:o,classes:i}=e,a={root:["root",t!=="inherit"&&`color${Ue(t)}`,`fontSize${Ue(o)}`]};return Mt(a,VE,i)},HE=He("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${Ue(o.color)}`],t[`fontSize${Ue(o.fontSize)}`]]}})(_t(({theme:e})=>{var t,o,i,a,u,c,d,h,m,g,y,x,E,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(i=(o=(e.vars??e).transitions)==null?void 0:o.duration)==null?void 0:i.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(m=e.typography)==null?void 0:m.pxToRem)==null?void 0:g.call(m,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var b,I;return{props:{color:w},style:{color:(I=(b=(e.vars??e).palette)==null?void 0:b[w])==null?void 0:I.main}}}),{props:{color:"action"},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:x.active}},{props:{color:"disabled"},style:{color:(C=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),qf=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiSvgIcon"}),{children:a,className:u,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:m,inheritViewBox:g=!1,titleAccess:y,viewBox:x="0 0 24 24",...E}=i,C=S.isValidElement(a)&&a.type==="svg",w={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:x,hasSvgAsChild:C},b={};g||(b.viewBox=x);const I=ZE(w);return Y.jsxs(HE,{as:d,className:$e(I.root,u),focusable:"false",color:m,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:o,...b,...E,...C&&a.props,ownerState:w,children:[C?a.props.children:a,y?Y.jsx("title",{children:y}):null]})});qf.muiName="SvgIcon";function pa(e,t){function o(i,a){return Y.jsx(qf,{"data-testid":void 0,ref:a,...i,children:e})}return o.muiName=qf.muiName,S.memo(S.forwardRef(o))}function QE(e,t=166){let o;function i(...a){const u=()=>{e.apply(this,a)};clearTimeout(o),o=setTimeout(u,t)}return i.clear=()=>{clearTimeout(o)},i}function Mo(e){return e&&e.ownerDocument||document}function Di(e){return Mo(e).defaultView||window}function Kg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ki(e){const t=S.useRef(e);return Ni(()=>{t.current=e}),S.useRef((...o)=>(0,t.current)(...o)).current}function Sr(...e){const t=S.useRef(void 0),o=S.useCallback(i=>{const a=e.map(u=>{if(u==null)return null;if(typeof u=="function"){const c=u,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return u.current=i,()=>{u.current=null}});return()=>{a.forEach(u=>u==null?void 0:u())}},e);return S.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=o(i))},e)}function KE(e,t){const o=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&o>=65&&o<=90&&typeof t=="function"}function GE(e,t){if(!e)return t;function o(c,d){const h={};return Object.keys(d).forEach(m=>{KE(m,d[m])&&typeof c[m]=="function"&&(h[m]=(...g)=>{c[m](...g),d[m](...g)})}),h}if(typeof e=="function"||typeof t=="function")return c=>{const d=typeof t=="function"?t(c):t,h=typeof e=="function"?e({...c,...d}):e,m=$e(c==null?void 0:c.className,d==null?void 0:d.className,h==null?void 0:h.className),g=o(h,d);return{...d,...h,...g,...!!m&&{className:m},...(d==null?void 0:d.style)&&(h==null?void 0:h.style)&&{style:{...d.style,...h.style}},...(d==null?void 0:d.sx)&&(h==null?void 0:h.sx)&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(h.sx)?h.sx:[h.sx]]}}};const i=t,a=o(e,i),u=$e(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...a,...!!u&&{className:u},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const qE=pa(Y.jsx("path",{d:"m14 12-2 2-2-2 2-2zm-2-6 2.12 2.12 2.5-2.5L12 1 7.38 5.62l2.5 2.5zm-6 6 2.12-2.12-2.5-2.5L1 12l4.62 4.62 2.5-2.5zm12 0-2.12 2.12 2.5 2.5L23 12l-4.62-4.62-2.5 2.5zm-6 6-2.12-2.12-2.5 2.5L12 23l4.62-4.62-2.5-2.5z"})),YE=pa(Y.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"})),XE=pa(Y.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"})),JE=pa(Y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),eb=pa(Y.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}));function tb({theme:e,...t}){const o=Yn in e?e[Yn]:void 0;return Y.jsx(Kv,{...t,themeId:o?Yn:void 0,theme:o||e})}const Pl={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:nb}=rE({themeId:Yn,theme:()=>xu({cssVariables:!0}),colorSchemeStorageKey:Pl.colorSchemeStorageKey,modeStorageKey:Pl.modeStorageKey,defaultColorScheme:{light:Pl.defaultLightColorScheme,dark:Pl.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Jv(e.palette,e.typography)};return t.unstable_sx=function(i){return eo({sx:i,theme:this})},t}}),rb=nb;function ob({theme:e,...t}){const o=S.useMemo(()=>{if(typeof e=="function")return e;const i=Yn in e?e[Yn]:e;return"colorSchemes"in i?null:"vars"in i?e:{...e,vars:null}},[e]);return o?Y.jsx(tb,{theme:o,...t}):Y.jsx(rb,{theme:e,...t})}function o0(e,t){if(e==null)return{};var o={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;o[i]=e[i]}return o}function Yf(e,t){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},Yf(e,t)}function i0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yf(e,t)}const Gg={disabled:!1},Xl=Gn.createContext(null);var ib=function(t){return t.scrollTop},Fs="unmounted",wo="exited",So="entering",yi="entered",Xf="exiting",Xn=(function(e){i0(t,e);function t(i,a){var u;u=e.call(this,i,a)||this;var c=a,d=c&&!c.isMounting?i.enter:i.appear,h;return u.appearStatus=null,i.in?d?(h=wo,u.appearStatus=So):h=yi:i.unmountOnExit||i.mountOnEnter?h=Fs:h=wo,u.state={status:h},u.nextCallback=null,u}t.getDerivedStateFromProps=function(a,u){var c=a.in;return c&&u.status===Fs?{status:wo}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(a){var u=null;if(a!==this.props){var c=this.state.status;this.props.in?c!==So&&c!==yi&&(u=So):(c===So||c===yi)&&(u=Xf)}this.updateStatus(!1,u)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var a=this.props.timeout,u,c,d;return u=c=d=a,a!=null&&typeof a!="number"&&(u=a.exit,c=a.enter,d=a.appear!==void 0?a.appear:c),{exit:u,enter:c,appear:d}},o.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===So){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Rl.findDOMNode(this);c&&ib(c)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wo&&this.setState({status:Fs})},o.performEnter=function(a){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:a,h=this.props.nodeRef?[d]:[Rl.findDOMNode(this),d],m=h[0],g=h[1],y=this.getTimeouts(),x=d?y.appear:y.enter;if(!a&&!c||Gg.disabled){this.safeSetState({status:yi},function(){u.props.onEntered(m)});return}this.props.onEnter(m,g),this.safeSetState({status:So},function(){u.props.onEntering(m,g),u.onTransitionEnd(x,function(){u.safeSetState({status:yi},function(){u.props.onEntered(m,g)})})})},o.performExit=function(){var a=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Rl.findDOMNode(this);if(!u||Gg.disabled){this.safeSetState({status:wo},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Xf},function(){a.props.onExiting(d),a.onTransitionEnd(c.exit,function(){a.safeSetState({status:wo},function(){a.props.onExited(d)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},o.setNextCallback=function(a){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,a(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},o.onTransitionEnd=function(a,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Rl.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],m=h[0],g=h[1];this.props.addEndListener(m,g)}a!=null&&setTimeout(this.nextCallback,a)},o.render=function(){var a=this.state.status;if(a===Fs)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=o0(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Gn.createElement(Xl.Provider,{value:null},typeof c=="function"?c(a,d):Gn.cloneElement(Gn.Children.only(c),d))},t})(Gn.Component);Xn.contextType=Xl;Xn.propTypes={};function gi(){}Xn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gi,onEntering:gi,onEntered:gi,onExit:gi,onExiting:gi,onExited:gi};Xn.UNMOUNTED=Fs;Xn.EXITED=wo;Xn.ENTERING=So;Xn.ENTERED=yi;Xn.EXITING=Xf;function sb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yd(e,t){var o=function(u){return t&&S.isValidElement(u)?t(u):u},i=Object.create(null);return e&&S.Children.map(e,function(a){return a}).forEach(function(a){i[a.key]=o(a)}),i}function ab(e,t){e=e||{},t=t||{};function o(g){return g in t?t[g]:e[g]}var i=Object.create(null),a=[];for(var u in e)u in t?a.length&&(i[u]=a,a=[]):a.push(u);var c,d={};for(var h in t){if(i[h])for(c=0;c<i[h].length;c++){var m=i[h][c];d[i[h][c]]=o(m)}d[h]=o(h)}for(c=0;c<a.length;c++)d[a[c]]=o(a[c]);return d}function ko(e,t,o){return o[t]!=null?o[t]:e.props[t]}function lb(e,t){return Yd(e.children,function(o){return S.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:ko(o,"appear",e),enter:ko(o,"enter",e),exit:ko(o,"exit",e)})})}function ub(e,t,o){var i=Yd(e.children),a=ab(t,i);return Object.keys(a).forEach(function(u){var c=a[u];if(S.isValidElement(c)){var d=u in t,h=u in i,m=t[u],g=S.isValidElement(m)&&!m.props.in;h&&(!d||g)?a[u]=S.cloneElement(c,{onExited:o.bind(null,c),in:!0,exit:ko(c,"exit",e),enter:ko(c,"enter",e)}):!h&&d&&!g?a[u]=S.cloneElement(c,{in:!1}):h&&d&&S.isValidElement(m)&&(a[u]=S.cloneElement(c,{onExited:o.bind(null,c),in:m.props.in,exit:ko(c,"exit",e),enter:ko(c,"enter",e)}))}}),a}var cb=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fb={component:"div",childFactory:function(t){return t}},Xd=(function(e){i0(t,e);function t(i,a){var u;u=e.call(this,i,a)||this;var c=u.handleExited.bind(sb(u));return u.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},u}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,u){var c=u.children,d=u.handleExited,h=u.firstRender;return{children:h?lb(a,d):ub(a,c,d),firstRender:!1}},o.handleExited=function(a,u){var c=Yd(this.props.children);a.key in c||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(d){var h=Kl({},d.children);return delete h[a.key],{children:h}}))},o.render=function(){var a=this.props,u=a.component,c=a.childFactory,d=o0(a,["component","childFactory"]),h=this.state.contextValue,m=cb(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,u===null?Gn.createElement(Xl.Provider,{value:h},m):Gn.createElement(Xl.Provider,{value:h},Gn.createElement(u,d,m))},t})(Gn.Component);Xd.propTypes={};Xd.defaultProps=fb;const qg={};function s0(e,t){const o=S.useRef(qg);return o.current===qg&&(o.current=e(t)),o}const db=[];function pb(e){S.useEffect(e,db)}class Jd{constructor(){$s(this,"currentId",null);$s(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});$s(this,"disposeEffect",()=>this.clear)}static create(){return new Jd}start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},t)}}function hb(){const e=s0(Jd.create).current;return pb(e.disposeEffect),e}const a0=e=>e.scrollTop;function Jl(e,t){const{timeout:o,easing:i,style:a={}}=e;return{duration:a.transitionDuration??(typeof o=="number"?o:o[t.mode]||0),easing:a.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:a.transitionDelay}}function mb(e){return typeof e=="string"}function gb(e,t,o){return e===void 0||mb(e)?t:{...t,ownerState:{...t.ownerState,...o}}}function yb(e,t,o){return typeof e=="function"?e(t,o):e}function l0(e,t=[]){if(e===void 0)return{};const o={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{o[i]=e[i]}),o}function Yg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(o=>!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function vb(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:i,externalForwardedProps:a,className:u}=e;if(!t){const E=$e(o==null?void 0:o.className,u,a==null?void 0:a.className,i==null?void 0:i.className),C={...o==null?void 0:o.style,...a==null?void 0:a.style,...i==null?void 0:i.style},w={...o,...a,...i};return E.length>0&&(w.className=E),Object.keys(C).length>0&&(w.style=C),{props:w,internalRef:void 0}}const c=l0({...a,...i}),d=Yg(i),h=Yg(a),m=t(c),g=$e(m==null?void 0:m.className,o==null?void 0:o.className,u,a==null?void 0:a.className,i==null?void 0:i.className),y={...m==null?void 0:m.style,...o==null?void 0:o.style,...a==null?void 0:a.style,...i==null?void 0:i.style},x={...m,...o,...h,...d};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:m.ref}}function Mn(e,t){const{className:o,elementType:i,ownerState:a,externalForwardedProps:u,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:m,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...x}=u,E=g[e]||i,C=yb(y[e],a),{props:{component:w,...b},internalRef:I}=vb({className:o,...h,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:C}),L=Sr(I,C==null?void 0:C.ref,t.ref),$=e==="root"?w||m:w,T=gb(E,{...e==="root"&&!m&&!g[e]&&c,...e!=="root"&&!g[e]&&c,...b,...$&&!d&&{as:$},...$&&d&&{component:$},ref:L},a);return[E,T]}function wb(e){return Pt("MuiPaper",e)}St("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Sb=e=>{const{square:t,elevation:o,variant:i,classes:a}=e,u={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${o}`]};return Mt(u,wb,a)},xb=He("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(_t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),u0=S.forwardRef(function(t,o){var E;const i=xt({props:t,name:"MuiPaper"}),a=ku(),{className:u,component:c="div",elevation:d=1,square:h=!1,variant:m="elevation",...g}=i,y={...i,component:c,elevation:d,square:h,variant:m},x=Sb(y);return Y.jsx(xb,{as:c,ownerState:y,className:$e(x.root,u),ref:o,...g,style:{...m==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[d],...a.vars&&{"--Paper-overlay":(E=a.vars.overlays)==null?void 0:E[d]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Yl("#fff",Gf(d))}, ${Yl("#fff",Gf(d))})`}},...g.style}})});function Xg(e){try{return e.matches(":focus-visible")}catch{}return!1}class eu{constructor(){$s(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new eu}static use(){const t=s0(eu.create).current,[o,i]=S.useState(!1);return t.shouldMount=o,t.setShouldMount=i,S.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=Cb(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function kb(){return eu.use()}function Cb(){let e,t;const o=new Promise((i,a)=>{e=i,t=a});return o.resolve=e,o.reject=t,o}function Eb(e){const{className:t,classes:o,pulsate:i=!1,rippleX:a,rippleY:u,rippleSize:c,in:d,onExited:h,timeout:m}=e,[g,y]=S.useState(!1),x=$e(t,o.ripple,o.rippleVisible,i&&o.ripplePulsate),E={width:c,height:c,top:-(c/2)+u,left:-(c/2)+a},C=$e(o.child,g&&o.childLeaving,i&&o.childPulsate);return!d&&!g&&y(!0),S.useEffect(()=>{if(!d&&h!=null){const w=setTimeout(h,m);return()=>{clearTimeout(w)}}},[h,d,m]),Y.jsx("span",{className:x,style:E,children:Y.jsx("span",{className:C})})}const yn=St("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jf=550,bb=80,Rb=sa`
|
|
102
101
|
0% {
|
|
103
102
|
transform: scale(0);
|
|
104
103
|
opacity: 0.1;
|
|
@@ -108,7 +107,7 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
108
107
|
transform: scale(1);
|
|
109
108
|
opacity: 0.3;
|
|
110
109
|
}
|
|
111
|
-
`,
|
|
110
|
+
`,_b=sa`
|
|
112
111
|
0% {
|
|
113
112
|
opacity: 1;
|
|
114
113
|
}
|
|
@@ -116,7 +115,7 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
116
115
|
100% {
|
|
117
116
|
opacity: 0;
|
|
118
117
|
}
|
|
119
|
-
`,
|
|
118
|
+
`,Pb=sa`
|
|
120
119
|
0% {
|
|
121
120
|
transform: scale(1);
|
|
122
121
|
}
|
|
@@ -128,23 +127,23 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
128
127
|
100% {
|
|
129
128
|
transform: scale(1);
|
|
130
129
|
}
|
|
131
|
-
`,
|
|
130
|
+
`,Tb=He("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$b=He(Eb,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
132
131
|
opacity: 0;
|
|
133
132
|
position: absolute;
|
|
134
133
|
|
|
135
|
-
&.${
|
|
134
|
+
&.${yn.rippleVisible} {
|
|
136
135
|
opacity: 0.3;
|
|
137
136
|
transform: scale(1);
|
|
138
|
-
animation-name: ${
|
|
139
|
-
animation-duration: ${
|
|
137
|
+
animation-name: ${Rb};
|
|
138
|
+
animation-duration: ${Jf}ms;
|
|
140
139
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
&.${
|
|
142
|
+
&.${yn.ripplePulsate} {
|
|
144
143
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
145
144
|
}
|
|
146
145
|
|
|
147
|
-
& .${
|
|
146
|
+
& .${yn.child} {
|
|
148
147
|
opacity: 1;
|
|
149
148
|
display: block;
|
|
150
149
|
width: 100%;
|
|
@@ -153,25 +152,25 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
153
152
|
background-color: currentColor;
|
|
154
153
|
}
|
|
155
154
|
|
|
156
|
-
& .${
|
|
155
|
+
& .${yn.childLeaving} {
|
|
157
156
|
opacity: 0;
|
|
158
|
-
animation-name: ${
|
|
159
|
-
animation-duration: ${
|
|
157
|
+
animation-name: ${_b};
|
|
158
|
+
animation-duration: ${Jf}ms;
|
|
160
159
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
& .${
|
|
162
|
+
& .${yn.childPulsate} {
|
|
164
163
|
position: absolute;
|
|
165
164
|
/* @noflip */
|
|
166
165
|
left: 0px;
|
|
167
166
|
top: 0;
|
|
168
|
-
animation-name: ${
|
|
167
|
+
animation-name: ${Pb};
|
|
169
168
|
animation-duration: 2500ms;
|
|
170
169
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
170
|
animation-iteration-count: infinite;
|
|
172
171
|
animation-delay: 200ms;
|
|
173
172
|
}
|
|
174
|
-
`,
|
|
173
|
+
`,Ib=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:u={},className:c,...d}=i,[h,m]=S.useState([]),g=S.useRef(0),y=S.useRef(null);S.useEffect(()=>{y.current&&(y.current(),y.current=null)},[h]);const x=S.useRef(!1),E=hb(),C=S.useRef(null),w=S.useRef(null),b=S.useCallback(T=>{const{pulsate:A,rippleX:z,rippleY:F,rippleSize:U,cb:H}=T;m(V=>[...V,Y.jsx($b,{classes:{ripple:$e(u.ripple,yn.ripple),rippleVisible:$e(u.rippleVisible,yn.rippleVisible),ripplePulsate:$e(u.ripplePulsate,yn.ripplePulsate),child:$e(u.child,yn.child),childLeaving:$e(u.childLeaving,yn.childLeaving),childPulsate:$e(u.childPulsate,yn.childPulsate)},timeout:Jf,pulsate:A,rippleX:z,rippleY:F,rippleSize:U},g.current)]),g.current+=1,y.current=H},[u]),I=S.useCallback((T={},A={},z=()=>{})=>{const{pulsate:F=!1,center:U=a||A.pulsate,fakeElement:H=!1}=A;if((T==null?void 0:T.type)==="mousedown"&&x.current){x.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(x.current=!0);const V=H?null:w.current,J=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,q,W;if(U||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)k=Math.round(J.width/2),q=Math.round(J.height/2);else{const{clientX:te,clientY:re}=T.touches&&T.touches.length>0?T.touches[0]:T;k=Math.round(te-J.left),q=Math.round(re-J.top)}if(U)W=Math.sqrt((2*J.width**2+J.height**2)/3),W%2===0&&(W+=1);else{const te=Math.max(Math.abs((V?V.clientWidth:0)-k),k)*2+2,re=Math.max(Math.abs((V?V.clientHeight:0)-q),q)*2+2;W=Math.sqrt(te**2+re**2)}T!=null&&T.touches?C.current===null&&(C.current=()=>{b({pulsate:F,rippleX:k,rippleY:q,rippleSize:W,cb:z})},E.start(bb,()=>{C.current&&(C.current(),C.current=null)})):b({pulsate:F,rippleX:k,rippleY:q,rippleSize:W,cb:z})},[a,b,E]),L=S.useCallback(()=>{I({},{pulsate:!0})},[I]),$=S.useCallback((T,A)=>{if(E.clear(),(T==null?void 0:T.type)==="touchend"&&C.current){C.current(),C.current=null,E.start(0,()=>{$(T,A)});return}C.current=null,m(z=>z.length>0?z.slice(1):z),y.current=A},[E]);return S.useImperativeHandle(o,()=>({pulsate:L,start:I,stop:$}),[L,I,$]),Y.jsx(Tb,{className:$e(yn.root,u.root,c),ref:w,...d,children:Y.jsx(Xd,{component:null,exit:!0,children:h})})});function Ob(e){return Pt("MuiButtonBase",e)}const Ab=St("MuiButtonBase",["root","disabled","focusVisible"]),Mb=e=>{const{disabled:t,focusVisible:o,focusVisibleClassName:i,classes:a}=e,c=Mt({root:["root",t&&"disabled",o&&"focusVisible"]},Ob,a);return o&&i&&(c.root+=` ${i}`),c},zb=He("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ab.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:c,className:d,component:h="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:x=!1,focusVisibleClassName:E,LinkComponent:C="a",onBlur:w,onClick:b,onContextMenu:I,onDragLeave:L,onFocus:$,onFocusVisible:T,onKeyDown:A,onKeyUp:z,onMouseDown:F,onMouseLeave:U,onMouseUp:H,onTouchEnd:V,onTouchMove:J,onTouchStart:k,tabIndex:q=0,TouchRippleProps:W,touchRippleRef:te,type:re,...fe}=i,Z=S.useRef(null),G=kb(),K=Sr(G.ref,te),[P,j]=S.useState(!1);m&&P&&j(!1),S.useImperativeHandle(a,()=>({focusVisible:()=>{j(!0),Z.current.focus()}}),[]);const se=G.shouldMount&&!g&&!m;S.useEffect(()=>{P&&x&&!g&&G.pulsate()},[g,x,P,G]);const le=cr(G,"start",F,y),de=cr(G,"stop",I,y),ge=cr(G,"stop",L,y),ve=cr(G,"stop",H,y),Ce=cr(G,"stop",xe=>{P&&xe.preventDefault(),U&&U(xe)},y),_e=cr(G,"start",k,y),Pe=cr(G,"stop",V,y),Ne=cr(G,"stop",J,y),kt=cr(G,"stop",xe=>{Xg(xe.target)||j(!1),w&&w(xe)},!1),Ve=ki(xe=>{Z.current||(Z.current=xe.currentTarget),Xg(xe.target)&&(j(!0),T&&T(xe)),$&&$(xe)}),kn=()=>{const xe=Z.current;return h&&h!=="button"&&!(xe.tagName==="A"&&xe.href)},no=ki(xe=>{x&&!xe.repeat&&P&&xe.key===" "&&G.stop(xe,()=>{G.start(xe)}),xe.target===xe.currentTarget&&kn()&&xe.key===" "&&xe.preventDefault(),A&&A(xe),xe.target===xe.currentTarget&&kn()&&xe.key==="Enter"&&!m&&(xe.preventDefault(),b&&b(xe))}),Fo=ki(xe=>{x&&xe.key===" "&&P&&!xe.defaultPrevented&&G.stop(xe,()=>{G.pulsate(xe)}),z&&z(xe),b&&xe.target===xe.currentTarget&&kn()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let Cn=h;Cn==="button"&&(fe.href||fe.to)&&(Cn=C);const un={};if(Cn==="button"){const xe=!!fe.formAction;un.type=re===void 0&&!xe?"button":re,un.disabled=m}else!fe.href&&!fe.to&&(un.role="button"),m&&(un["aria-disabled"]=m);const Ct=Sr(o,Z),Jt={...i,centerRipple:u,component:h,disabled:m,disableRipple:g,disableTouchRipple:y,focusRipple:x,tabIndex:q,focusVisible:P},Bt=Mb(Jt);return Y.jsxs(zb,{as:Cn,className:$e(Bt.root,d),ownerState:Jt,onBlur:kt,onClick:b,onContextMenu:de,onFocus:Ve,onKeyDown:no,onKeyUp:Fo,onMouseDown:le,onMouseLeave:Ce,onMouseUp:ve,onDragLeave:ge,onTouchEnd:Pe,onTouchMove:Ne,onTouchStart:_e,ref:Ct,tabIndex:m?-1:q,type:re,...un,...fe,children:[c,se?Y.jsx(Ib,{ref:K,center:u,...W}):null]})});function cr(e,t,o,i=!1){return ki(a=>(o&&o(a),i||e[t](a),!0))}function Lb(e){return typeof e.main=="string"}function Nb(e,t=[]){if(!Lb(e))return!1;for(const o of t)if(!e.hasOwnProperty(o)||typeof e[o]!="string")return!1;return!0}function Ks(e=[]){return([,t])=>t&&Nb(t,e)}function Db(e){return Pt("MuiCircularProgress",e)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const In=44,ed=sa`
|
|
175
174
|
0% {
|
|
176
175
|
transform: rotate(0deg);
|
|
177
176
|
}
|
|
@@ -179,7 +178,7 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
179
178
|
100% {
|
|
180
179
|
transform: rotate(360deg);
|
|
181
180
|
}
|
|
182
|
-
`,
|
|
181
|
+
`,td=sa`
|
|
183
182
|
0% {
|
|
184
183
|
stroke-dasharray: 1px, 200px;
|
|
185
184
|
stroke-dashoffset: 0;
|
|
@@ -194,95 +193,8 @@ export default theme;`}function mE(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
194
193
|
stroke-dasharray: 1px, 200px;
|
|
195
194
|
stroke-dashoffset: -126px;
|
|
196
195
|
}
|
|
197
|
-
`,
|
|
198
|
-
animation: ${
|
|
199
|
-
`:null,
|
|
200
|
-
animation: ${
|
|
201
|
-
`:null,Bq=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${xe(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${xe(r)}`,i&&"circleDisableShrink"]};return He(o,Lq,t)},Wq=$e("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${xe(r.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Uq||{animation:`${Yw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(jn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Kq=$e("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Hq=$e("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${xe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Fq||{animation:`${Xw} 1.4s ease-in-out infinite`}}]}))),Zq=$e("circle",{name:"MuiCircularProgress",slot:"Track"})(Qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),mN=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,enableTrackSlot:u=!1,size:c=40,style:f,thickness:d=3.6,value:m=0,variant:h="indeterminate",...g}=n,y={...n,color:o,disableShrink:a,size:c,thickness:d,value:m,variant:h,enableTrackSlot:u},x=Bq(y),w={},k={},C={};if(h==="determinate"){const $=2*Math.PI*((ki-d)/2);w.strokeDasharray=$.toFixed(3),C["aria-valuenow"]=Math.round(m),w.strokeDashoffset=`${((100-m)/100*$).toFixed(3)}px`,k.transform="rotate(-90deg)"}return A.jsx(Wq,{className:ve(x.root,i),style:{width:c,height:c,...k,...f},ownerState:y,ref:r,role:"progressbar",...C,...g,children:A.jsxs(Kq,{className:x.svg,ownerState:y,viewBox:`${ki/2} ${ki/2} ${ki} ${ki}`,children:[u?A.jsx(Zq,{className:x.track,ownerState:y,cx:ki,cy:ki,r:(ki-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,A.jsx(Hq,{className:x.circle,style:w,ownerState:y,cx:ki,cy:ki,r:(ki-d)/2,fill:"none",strokeWidth:d})]})})});function qq(e){return Ze("MuiIconButton",e)}const wE=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Vq=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o,loading:a}=e,u={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return He(u,qq,t)},Gq=$e(_f,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(Qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(jn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(jn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${wE.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wE.loading}`]:{color:"transparent"}}))),Yq=$e("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Qw=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:g,...y}=n,x=ld(m),w=g??A.jsx(mN,{"aria-labelledby":x,color:"inherit",size:16}),k={...n,edge:i,color:u,disabled:c,disableFocusRipple:f,loading:h,loadingIndicator:w,size:d},C=Vq(k);return A.jsxs(Gq,{id:h?x:m,className:ve(C.root,a),centerRipple:!0,focusRipple:!f,disabled:c||h,ref:r,...y,ownerState:k,children:[typeof h=="boolean"&&A.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:A.jsx(Yq,{className:C.loadingIndicator,ownerState:k,children:h&&w})}),o]})});function Xq(e){return Ze("MuiTypography",e)}const xE=qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Qq={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Jq=XZ(),e7=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,u={root:["root",o,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return He(u,Xq,a)},t7=$e("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(jn()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${xe(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),SE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lt=b.forwardRef(function(t,r){const{color:n,...i}=Ve({props:t,name:"MuiTypography"}),o=!Qq[n],a=Jq({...i,...o&&{color:n}}),{align:u="inherit",className:c,component:f,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=SE,...x}=a,w={...a,align:u,color:n,className:c,component:f,gutterBottom:d,noWrap:m,paragraph:h,variant:g,variantMapping:y},k=f||(h?"p":y[g]||SE[g])||"span",C=e7(w);return A.jsx(t7,{as:k,ref:r,className:ve(C.root,c),...x,ownerState:w,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...x.style}})});function r7(e){return Ze("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const n7=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return He(i,r7,n)},kE=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,i7=$e(Ts,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(Qe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(jn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?kE(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?kE(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),o7=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:u="fixed",...c}=n,f={...n,color:o,position:u,enableColorOnDark:a},d=n7(f);return A.jsx(i7,{square:!0,component:"header",ownerState:f,elevation:4,className:ve(d.root,i,u==="fixed"&&"mui-fixed"),ref:r,...c})});var yn="top",ai="bottom",si="right",bn="left",i1="auto",ud=[yn,ai,si,bn],wu="start",Pf="end",a7="clippingParents",hN="viewport",Bc="popper",s7="reference",$E=ud.reduce(function(e,t){return e.concat([t+"-"+wu,t+"-"+Pf])},[]),vN=[].concat(ud,[i1]).reduce(function(e,t){return e.concat([t,t+"-"+wu,t+"-"+Pf])},[]),l7="beforeRead",u7="read",c7="afterRead",f7="beforeMain",d7="main",p7="afterMain",m7="beforeWrite",h7="write",v7="afterWrite",g7=[l7,u7,c7,f7,d7,p7,m7,h7,v7];function fo(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function el(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function ii(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o1(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function y7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!ii(o)||!fo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function b7(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=a.reduce(function(c,f){return c[f]="",c},{});!ii(i)||!fo(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const w7={name:"applyStyles",enabled:!0,phase:"write",fn:y7,effect:b7,requires:["computeStyles"]};function uo(e){return e.split("-")[0]}var Zs=Math.max,ah=Math.min,xu=Math.round;function Jw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gN(){return!/^((?!chrome|android).)*safari/i.test(Jw())}function Su(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&ii(e)&&(i=e.offsetWidth>0&&xu(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&xu(n.height)/e.offsetHeight||1);var a=el(e)?Dn(e):window,u=a.visualViewport,c=!gN()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/i,d=(n.top+(c&&u?u.offsetTop:0))/o,m=n.width/i,h=n.height/o;return{width:m,height:h,top:d,right:f+m,bottom:d+h,left:f,x:f,y:d}}function a1(e){var t=Su(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function yN(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&o1(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ko(e){return Dn(e).getComputedStyle(e)}function x7(e){return["table","td","th"].indexOf(fo(e))>=0}function Qa(e){return((el(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nv(e){return fo(e)==="html"?e:e.assignedSlot||e.parentNode||(o1(e)?e.host:null)||Qa(e)}function _E(e){return!ii(e)||Ko(e).position==="fixed"?null:e.offsetParent}function S7(e){var t=/firefox/i.test(Jw()),r=/Trident/i.test(Jw());if(r&&ii(e)){var n=Ko(e);if(n.position==="fixed")return null}var i=Nv(e);for(o1(i)&&(i=i.host);ii(i)&&["html","body"].indexOf(fo(i))<0;){var o=Ko(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function cd(e){for(var t=Dn(e),r=_E(e);r&&x7(r)&&Ko(r).position==="static";)r=_E(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Ko(r).position==="static")?t:r||S7(e)||t}function s1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mf(e,t,r){return Zs(e,ah(t,r))}function k7(e,t,r){var n=mf(e,t,r);return n>r?r:n}function bN(){return{top:0,right:0,bottom:0,left:0}}function wN(e){return Object.assign({},bN(),e)}function xN(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var $7=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,wN(typeof t!="number"?t:xN(t,ud))};function _7(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,u=uo(r.placement),c=s1(u),f=[bn,si].indexOf(u)>=0,d=f?"height":"width";if(!(!o||!a)){var m=$7(i.padding,r),h=a1(o),g=c==="y"?yn:bn,y=c==="y"?ai:si,x=r.rects.reference[d]+r.rects.reference[c]-a[c]-r.rects.popper[d],w=a[c]-r.rects.reference[c],k=cd(o),C=k?c==="y"?k.clientHeight||0:k.clientWidth||0:0,$=x/2-w/2,P=m[g],O=C-h[d]-m[y],E=C/2-h[d]/2+$,j=mf(P,E,O),R=c;r.modifiersData[n]=(t={},t[R]=j,t.centerOffset=j-E,t)}}function P7(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||yN(t.elements.popper,i)&&(t.elements.arrow=i))}const O7={name:"arrow",enabled:!0,phase:"main",fn:_7,effect:P7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ku(e){return e.split("-")[1]}var C7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E7(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:xu(r*i)/i||0,y:xu(n*i)/i||0}}function PE(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=a.x,g=h===void 0?0:h,y=a.y,x=y===void 0?0:y,w=typeof d=="function"?d({x:g,y:x}):{x:g,y:x};g=w.x,x=w.y;var k=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),$=bn,P=yn,O=window;if(f){var E=cd(r),j="clientHeight",R="clientWidth";if(E===Dn(r)&&(E=Qa(r),Ko(E).position!=="static"&&u==="absolute"&&(j="scrollHeight",R="scrollWidth")),E=E,i===yn||(i===bn||i===si)&&o===Pf){P=ai;var D=m&&E===O&&O.visualViewport?O.visualViewport.height:E[j];x-=D-n.height,x*=c?1:-1}if(i===bn||(i===yn||i===ai)&&o===Pf){$=si;var L=m&&E===O&&O.visualViewport?O.visualViewport.width:E[R];g-=L-n.width,g*=c?1:-1}}var M=Object.assign({position:u},f&&C7),I=d===!0?E7({x:g,y:x},Dn(r)):{x:g,y:x};if(g=I.x,x=I.y,c){var W;return Object.assign({},M,(W={},W[P]=C?"0":"",W[$]=k?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",W))}return Object.assign({},M,(t={},t[P]=C?x+"px":"",t[$]=k?g+"px":"",t.transform="",t))}function I7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:uo(t.placement),variation:ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,PE(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PE(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const T7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:I7,data:{}};var am={passive:!0};function j7(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,u=a===void 0?!0:a,c=Dn(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(d){d.addEventListener("scroll",r.update,am)}),u&&c.addEventListener("resize",r.update,am),function(){o&&f.forEach(function(d){d.removeEventListener("scroll",r.update,am)}),u&&c.removeEventListener("resize",r.update,am)}}const A7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:j7,data:{}};var R7={left:"right",right:"left",bottom:"top",top:"bottom"};function Wm(e){return e.replace(/left|right|bottom|top/g,function(t){return R7[t]})}var N7={start:"end",end:"start"};function OE(e){return e.replace(/start|end/g,function(t){return N7[t]})}function l1(e){var t=Dn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function u1(e){return Su(Qa(e)).left+l1(e).scrollLeft}function M7(e,t){var r=Dn(e),n=Qa(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;var f=gN();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u+u1(e),y:c}}function D7(e){var t,r=Qa(e),n=l1(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Zs(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Zs(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+u1(e),c=-n.scrollTop;return Ko(i||r).direction==="rtl"&&(u+=Zs(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:c}}function c1(e){var t=Ko(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function SN(e){return["html","body","#document"].indexOf(fo(e))>=0?e.ownerDocument.body:ii(e)&&c1(e)?e:SN(Nv(e))}function hf(e,t){var r;t===void 0&&(t=[]);var n=SN(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Dn(n),a=i?[o].concat(o.visualViewport||[],c1(n)?n:[]):n,u=t.concat(a);return i?u:u.concat(hf(Nv(a)))}function ex(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z7(e,t){var r=Su(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function CE(e,t,r){return t===hN?ex(M7(e,r)):el(t)?z7(t,r):ex(D7(Qa(e)))}function L7(e){var t=hf(Nv(e)),r=["absolute","fixed"].indexOf(Ko(e).position)>=0,n=r&&ii(e)?cd(e):e;return el(n)?t.filter(function(i){return el(i)&&yN(i,n)&&fo(i)!=="body"}):[]}function U7(e,t,r,n){var i=t==="clippingParents"?L7(e):[].concat(t),o=[].concat(i,[r]),a=o[0],u=o.reduce(function(c,f){var d=CE(e,f,n);return c.top=Zs(d.top,c.top),c.right=ah(d.right,c.right),c.bottom=ah(d.bottom,c.bottom),c.left=Zs(d.left,c.left),c},CE(e,a,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function kN(e){var t=e.reference,r=e.element,n=e.placement,i=n?uo(n):null,o=n?ku(n):null,a=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(i){case yn:c={x:a,y:t.y-r.height};break;case ai:c={x:a,y:t.y+t.height};break;case si:c={x:t.x+t.width,y:u};break;case bn:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?s1(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(o){case wu:c[f]=c[f]-(t[d]/2-r[d]/2);break;case Pf:c[f]=c[f]+(t[d]/2-r[d]/2);break}}return c}function Of(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?a7:u,f=r.rootBoundary,d=f===void 0?hN:f,m=r.elementContext,h=m===void 0?Bc:m,g=r.altBoundary,y=g===void 0?!1:g,x=r.padding,w=x===void 0?0:x,k=wN(typeof w!="number"?w:xN(w,ud)),C=h===Bc?s7:Bc,$=e.rects.popper,P=e.elements[y?C:h],O=U7(el(P)?P:P.contextElement||Qa(e.elements.popper),c,d,a),E=Su(e.elements.reference),j=kN({reference:E,element:$,placement:i}),R=ex(Object.assign({},$,j)),D=h===Bc?R:E,L={top:O.top-D.top+k.top,bottom:D.bottom-O.bottom+k.bottom,left:O.left-D.left+k.left,right:D.right-O.right+k.right},M=e.modifiersData.offset;if(h===Bc&&M){var I=M[i];Object.keys(L).forEach(function(W){var K=[si,ai].indexOf(W)>=0?1:-1,Z=[yn,ai].indexOf(W)>=0?"y":"x";L[W]+=I[Z]*K})}return L}function F7(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?vN:c,d=ku(n),m=d?u?$E:$E.filter(function(y){return ku(y)===d}):ud,h=m.filter(function(y){return f.indexOf(y)>=0});h.length===0&&(h=m);var g=h.reduce(function(y,x){return y[x]=Of(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[uo(x)],y},{});return Object.keys(g).sort(function(y,x){return g[y]-g[x]})}function B7(e){if(uo(e)===i1)return[];var t=Wm(e);return[OE(e),t,OE(t)]}function W7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,u=a===void 0?!0:a,c=r.fallbackPlacements,f=r.padding,d=r.boundary,m=r.rootBoundary,h=r.altBoundary,g=r.flipVariations,y=g===void 0?!0:g,x=r.allowedAutoPlacements,w=t.options.placement,k=uo(w),C=k===w,$=c||(C||!y?[Wm(w)]:B7(w)),P=[w].concat($).reduce(function(ue,pe){return ue.concat(uo(pe)===i1?F7(t,{placement:pe,boundary:d,rootBoundary:m,padding:f,flipVariations:y,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,E=t.rects.popper,j=new Map,R=!0,D=P[0],L=0;L<P.length;L++){var M=P[L],I=uo(M),W=ku(M)===wu,K=[yn,ai].indexOf(I)>=0,Z=K?"width":"height",V=Of(t,{placement:M,boundary:d,rootBoundary:m,altBoundary:h,padding:f}),ee=K?W?si:bn:W?ai:yn;O[Z]>E[Z]&&(ee=Wm(ee));var F=Wm(ee),z=[];if(o&&z.push(V[I]<=0),u&&z.push(V[ee]<=0,V[F]<=0),z.every(function(ue){return ue})){D=M,R=!1;break}j.set(M,z)}if(R)for(var Y=y?3:1,N=function(pe){var le=P.find(function(he){var ke=j.get(he);if(ke)return ke.slice(0,pe).every(function(Q){return Q})});if(le)return D=le,"break"},G=Y;G>0;G--){var ae=N(G);if(ae==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const K7={name:"flip",enabled:!0,phase:"main",fn:W7,requiresIfExists:["offset"],data:{_skip:!1}};function EE(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function IE(e){return[yn,si,ai,bn].some(function(t){return e[t]>=0})}function H7(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Of(t,{elementContext:"reference"}),u=Of(t,{altBoundary:!0}),c=EE(a,n),f=EE(u,i,o),d=IE(c),m=IE(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Z7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H7};function q7(e,t,r){var n=uo(e),i=[bn,yn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[bn,si].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}function V7(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=vN.reduce(function(d,m){return d[m]=q7(m,t.rects,o),d},{}),u=a[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=a}const G7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:V7};function Y7(e){var t=e.state,r=e.name;t.modifiersData[r]=kN({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const X7={name:"popperOffsets",enabled:!0,phase:"read",fn:Y7,data:{}};function Q7(e){return e==="x"?"y":"x"}function J7(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,u=a===void 0?!1:a,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,m=r.padding,h=r.tether,g=h===void 0?!0:h,y=r.tetherOffset,x=y===void 0?0:y,w=Of(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:d}),k=uo(t.placement),C=ku(t.placement),$=!C,P=s1(k),O=Q7(P),E=t.modifiersData.popperOffsets,j=t.rects.reference,R=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(E){if(o){var W,K=P==="y"?yn:bn,Z=P==="y"?ai:si,V=P==="y"?"height":"width",ee=E[P],F=ee+w[K],z=ee-w[Z],Y=g?-R[V]/2:0,N=C===wu?j[V]:R[V],G=C===wu?-R[V]:-j[V],ae=t.elements.arrow,ue=g&&ae?a1(ae):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bN(),le=pe[K],he=pe[Z],ke=mf(0,j[V],ue[V]),Q=$?j[V]/2-Y-ke-le-L.mainAxis:N-ke-le-L.mainAxis,se=$?-j[V]/2+Y+ke+he+L.mainAxis:G+ke+he+L.mainAxis,be=t.elements.arrow&&cd(t.elements.arrow),re=be?P==="y"?be.clientTop||0:be.clientLeft||0:0,Ue=(W=M==null?void 0:M[P])!=null?W:0,Se=ee+Q-Ue-re,Me=ee+se-Ue,rt=mf(g?ah(F,Se):F,ee,g?Zs(z,Me):z);E[P]=rt,I[P]=rt-ee}if(u){var et,ot=P==="x"?yn:bn,ft=P==="x"?ai:si,ut=E[O],Ye=O==="y"?"height":"width",Oe=ut+w[ot],yr=ut-w[ft],mt=[yn,bn].indexOf(k)!==-1,Zr=(et=M==null?void 0:M[O])!=null?et:0,ur=mt?Oe:ut-j[Ye]-R[Ye]-Zr+L.altAxis,er=mt?ut+j[Ye]+R[Ye]-Zr-L.altAxis:yr,jr=g&&mt?k7(ur,ut,er):mf(g?ur:Oe,ut,g?er:yr);E[O]=jr,I[O]=jr-ut}t.modifiersData[n]=I}}const eV={name:"preventOverflow",enabled:!0,phase:"main",fn:J7,requiresIfExists:["offset"]};function tV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rV(e){return e===Dn(e)||!ii(e)?l1(e):tV(e)}function nV(e){var t=e.getBoundingClientRect(),r=xu(t.width)/e.offsetWidth||1,n=xu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function iV(e,t,r){r===void 0&&(r=!1);var n=ii(t),i=ii(t)&&nV(t),o=Qa(t),a=Su(e,i,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((fo(t)!=="body"||c1(o))&&(u=rV(t)),ii(t)?(c=Su(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=u1(o))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function oV(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function aV(e){var t=oV(e);return g7.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function sV(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function lV(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var TE={placement:"bottom",modifiers:[],strategy:"absolute"};function jE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function uV(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?TE:i;return function(u,c,f){f===void 0&&(f=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},TE,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],h=!1,g={state:d,setOptions:function(k){var C=typeof k=="function"?k(d.options):k;x(),d.options=Object.assign({},o,d.options,C),d.scrollParents={reference:el(u)?hf(u):u.contextElement?hf(u.contextElement):[],popper:hf(c)};var $=aV(lV([].concat(n,d.options.modifiers)));return d.orderedModifiers=$.filter(function(P){return P.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var k=d.elements,C=k.reference,$=k.popper;if(jE(C,$)){d.rects={reference:iV(C,cd($),d.options.strategy==="fixed"),popper:a1($)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var P=0;P<d.orderedModifiers.length;P++){if(d.reset===!0){d.reset=!1,P=-1;continue}var O=d.orderedModifiers[P],E=O.fn,j=O.options,R=j===void 0?{}:j,D=O.name;typeof E=="function"&&(d=E({state:d,options:R,name:D,instance:g})||d)}}}},update:sV(function(){return new Promise(function(w){g.forceUpdate(),w(d)})}),destroy:function(){x(),h=!0}};if(!jE(u,c))return g;g.setOptions(f).then(function(w){!h&&f.onFirstUpdate&&f.onFirstUpdate(w)});function y(){d.orderedModifiers.forEach(function(w){var k=w.name,C=w.options,$=C===void 0?{}:C,P=w.effect;if(typeof P=="function"){var O=P({state:d,name:k,instance:g,options:$}),E=function(){};m.push(O||E)}})}function x(){m.forEach(function(w){return w()}),m=[]}return g}}var cV=[A7,X7,T7,w7,G7,K7,eV,O7,Z7],fV=uV({defaultModifiers:cV});function $N(e){var m;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:fN(r,n),{props:u,internalRef:c}=pN({...o,externalSlotProps:a}),f=Jt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return cN(t,{...u,ref:f},n)}function dl(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function dV(e){return typeof e=="function"?e():e}const _N=b.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,u]=b.useState(null),c=Jt(b.isValidElement(n)?dl(n):null,r);if(xn(()=>{o||u(dV(i)||document.body)},[i,o]),xn(()=>{if(a&&!o)return vE(r,a),()=>{vE(r,null)}},[r,a,o]),o){if(b.isValidElement(n)){const f={ref:c};return b.cloneElement(n,f)}return n}return a&&gv.createPortal(n,a)});function pV(e){return Ze("MuiPopper",e)}qe("MuiPopper",["root"]);function mV(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function tx(e){return typeof e=="function"?e():e}function hV(e){return e.nodeType!==void 0}const vV=e=>{const{classes:t}=e;return He({root:["root"]},pV,t)},gV={},yV=b.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:o,disablePortal:a,modifiers:u,open:c,placement:f,popperOptions:d,popperRef:m,slotProps:h={},slots:g={},TransitionProps:y,ownerState:x,...w}=t,k=b.useRef(null),C=Jt(k,r),$=b.useRef(null),P=Jt($,m),O=b.useRef(P);xn(()=>{O.current=P},[P]),b.useImperativeHandle(m,()=>$.current,[]);const E=mV(f,o),[j,R]=b.useState(E),[D,L]=b.useState(tx(n));b.useEffect(()=>{$.current&&$.current.forceUpdate()}),b.useEffect(()=>{n&&L(tx(n))},[n]),xn(()=>{if(!D||!c)return;const Z=F=>{R(F.placement)};let V=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{Z(F)}}];u!=null&&(V=V.concat(u)),d&&d.modifiers!=null&&(V=V.concat(d.modifiers));const ee=fV(D,k.current,{placement:E,...d,modifiers:V});return O.current(ee),()=>{ee.destroy(),O.current(null)}},[D,a,u,c,d,E]);const M={placement:j};y!==null&&(M.TransitionProps=y);const I=vV(t),W=g.root??"div",K=$N({elementType:W,externalSlotProps:h.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:I.root});return A.jsx(W,{...K,children:typeof i=="function"?i(M):i})}),bV=b.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:d,placement:m="bottom",popperOptions:h=gV,popperRef:g,style:y,transition:x=!1,slotProps:w={},slots:k={},...C}=t,[$,P]=b.useState(!0),O=()=>{P(!1)},E=()=>{P(!0)};if(!c&&!d&&(!x||$))return null;let j;if(o)j=o;else if(n){const L=tx(n);j=L&&hV(L)?Mn(L).body:Mn(null).body}const R=!d&&c&&(!x||$)?"none":void 0,D=x?{in:d,onEnter:O,onExited:E}:void 0;return A.jsx(_N,{disablePortal:u,container:j,children:A.jsx(yV,{anchorEl:n,direction:a,disablePortal:u,modifiers:f,ref:r,open:x?!$:d,placement:m,popperOptions:h,popperRef:g,slotProps:w,slots:k,...C,style:{position:"fixed",top:0,left:0,display:R,...y},TransitionProps:D,children:i})})}),wV=$e(bV,{name:"MuiPopper",slot:"Root"})({}),PN=b.forwardRef(function(t,r){const n=jv(),i=Ve({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:u,componentsProps:c,container:f,disablePortal:d,keepMounted:m,modifiers:h,open:g,placement:y,popperOptions:x,popperRef:w,transition:k,slots:C,slotProps:$,...P}=i,O=(C==null?void 0:C.root)??(u==null?void 0:u.Root),E={anchorEl:o,container:f,disablePortal:d,keepMounted:m,modifiers:h,open:g,placement:y,popperOptions:x,popperRef:w,transition:k,...P};return A.jsx(wV,{as:a,direction:n?"rtl":"ltr",slots:{root:O},slotProps:$??c,...E,ref:r})}),xV=Fi(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function SV(e){return Ze("MuiChip",e)}const nt=qe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kV=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:u,variant:c}=e,f={root:["root",c,r&&"disabled",`size${xe(n)}`,`color${xe(i)}`,u&&"clickable",u&&`clickableColor${xe(i)}`,a&&"deletable",a&&`deletableColor${xe(i)}`,`${c}${xe(i)}`],label:["label",`label${xe(n)}`],avatar:["avatar",`avatar${xe(n)}`,`avatarColor${xe(i)}`],icon:["icon",`icon${xe(n)}`,`iconColor${xe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${xe(n)}`,`deleteIconColor${xe(i)}`,`deleteIcon${xe(c)}Color${xe(i)}`]};return He(f,SV,t)},$V=$e("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:u,variant:c}=r;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${xe(u)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${xe(n)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${xe(u)}`]},{[`& .${nt.icon}`]:t[`iconColor${xe(i)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${xe(u)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${xe(n)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${xe(c)}Color${xe(n)}`]},t.root,t[`size${xe(u)}`],t[`color${xe(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${xe(n)}`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${xe(n)}`],t[c],t[`${c}${xe(n)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${nt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${nt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${nt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(jn(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${nt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${nt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${nt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${nt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(jn(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${nt.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${nt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(jn(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(jn()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),_V=$e("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${xe(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function AE(e){return e.key==="Backspace"||e.key==="Delete"}const f1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:u="default",component:c,deleteIcon:f,disabled:d=!1,icon:m,label:h,onClick:g,onDelete:y,onKeyDown:x,onKeyUp:w,size:k="medium",variant:C="filled",tabIndex:$,skipFocusWhenDisabled:P=!1,slots:O={},slotProps:E={},...j}=n,R=b.useRef(null),D=Jt(R,r),L=le=>{le.stopPropagation(),y&&y(le)},M=le=>{le.currentTarget===le.target&&AE(le)&&le.preventDefault(),x&&x(le)},I=le=>{le.currentTarget===le.target&&y&&AE(le)&&y(le),w&&w(le)},W=a!==!1&&g?!0:a,K=W||y?_f:c||"div",Z={...n,component:K,disabled:d,size:k,color:u,iconColor:b.isValidElement(m)&&m.props.color||u,onDelete:!!y,clickable:W,variant:C},V=kV(Z),ee=K===_f?{component:c||"div",focusVisibleClassName:V.focusVisible,...y&&{disableRipple:!0}}:{};let F=null;y&&(F=f&&b.isValidElement(f)?b.cloneElement(f,{className:ve(f.props.className,V.deleteIcon),onClick:L}):A.jsx(xV,{className:V.deleteIcon,onClick:L}));let z=null;i&&b.isValidElement(i)&&(z=b.cloneElement(i,{className:ve(V.avatar,i.props.className)}));let Y=null;m&&b.isValidElement(m)&&(Y=b.cloneElement(m,{className:ve(V.icon,m.props.className)}));const N={slots:O,slotProps:E},[G,ae]=xt("root",{elementType:$V,externalForwardedProps:{...N,...j},ownerState:Z,shouldForwardComponentProp:!0,ref:D,className:ve(V.root,o),additionalProps:{disabled:W&&d?!0:void 0,tabIndex:P&&d?-1:$,...ee},getSlotProps:le=>({...le,onClick:he=>{var ke;(ke=le.onClick)==null||ke.call(le,he),g==null||g(he)},onKeyDown:he=>{var ke;(ke=le.onKeyDown)==null||ke.call(le,he),M(he)},onKeyUp:he=>{var ke;(ke=le.onKeyUp)==null||ke.call(le,he),I(he)}})}),[ue,pe]=xt("label",{elementType:_V,externalForwardedProps:N,ownerState:Z,className:V.label});return A.jsxs(G,{as:K,...ae,children:[z||Y,A.jsx(ue,{...pe,children:h}),F]})});function sm(e){return parseInt(e,10)||0}const PV={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function OV(e){for(const t in e)return!1;return!0}function RE(e){return OV(e)||e.outerHeightStyle===0&&!e.overflowing}const CV=b.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:u,...c}=t,{current:f}=b.useRef(u!=null),d=b.useRef(null),m=Jt(r,d),h=b.useRef(null),g=b.useRef(null),y=b.useCallback(()=>{const $=d.current,P=g.current;if(!$||!P)return;const E=Di($).getComputedStyle($);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=E.width,P.value=$.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
202
|
-
`&&(P.value+=" ");const j=E.boxSizing,R=sm(E.paddingBottom)+sm(E.paddingTop),D=sm(E.borderBottomWidth)+sm(E.borderTopWidth),L=P.scrollHeight;P.value="x";const M=P.scrollHeight;let I=L;o&&(I=Math.max(Number(o)*M,I)),i&&(I=Math.min(Number(i)*M,I)),I=Math.max(I,M);const W=I+(j==="border-box"?R+D:0),K=Math.abs(I-L)<=1;return{outerHeightStyle:W,overflowing:K}},[i,o,t.placeholder]),x=Lo(()=>{const $=d.current,P=y();if(!$||!P||RE(P))return!1;const O=P.outerHeightStyle;return h.current!=null&&h.current!==O}),w=b.useCallback(()=>{const $=d.current,P=y();if(!$||!P||RE(P))return;const O=P.outerHeightStyle;h.current!==O&&(h.current=O,$.style.height=`${O}px`),$.style.overflow=P.overflowing?"hidden":""},[y]),k=b.useRef(-1);xn(()=>{const $=e1(w),P=d==null?void 0:d.current;if(!P)return;const O=Di(P);O.addEventListener("resize",$);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{x()&&(E.unobserve(P),cancelAnimationFrame(k.current),w(),k.current=requestAnimationFrame(()=>{E.observe(P)}))}),E.observe(P)),()=>{$.clear(),cancelAnimationFrame(k.current),O.removeEventListener("resize",$),E&&E.disconnect()}},[y,w,x]),xn(()=>{w()});const C=$=>{f||w();const P=$.target,O=P.value.length,E=P.value.endsWith(`
|
|
203
|
-
`),j=P.selectionStart===O;E&&j&&P.setSelectionRange(O,O),n&&n($)};return A.jsxs(b.Fragment,{children:[A.jsx("textarea",{value:u,onChange:C,ref:m,rows:o,style:a,...c}),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...PV.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Wu({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Mv=b.createContext(void 0);function pl(){return b.useContext(Mv)}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sh(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function EV(e){return e.startAdornment}function IV(e){return Ze("MuiInputBase",e)}const $u=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ME;const Dv=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zv=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},TV=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:u,fullWidth:c,hiddenLabel:f,multiline:d,readOnly:m,size:h,startAdornment:g,type:y}=e,x={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",h&&h!=="medium"&&`size${xe(h)}`,d&&"multiline",g&&"adornedStart",o&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",m&&"readOnly"]};return He(x,IV,t)},Lv=$e("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Dv})(Qe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$u.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Uv=$e("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zv})(Qe(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$u.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${$u.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),DE=JS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),d1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:u,color:c,components:f={},componentsProps:d={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:g,endAdornment:y,error:x,fullWidth:w=!1,id:k,inputComponent:C="input",inputProps:$={},inputRef:P,margin:O,maxRows:E,minRows:j,multiline:R=!1,name:D,onBlur:L,onChange:M,onClick:I,onFocus:W,onKeyDown:K,onKeyUp:Z,placeholder:V,readOnly:ee,renderSuffix:F,rows:z,size:Y,slotProps:N={},slots:G={},startAdornment:ae,type:ue="text",value:pe,...le}=n,he=$.value!=null?$.value:pe,{current:ke}=b.useRef(he!=null),Q=b.useRef(),se=b.useCallback(Te=>{},[]),be=Jt(Q,P,$.ref,se),[re,Ue]=b.useState(!1),Se=pl(),Me=Wu({props:n,muiFormControl:Se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Me.focused=Se?Se.focused:re,b.useEffect(()=>{!Se&&h&&re&&(Ue(!1),L&&L())},[Se,h,re,L]);const rt=Se&&Se.onFilled,et=Se&&Se.onEmpty,ot=b.useCallback(Te=>{sh(Te)?rt&&rt():et&&et()},[rt,et]);xn(()=>{ke&&ot({value:he})},[he,ot,ke]);const ft=Te=>{W&&W(Te),$.onFocus&&$.onFocus(Te),Se&&Se.onFocus?Se.onFocus(Te):Ue(!0)},ut=Te=>{L&&L(Te),$.onBlur&&$.onBlur(Te),Se&&Se.onBlur?Se.onBlur(Te):Ue(!1)},Ye=(Te,...Rt)=>{if(!ke){const Ot=Te.target||Q.current;if(Ot==null)throw new Error(Wo(1));ot({value:Ot.value})}$.onChange&&$.onChange(Te,...Rt),M&&M(Te,...Rt)};b.useEffect(()=>{ot(Q.current)},[]);const Oe=Te=>{Q.current&&Te.currentTarget===Te.target&&Q.current.focus(),I&&I(Te)};let yr=C,mt=$;R&&yr==="input"&&(z?mt={type:void 0,minRows:z,maxRows:z,...mt}:mt={type:void 0,maxRows:E,minRows:j,...mt},yr=CV);const Zr=Te=>{ot(Te.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};b.useEffect(()=>{Se&&Se.setAdornedStart(!!ae)},[Se,ae]);const ur={...n,color:Me.color||"primary",disabled:Me.disabled,endAdornment:y,error:Me.error,focused:Me.focused,formControl:Se,fullWidth:w,hiddenLabel:Me.hiddenLabel,multiline:R,size:Me.size,startAdornment:ae,type:ue},er=TV(ur),jr=G.root||f.Root||Lv,br=N.root||d.root||{},ht=G.input||f.Input||Uv;return mt={...mt,...N.input??d.input},A.jsxs(b.Fragment,{children:[!g&&typeof DE=="function"&&(ME||(ME=A.jsx(DE,{}))),A.jsxs(jr,{...br,ref:r,onClick:Oe,...le,...!bu(jr)&&{ownerState:{...ur,...br.ownerState}},className:ve(er.root,br.className,u,ee&&"MuiInputBase-readOnly"),children:[ae,A.jsx(Mv.Provider,{value:null,children:A.jsx(ht,{"aria-invalid":Me.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:m,disabled:Me.disabled,id:k,onAnimationStart:Zr,name:D,placeholder:V,readOnly:ee,required:Me.required,rows:z,value:he,onKeyDown:K,onKeyUp:Z,type:ue,...mt,...!bu(ht)&&{as:yr,ownerState:{...ur,...mt.ownerState}},ref:be,className:ve(er.input,mt.className,ee&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Ye,onFocus:ft})}),y,F?F({...Me,startAdornment:ae}):null]})]})});function jV(e){return Ze("MuiInput",e)}const Wc={...$u,...qe("MuiInput",["root","underline","input"])};function AV(e){return Ze("MuiOutlinedInput",e)}const Xi={...$u,...qe("MuiOutlinedInput",["root","notchedOutline","input"])};function RV(e){return Ze("MuiFilledInput",e)}const ks={...$u,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},NV=Fi(A.jsx("path",{d:"M7 10l5 5 5-5z"})),MV={entering:{opacity:1},entered:{opacity:1}},DV=b.forwardRef(function(t,r){const n=ea(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:u,easing:c,in:f,onEnter:d,onEntered:m,onEntering:h,onExit:g,onExited:y,onExiting:x,style:w,timeout:k=i,TransitionComponent:C=Bi,...$}=t,P=b.useRef(null),O=Jt(P,dl(u),r),E=K=>Z=>{if(K){const V=P.current;Z===void 0?K(V):K(V,Z)}},j=E(h),R=E((K,Z)=>{n1(K);const V=yu({style:w,timeout:k,easing:c},{mode:"enter"});K.style.webkitTransition=n.transitions.create("opacity",V),K.style.transition=n.transitions.create("opacity",V),d&&d(K,Z)}),D=E(m),L=E(x),M=E(K=>{const Z=yu({style:w,timeout:k,easing:c},{mode:"exit"});K.style.webkitTransition=n.transitions.create("opacity",Z),K.style.transition=n.transitions.create("opacity",Z),g&&g(K)}),I=E(y),W=K=>{o&&o(P.current,K)};return A.jsx(C,{appear:a,in:f,nodeRef:P,onEnter:R,onEntered:D,onEntering:j,onExit:M,onExited:I,onExiting:L,addEndListener:W,timeout:k,...$,children:(K,{ownerState:Z,...V})=>b.cloneElement(u,{style:{opacity:0,visibility:K==="exited"&&!f?"hidden":void 0,...MV[K],...w,...u.props.style},ref:O,...V})})});function zV(e){return Ze("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const LV=e=>{const{classes:t,invisible:r}=e;return He({root:["root",r&&"invisible"]},zV,t)},UV=$e("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),FV=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:u=!1,open:c,components:f={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:g,transitionDuration:y,...x}=n,w={...n,component:a,invisible:u},k=LV(w),C={transition:g,root:f.Root,...h},$={...d,...m},P={component:a,slots:C,slotProps:$},[O,E]=xt("root",{elementType:UV,externalForwardedProps:P,className:ve(k.root,o),ownerState:w}),[j,R]=xt("transition",{elementType:DV,externalForwardedProps:P,ownerState:w});return A.jsx(j,{in:c,timeout:y,...x,...R,children:A.jsx(O,{"aria-hidden":!0,...E,classes:k,ref:r,children:i})})}),BV=qe("MuiBox",["root"]),WV=Av(),yt=xH({themeId:ji,defaultTheme:WV,defaultClassName:BV.root,generateClassName:IR.generate}),rx=typeof JS({})=="function",KV=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),HV=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),ON=(e,t=!1)=>{var o,a;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,c])=>{var d,m;const f=e.getColorSchemeSelector(u);f.startsWith("@")?r[f]={":root":{colorScheme:(d=c.palette)==null?void 0:d.mode}}:r[f.replace(/\s*&/,"")]={colorScheme:(m=c.palette)==null?void 0:m.mode}});let n={html:KV(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...HV(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const i=(a=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:a.styleOverrides;return i&&(n=[n,i]),n},Km="mui-ecs",ZV=e=>{const t=ON(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Km})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var a,u;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${Km}))`]:{colorScheme:(a=i.palette)==null?void 0:a.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${Km}))`]:{colorScheme:(u=i.palette)==null?void 0:u.mode}}}),t},qV=JS(rx?({theme:e,enableColorScheme:t})=>ON(e,t):({theme:e})=>ZV(e));function VV(e){const t=Ve({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return A.jsxs(b.Fragment,{children:[rx&&A.jsx(qV,{enableColorScheme:n}),!rx&&!n&&A.jsx("span",{className:Km,style:{display:"none"}}),r]})}function CN(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function GV(e){const t=Mn(e);return t.body===e?Di(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zE(e){return parseInt(Di(e).getComputedStyle(e).paddingRight,10)||0}function YV(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function LE(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const u=!o.includes(a),c=!YV(a);u&&c&&vf(a,i)})}function Hb(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function XV(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(GV(n)){const a=CN(Di(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${zE(n)+a}px`;const u=Mn(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${zE(c)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Mn(n).body;else{const a=n.parentElement,u=Di(n);o=(a==null?void 0:a.nodeName)==="HTML"&&u.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:u})=>{o?a.style.setProperty(u,o):a.style.removeProperty(u)})}}function QV(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class JV{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&vf(t.modalRef,!1);const i=QV(r);LE(r,t.mount,t.modalRef,i,!0);const o=Hb(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Hb(this.containers,o=>o.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=XV(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Hb(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&vf(t.modalRef,r),LE(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&vf(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function sf(e){var r;let t=e.activeElement;for(;((r=t==null?void 0:t.shadowRoot)==null?void 0:r.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const eG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tG(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function rG(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function nG(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rG(e))}function iG(e){const t=[],r=[];return Array.from(e.querySelectorAll(eG)).forEach((n,i)=>{const o=tG(n);o===-1||!nG(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function oG(){return!0}function aG(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=iG,isEnabled:a=oG,open:u}=e,c=b.useRef(!1),f=b.useRef(null),d=b.useRef(null),m=b.useRef(null),h=b.useRef(null),g=b.useRef(!1),y=b.useRef(null),x=Jt(dl(t),y),w=b.useRef(null);b.useEffect(()=>{!u||!y.current||(g.current=!r)},[r,u]),b.useEffect(()=>{if(!u||!y.current)return;const $=Mn(y.current),P=sf($);return y.current.contains(P)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),b.useEffect(()=>{if(!u||!y.current)return;const $=Mn(y.current),P=sf($),O=R=>{w.current=R,!(n||!a()||R.key!=="Tab")&&P===y.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{var M,I;const R=y.current;if(R===null)return;const D=sf($);if(!$.hasFocus()||!a()||c.current){c.current=!1;return}if(R.contains(D)||n&&D!==f.current&&D!==d.current)return;if(D!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let L=[];if((D===f.current||D===d.current)&&(L=o(y.current)),L.length>0){const W=!!((M=w.current)!=null&&M.shiftKey&&((I=w.current)==null?void 0:I.key)==="Tab"),K=L[0],Z=L[L.length-1];typeof K!="string"&&typeof Z!="string"&&(W?Z.focus():K.focus())}else R.focus()};$.addEventListener("focusin",E),$.addEventListener("keydown",O,!0);const j=setInterval(()=>{const R=sf($);R&&R.tagName==="BODY"&&E()},50);return()=>{clearInterval(j),$.removeEventListener("focusin",E),$.removeEventListener("keydown",O,!0)}},[r,n,i,a,u,o]);const k=$=>{m.current===null&&(m.current=$.relatedTarget),g.current=!0,h.current=$.target;const P=t.props.onFocus;P&&P($)},C=$=>{m.current===null&&(m.current=$.relatedTarget),g.current=!0};return A.jsxs(b.Fragment,{children:[A.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:f,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:x,onFocus:k}),A.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function sG(e){return typeof e=="function"?e():e}function lG(e){return e?e.props.hasOwnProperty("in"):!1}const UE=()=>{},lm=new JV;function uG(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:u,onClose:c,open:f,rootRef:d}=e,m=b.useRef({}),h=b.useRef(null),g=b.useRef(null),y=Jt(g,d),[x,w]=b.useState(!f),k=lG(u);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const $=()=>Mn(h.current),P=()=>(m.current.modalRef=g.current,m.current.mount=h.current,m.current),O=()=>{lm.mount(P(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=Lo(()=>{const Z=sG(t)||$().body;lm.add(P(),Z),g.current&&O()}),j=()=>lm.isTopModal(P()),R=Lo(Z=>{h.current=Z,Z&&(f&&j()?O():g.current&&vf(g.current,C))}),D=b.useCallback(()=>{lm.remove(P(),C)},[C]);b.useEffect(()=>()=>{D()},[D]),b.useEffect(()=>{f?E():(!k||!i)&&D()},[f,D,k,i,E]);const L=Z=>V=>{var ee;(ee=Z.onKeyDown)==null||ee.call(Z,V),!(V.key!=="Escape"||V.which===229||!j())&&(r||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},M=Z=>V=>{var ee;(ee=Z.onClick)==null||ee.call(Z,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(Z={})=>{const V=dN(e);delete V.onTransitionEnter,delete V.onTransitionExited;const ee={...V,...Z};return{role:"presentation",...ee,onKeyDown:L(ee),ref:y}},getBackdropProps:(Z={})=>{const V=Z;return{"aria-hidden":!0,...V,onClick:M(V),open:f}},getTransitionProps:()=>{const Z=()=>{w(!1),o&&o()},V=()=>{w(!0),a&&a(),i&&D()};return{onEnter:qC(Z,(u==null?void 0:u.props.onEnter)??UE),onExited:qC(V,(u==null?void 0:u.props.onExited)??UE)}},rootRef:y,portalRef:R,isTopModal:j,exited:x,hasTransition:k}}function cG(e){return Ze("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const fG=e=>{const{open:t,exited:r,classes:n}=e;return He({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cG,n)},dG=$e("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Qe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),pG=$e(FV,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),EN=b.forwardRef(function(t,r){const n=Ve({name:"MuiModal",props:t}),{BackdropComponent:i=pG,BackdropProps:o,classes:a,className:u,closeAfterTransition:c=!1,children:f,container:d,component:m,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:k=!1,disableRestoreFocus:C=!1,disableScrollLock:$=!1,hideBackdrop:P=!1,keepMounted:O=!1,onClose:E,onTransitionEnter:j,onTransitionExited:R,open:D,slotProps:L={},slots:M={},theme:I,...W}=n,K={...n,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:k,disableRestoreFocus:C,disableScrollLock:$,hideBackdrop:P,keepMounted:O},{getRootProps:Z,getBackdropProps:V,getTransitionProps:ee,portalRef:F,isTopModal:z,exited:Y,hasTransition:N}=uG({...K,rootRef:r}),G={...K,exited:Y},ae=fG(G),ue={};if(f.props.tabIndex===void 0&&(ue.tabIndex="-1"),N){const{onEnter:se,onExited:be}=ee();ue.onEnter=se,ue.onExited=be}const pe={slots:{root:h.Root,backdrop:h.Backdrop,...M},slotProps:{...g,...L}},[le,he]=xt("root",{ref:r,elementType:dG,externalForwardedProps:{...pe,...W,component:m},getSlotProps:Z,ownerState:G,className:ve(u,ae==null?void 0:ae.root,!G.open&&G.exited&&(ae==null?void 0:ae.hidden))}),[ke,Q]=xt("backdrop",{ref:o==null?void 0:o.ref,elementType:i,externalForwardedProps:pe,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:se=>V({...se,onClick:be=>{se!=null&&se.onClick&&se.onClick(be)}}),className:ve(o==null?void 0:o.className,ae==null?void 0:ae.backdrop),ownerState:G});return!O&&!D&&(!N||Y)?null:A.jsx(_N,{ref:F,container:d,disablePortal:k,children:A.jsxs(le,{...he,children:[!P&&i?A.jsx(ke,{...Q}):null,A.jsx(aG,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:z,open:D,children:b.cloneElement(f,ue)})]})})});function mG(e){return Ze("MuiDivider",e)}const FE=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hG=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:u,variant:c}=e;return He({root:["root",t&&"absolute",c,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",u==="right"&&a!=="vertical"&&"textAlignRight",u==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},mG,n)},vG=$e("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Qe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),gG=$e("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Cf=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,orientation:u="horizontal",component:c=o||u==="vertical"?"div":"hr",flexItem:f=!1,light:d=!1,role:m=c!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=n,x={...n,absolute:i,component:c,flexItem:f,light:d,orientation:u,role:m,textAlign:h,variant:g},w=hG(x);return A.jsx(vG,{as:c,className:ve(w.root,a),role:m,ref:r,ownerState:x,"aria-orientation":m==="separator"&&(c!=="hr"||u==="vertical")?u:void 0,...y,children:o?A.jsx(gG,{className:w.wrapper,ownerState:x,children:o}):null})});Cf&&(Cf.muiSkipListHighlight=!0);function yG(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=Di(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const f=o.getComputedStyle(t);a=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let u=0,c=0;if(a&&a!=="none"&&typeof a=="string"){const f=a.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?i?`translateX(${i.right+u-n.left}px)`:`translateX(${o.innerWidth+u-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-u}px)`:`translateX(-${n.left+n.width-u}px)`:e==="up"?i?`translateY(${i.bottom+c-n.top}px)`:`translateY(${o.innerHeight+c-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function bG(e){return typeof e=="function"?e():e}function um(e,t,r){const n=bG(r),i=yG(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const wG=b.forwardRef(function(t,r){const n=ea(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:c,container:f,direction:d="down",easing:m=i,in:h,onEnter:g,onEntered:y,onEntering:x,onExit:w,onExited:k,onExiting:C,style:$,timeout:P=o,TransitionComponent:O=Bi,...E}=t,j=b.useRef(null),R=Jt(dl(c),j,r),D=F=>z=>{F&&(z===void 0?F(j.current):F(j.current,z))},L=D((F,z)=>{um(d,F,f),n1(F),g&&g(F,z)}),M=D((F,z)=>{const Y=yu({timeout:P,style:$,easing:m},{mode:"enter"});F.style.webkitTransition=n.transitions.create("-webkit-transform",{...Y}),F.style.transition=n.transitions.create("transform",{...Y}),F.style.webkitTransform="none",F.style.transform="none",x&&x(F,z)}),I=D(y),W=D(C),K=D(F=>{const z=yu({timeout:P,style:$,easing:m},{mode:"exit"});F.style.webkitTransition=n.transitions.create("-webkit-transform",z),F.style.transition=n.transitions.create("transform",z),um(d,F,f),w&&w(F)}),Z=D(F=>{F.style.webkitTransition="",F.style.transition="",k&&k(F)}),V=F=>{a&&a(j.current,F)},ee=b.useCallback(()=>{j.current&&um(d,j.current,f)},[d,f]);return b.useEffect(()=>{if(h||d==="down"||d==="right")return;const F=e1(()=>{j.current&&um(d,j.current,f)}),z=Di(j.current);return z.addEventListener("resize",F),()=>{F.clear(),z.removeEventListener("resize",F)}},[d,h,f]),b.useEffect(()=>{h||ee()},[h,ee]),A.jsx(O,{nodeRef:j,onEnter:L,onEntered:I,onEntering:M,onExit:K,onExited:Z,onExiting:W,addEndListener:V,appear:u,in:h,timeout:P,...E,children:(F,{ownerState:z,...Y})=>b.cloneElement(c,{ref:R,style:{visibility:F==="exited"&&!h?"hidden":void 0,...$,...c.props.style},...Y})})});function xG(e){return Ze("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const IN=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},SG=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root",`anchor${xe(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(r)}`,n!=="temporary"&&`paperAnchorDocked${xe(r)}`]};return He(i,xG,t)},kG=$e(EN,{name:"MuiDrawer",slot:"Root",overridesResolver:IN})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),$G=$e("div",{shouldForwardProp:Ln,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:IN})({flex:"0 0 auto"}),_G=$e(Ts,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xe(r.anchor)}`]]}})(Qe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),TN={left:"right",right:"left",top:"down",bottom:"up"};function PG(e){return["left","right"].includes(e)}function OG({direction:e},t){return e==="rtl"&&PG(t)?TN[t]:t}const BE=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiDrawer"}),i=ea(),o=jv(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:c,children:f,className:d,elevation:m=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:x,open:w=!1,PaperProps:k={},SlideProps:C,TransitionComponent:$,transitionDuration:P=a,variant:O="temporary",slots:E={},slotProps:j={},...R}=n,D=b.useRef(!1);b.useEffect(()=>{D.current=!0},[]);const L=OG({direction:o?"rtl":"ltr"},u),I={...n,anchor:u,elevation:m,open:w,variant:O,...R},W=SG(I),K={slots:{transition:$,...E},slotProps:{paper:k,transition:C,...j,backdrop:aN(j.backdrop||{...c,...g},{transitionDuration:P})}},[Z,V]=xt("root",{ref:r,elementType:kG,className:ve(W.root,W.modal,d),shouldForwardComponentProp:!0,ownerState:I,externalForwardedProps:{...K,...R,...y},additionalProps:{open:w,onClose:x,hideBackdrop:h,slots:{backdrop:K.slots.backdrop},slotProps:{backdrop:K.slotProps.backdrop}}}),[ee,F]=xt("paper",{elementType:_G,shouldForwardComponentProp:!0,className:ve(W.paper,k.className),ownerState:I,externalForwardedProps:K,additionalProps:{elevation:O==="temporary"?m:0,square:!0,...O==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[z,Y]=xt("docked",{elementType:$G,ref:r,className:ve(W.root,W.docked,d),ownerState:I,externalForwardedProps:K,additionalProps:R}),[N,G]=xt("transition",{elementType:wG,ownerState:I,externalForwardedProps:K,additionalProps:{in:w,direction:TN[L],timeout:P,appear:D.current}}),ae=A.jsx(ee,{...F,children:f});if(O==="permanent")return A.jsx(z,{...Y,children:ae});const ue=A.jsx(N,{...G,children:ae});return O==="persistent"?A.jsx(z,{...Y,children:ue}):A.jsx(Z,{...V,children:ue})}),CG=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:o,hiddenLabel:a,multiline:u}=e,c={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${xe(o)}`,a&&"hiddenLabel",u&&"multiline"],input:["input"]},f=He(c,RV,t);return{...t,...f}},EG=$e(Lv,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Dv(e,t),!r.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ks.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ks.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ks.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ks.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ks.disabled}, .${ks.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ks.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jn()).map(([a])=>{var u;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[a])==null?void 0:u.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:u})=>a.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),IG=$e(Uv,{name:"MuiFilledInput",slot:"Input",overridesResolver:zv})(Qe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),p1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:u=!1,hiddenLabel:c,inputComponent:f="input",multiline:d=!1,slotProps:m,slots:h={},type:g="text",...y}=n,x={...n,disableUnderline:i,fullWidth:u,inputComponent:f,multiline:d,type:g},w=CG(n),k={root:{ownerState:x},input:{ownerState:x}},C=m??a?Or(k,m??a):k,$=h.root??o.Root??EG,P=h.input??o.Input??IG;return A.jsx(d1,{slots:{root:$,input:P},slotProps:C,fullWidth:u,inputComponent:f,multiline:d,ref:r,type:g,...y,classes:w})});p1.muiName="Input";function TG(e){return Ze("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jG=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return He(i,TG,t)},AG=$e("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${xe(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),RG=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:u="div",disabled:c=!1,error:f=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:g="none",required:y=!1,size:x="medium",variant:w="outlined",...k}=n,C={...n,color:a,component:u,disabled:c,error:f,fullWidth:m,hiddenLabel:h,margin:g,required:y,size:x,variant:w},$=jG(C),[P,O]=b.useState(()=>{let Z=!1;return i&&b.Children.forEach(i,V=>{if(!Bm(V,["Input","Select"]))return;const ee=Bm(V,["Select"])?V.props.input:V;ee&&EV(ee.props)&&(Z=!0)}),Z}),[E,j]=b.useState(()=>{let Z=!1;return i&&b.Children.forEach(i,V=>{Bm(V,["Input","Select"])&&(sh(V.props,!0)||sh(V.props.inputProps,!0))&&(Z=!0)}),Z}),[R,D]=b.useState(!1);c&&R&&D(!1);const L=d!==void 0&&!c?d:R;let M;b.useRef(!1);const I=b.useCallback(()=>{j(!0)},[]),W=b.useCallback(()=>{j(!1)},[]),K=b.useMemo(()=>({adornedStart:P,setAdornedStart:O,color:a,disabled:c,error:f,filled:E,focused:L,fullWidth:m,hiddenLabel:h,size:x,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:W,onFilled:I,registerEffect:M,required:y,variant:w}),[P,a,c,f,E,L,m,h,M,W,I,y,x,w]);return A.jsx(Mv.Provider,{value:K,children:A.jsx(AG,{as:u,ownerState:C,className:ve($.root,o),ref:r,...k,children:i})})});function NG(e){return Ze("MuiFormHelperText",e)}const WE=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var KE;const MG=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:u,required:c}=e,f={root:["root",i&&"disabled",o&&"error",n&&`size${xe(n)}`,r&&"contained",u&&"focused",a&&"filled",c&&"required"]};return He(f,NG,t)},DG=$e("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WE.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),zG=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:u,error:c,filled:f,focused:d,margin:m,required:h,variant:g,...y}=n,x=pl(),w=Wu({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),k={...n,component:a,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete k.ownerState;const C=MG(k);return A.jsx(DG,{as:a,className:ve(C.root,o),ref:r,...y,ownerState:k,children:i===" "?KE||(KE=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});function LG(e){return Ze("MuiFormLabel",e)}const gf=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),UG=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:u}=e,c={root:["root",`color${xe(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return He(c,LG,t)},FG=$e("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(jn()).map(([t])=>({props:{color:t},style:{[`&.${gf.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gf.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),BG=$e("span",{name:"MuiFormLabel",slot:"Asterisk"})(Qe(({theme:e})=>({[`&.${gf.error}`]:{color:(e.vars||e).palette.error.main}}))),WG=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:u="label",disabled:c,error:f,filled:d,focused:m,required:h,...g}=n,y=pl(),x=Wu({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),w={...n,color:x.color||"primary",component:u,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},k=UG(w);return A.jsxs(FG,{as:u,ownerState:w,className:ve(k.root,o),ref:r,...g,children:[i,x.required&&A.jsxs(BG,{ownerState:w,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});function nx(e){return`scale(${e}, ${e**2})`}const KG={entering:{opacity:1,transform:nx(1)},entered:{opacity:1,transform:"none"}},Zb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lh=b.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:m,onExited:h,onExiting:g,style:y,timeout:x="auto",TransitionComponent:w=Bi,...k}=t,C=Xl(),$=b.useRef(),P=ea(),O=b.useRef(null),E=Jt(O,dl(o),r),j=Z=>V=>{if(Z){const ee=O.current;V===void 0?Z(ee):Z(ee,V)}},R=j(d),D=j((Z,V)=>{n1(Z);const{duration:ee,delay:F,easing:z}=yu({style:y,timeout:x,easing:a},{mode:"enter"});let Y;x==="auto"?(Y=P.transitions.getAutoHeightDuration(Z.clientHeight),$.current=Y):Y=ee,Z.style.transition=[P.transitions.create("opacity",{duration:Y,delay:F}),P.transitions.create("transform",{duration:Zb?Y:Y*.666,delay:F,easing:z})].join(","),c&&c(Z,V)}),L=j(f),M=j(g),I=j(Z=>{const{duration:V,delay:ee,easing:F}=yu({style:y,timeout:x,easing:a},{mode:"exit"});let z;x==="auto"?(z=P.transitions.getAutoHeightDuration(Z.clientHeight),$.current=z):z=V,Z.style.transition=[P.transitions.create("opacity",{duration:z,delay:ee}),P.transitions.create("transform",{duration:Zb?z:z*.666,delay:Zb?ee:ee||z*.333,easing:F})].join(","),Z.style.opacity=0,Z.style.transform=nx(.75),m&&m(Z)}),W=j(h),K=Z=>{x==="auto"&&C.start($.current||0,Z),n&&n(O.current,Z)};return A.jsx(w,{appear:i,in:u,nodeRef:O,onEnter:D,onEntered:L,onEntering:R,onExit:I,onExited:W,onExiting:M,addEndListener:K,timeout:x==="auto"?null:x,...k,children:(Z,{ownerState:V,...ee})=>b.cloneElement(o,{style:{opacity:0,transform:nx(.75),visibility:Z==="exited"&&!u?"hidden":void 0,...KG[Z],...y,...o.props.style},ref:E,...ee})})});lh&&(lh.muiSupportAuto=!0);const HG=e=>{const{classes:t,disableUnderline:r}=e,i=He({root:["root",!r&&"underline"],input:["input"]},jV,t);return{...t,...i}},ZG=$e(Lv,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Dv(e,t),!r.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wc.disabled}, .${Wc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jn()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),qG=$e(Uv,{name:"MuiInput",slot:"Input",overridesResolver:zv})({}),m1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:u=!1,inputComponent:c="input",multiline:f=!1,slotProps:d,slots:m={},type:h="text",...g}=n,y=HG(n),w={root:{ownerState:{disableUnderline:i}}},k=d??a?Or(d??a,w):w,C=m.root??o.Root??ZG,$=m.input??o.Input??qG;return A.jsx(d1,{slots:{root:C,input:$},slotProps:k,fullWidth:u,inputComponent:c,multiline:f,ref:r,type:h,...g,classes:y})});m1.muiName="Input";function VG(e){return Ze("MuiInputAdornment",e)}const HE=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ZE;const GG=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},YG=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,u={root:["root",r&&"disablePointerEvents",i&&`position${xe(i)}`,a,n&&"hiddenLabel",o&&`size${xe(o)}`]};return He(u,VG,t)},XG=$e("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:GG})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${HE.positionStart}&:not(.${HE.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),QG=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:d,...m}=n,h=pl()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const y={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:u,position:f,variant:g},x=YG(y);return A.jsx(Mv.Provider,{value:null,children:A.jsx(XG,{as:a,ownerState:y,className:ve(x.root,o),ref:r,...m,children:typeof i=="string"&&!c?A.jsx(lt,{color:"textSecondary",children:i}):A.jsxs(b.Fragment,{children:[f==="start"?ZE||(ZE=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,i]})})})});function JG(e){return Ze("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eY=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:u}=e,c={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="medium"&&`size${xe(n)}`,a],asterisk:[u&&"asterisk"]},f=He(c,JG,t);return{...t,...f}},tY=$e(WG,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${gf.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Qe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),rY=b.forwardRef(function(t,r){const n=Ve({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:u,className:c,...f}=n,d=pl();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=Wu({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),g={...n,disableAnimation:i,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=eY(g);return A.jsx(tY,{"data-shrink":m,ref:r,className:ve(y.root,c),...f,ownerState:g,classes:y})}),Ai=b.createContext({});function nY(e){return Ze("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const iY=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return He({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},nY,t)},oY=$e("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),h1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f,...d}=n,m=b.useMemo(()=>({dense:u}),[u]),h={...n,component:a,dense:u,disablePadding:c},g=iY(h);return A.jsx(Ai.Provider,{value:m,children:A.jsxs(oY,{as:a,className:ve(g.root,o),ref:r,ownerState:h,...d,children:[f,i]})})});function aY(e){return Ze("MuiListItem",e)}qe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function sY(e){return Ze("MuiListItemButton",e)}const Gl=qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lY=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]},uY=e=>{const{alignItems:t,classes:r,dense:n,disabled:i,disableGutters:o,divider:a,selected:u}=e,f=He({root:["root",n&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},sY,r);return{...r,...f}},cY=$e(_f,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:lY})(Qe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gl.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Gl.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Gl.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Gl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),fY=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:u,dense:c=!1,disableGutters:f=!1,divider:d=!1,focusVisibleClassName:m,selected:h=!1,className:g,...y}=n,x=b.useContext(Ai),w=b.useMemo(()=>({dense:c||x.dense||!1,alignItems:i,disableGutters:f}),[i,x.dense,c,f]),k=b.useRef(null);xn(()=>{o&&k.current&&k.current.focus()},[o]);const C={...n,alignItems:i,dense:w.dense,disableGutters:f,divider:d,selected:h},$=uY(C),P=Jt(k,r);return A.jsx(Ai.Provider,{value:w,children:A.jsx(cY,{ref:P,href:y.href||y.to,component:(y.href||y.to)&&a==="div"?"button":a,focusVisibleClassName:ve($.focusVisible,m),ownerState:C,className:ve($.root,g),...y,classes:$,children:u})})});function dY(e){return Ze("MuiListItemSecondaryAction",e)}qe("MuiListItemSecondaryAction",["root","disableGutters"]);const pY=e=>{const{disableGutters:t,classes:r}=e;return He({root:["root",t&&"disableGutters"]},dY,r)},mY=$e("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),jN=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=n,a=b.useContext(Ai),u={...n,disableGutters:a.disableGutters},c=pY(u);return A.jsx(mY,{className:ve(c.root,i),ownerState:u,ref:r,...o})});jN.muiName="ListItemSecondaryAction";const hY=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},vY=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:u}=e;return He({root:["root",n&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},aY,r)},gY=$e("div",{name:"MuiListItem",slot:"Root",overridesResolver:hY})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Gl.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),yY=$e("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),bY=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:m,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:w=!1,secondaryAction:k,slotProps:C={},slots:$={},...P}=n,O=b.useContext(Ai),E=b.useMemo(()=>({dense:g||O.dense||!1,alignItems:i,disableGutters:y}),[i,O.dense,g,y]),j=b.useRef(null),R=b.Children.toArray(o),D=R.length&&Bm(R[R.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:i,dense:E.dense,disableGutters:y,disablePadding:x,divider:w,hasSecondaryAction:D},M=vY(L),I=Jt(j,r),W={slots:$,slotProps:C},[K,Z]=xt("secondaryAction",{elementType:jN,externalForwardedProps:W,ownerState:L,className:M.secondaryAction}),V=$.root||c.Root||gY,ee=C.root||f.root||{},F={className:ve(M.root,ee.className,a),...P};let z=u||"li";return D?(z=!F.component&&!u?"div":z,d==="li"&&(z==="li"?z="div":F.component==="li"&&(F.component="div")),A.jsx(Ai.Provider,{value:E,children:A.jsxs(yY,{as:d,className:ve(M.container,m),ref:I,ownerState:L,...h,children:[A.jsx(V,{...ee,...!bu(V)&&{as:z,ownerState:{...L,...ee.ownerState}},...F,children:R}),R.pop()]})})):A.jsx(Ai.Provider,{value:E,children:A.jsxs(V,{...ee,as:z,ref:I,...!bu(V)&&{ownerState:{...L,...ee.ownerState}},...F,children:[R,k&&A.jsx(K,{...Z,children:k})]})})});function wY(e){return Ze("MuiListItemIcon",e)}const qE=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),xY=e=>{const{alignItems:t,classes:r}=e;return He({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},wY,r)},SY=$e("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Qe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),kY=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListItemIcon"}),{className:i,...o}=n,a=b.useContext(Ai),u={...n,alignItems:a.alignItems},c=xY(u);return A.jsx(SY,{className:ve(c.root,i),ownerState:u,ref:r,...o})});function $Y(e){return Ze("MuiListItemText",e)}const Ql=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_Y=e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return He({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},$Y,t)},PY=$e("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ql.primary}`]:t.primary},{[`& .${Ql.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${xE.root}:where(& .${Ql.primary})`]:{display:"block"},[`.${xE.root}:where(& .${Ql.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),AN=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:d,secondaryTypographyProps:m,slots:h={},slotProps:g={},...y}=n,{dense:x}=b.useContext(Ai);let w=c??i,k=d;const C={...n,disableTypography:a,inset:u,primary:!!w,secondary:!!k,dense:x},$=_Y(C),P={slots:h,slotProps:{primary:f,secondary:m,...g}},[O,E]=xt("root",{className:ve($.root,o),elementType:PY,externalForwardedProps:{...P,...y},ownerState:C,ref:r}),[j,R]=xt("primary",{className:$.primary,elementType:lt,externalForwardedProps:P,ownerState:C}),[D,L]=xt("secondary",{className:$.secondary,elementType:lt,externalForwardedProps:P,ownerState:C});return w!=null&&w.type!==lt&&!a&&(w=A.jsx(j,{variant:x?"body2":"body1",component:R!=null&&R.variant?void 0:"span",...R,children:w})),k!=null&&k.type!==lt&&!a&&(k=A.jsx(D,{variant:"body2",color:"textSecondary",...L,children:k})),A.jsxs(O,{...E,children:[w,k]})});function qb(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function VE(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function RN(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Kc(e,t,r,n,i,o){let a=!1,u=i(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(a)return!1;a=!0}const c=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!RN(u,o)||c)u=i(e,u,r);else return u.focus(),!0}return!1}const OY=b.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,g=b.useRef(null),y=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xn(()=>{i&&g.current.focus()},[i]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:($,{direction:P})=>{const O=!g.current.style.width;if($.clientHeight<g.current.clientHeight&&O){const E=`${CN(Di($))}px`;g.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=E,g.current.style.width=`calc(100% + ${E})`}return g.current}}),[]);const x=$=>{const P=g.current,O=$.key;if($.ctrlKey||$.metaKey||$.altKey){d&&d($);return}const j=sf(Mn(P));if(O==="ArrowDown")$.preventDefault(),Kc(P,j,f,c,qb);else if(O==="ArrowUp")$.preventDefault(),Kc(P,j,f,c,VE);else if(O==="Home")$.preventDefault(),Kc(P,null,f,c,qb);else if(O==="End")$.preventDefault(),Kc(P,null,f,c,VE);else if(O.length===1){const R=y.current,D=O.toLowerCase(),L=performance.now();R.keys.length>0&&(L-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&D!==R.keys[0]&&(R.repeating=!1)),R.lastTime=L,R.keys.push(D);const M=j&&!R.repeating&&RN(j,R);R.previousKeyMatched&&(M||Kc(P,j,!1,c,qb,R))?$.preventDefault():R.previousKeyMatched=!1}d&&d($)},w=Jt(g,r);let k=-1;b.Children.forEach(a,($,P)=>{if(!b.isValidElement($)){k===P&&(k+=1,k>=a.length&&(k=-1));return}$.props.disabled||(m==="selectedMenu"&&$.props.selected||k===-1)&&(k=P),k===P&&($.props.disabled||$.props.muiSkipListHighlight||$.type.muiSkipListHighlight)&&(k+=1,k>=a.length&&(k=-1))});const C=b.Children.map(a,($,P)=>{if(P===k){const O={};return o&&(O.autoFocus=!0),$.props.tabIndex===void 0&&m==="selectedMenu"&&(O.tabIndex=0),b.cloneElement($,O)}return $});return A.jsx(h1,{role:"menu",ref:w,className:u,onKeyDown:x,tabIndex:i?0:-1,...h,children:C})});function CY(e){return Ze("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function GE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function YE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function XE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function cm(e){return typeof e=="function"?e():e}const EY=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"]},CY,t)},IY=$e(EN,{name:"MuiPopover",slot:"Root"})({}),NN=$e(Ts,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),TY=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:f,className:d,container:m,elevation:h=8,marginThreshold:g=16,open:y,PaperProps:x={},slots:w={},slotProps:k={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:$,transitionDuration:P="auto",TransitionProps:O={},disableScrollLock:E=!1,...j}=n,R=b.useRef(),D={...n,anchorOrigin:a,anchorReference:c,elevation:h,marginThreshold:g,transformOrigin:C,TransitionComponent:$,transitionDuration:P,TransitionProps:O},L=EY(D),M=b.useCallback(()=>{if(c==="anchorPosition")return u;const se=cm(o),re=(se&&se.nodeType===1?se:Mn(R.current).body).getBoundingClientRect();return{top:re.top+GE(re,a.vertical),left:re.left+YE(re,a.horizontal)}},[o,a.horizontal,a.vertical,u,c]),I=b.useCallback(se=>({vertical:GE(se,C.vertical),horizontal:YE(se,C.horizontal)}),[C.horizontal,C.vertical]),W=b.useCallback(se=>{const be={width:se.offsetWidth,height:se.offsetHeight},re=I(be);if(c==="none")return{top:null,left:null,transformOrigin:XE(re)};const Ue=M();let Se=Ue.top-re.vertical,Me=Ue.left-re.horizontal;const rt=Se+be.height,et=Me+be.width,ot=Di(cm(o)),ft=ot.innerHeight-g,ut=ot.innerWidth-g;if(g!==null&&Se<g){const Ye=Se-g;Se-=Ye,re.vertical+=Ye}else if(g!==null&&rt>ft){const Ye=rt-ft;Se-=Ye,re.vertical+=Ye}if(g!==null&&Me<g){const Ye=Me-g;Me-=Ye,re.horizontal+=Ye}else if(et>ut){const Ye=et-ut;Me-=Ye,re.horizontal+=Ye}return{top:`${Math.round(Se)}px`,left:`${Math.round(Me)}px`,transformOrigin:XE(re)}},[o,c,M,I,g]),[K,Z]=b.useState(y),V=b.useCallback(()=>{const se=R.current;if(!se)return;const be=W(se);be.top!==null&&se.style.setProperty("top",be.top),be.left!==null&&(se.style.left=be.left),se.style.transformOrigin=be.transformOrigin,Z(!0)},[W]);b.useEffect(()=>(E&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[o,E,V]);const ee=()=>{V()},F=()=>{Z(!1)};b.useEffect(()=>{y&&V()}),b.useImperativeHandle(i,()=>y?{updatePosition:()=>{V()}}:null,[y,V]),b.useEffect(()=>{if(!y)return;const se=e1(()=>{V()}),be=Di(cm(o));return be.addEventListener("resize",se),()=>{se.clear(),be.removeEventListener("resize",se)}},[o,y,V]);let z=P;const Y={slots:{transition:$,...w},slotProps:{transition:O,paper:x,...k}},[N,G]=xt("transition",{elementType:lh,externalForwardedProps:Y,ownerState:D,getSlotProps:se=>({...se,onEntering:(be,re)=>{var Ue;(Ue=se.onEntering)==null||Ue.call(se,be,re),ee()},onExited:be=>{var re;(re=se.onExited)==null||re.call(se,be),F()}}),additionalProps:{appear:!0,in:y}});P==="auto"&&!N.muiSupportAuto&&(z=void 0);const ae=m||(o?Mn(cm(o)).body:void 0),[ue,{slots:pe,slotProps:le,...he}]=xt("root",{ref:r,elementType:IY,externalForwardedProps:{...Y,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:aN(typeof k.backdrop=="function"?k.backdrop(D):k.backdrop,{invisible:!0})},container:ae,open:y},ownerState:D,className:ve(L.root,d)}),[ke,Q]=xt("paper",{ref:R,className:L.paper,elementType:NN,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:K?void 0:{opacity:0}},ownerState:D});return A.jsx(ue,{...he,...!bu(ue)&&{slots:pe,slotProps:le,disableScrollLock:E},children:A.jsx(N,{...G,timeout:z,children:A.jsx(ke,{...Q,children:f})})})});function jY(e){return Ze("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const AY={vertical:"top",horizontal:"right"},RY={vertical:"top",horizontal:"left"},NY=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"],list:["list"]},jY,t)},MY=$e(TY,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),DY=$e(NN,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zY=$e(OY,{name:"MuiMenu",slot:"List"})({outline:0}),LY=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:m={},PopoverClasses:h,transitionDuration:g="auto",TransitionProps:{onEntering:y,...x}={},variant:w="selectedMenu",slots:k={},slotProps:C={},...$}=n,P=jv(),O={...n,autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:m,transitionDuration:g,TransitionProps:x,variant:w},E=NY(O),j=i&&!u&&d,R=b.useRef(null),D=(z,Y)=>{R.current&&R.current.adjustStyleForScrollbar(z,{direction:P?"rtl":"ltr"}),y&&y(z,Y)},L=z=>{z.key==="Tab"&&(z.preventDefault(),f&&f(z,"tabKeyDown"))};let M=-1;b.Children.map(o,(z,Y)=>{b.isValidElement(z)&&(z.props.disabled||(w==="selectedMenu"&&z.props.selected||M===-1)&&(M=Y))});const I={slots:k,slotProps:{list:c,transition:x,paper:m,...C}},W=$N({elementType:k.root,externalSlotProps:C.root,ownerState:O,className:[E.root,a]}),[K,Z]=xt("paper",{className:E.paper,elementType:DY,externalForwardedProps:I,shouldForwardComponentProp:!0,ownerState:O}),[V,ee]=xt("list",{className:ve(E.list,c.className),elementType:zY,shouldForwardComponentProp:!0,externalForwardedProps:I,getSlotProps:z=>({...z,onKeyDown:Y=>{var N;L(Y),(N=z.onKeyDown)==null||N.call(z,Y)}}),ownerState:O}),F=typeof I.slotProps.transition=="function"?I.slotProps.transition(O):I.slotProps.transition;return A.jsx(MY,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?AY:RY,slots:{root:k.root,paper:K,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:W,paper:Z,backdrop:typeof C.backdrop=="function"?C.backdrop(O):C.backdrop,transition:{...F,onEntering:(...z)=>{var Y;D(...z),(Y=F==null?void 0:F.onEntering)==null||Y.call(F,...z)}}},open:d,ref:r,transitionDuration:g,ownerState:O,...$,classes:h,children:A.jsx(V,{actions:R,autoFocus:i&&(M===-1||u),autoFocusItem:j,variant:w,...ee,children:o})})});function UY(e){return Ze("MuiMenuItem",e)}const Hc=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),FY=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},BY=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:a}=e,c=He({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},UY,a);return{...a,...c}},WY=$e(_f,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:FY})(Qe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Hc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Hc.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Hc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${FE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${FE.inset}`]:{marginLeft:52},[`& .${Ql.root}`]:{marginTop:0,marginBottom:0},[`& .${Ql.inset}`]:{paddingLeft:36},[`& .${qE.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${qE.root} svg`]:{fontSize:"1.25rem"}}}]}))),Vb=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:d="menuitem",tabIndex:m,className:h,...g}=n,y=b.useContext(Ai),x=b.useMemo(()=>({dense:a||y.dense||!1,disableGutters:c}),[y.dense,a,c]),w=b.useRef(null);xn(()=>{i&&w.current&&w.current.focus()},[i]);const k={...n,dense:x.dense,divider:u,disableGutters:c},C=BY(n),$=Jt(w,r);let P;return n.disabled||(P=m!==void 0?m:-1),A.jsx(Ai.Provider,{value:x,children:A.jsx(WY,{ref:$,role:d,tabIndex:P,component:o,focusVisibleClassName:ve(C.focusVisible,f),className:ve(C.root,h),...g,ownerState:k,classes:C})})});function KY(e){return Ze("MuiNativeSelect",e)}const v1=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),HY=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,u={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${xe(r)}`,o&&"iconOpen",n&&"disabled"]};return He(u,KY,t)},MN=$e("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${v1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ZY=$e(MN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ln,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${v1.multiple}`]:t.multiple}]}})({}),DN=$e("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${v1.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),qY=$e(DN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})({}),VY=b.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:u,variant:c="standard",...f}=t,d={...t,disabled:i,variant:c,error:o},m=HY(d);return A.jsxs(b.Fragment,{children:[A.jsx(ZY,{ownerState:d,className:ve(m.select,n),disabled:i,ref:u||r,...f}),t.multiple?null:A.jsx(qY,{as:a,ownerState:d,className:m.icon})]})});var QE;const GY=$e("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ln})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),YY=$e("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ln})(Qe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function XY(e){const{children:t,classes:r,className:n,label:i,notched:o,...a}=e,u=i!=null&&i!=="",c={...e,notched:o,withLabel:u};return A.jsx(GY,{"aria-hidden":!0,className:n,ownerState:c,...a,children:A.jsx(YY,{ownerState:c,children:u?A.jsx("span",{children:i}):QE||(QE=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const QY=e=>{const{classes:t}=e,n=He({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AV,t);return{...t,...n}},JY=$e(Lv,{shouldForwardProp:e=>Ln(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dv})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xi.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Xi.focused} .${Xi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(jn()).map(([r])=>({props:{color:r},style:{[`&.${Xi.focused} .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Xi.error} .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xi.disabled} .${Xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),eX=$e(XY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),tX=$e(Uv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zv})(Qe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),g1=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:u,multiline:c=!1,notched:f,slots:d={},slotProps:m={},type:h="text",...g}=n,y=QY(n),x=pl(),w=Wu({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:o,hiddenLabel:w.hiddenLabel,multiline:c,size:w.size,type:h},C=d.root??i.Root??JY,$=d.input??i.Input??tX,[P,O]=xt("notchedOutline",{elementType:eX,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:d,slotProps:m},additionalProps:{label:u!=null&&u!==""&&w.required?A.jsxs(b.Fragment,{children:[u," ","*"]}):u}});return A.jsx(d1,{slots:{root:C,input:$},slotProps:m,renderSuffix:E=>A.jsx(P,{...O,notched:typeof f<"u"?f:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:o,inputComponent:a,multiline:c,ref:r,type:h,...g,classes:{...y,notchedOutline:null}})});g1.muiName="Input";function zN(e){return Ze("MuiSelect",e)}const Zc=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var JE;const rX=$e(MN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})({[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nX=$e(DN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})({}),iX=$e("input",{shouldForwardProp:e=>oN(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function eI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function oX(e){return e==null||typeof e=="string"&&!e.trim()}const aX=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,u={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${xe(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return He(u,zN,t)},sX=b.forwardRef(function(t,r){var la,mi,ua,ca;const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:u,className:c,defaultOpen:f,defaultValue:d,disabled:m,displayEmpty:h,error:g=!1,IconComponent:y,inputRef:x,labelId:w,MenuProps:k={},multiple:C,name:$,onBlur:P,onChange:O,onClose:E,onFocus:j,onKeyDown:R,onMouseDown:D,onOpen:L,open:M,readOnly:I,renderValue:W,required:K,SelectDisplayProps:Z={},tabIndex:V,type:ee,value:F,variant:z="standard",...Y}=t,[N,G]=Zw({controlled:F,default:d,name:"Select"}),[ae,ue]=Zw({controlled:M,default:f,name:"Select"}),pe=b.useRef(null),le=b.useRef(null),[he,ke]=b.useState(null),{current:Q}=b.useRef(M!=null),[se,be]=b.useState(),re=Jt(r,x),Ue=b.useCallback(Re=>{le.current=Re,Re&&ke(Re)},[]),Se=he==null?void 0:he.parentNode;b.useImperativeHandle(re,()=>({focus:()=>{le.current.focus()},node:pe.current,value:N}),[N]),b.useEffect(()=>{f&&ae&&he&&!Q&&(be(a?null:Se.clientWidth),le.current.focus())},[he,a]),b.useEffect(()=>{o&&le.current.focus()},[o]),b.useEffect(()=>{if(!w)return;const Re=Mn(le.current).getElementById(w);if(Re){const st=()=>{getSelection().isCollapsed&&le.current.focus()};return Re.addEventListener("click",st),()=>{Re.removeEventListener("click",st)}}},[w]);const Me=(Re,st)=>{Re?L&&L(st):E&&E(st),Q||(be(a?null:Se.clientWidth),ue(Re))},rt=Re=>{D==null||D(Re),Re.button===0&&(Re.preventDefault(),le.current.focus(),Me(!0,Re))},et=Re=>{Me(!1,Re)},ot=b.Children.toArray(u),ft=Re=>{const st=ot.find(qt=>qt.props.value===Re.target.value);st!==void 0&&(G(st.props.value),O&&O(Re,st))},ut=Re=>st=>{let qt;if(st.currentTarget.hasAttribute("tabindex")){if(C){qt=Array.isArray(N)?N.slice():[];const hi=N.indexOf(Re.props.value);hi===-1?qt.push(Re.props.value):qt.splice(hi,1)}else qt=Re.props.value;if(Re.props.onClick&&Re.props.onClick(st),N!==qt&&(G(qt),O)){const hi=st.nativeEvent||st,ss=new hi.constructor(hi.type,hi);Object.defineProperty(ss,"target",{writable:!0,value:{value:qt,name:$}}),O(ss,Re)}C||Me(!1,st)}},Ye=Re=>{I||([" ","ArrowUp","ArrowDown","Enter"].includes(Re.key)&&(Re.preventDefault(),Me(!0,Re)),R==null||R(Re))},Oe=he!==null&&ae,yr=Re=>{!Oe&&P&&(Object.defineProperty(Re,"target",{writable:!0,value:{value:N,name:$}}),P(Re))};delete Y["aria-invalid"];let mt,Zr;const ur=[];let er=!1;(sh({value:N})||h)&&(W?mt=W(N):er=!0);const jr=ot.map(Re=>{if(!b.isValidElement(Re))return null;let st;if(C){if(!Array.isArray(N))throw new Error(Wo(2));st=N.some(qt=>eI(qt,Re.props.value)),st&&er&&ur.push(Re.props.children)}else st=eI(N,Re.props.value),st&&er&&(Zr=Re.props.children);return b.cloneElement(Re,{"aria-selected":st?"true":"false",onClick:ut(Re),onKeyUp:qt=>{qt.key===" "&&qt.preventDefault(),Re.props.onKeyUp&&Re.props.onKeyUp(qt)},role:"option",selected:st,value:void 0,"data-value":Re.props.value})});er&&(C?ur.length===0?mt=null:mt=ur.reduce((Re,st,qt)=>(Re.push(st),qt<ur.length-1&&Re.push(", "),Re),[]):mt=Zr);let br=se;!a&&Q&&he&&(br=Se.clientWidth);let ht;typeof V<"u"?ht=V:ht=m?null:0;const Te=Z.id||($?`mui-component-select-${$}`:void 0),Rt={...t,variant:z,value:N,open:Oe,error:g},Ot=aX(Rt),bt={...k.PaperProps,...typeof((la=k.slotProps)==null?void 0:la.paper)=="function"?k.slotProps.paper(Rt):(mi=k.slotProps)==null?void 0:mi.paper},as={...k.MenuListProps,...typeof((ua=k.slotProps)==null?void 0:ua.list)=="function"?k.slotProps.list(Rt):(ca=k.slotProps)==null?void 0:ca.list},Ki=ld();return A.jsxs(b.Fragment,{children:[A.jsx(rX,{as:"div",ref:Ue,tabIndex:ht,role:"combobox","aria-controls":Oe?Ki:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":Oe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[w,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":K?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ye,onMouseDown:m||I?null:rt,onBlur:yr,onFocus:j,...Z,ownerState:Rt,className:ve(Z.className,Ot.select,c),id:Te,children:oX(mt)?JE||(JE=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):mt}),A.jsx(iX,{"aria-invalid":g,value:Array.isArray(N)?N.join(","):N,name:$,ref:pe,"aria-hidden":!0,onChange:ft,tabIndex:-1,disabled:m,className:Ot.nativeInput,autoFocus:o,required:K,...Y,ownerState:Rt}),A.jsx(nX,{as:y,className:Ot.icon,ownerState:Rt}),A.jsx(LY,{id:`menu-${$||""}`,anchorEl:Se,open:Oe,onClose:et,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Ki,...as},paper:{...bt,style:{minWidth:br,...bt!=null?bt.style:null}}},children:jr})]})}),lX=e=>{const{classes:t}=e,n=He({root:["root"]},zN,t);return{...t,...n}},y1={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ln(e)&&e!=="variant"},uX=$e(m1,y1)(""),cX=$e(g1,y1)(""),fX=$e(p1,y1)(""),b1=b.forwardRef(function(t,r){const n=Ve({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:u,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:d=NV,id:m,input:h,inputProps:g,label:y,labelId:x,MenuProps:w,multiple:k=!1,native:C=!1,onClose:$,onOpen:P,open:O,renderValue:E,SelectDisplayProps:j,variant:R="outlined",...D}=n,L=C?VY:sX,M=pl(),I=Wu({props:n,muiFormControl:M,states:["variant","error"]}),W=I.variant||R,K={...n,variant:W,classes:a},Z=lX(K),{root:V,...ee}=Z,F=h||{standard:A.jsx(uX,{ownerState:K}),outlined:A.jsx(cX,{label:y,ownerState:K}),filled:A.jsx(fX,{ownerState:K})}[W],z=Jt(r,dl(F));return A.jsx(b.Fragment,{children:b.cloneElement(F,{inputComponent:L,inputProps:{children:o,error:I.error,IconComponent:d,variant:W,type:void 0,multiple:k,...C?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:f,labelId:x,MenuProps:w,onClose:$,onOpen:P,open:O,renderValue:E,SelectDisplayProps:{id:m,...j}},...g,classes:g?Or(ee,g.classes):ee,...h?h.props.inputProps:{}},...(k&&C||f)&&W==="outlined"?{notched:!0}:{},ref:z,className:ve(F.props.className,u,Z.root),...!h&&{variant:W},...D})})});b1.muiName="Select";function dX(e){return Ze("MuiTooltip",e)}const Qt=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function pX(e){return Math.round(e*1e5)/1e5}const mX=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${xe(o.split("-")[0])}`],arrow:["arrow"]};return He(a,dX,t)},hX=$e(PN,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),vX=$e("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${xe(r.placement.split("-")[0])}`]]}})(Qe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Qt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pX(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Qt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),gX=$e("span",{name:"MuiTooltip",slot:"Arrow"})(Qe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let fm=!1;const tI=new Rv;let qc={x:0,y:0};function dm(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const rI=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:u={},componentsProps:c={},describeChild:f=!1,disableFocusListener:d=!1,disableHoverListener:m=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:k=!1,id:C,leaveDelay:$=0,leaveTouchDelay:P=1500,onClose:O,onOpen:E,open:j,placement:R="bottom",PopperComponent:D,PopperProps:L={},slotProps:M={},slots:I={},title:W,TransitionComponent:K,TransitionProps:Z,...V}=n,ee=b.isValidElement(o)?o:A.jsx("span",{children:o}),F=ea(),z=jv(),[Y,N]=b.useState(),[G,ae]=b.useState(null),ue=b.useRef(!1),pe=h||k,le=Xl(),he=Xl(),ke=Xl(),Q=Xl(),[se,be]=Zw({controlled:j,default:!1,name:"Tooltip",state:"open"});let re=se;const Ue=ld(C),Se=b.useRef(),Me=Lo(()=>{Se.current!==void 0&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),Q.clear()});b.useEffect(()=>Me,[Me]);const rt=Ge=>{tI.clear(),fm=!0,be(!0),E&&!re&&E(Ge)},et=Lo(Ge=>{tI.start(800+$,()=>{fm=!1}),be(!1),O&&re&&O(Ge),le.start(F.transitions.duration.shortest,()=>{ue.current=!1})}),ot=Ge=>{ue.current&&Ge.type!=="touchstart"||(Y&&Y.removeAttribute("title"),he.clear(),ke.clear(),y||fm&&x?he.start(fm?x:y,()=>{rt(Ge)}):rt(Ge))},ft=Ge=>{he.clear(),ke.start($,()=>{et(Ge)})},[,ut]=b.useState(!1),Ye=Ge=>{ih(Ge.target)||(ut(!1),ft(Ge))},Oe=Ge=>{Y||N(Ge.currentTarget),ih(Ge.target)&&(ut(!0),ot(Ge))},yr=Ge=>{ue.current=!0;const qr=ee.props;qr.onTouchStart&&qr.onTouchStart(Ge)},mt=Ge=>{yr(Ge),ke.clear(),le.clear(),Me(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Q.start(w,()=>{document.body.style.WebkitUserSelect=Se.current,ot(Ge)})},Zr=Ge=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Ge),Me(),ke.start(P,()=>{et(Ge)})};b.useEffect(()=>{if(!re)return;function Ge(qr){qr.key==="Escape"&&et(qr)}return document.addEventListener("keydown",Ge),()=>{document.removeEventListener("keydown",Ge)}},[et,re]);const ur=Jt(dl(ee),N,r);!W&&W!==0&&(re=!1);const er=b.useRef(),jr=Ge=>{const qr=ee.props;qr.onMouseMove&&qr.onMouseMove(Ge),qc={x:Ge.clientX,y:Ge.clientY},er.current&&er.current.update()},br={},ht=typeof W=="string";f?(br.title=!re&&ht&&!m?W:null,br["aria-describedby"]=re?Ue:null):(br["aria-label"]=ht?W:null,br["aria-labelledby"]=re&&!ht?Ue:null);const Te={...br,...V,...ee.props,className:ve(V.className,ee.props.className),onTouchStart:yr,ref:ur,...k?{onMouseMove:jr}:{}},Rt={};g||(Te.onTouchStart=mt,Te.onTouchEnd=Zr),m||(Te.onMouseOver=dm(ot,Te.onMouseOver),Te.onMouseLeave=dm(ft,Te.onMouseLeave),pe||(Rt.onMouseOver=ot,Rt.onMouseLeave=ft)),d||(Te.onFocus=dm(Oe,Te.onFocus),Te.onBlur=dm(Ye,Te.onBlur),pe||(Rt.onFocus=Oe,Rt.onBlur=Ye));const Ot={...n,isRtl:z,arrow:i,disableInteractive:pe,placement:R,PopperComponentProp:D,touch:ue.current},bt=typeof M.popper=="function"?M.popper(Ot):M.popper,as=b.useMemo(()=>{var qr,tc;let Ge=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(qr=L.popperOptions)!=null&&qr.modifiers&&(Ge=Ge.concat(L.popperOptions.modifiers)),(tc=bt==null?void 0:bt.popperOptions)!=null&&tc.modifiers&&(Ge=Ge.concat(bt.popperOptions.modifiers)),{...L.popperOptions,...bt==null?void 0:bt.popperOptions,modifiers:Ge}},[G,L.popperOptions,bt==null?void 0:bt.popperOptions]),Ki=mX(Ot),la=typeof M.transition=="function"?M.transition(Ot):M.transition,mi={slots:{popper:u.Popper,transition:u.Transition??K,tooltip:u.Tooltip,arrow:u.Arrow,...I},slotProps:{arrow:M.arrow??c.arrow,popper:{...L,...bt??c.popper},tooltip:M.tooltip??c.tooltip,transition:{...Z,...la??c.transition}}},[ua,ca]=xt("popper",{elementType:hX,externalForwardedProps:mi,ownerState:Ot,className:ve(Ki.popper,L==null?void 0:L.className)}),[Re,st]=xt("transition",{elementType:lh,externalForwardedProps:mi,ownerState:Ot}),[qt,hi]=xt("tooltip",{elementType:vX,className:Ki.tooltip,externalForwardedProps:mi,ownerState:Ot}),[ss,Hd]=xt("arrow",{elementType:gX,className:Ki.arrow,externalForwardedProps:mi,ownerState:Ot,ref:ae});return A.jsxs(b.Fragment,{children:[b.cloneElement(ee,Te),A.jsx(ua,{as:D??PN,placement:R,anchorEl:k?{getBoundingClientRect:()=>({top:qc.y,left:qc.x,right:qc.x,bottom:qc.y,width:0,height:0})}:Y,popperRef:er,open:Y?re:!1,id:Ue,transition:!0,...Rt,...ca,popperOptions:as,children:({TransitionProps:Ge})=>A.jsx(Re,{timeout:F.transitions.duration.shorter,...Ge,...st,children:A.jsxs(qt,{...hi,children:[W,i?A.jsx(ss,{...Hd}):null]})})})]})}),no=gZ({createStyledComponent:$e("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ve({props:e,name:"MuiStack"})}),LN=b.createContext();function yX(e){return Ze("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const bX=e=>{const{classes:t,stickyHeader:r}=e;return He({root:["root",r&&"stickyHeader"]},yX,t)},wX=$e("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),nI="table",xX=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTable"}),{className:i,component:o=nI,padding:a="normal",size:u="medium",stickyHeader:c=!1,...f}=n,d={...n,component:o,padding:a,size:u,stickyHeader:c},m=bX(d),h=b.useMemo(()=>({padding:a,size:u,stickyHeader:c}),[a,u,c]);return A.jsx(LN.Provider,{value:h,children:A.jsx(wX,{as:o,role:o===nI?null:"table",ref:r,className:ve(m.root,i),ownerState:d,...f})})}),Fv=b.createContext();function SX(e){return Ze("MuiTableBody",e)}qe("MuiTableBody",["root"]);const kX=e=>{const{classes:t}=e;return He({root:["root"]},SX,t)},$X=$e("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),_X={variant:"body"},iI="tbody",PX=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableBody"}),{className:i,component:o=iI,...a}=n,u={...n,component:o},c=kX(u);return A.jsx(Fv.Provider,{value:_X,children:A.jsx($X,{className:ve(c.root,i),as:o,ref:r,role:o===iI?null:"rowgroup",ownerState:u,...a})})});function OX(e){return Ze("MuiTableCell",e)}const CX=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),EX=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,u={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(o)}`]};return He(u,OX,t)},IX=$e("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
204
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${CX.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),On=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:u,scope:c,size:f,sortDirection:d,variant:m,...h}=n,g=b.useContext(LN),y=b.useContext(Fv),x=y&&y.variant==="head";let w;a?w=a:w=x?"th":"td";let k=c;w==="td"?k=void 0:!k&&x&&(k="col");const C=m||y&&y.variant,$={...n,align:i,component:w,padding:u||(g&&g.padding?g.padding:"normal"),size:f||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:C==="head"&&g&&g.stickyHeader,variant:C},P=EX($);let O=null;return d&&(O=d==="asc"?"ascending":"descending"),A.jsx(IX,{as:w,ref:r,className:ve(P.root,o),"aria-sort":O,scope:k,ownerState:$,...h})});function TX(e){return Ze("MuiTableHead",e)}qe("MuiTableHead",["root"]);const jX=e=>{const{classes:t}=e;return He({root:["root"]},TX,t)},AX=$e("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),RX={variant:"head"},oI="thead",NX=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableHead"}),{className:i,component:o=oI,...a}=n,u={...n,component:o},c=jX(u);return A.jsx(Fv.Provider,{value:RX,children:A.jsx(AX,{as:o,className:ve(c.root,i),ref:r,role:o===oI?null:"rowgroup",ownerState:u,...a})})});function MX(e){return Ze("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const DX=e=>{const{classes:t,disableGutters:r,variant:n}=e;return He({root:["root",!r&&"gutters",n]},MX,t)},zX=$e("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Qe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),ix=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:u="regular",...c}=n,f={...n,component:o,disableGutters:a,variant:u},d=DX(f);return A.jsx(zX,{as:o,className:ve(d.root,i),ref:r,ownerState:f,...c})});function LX(e){return Ze("MuiTableRow",e)}const aI=qe("MuiTableRow",["root","selected","hover","head","footer"]),UX=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return He({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},LX,t)},FX=$e("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Qe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${aI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${aI.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),sI="tr",Gb=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableRow"}),{className:i,component:o=sI,hover:a=!1,selected:u=!1,...c}=n,f=b.useContext(Fv),d={...n,component:o,hover:a,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},m=UX(d);return A.jsx(FX,{as:o,ref:r,className:ve(m.root,i),role:o===sI?null:"row",ownerState:d,...c})});function BX(e){return Ze("MuiTextField",e)}qe("MuiTextField",["root"]);const WX={standard:m1,filled:p1,outlined:g1},KX=e=>{const{classes:t}=e;return He({root:["root"]},BX,t)},HX=$e(RG,{name:"MuiTextField",slot:"Root"})({}),ZX=b.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:u,color:c="primary",defaultValue:f,disabled:d=!1,error:m=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:y,id:x,InputLabelProps:w,inputProps:k,InputProps:C,inputRef:$,label:P,maxRows:O,minRows:E,multiline:j=!1,name:R,onBlur:D,onChange:L,onFocus:M,placeholder:I,required:W=!1,rows:K,select:Z=!1,SelectProps:V,slots:ee={},slotProps:F={},type:z,value:Y,variant:N="outlined",...G}=n,ae={...n,autoFocus:o,color:c,disabled:d,error:m,fullWidth:g,multiline:j,required:W,select:Z,variant:N},ue=KX(ae),pe=ld(x),le=y&&pe?`${pe}-helper-text`:void 0,he=P&&pe?`${pe}-label`:void 0,ke=WX[N],Q={slots:ee,slotProps:{input:C,inputLabel:w,htmlInput:k,formHelperText:h,select:V,...F}},se={},be=Q.slotProps.inputLabel;N==="outlined"&&(be&&typeof be.shrink<"u"&&(se.notched=be.shrink),se.label=P),Z&&((!V||!V.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const[re,Ue]=xt("root",{elementType:HX,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,...G},ownerState:ae,className:ve(ue.root,u),ref:r,additionalProps:{disabled:d,error:m,fullWidth:g,required:W,color:c,variant:N}}),[Se,Me]=xt("input",{elementType:ke,externalForwardedProps:Q,additionalProps:se,ownerState:ae}),[rt,et]=xt("inputLabel",{elementType:rY,externalForwardedProps:Q,ownerState:ae}),[ot,ft]=xt("htmlInput",{elementType:"input",externalForwardedProps:Q,ownerState:ae}),[ut,Ye]=xt("formHelperText",{elementType:zG,externalForwardedProps:Q,ownerState:ae}),[Oe,yr]=xt("select",{elementType:b1,externalForwardedProps:Q,ownerState:ae}),mt=A.jsx(Se,{"aria-describedby":le,autoComplete:i,autoFocus:o,defaultValue:f,fullWidth:g,multiline:j,name:R,rows:K,maxRows:O,minRows:E,type:z,value:Y,id:pe,inputRef:$,onBlur:D,onChange:L,onFocus:M,placeholder:I,inputProps:ft,slots:{input:ee.htmlInput?ot:void 0},...Me});return A.jsxs(re,{...Ue,children:[P!=null&&P!==""&&A.jsx(rt,{htmlFor:pe,id:he,...et,children:P}),Z?A.jsx(Oe,{"aria-describedby":le,id:pe,labelId:he,value:Y,input:mt,...yr,children:a}):mt,y&&A.jsx(ut,{id:le,...Ye,children:y})]})}),qX=HR({themeId:ji}),VX=Av({palette:{mode:"dark",primary:{main:"#9b5de5",light:"#bfa3f0",dark:"#5a299b",contrastText:"#ffffff"},secondary:{main:"#7b2cbf",light:"#a46be0",dark:"#4a148c",contrastText:"#ffffff"},background:{default:"#16141a",paper:"#1e1b23"},http:{get:"#6ede8a",post:"#7aa2ff",put:"#ffb85c",patch:"#c77dff",delete:"#ff6b6b"},status:{success:"#6ede8a",warning:"#ffdd57",error:"#ff6b6b"}},shape:{borderRadius:10},typography:{fontFamily:'"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',h6:{fontWeight:600},subtitle1:{fontWeight:500},body2:{color:"#c8c8d0"}},components:{MuiCard:{styleOverrides:{root:{backdropFilter:"blur(6px)",backgroundColor:"rgba(30, 27, 35, 0.6)",borderColor:"rgba(255, 255, 255, 0.08)"}},defaultProps:{elevation:0,variant:"outlined"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiChip:{styleOverrides:{root:{fontWeight:600}}},MuiButton:{styleOverrides:{containedPrimary:{boxShadow:"none"}}}}}),pm=240;function GX({children:e,title:t="RRROUTES Docs"}){const[r,n]=b.useState(!1),i=vo(),o=hv(),a=i.pathname.startsWith("/presets")?"presets":i.pathname.startsWith("/history")?"history":i.pathname.startsWith("/logs")?"logs":"routes",u=[{key:"routes",label:"Endpoints",icon:A.jsx(rq,{}),path:"/routes"},{key:"presets",label:"Presets",icon:A.jsx(aq,{}),path:"/presets"},{key:"history",label:"History",icon:A.jsx(nq,{}),path:"/history"},{key:"logs",label:"Logs",icon:A.jsx(iq,{}),path:"/logs"}],c=A.jsxs(yt,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[A.jsx(ix,{children:A.jsx(lt,{variant:"h6",noWrap:!0,children:"RRROUTES Docs"})}),A.jsx(Cf,{}),A.jsx(h1,{sx:{flexGrow:1},children:u.map(f=>A.jsxs(fY,{selected:a===f.key,onClick:()=>o(f.path),children:[A.jsx(kY,{children:f.icon}),A.jsx(AN,{primary:f.label})]},f.key))}),A.jsx(yt,{sx:{p:2,typography:"caption",color:"text.secondary"},children:"Powered by rrroutes"})]});return A.jsxs(cq,{theme:VX,children:[A.jsx(VV,{}),A.jsxs(yt,{sx:{display:"flex",minHeight:"100vh"},children:[A.jsx(o7,{position:"fixed",sx:{zIndex:f=>f.zIndex.drawer+1},children:A.jsxs(ix,{children:[A.jsx(Qw,{color:"inherit",edge:"start",sx:{mr:2,display:{sm:"none"}},onClick:()=>n(f=>!f),children:A.jsx(oq,{})}),A.jsx(lt,{variant:"h6",noWrap:!0,sx:{flexGrow:1},children:t})]})}),A.jsxs(yt,{component:"nav",sx:{width:{sm:pm},flexShrink:{sm:0}},children:[A.jsx(BE,{variant:"temporary",open:r,onClose:()=>n(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{width:pm}},children:c}),A.jsx(BE,{variant:"permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{width:pm,boxSizing:"border-box"}},open:!0,children:c})]}),A.jsx(yt,{component:"main",sx:{flexGrow:1,p:3,width:{sm:`calc(100% - ${pm}px)`},mt:8,bgcolor:"background.default"},children:e})]})]})}function YX({list:e,detail:t}){const r=ea();return qX(r.breakpoints.down("md"))?A.jsxs(yt,{sx:{display:"flex",flexDirection:"column",gap:2},children:[A.jsx(Ts,{sx:{p:1},children:e}),t&&A.jsx(Ts,{sx:{p:2},children:t})]}):A.jsxs(yt,{sx:{display:"grid",gridTemplateColumns:"minmax(0, 2fr) minmax(0, 3fr)",gap:2,alignItems:"stretch"},children:[A.jsx(Ts,{sx:{p:1,overflow:"hidden"},children:e}),A.jsx(Ts,{sx:{p:2,overflow:"auto"},children:t})]})}const UN=Object.freeze({status:"aborted"});function X(e,t,r){function n(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);const f=a.prototype,d=Object.keys(f);for(let m=0;m<d.length;m++){const h=d[m];h in u||(u[h]=f[h].bind(u))}}const i=(r==null?void 0:r.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(u){var c;const f=r!=null&&r.Parent?new o:this;n(f,u),(c=f._zod).deferred??(c.deferred=[]);for(const d of f._zod.deferred)d();return f}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:u=>{var c,f;return r!=null&&r.Parent&&u instanceof r.Parent?!0:(f=(c=u==null?void 0:u._zod)==null?void 0:c.traits)==null?void 0:f.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const FN=Symbol("zod_brand");class qs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Bv extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const uh={};function tn(e){return e&&Object.assign(uh,e),uh}function XX(e){return e}function QX(e){return e}function JX(e){}function eQ(e){throw new Error}function tQ(e){}function w1(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function ye(e,t="|"){return e.map(r=>Be(r)).join(t)}function ch(e,t){return typeof t=="bigint"?t.toString():t}function fd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ml(e){return e==null}function Wv(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function BN(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c!=null&&c[1]&&(i=Number.parseInt(c[1]))}const o=r>i?r:i,a=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return a%u/10**o}const lI=Symbol("evaluating");function it(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==lI)return n===void 0&&(n=lI,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function rQ(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ja(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ta(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function nQ(e){return ta(e._zod.def)}function iQ(e,t){return t?t.reduce((r,n)=>r==null?void 0:r[n],e):e}function oQ(e){const t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{const i={};for(let o=0;o<t.length;o++)i[t[o]]=n[o];return i})}function aQ(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function ox(e){return JSON.stringify(e)}function WN(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const x1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _u(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const KN=fd(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function tl(e){if(_u(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(_u(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Kv(e){return tl(e)?{...e}:Array.isArray(e)?[...e]:e}function sQ(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const lQ=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},fh=new Set(["string","number","symbol"]),HN=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ho(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function di(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function ce(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function uQ(e){let t;return new Proxy({},{get(r,n,i){return t??(t=e()),Reflect.get(t,n,i)},set(r,n,i,o){return t??(t=e()),Reflect.set(t,n,i,o)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,i){return t??(t=e()),Reflect.defineProperty(t,n,i)}})}function Be(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ZN(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const qN={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},VN={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function GN(e,t){const r=e._zod.def,n=ta(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=r.shape[o])}return Ja(this,"shape",i),i},checks:[]});return di(e,n)}function YN(e,t){const r=e._zod.def,n=ta(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return Ja(this,"shape",i),i},checks:[]});return di(e,n)}function XN(e,t){if(!tl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=ta(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Ja(this,"shape",o),o},checks:[]});return di(e,i)}function QN(e,t){if(!tl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Ja(this,"shape",n),n},checks:e._zod.def.checks};return di(e,r)}function JN(e,t){const r=ta(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Ja(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return di(e,r)}function eM(e,t,r){const n=ta(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(r)for(const a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(const a in i)o[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return Ja(this,"shape",o),o},checks:[]});return di(t,n)}function tM(e,t,r){const n=ta(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(r)for(const a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(const a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return Ja(this,"shape",o),o},checks:[]});return di(t,n)}function js(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Ei(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function lf(e){return typeof e=="string"?e:e==null?void 0:e.message}function zi(e,t,r){var i,o,a,u,c,f;const n={...e,path:e.path??[]};if(!e.message){const d=lf((a=(o=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??lf((u=t==null?void 0:t.error)==null?void 0:u.call(t,e))??lf((c=r.customError)==null?void 0:c.call(r,e))??lf((f=r.localeError)==null?void 0:f.call(r,e))??"Invalid input";n.message=d}return delete n.inst,delete n.continue,t!=null&&t.reportInput||delete n.input,n}function Hv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Zv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Pu(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function cQ(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rM(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function nM(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function fQ(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return rM(t+r)}function dQ(e){return nM(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function pQ(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function mQ(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class hQ{constructor(...t){}}const iM=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:VN,Class:hQ,NUMBER_FORMAT_RANGES:qN,aborted:js,allowsEval:KN,assert:tQ,assertEqual:XX,assertIs:JX,assertNever:eQ,assertNotEqual:QX,assignProp:Ja,base64ToUint8Array:rM,base64urlToUint8Array:fQ,cached:fd,captureStackTrace:x1,cleanEnum:cQ,cleanRegex:Wv,clone:di,cloneDef:nQ,createTransparentProxy:uQ,defineLazy:it,esc:ox,escapeRegex:Ho,extend:XN,finalizeIssue:zi,floatSafeRemainder:BN,getElementAtPath:iQ,getEnumValues:w1,getLengthableOrigin:Zv,getParsedType:lQ,getSizableOrigin:Hv,hexToUint8Array:pQ,isObject:_u,isPlainObject:tl,issue:Pu,joinValues:ye,jsonStringifyReplacer:ch,merge:JN,mergeDefs:ta,normalizeParams:ce,nullish:ml,numKeys:sQ,objectClone:rQ,omit:YN,optionalKeys:ZN,partial:eM,pick:GN,prefixIssues:Ei,primitiveTypes:HN,promiseAllObject:oQ,propertyKeyTypes:fh,randomString:aQ,required:tM,safeExtend:QN,shallowClone:Kv,slugify:WN,stringifyPrimitive:Be,uint8ArrayToBase64:nM,uint8ArrayToBase64url:dQ,uint8ArrayToHex:mQ,unwrapMessage:lf},Symbol.toStringTag,{value:"Module"})),oM=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ch,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},S1=X("$ZodError",oM),Un=X("$ZodError",oM,{Parent:Error});function k1(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function $1(e,t=r=>r.message){const r={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>n({issues:a}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let a=r,u=0;for(;u<o.path.length;){const c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return n(e),r}function aM(e,t=r=>r.message){const r={errors:[]},n=(i,o=[])=>{var a,u;for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(f=>n({issues:f},c.path));else if(c.code==="invalid_key")n({issues:c.issues},c.path);else if(c.code==="invalid_element")n({issues:c.issues},c.path);else{const f=[...o,...c.path];if(f.length===0){r.errors.push(t(c));continue}let d=r,m=0;for(;m<f.length;){const h=f[m],g=m===f.length-1;typeof h=="string"?(d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h]):(d.items??(d.items=[]),(u=d.items)[h]??(u[h]={errors:[]}),d=d.items[h]),g&&d.errors.push(t(c)),m++}}};return n(e),r}function sM(e){const t=[],r=e.map(n=>typeof n=="object"?n.key:n);for(const n of r)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function lM(e){var n;const t=[],r=[...e.issues].sort((i,o)=>(i.path??[]).length-(o.path??[]).length);for(const i of r)t.push(`✖ ${i.message}`),(n=i.path)!=null&&n.length&&t.push(` → at ${sM(i.path)}`);return t.join(`
|
|
205
|
-
`)}const dd=e=>(t,r,n,i)=>{const o=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new qs;if(a.issues.length){const u=new((i==null?void 0:i.Err)??e)(a.issues.map(c=>zi(c,o,tn())));throw x1(u,i==null?void 0:i.callee),u}return a.value},ax=dd(Un),pd=e=>async(t,r,n,i)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const u=new((i==null?void 0:i.Err)??e)(a.issues.map(c=>zi(c,o,tn())));throw x1(u,i==null?void 0:i.callee),u}return a.value},sx=pd(Un),md=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new qs;return o.issues.length?{success:!1,error:new(e??S1)(o.issues.map(a=>zi(a,i,tn())))}:{success:!0,data:o.value}},uM=md(Un),hd=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>zi(a,i,tn())))}:{success:!0,data:o.value}},cM=hd(Un),_1=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return dd(e)(t,r,i)},vQ=_1(Un),P1=e=>(t,r,n)=>dd(e)(t,r,n),gQ=P1(Un),O1=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return pd(e)(t,r,i)},yQ=O1(Un),C1=e=>async(t,r,n)=>pd(e)(t,r,n),bQ=C1(Un),E1=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return md(e)(t,r,i)},wQ=E1(Un),I1=e=>(t,r,n)=>md(e)(t,r,n),xQ=I1(Un),T1=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return hd(e)(t,r,i)},SQ=T1(Un),j1=e=>async(t,r,n)=>hd(e)(t,r,n),kQ=j1(Un),fM=/^[cC][^\s-]{8,}$/,dM=/^[0-9a-z]+$/,pM=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mM=/^[0-9a-vA-V]{20}$/,hM=/^[A-Za-z0-9]{27}$/,vM=/^[a-zA-Z0-9_-]{21}$/,gM=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$Q=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,yM=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ou=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_Q=Ou(4),PQ=Ou(6),OQ=Ou(7),bM=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,CQ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,EQ=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wM=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,IQ=wM,TQ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xM(){return new RegExp(jQ,"u")}const SM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$M=e=>{const t=Ho(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},_M=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,PM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,OM=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,A1=/^[A-Za-z0-9_-]*$/,CM=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,EM=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,IM=/^\+(?:[0-9]){6,14}[0-9]$/,TM="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jM=new RegExp(`^${TM}$`);function AM(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function RM(e){return new RegExp(`^${AM(e)}$`)}function NM(e){const t=AM({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${TM}T(?:${n})$`)}const MM=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},DM=/^-?\d+n?$/,zM=/^-?\d+$/,LM=/^-?\d+(?:\.\d+)?/,UM=/^(?:true|false)$/i,FM=/^null$/i,BM=/^undefined$/i,WM=/^[^A-Z]*$/,KM=/^[^a-z]*$/,HM=/^[0-9a-fA-F]*$/;function vd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function gd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const AQ=/^[0-9a-fA-F]{32}$/,RQ=vd(22,"=="),NQ=gd(22),MQ=/^[0-9a-fA-F]{40}$/,DQ=vd(27,"="),zQ=gd(27),LQ=/^[0-9a-fA-F]{64}$/,UQ=vd(43,"="),FQ=gd(43),BQ=/^[0-9a-fA-F]{96}$/,WQ=vd(64,""),KQ=gd(64),HQ=/^[0-9a-fA-F]{128}$/,ZQ=vd(86,"=="),qQ=gd(86),R1=Object.freeze(Object.defineProperty({__proto__:null,base64:OM,base64url:A1,bigint:DM,boolean:UM,browserEmail:TQ,cidrv4:_M,cidrv6:PM,cuid:fM,cuid2:dM,date:jM,datetime:NM,domain:EM,duration:gM,e164:IM,email:bM,emoji:xM,extendedDuration:$Q,guid:yM,hex:HM,hostname:CM,html5Email:CQ,idnEmail:IQ,integer:zM,ipv4:SM,ipv6:kM,ksuid:hM,lowercase:WM,mac:$M,md5_base64:RQ,md5_base64url:NQ,md5_hex:AQ,nanoid:vM,null:FM,number:LM,rfc5322Email:EQ,sha1_base64:DQ,sha1_base64url:zQ,sha1_hex:MQ,sha256_base64:UQ,sha256_base64url:FQ,sha256_hex:LQ,sha384_base64:WQ,sha384_base64url:KQ,sha384_hex:BQ,sha512_base64:ZQ,sha512_base64url:qQ,sha512_hex:HQ,string:MM,time:RM,ulid:pM,undefined:BM,unicodeEmail:wM,uppercase:KM,uuid:Ou,uuid4:_Q,uuid6:PQ,uuid7:OQ,xid:mM},Symbol.toStringTag,{value:"Module"})),Kt=X("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),ZM={number:"number",bigint:"bigint",object:"date"},N1=X("$ZodCheckLessThan",(e,t)=>{Kt.init(e,t);const r=ZM[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),M1=X("$ZodCheckGreaterThan",(e,t)=>{Kt.init(e,t);const r=ZM[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qM=X("$ZodCheckMultipleOf",(e,t)=>{Kt.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):BN(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),VM=X("$ZodCheckNumberFormat",(e,t)=>{var a;Kt.init(e,t),t.format=t.format||"float64";const r=(a=t.format)==null?void 0:a.includes("int"),n=r?"int":"number",[i,o]=qN[t.format];e._zod.onattach.push(u=>{const c=u._zod.bag;c.format=t.format,c.minimum=i,c.maximum=o,r&&(c.pattern=zM)}),e._zod.check=u=>{const c=u.value;if(r){if(!Number.isInteger(c)){u.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?u.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):u.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}c<i&&u.issues.push({origin:"number",input:c,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),c>o&&u.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inst:e})}}),GM=X("$ZodCheckBigIntFormat",(e,t)=>{Kt.init(e,t);const[r,n]=VN[t.format];e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,o.minimum=r,o.maximum=n}),e._zod.check=i=>{const o=i.value;o<r&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>n&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inst:e})}}),YM=X("$ZodCheckMaxSize",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;i.size<=t.maximum||n.issues.push({origin:Hv(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),XM=X("$ZodCheckMinSize",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;i.size>=t.minimum||n.issues.push({origin:Hv(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),QM=X("$ZodCheckSizeEquals",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{const i=n.value,o=i.size;if(o===t.size)return;const a=o>t.size;n.issues.push({origin:Hv(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),JM=X("$ZodCheckMaxLength",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const a=Zv(i);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),eD=X("$ZodCheckMinLength",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const a=Zv(i);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),tD=X("$ZodCheckLengthEquals",(e,t)=>{var r;Kt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!ml(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,o=i.length;if(o===t.length)return;const a=Zv(i),u=o>t.length;n.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),yd=X("$ZodCheckStringFormat",(e,t)=>{var r,n;Kt.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),rD=X("$ZodCheckRegex",(e,t)=>{yd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nD=X("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=WM),yd.init(e,t)}),iD=X("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=KM),yd.init(e,t)}),oD=X("$ZodCheckIncludes",(e,t)=>{Kt.init(e,t);const r=Ho(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),aD=X("$ZodCheckStartsWith",(e,t)=>{Kt.init(e,t);const r=new RegExp(`^${Ho(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),sD=X("$ZodCheckEndsWith",(e,t)=>{Kt.init(e,t);const r=new RegExp(`.*${Ho(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function uI(e,t,r){e.issues.length&&t.issues.push(...Ei(r,e.issues))}const lD=X("$ZodCheckProperty",(e,t)=>{Kt.init(e,t),e._zod.check=r=>{const n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(i=>uI(i,r,t.property));uI(n,r,t.property)}}),uD=X("$ZodCheckMimeType",(e,t)=>{Kt.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),cD=X("$ZodCheckOverwrite",(e,t)=>{Kt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class fD{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
206
|
-
`).filter(a=>a),i=Math.min(...n.map(a=>a.length-a.trimStart().length)),o=n.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,r=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...r,i.join(`
|
|
207
|
-
`))}}const dD={major:4,minor:1,patch:13},Ke=X("$ZodType",(e,t)=>{var i;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=dD;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,c,f)=>{let d=js(u),m;for(const h of c){if(h._zod.def.when){if(!h._zod.def.when(u))continue}else if(d)continue;const g=u.issues.length,y=h._zod.check(u);if(y instanceof Promise&&(f==null?void 0:f.async)===!1)throw new qs;if(m||y instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await y,u.issues.length!==g&&(d||(d=js(u,g)))});else{if(u.issues.length===g)continue;d||(d=js(u,g))}}return m?m.then(()=>u):u},a=(u,c,f)=>{if(js(u))return u.aborted=!0,u;const d=o(c,n,f);if(d instanceof Promise){if(f.async===!1)throw new qs;return d.then(m=>e._zod.parse(m,f))}return e._zod.parse(d,f)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const d=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(m=>a(m,u,c)):a(d,u,c)}const f=e._zod.parse(u,c);if(f instanceof Promise){if(c.async===!1)throw new qs;return f.then(d=>o(d,n,c))}return o(f,n,c)}}e["~standard"]={validate:o=>{var a;try{const u=uM(e,o);return u.success?{value:u.data}:{issues:(a=u.error)==null?void 0:a.issues}}catch{return cM(e,o).then(c=>{var f;return c.success?{value:c.data}:{issues:(f=c.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}}),bd=X("$ZodString",(e,t)=>{var r;Ke.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??MM(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),It=X("$ZodStringFormat",(e,t)=>{yd.init(e,t),bd.init(e,t)}),pD=X("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=yM),It.init(e,t)}),mD=X("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ou(n))}else t.pattern??(t.pattern=Ou());It.init(e,t)}),hD=X("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=bM),It.init(e,t)}),vD=X("$ZodURL",(e,t)=>{It.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gD=X("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xM()),It.init(e,t)}),yD=X("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=vM),It.init(e,t)}),bD=X("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=fM),It.init(e,t)}),wD=X("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=dM),It.init(e,t)}),xD=X("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pM),It.init(e,t)}),SD=X("$ZodXID",(e,t)=>{t.pattern??(t.pattern=mM),It.init(e,t)}),kD=X("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=hM),It.init(e,t)}),$D=X("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=NM(t)),It.init(e,t)}),_D=X("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=jM),It.init(e,t)}),PD=X("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RM(t)),It.init(e,t)}),OD=X("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gM),It.init(e,t)}),CD=X("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=SM),It.init(e,t),e._zod.bag.format="ipv4"}),ED=X("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kM),It.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),ID=X("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=$M(t.delimiter)),It.init(e,t),e._zod.bag.format="mac"}),TD=X("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=_M),It.init(e,t)}),jD=X("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=PM),It.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[i,o]=n;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function D1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const AD=X("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=OM),It.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{D1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function RD(e){if(!A1.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return D1(r)}const ND=X("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=A1),It.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{RD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),MD=X("$ZodE164",(e,t)=>{t.pattern??(t.pattern=IM),It.init(e,t)});function DD(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const i=JSON.parse(atob(n));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const zD=X("$ZodJWT",(e,t)=>{It.init(e,t),e._zod.check=r=>{DD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),LD=X("$ZodCustomStringFormat",(e,t)=>{It.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),z1=X("$ZodNumber",(e,t)=>{Ke.init(e,t),e._zod.pattern=e._zod.bag.pattern??LM,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),UD=X("$ZodNumberFormat",(e,t)=>{VM.init(e,t),z1.init(e,t)}),L1=X("$ZodBoolean",(e,t)=>{Ke.init(e,t),e._zod.pattern=UM,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),U1=X("$ZodBigInt",(e,t)=>{Ke.init(e,t),e._zod.pattern=DM,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),FD=X("$ZodBigIntFormat",(e,t)=>{GM.init(e,t),U1.init(e,t)}),BD=X("$ZodSymbol",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),WD=X("$ZodUndefined",(e,t)=>{Ke.init(e,t),e._zod.pattern=BM,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{const i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),KD=X("$ZodNull",(e,t)=>{Ke.init(e,t),e._zod.pattern=FM,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{const i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),HD=X("$ZodAny",(e,t)=>{Ke.init(e,t),e._zod.parse=r=>r}),ZD=X("$ZodUnknown",(e,t)=>{Ke.init(e,t),e._zod.parse=r=>r}),qD=X("$ZodNever",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),VD=X("$ZodVoid",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),GD=X("$ZodDate",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const i=r.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),r}});function cI(e,t,r){e.issues.length&&t.issues.push(...Ei(r,e.issues)),t.value[r]=e.value}const YD=X("$ZodArray",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);const o=[];for(let a=0;a<i.length;a++){const u=i[a],c=t.element._zod.run({value:u,issues:[]},n);c instanceof Promise?o.push(c.then(f=>cI(f,r,a))):cI(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function dh(e,t,r,n){e.issues.length&&t.issues.push(...Ei(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function XD(e){var n,i,o,a;const t=Object.keys(e.shape);for(const u of t)if(!((a=(o=(i=(n=e.shape)==null?void 0:n[u])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${u}": expected a Zod schema`);const r=ZN(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function QD(e,t,r,n,i,o){const a=[],u=i.keySet,c=i.catchall._zod,f=c.def.type;for(const d in t){if(u.has(d))continue;if(f==="never"){a.push(d);continue}const m=c.run({value:t[d],issues:[]},n);m instanceof Promise?e.push(m.then(h=>dh(h,r,d,t))):dh(m,r,d,t)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}const JD=X("$ZodObject",(e,t)=>{Ke.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...u};return Object.defineProperty(t,"shape",{value:c}),c}})}const n=fd(()=>XD(t));it(e._zod,"propValues",()=>{const u=t.shape,c={};for(const f in u){const d=u[f]._zod;if(d.values){c[f]??(c[f]=new Set);for(const m of d.values)c[f].add(m)}}return c});const i=_u,o=t.catchall;let a;e._zod.parse=(u,c)=>{a??(a=n.value);const f=u.value;if(!i(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),u;u.value={};const d=[],m=a.shape;for(const h of a.keys){const y=m[h]._zod.run({value:f[h],issues:[]},c);y instanceof Promise?d.push(y.then(x=>dh(x,u,h,f))):dh(y,u,h,f)}return o?QD(d,f,u,c,n.value,e):d.length?Promise.all(d).then(()=>u):u}}),ez=X("$ZodObjectJIT",(e,t)=>{JD.init(e,t);const r=e._zod.parse,n=fd(()=>XD(t)),i=h=>{const g=new fD(["shape","payload","ctx"]),y=n.value,x=$=>{const P=ox($);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};g.write("const input = payload.value;");const w=Object.create(null);let k=0;for(const $ of y.keys)w[$]=`key_${k++}`;g.write("const newResult = {};");for(const $ of y.keys){const P=w[$],O=ox($);g.write(`const ${P} = ${x($)};`),g.write(`
|
|
208
|
-
if (${P}.issues.length) {
|
|
209
|
-
payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
210
|
-
...iss,
|
|
211
|
-
path: iss.path ? [${O}, ...iss.path] : [${O}]
|
|
212
|
-
})));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
if (${P}.value === undefined) {
|
|
217
|
-
if (${O} in input) {
|
|
218
|
-
newResult[${O}] = undefined;
|
|
219
|
-
}
|
|
220
|
-
} else {
|
|
221
|
-
newResult[${O}] = ${P}.value;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
`)}g.write("payload.value = newResult;"),g.write("return payload;");const C=g.compile();return($,P)=>C(h,$,P)};let o;const a=_u,u=!uh.jitless,f=u&&KN.value,d=t.catchall;let m;e._zod.parse=(h,g)=>{m??(m=n.value);const y=h.value;return a(y)?u&&f&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(o||(o=i(t.shape)),h=o(h,g),d?QD([],y,h,g,m,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),h)}});function fI(e,t,r,n){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!js(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>zi(a,n,tn())))}),t)}const F1=X("$ZodUnion",(e,t)=>{Ke.init(e,t),it(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),it(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Wv(o.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return n(i,o);let a=!1;const u=[];for(const c of t.options){const f=c._zod.run({value:i.value,issues:[]},o);if(f instanceof Promise)u.push(f),a=!0;else{if(f.issues.length===0)return f;u.push(f)}}return a?Promise.all(u).then(c=>fI(c,i,e,o)):fI(u,i,e,o)}}),tz=X("$ZodDiscriminatedUnion",(e,t)=>{F1.init(e,t);const r=e._zod.parse;it(e._zod,"propValues",()=>{const i={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[u,c]of Object.entries(a)){i[u]||(i[u]=new Set);for(const f of c)i[u].add(f)}}return i});const n=fd(()=>{var a;const i=t.options,o=new Map;for(const u of i){const c=(a=u._zod.propValues)==null?void 0:a[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(const f of c){if(o.has(f))throw new Error(`Duplicate discriminator value "${String(f)}"`);o.set(f,u)}}return o});e._zod.parse=(i,o)=>{const a=i.value;if(!_u(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const u=n.value.get(a==null?void 0:a[t.discriminator]);return u?u._zod.run(i,o):t.unionFallback?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}}),rz=X("$ZodIntersection",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,o=t.left._zod.run({value:i,issues:[]},n),a=t.right._zod.run({value:i,issues:[]},n);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,f])=>dI(r,c,f)):dI(r,o,a)}});function lx(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(tl(e)&&tl(t)){const r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),i={...e,...t};for(const o of n){const a=lx(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const i=e[n],o=t[n],a=lx(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function dI(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),js(e))return e;const n=lx(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const B1=X("$ZodTuple",(e,t)=>{Ke.init(e,t);const r=t.items;e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];const a=[],u=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),c=u===-1?0:r.length-u;if(!t.rest){const d=o.length>r.length,m=o.length<c-1;if(d||m)return n.issues.push({...d?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),n}let f=-1;for(const d of r){if(f++,f>=o.length&&f>=c)continue;const m=d._zod.run({value:o[f],issues:[]},i);m instanceof Promise?a.push(m.then(h=>mm(h,n,f))):mm(m,n,f)}if(t.rest){const d=o.slice(r.length);for(const m of d){f++;const h=t.rest._zod.run({value:m,issues:[]},i);h instanceof Promise?a.push(h.then(g=>mm(g,n,f))):mm(h,n,f)}}return a.length?Promise.all(a).then(()=>n):n}});function mm(e,t,r){e.issues.length&&t.issues.push(...Ei(r,e.issues)),t.value[r]=e.value}const nz=X("$ZodRecord",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!tl(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;const o=[],a=t.keyType._zod.values;if(a){r.value={};const u=new Set;for(const f of a)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){u.add(typeof f=="number"?f.toString():f);const d=t.valueType._zod.run({value:i[f],issues:[]},n);d instanceof Promise?o.push(d.then(m=>{m.issues.length&&r.issues.push(...Ei(f,m.issues)),r.value[f]=m.value})):(d.issues.length&&r.issues.push(...Ei(f,d.issues)),r.value[f]=d.value)}let c;for(const f in i)u.has(f)||(c=c??[],c.push(f));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c})}else{r.value={};for(const u of Reflect.ownKeys(i)){if(u==="__proto__")continue;const c=t.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>zi(d,n,tn())),input:u,path:[u],inst:e}),r.value[c.value]=c.value;continue}const f=t.valueType._zod.run({value:i[u],issues:[]},n);f instanceof Promise?o.push(f.then(d=>{d.issues.length&&r.issues.push(...Ei(u,d.issues)),r.value[c.value]=d.value})):(f.issues.length&&r.issues.push(...Ei(u,f.issues)),r.value[c.value]=f.value)}}return o.length?Promise.all(o).then(()=>r):r}}),iz=X("$ZodMap",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;const o=[];r.value=new Map;for(const[a,u]of i){const c=t.keyType._zod.run({value:a,issues:[]},n),f=t.valueType._zod.run({value:u,issues:[]},n);c instanceof Promise||f instanceof Promise?o.push(Promise.all([c,f]).then(([d,m])=>{pI(d,m,r,a,i,e,n)})):pI(c,f,r,a,i,e,n)}return o.length?Promise.all(o).then(()=>r):r}});function pI(e,t,r,n,i,o,a){e.issues.length&&(fh.has(typeof n)?r.issues.push(...Ei(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(u=>zi(u,a,tn()))})),t.issues.length&&(fh.has(typeof n)?r.issues.push(...Ei(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:n,issues:t.issues.map(u=>zi(u,a,tn()))})),r.value.set(e.value,t.value)}const oz=X("$ZodSet",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const a of i){const u=t.valueType._zod.run({value:a,issues:[]},n);u instanceof Promise?o.push(u.then(c=>mI(c,r))):mI(u,r)}return o.length?Promise.all(o).then(()=>r):r}});function mI(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const az=X("$ZodEnum",(e,t)=>{Ke.init(e,t);const r=w1(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>fh.has(typeof i)).map(i=>typeof i=="string"?Ho(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const a=i.value;return n.has(a)||i.issues.push({code:"invalid_value",values:r,input:a,inst:e}),i}}),sz=X("$ZodLiteral",(e,t)=>{if(Ke.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ho(n):n?Ho(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{const o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),lz=X("$ZodFile",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),uz=X("$ZodTransform",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Bv(e.constructor.name);const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new qs;return r.value=i,r}});function hI(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const cz=X("$ZodOptional",(e,t)=>{Ke.init(e,t),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Wv(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>hI(o,r.value)):hI(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),fz=X("$ZodNullable",(e,t)=>{Ke.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Wv(r.source)}|null)$`):void 0}),it(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),dz=X("$ZodDefault",(e,t)=>{Ke.init(e,t),e._zod.optin="optional",it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>vI(o,t)):vI(i,t)}});function vI(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const pz=X("$ZodPrefault",(e,t)=>{Ke.init(e,t),e._zod.optin="optional",it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),mz=X("$ZodNonOptional",(e,t)=>{Ke.init(e,t),it(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>gI(o,e)):gI(i,e)}});function gI(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const hz=X("$ZodSuccess",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Bv("ZodSuccess");const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>(r.value=o.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),vz=X("$ZodCatch",(e,t)=>{Ke.init(e,t),it(e._zod,"optin",()=>t.innerType._zod.optin),it(e._zod,"optout",()=>t.innerType._zod.optout),it(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>zi(a,n,tn()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(o=>zi(o,n,tn()))},input:r.value}),r.issues=[]),r)}}),gz=X("$ZodNaN",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),yz=X("$ZodPipe",(e,t)=>{Ke.init(e,t),it(e._zod,"values",()=>t.in._zod.values),it(e._zod,"optin",()=>t.in._zod.optin),it(e._zod,"optout",()=>t.out._zod.optout),it(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const o=t.out._zod.run(r,n);return o instanceof Promise?o.then(a=>hm(a,t.in,n)):hm(o,t.in,n)}const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(o=>hm(o,t.out,n)):hm(i,t.out,n)}});function hm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const W1=X("$ZodCodec",(e,t)=>{Ke.init(e,t),it(e._zod,"values",()=>t.in._zod.values),it(e._zod,"optin",()=>t.in._zod.optin),it(e._zod,"optout",()=>t.out._zod.optout),it(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>vm(a,t,n)):vm(o,t,n)}else{const o=t.out._zod.run(r,n);return o instanceof Promise?o.then(a=>vm(a,t,n)):vm(o,t,n)}}});function vm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const i=t.transform(e.value,e);return i instanceof Promise?i.then(o=>gm(e,o,t.out,r)):gm(e,i,t.out,r)}else{const i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(o=>gm(e,o,t.in,r)):gm(e,i,t.in,r)}}function gm(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}const bz=X("$ZodReadonly",(e,t)=>{Ke.init(e,t),it(e._zod,"propValues",()=>t.innerType._zod.propValues),it(e._zod,"values",()=>t.innerType._zod.values),it(e._zod,"optin",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optin}),it(e._zod,"optout",()=>{var r,n;return(n=(r=t.innerType)==null?void 0:r._zod)==null?void 0:n.optout}),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(yI):yI(i)}});function yI(e){return e.value=Object.freeze(e.value),e}const wz=X("$ZodTemplateLiteral",(e,t)=>{Ke.init(e,t);const r=[];for(const n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);const i=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${n._zod.traits}`);const o=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(o,a))}else if(n===null||HN.has(typeof n))r.push(Ho(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,i)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),xz=X("$ZodFunction",(e,t)=>(Ke.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){const i=e._def.input?ax(e._def.input,n):n,o=Reflect.apply(r,this,i);return e._def.output?ax(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){const i=e._def.input?await sx(e._def.input,n):n,o=await Reflect.apply(r,this,i);return e._def.output?await sx(e._def.output,o):o}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new B1({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),Sz=X("$ZodPromise",(e,t)=>{Ke.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(i=>t.innerType._zod.run({value:i,issues:[]},n))}),kz=X("$ZodLazy",(e,t)=>{Ke.init(e,t),it(e._zod,"innerType",()=>t.getter()),it(e._zod,"pattern",()=>{var r,n;return(n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.pattern}),it(e._zod,"propValues",()=>{var r,n;return(n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.propValues}),it(e._zod,"optin",()=>{var r,n;return((n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.optin)??void 0}),it(e._zod,"optout",()=>{var r,n;return((n=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:n.optout)??void 0}),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),$z=X("$ZodCustom",(e,t)=>{Kt.init(e,t),Ke.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(o=>bI(o,r,n,e));bI(i,r,n,e)}});function bI(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(Pu(i))}}const VQ=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return i=>{switch(i.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${i.expected}، ولكن تم إدخال ${r(i.input)}`;case"invalid_value":return i.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Be(i.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?` أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${o} ${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${o} ${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${i.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${n[o.format]??i.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${i.divisor}`;case"unrecognized_keys":return`معرف${i.keys.length>1?"ات":""} غريب${i.keys.length>1?"ة":""}: ${ye(i.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${i.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${i.origin}`;default:return"مدخل غير مقبول"}}};function GQ(){return{localeError:VQ()}}const YQ=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${i.expected}, daxil olan ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Yanlış dəyər: gözlənilən ${Be(i.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[o.format]??i.format}`}case"not_multiple_of":return`Yanlış ədəd: ${i.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${i.keys.length>1?"lar":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${i.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function XQ(){return{localeError:YQ()}}function wI(e,t,r,n){const i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?n:o===1?t:o>=2&&o<=4?r:n}const QQ=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"лік";case"object":{if(Array.isArray(i))return"масіў";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return i=>{switch(i.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${i.expected}, атрымана ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Няправільны ўвод: чакалася ${Be(i.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);if(a){const u=Number(i.maximum),c=wI(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна ${a.verb} ${o}${i.maximum.toString()} ${c}`}return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна быць ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);if(a){const u=Number(i.minimum),c=wI(u,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${i.origin} павінна ${a.verb} ${o}${i.minimum.toString()} ${c}`}return`Занадта малы: чакалася, што ${i.origin} павінна быць ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${n[o.format]??i.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${i.keys.length>1?"ключы":"ключ"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${i.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${i.origin}`;default:return"Няправільны ўвод"}}};function JQ(){return{localeError:QQ()}}const eJ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},tJ=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(n){return e[n]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"};return n=>{switch(n.code){case"invalid_type":return`Невалиден вход: очакван ${n.expected}, получен ${eJ(n.input)}`;case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${Be(n.values[0])}`:`Невалидна опция: очаквано едно от ${ye(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${i}${n.maximum.toString()} ${o.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`Твърде малко: очаква се ${n.origin} да съдържа ${i}${n.minimum.toString()} ${o.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;if(i.format==="starts_with")return`Невалиден низ: трябва да започва с "${i.prefix}"`;if(i.format==="ends_with")return`Невалиден низ: трябва да завършва с "${i.suffix}"`;if(i.format==="includes")return`Невалиден низ: трябва да включва "${i.includes}"`;if(i.format==="regex")return`Невалиден низ: трябва да съвпада с ${i.pattern}`;let o="Невалиден";return i.format==="emoji"&&(o="Невалидно"),i.format==="datetime"&&(o="Невалидно"),i.format==="date"&&(o="Невалидна"),i.format==="time"&&(o="Невалидно"),i.format==="duration"&&(o="Невалидна"),`${o} ${r[i.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${ye(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function rJ(){return{localeError:tJ()}}const nJ=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipus invàlid: s'esperava ${i.expected}, s'ha rebut ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Valor invàlid: s'esperava ${Be(i.values[0])}`:`Opció invàlida: s'esperava una de ${ye(i.values," o ")}`;case"too_big":{const o=i.inclusive?"com a màxim":"menys de",a=t(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingués ${o} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?"com a mínim":"més de",a=t(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingués ${o} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${n[o.format]??i.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${i.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${i.origin}`;default:return"Entrada invàlida"}}};function iJ(){return{localeError:nJ()}}const oJ=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return i=>{switch(i.code){case"invalid_type":return`Neplatný vstup: očekáváno ${i.expected}, obdrženo ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatný vstup: očekáváno ${Be(i.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Hodnota je příliš velká: ${i.origin??"hodnota"} musí mít ${o}${i.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${i.origin??"hodnota"} musí být ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Hodnota je příliš malá: ${i.origin??"hodnota"} musí mít ${o}${i.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${i.origin??"hodnota"} musí být ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${n[o.format]??i.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${i.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ye(i.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${i.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${i.origin}`;default:return"Neplatný vstup"}}};function aJ(){return{localeError:oJ()}}const sJ=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(a){return e[a]??null}function n(a){return t[a]??a}const i=a=>{const u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return u},o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Ugyldigt input: forventede ${n(a.expected)}, fik ${n(i(a.input))}`;case"invalid_value":return a.values.length===1?`Ugyldig værdi: forventede ${Be(a.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ye(a.values,"|")}`;case"too_big":{const u=a.inclusive?"<=":"<",c=r(a.origin),f=n(a.origin);return c?`For stor: forventede ${f??"value"} ${c.verb} ${u} ${a.maximum.toString()} ${c.unit??"elementer"}`:`For stor: forventede ${f??"value"} havde ${u} ${a.maximum.toString()}`}case"too_small":{const u=a.inclusive?">=":">",c=r(a.origin),f=n(a.origin);return c?`For lille: forventede ${f} ${c.verb} ${u} ${a.minimum.toString()} ${c.unit}`:`For lille: forventede ${f} havde ${u} ${a.minimum.toString()}`}case"invalid_format":{const u=a;return u.format==="starts_with"?`Ugyldig streng: skal starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: skal ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: skal indeholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: skal matche mønsteret ${u.pattern}`:`Ugyldig ${o[u.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ye(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${a.origin}`;default:return"Ugyldigt input"}}};function lJ(){return{localeError:sJ()}}const uJ=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return i=>{switch(i.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${i.expected}, erhalten ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ungültige Eingabe: erwartet ${Be(i.values[0])}`:`Ungültige Option: erwartet eine von ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${i.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${i.origin}`;default:return"Ungültige Eingabe"}}};function cJ(){return{localeError:uJ()}}const fJ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},dJ=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(n){return e[n]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${fJ(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Be(n.values[0])}`:`Invalid option: expected one of ${ye(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${ye(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function _z(){return{localeError:dJ()}}const pJ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},mJ=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return n=>{switch(n.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${n.expected}, riceviĝis ${pJ(n.input)}`;case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${Be(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ye(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`Tro malgranda: atendiĝis ke ${n.origin} havu ${i}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${ye(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function hJ(){return{localeError:mJ()}}const vJ=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(a){return e[a]??null}function n(a){return t[a]??a}const i=a=>{const u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"number";case"object":return Array.isArray(a)?"array":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype?a.constructor.name:"object"}return u},o={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Entrada inválida: se esperaba ${n(a.expected)}, recibido ${n(i(a.input))}`;case"invalid_value":return a.values.length===1?`Entrada inválida: se esperaba ${Be(a.values[0])}`:`Opción inválida: se esperaba una de ${ye(a.values,"|")}`;case"too_big":{const u=a.inclusive?"<=":"<",c=r(a.origin),f=n(a.origin);return c?`Demasiado grande: se esperaba que ${f??"valor"} tuviera ${u}${a.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: se esperaba que ${f??"valor"} fuera ${u}${a.maximum.toString()}`}case"too_small":{const u=a.inclusive?">=":">",c=r(a.origin),f=n(a.origin);return c?`Demasiado pequeño: se esperaba que ${f} tuviera ${u}${a.minimum.toString()} ${c.unit}`:`Demasiado pequeño: se esperaba que ${f} fuera ${u}${a.minimum.toString()}`}case"invalid_format":{const u=a;return u.format==="starts_with"?`Cadena inválida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inválida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inválida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${u.pattern}`:`Inválido ${o[u.format]??a.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${ye(a.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n(a.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n(a.origin)}`;default:return"Entrada inválida"}}};function gJ(){return{localeError:vJ()}}const yJ=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"عدد";case"object":{if(Array.isArray(i))return"آرایه";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return i=>{switch(i.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${i.expected} میبود، ${r(i.input)} دریافت شد`;case"invalid_value":return i.values.length===1?`ورودی نامعتبر: میبایست ${Be(i.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ye(i.values,"|")} میبود`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${i.origin??"مقدار"} باید ${o}${i.maximum.toString()} باشد`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${i.origin} باید ${o}${i.minimum.toString()} باشد`}case"invalid_format":{const o=i;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${n[o.format]??i.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${i.divisor} باشد`;case"unrecognized_keys":return`کلید${i.keys.length>1?"های":""} ناشناس: ${ye(i.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${i.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${i.origin}`;default:return"ورودی نامعتبر"}}};function bJ(){return{localeError:yJ()}}const wJ=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen syöte: täytyy olla ${Be(i.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ye(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function xJ(){return{localeError:wJ()}}const SJ=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return i=>{switch(i.code){case"invalid_type":return`Entrée invalide : ${i.expected} attendu, ${r(i.input)} reçu`;case"invalid_value":return i.values.length===1?`Entrée invalide : ${Be(i.values[0])} attendu`:`Option invalide : une valeur parmi ${ye(i.values,"|")} attendue`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${i.origin??"valeur"} doit être ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit être ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${ye(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function kJ(){return{localeError:SJ()}}const $J=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return i=>{switch(i.code){case"invalid_type":return`Entrée invalide : attendu ${i.expected}, reçu ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Entrée invalide : attendu ${Be(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"≤":"<",a=t(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?"≥":">",a=t(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${ye(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function _J(){return{localeError:$J()}}const PJ=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=f=>f?e[f]:void 0,n=f=>{const d=r(f);return d?d.label:f??e.unknown.label},i=f=>`ה${n(f)}`,o=f=>{const d=r(f);return((d==null?void 0:d.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},a=f=>f?t[f]??null:null,u=f=>{const d=typeof f;switch(d){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"object";default:return d}},c={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}};return f=>{var d;switch(f.code){case"invalid_type":{const m=f.expected,h=n(m),g=u(f.input),y=((d=e[g])==null?void 0:d.label)??g;return`קלט לא תקין: צריך להיות ${h}, התקבל ${y}`}case"invalid_value":{if(f.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Be(f.values[0])}`;const m=f.values.map(y=>Be(y));if(f.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${m[0]} או ${m[1]}`;const h=m[m.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${m.slice(0,-1).join(", ")} או ${h}`}case"too_big":{const m=a(f.origin),h=i(f.origin??"value");if(f.origin==="string")return`${(m==null?void 0:m.longLabel)??"ארוך"} מדי: ${h} צריכה להכיל ${f.maximum.toString()} ${(m==null?void 0:m.unit)??""} ${f.inclusive?"או פחות":"לכל היותר"}`.trim();if(f.origin==="number"){const x=f.inclusive?`קטן או שווה ל-${f.maximum}`:`קטן מ-${f.maximum}`;return`גדול מדי: ${h} צריך להיות ${x}`}if(f.origin==="array"||f.origin==="set"){const x=f.origin==="set"?"צריכה":"צריך",w=f.inclusive?`${f.maximum} ${(m==null?void 0:m.unit)??""} או פחות`:`פחות מ-${f.maximum} ${(m==null?void 0:m.unit)??""}`;return`גדול מדי: ${h} ${x} להכיל ${w}`.trim()}const g=f.inclusive?"<=":"<",y=o(f.origin??"value");return m!=null&&m.unit?`${m.longLabel} מדי: ${h} ${y} ${g}${f.maximum.toString()} ${m.unit}`:`${(m==null?void 0:m.longLabel)??"גדול"} מדי: ${h} ${y} ${g}${f.maximum.toString()}`}case"too_small":{const m=a(f.origin),h=i(f.origin??"value");if(f.origin==="string")return`${(m==null?void 0:m.shortLabel)??"קצר"} מדי: ${h} צריכה להכיל ${f.minimum.toString()} ${(m==null?void 0:m.unit)??""} ${f.inclusive?"או יותר":"לפחות"}`.trim();if(f.origin==="number"){const x=f.inclusive?`גדול או שווה ל-${f.minimum}`:`גדול מ-${f.minimum}`;return`קטן מדי: ${h} צריך להיות ${x}`}if(f.origin==="array"||f.origin==="set"){const x=f.origin==="set"?"צריכה":"צריך";if(f.minimum===1&&f.inclusive){const k=(f.origin==="set","לפחות פריט אחד");return`קטן מדי: ${h} ${x} להכיל ${k}`}const w=f.inclusive?`${f.minimum} ${(m==null?void 0:m.unit)??""} או יותר`:`יותר מ-${f.minimum} ${(m==null?void 0:m.unit)??""}`;return`קטן מדי: ${h} ${x} להכיל ${w}`.trim()}const g=f.inclusive?">=":">",y=o(f.origin??"value");return m!=null&&m.unit?`${m.shortLabel} מדי: ${h} ${y} ${g}${f.minimum.toString()} ${m.unit}`:`${(m==null?void 0:m.shortLabel)??"קטן"} מדי: ${h} ${y} ${g}${f.minimum.toString()}`}case"invalid_format":{const m=f;if(m.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${m.prefix}"`;if(m.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${m.suffix}"`;if(m.format==="includes")return`המחרוזת חייבת לכלול "${m.includes}"`;if(m.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${m.pattern}`;const h=c[m.format],g=(h==null?void 0:h.label)??m.format,x=((h==null?void 0:h.gender)??"m")==="f"?"תקינה":"תקין";return`${g} לא ${x}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${f.divisor}`;case"unrecognized_keys":return`מפתח${f.keys.length>1?"ות":""} לא מזוה${f.keys.length>1?"ים":"ה"}: ${ye(f.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i(f.origin??"array")}`;default:return"קלט לא תקין"}}};function OJ(){return{localeError:PJ()}}const CJ=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"szám";case"object":{if(Array.isArray(i))return"tömb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return i=>{switch(i.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${i.expected}, a kapott érték ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Érvénytelen bemenet: a várt érték ${Be(i.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Túl nagy: ${i.origin??"érték"} mérete túl nagy ${o}${i.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${i.origin??"érték"} túl nagy: ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Túl kicsi: a bemeneti érték ${i.origin} mérete túl kicsi ${o}${i.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${i.origin} túl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[o.format]??i.format}`}case"not_multiple_of":return`Érvénytelen szám: ${i.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${i.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${i.origin}`;default:return"Érvénytelen bemenet"}}};function EJ(){return{localeError:CJ()}}const IJ=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${Be(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function TJ(){return{localeError:IJ()}}const jJ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},AJ=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(n){return e[n]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return n=>{switch(n.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${jJ(n.input)} þar sem á að vera ${n.expected}`;case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${Be(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ye(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${o.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${i}${n.minimum.toString()} ${o.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Ógildur strengur: verður að byrja á "${i.prefix}"`:i.format==="ends_with"?`Ógildur strengur: verður að enda á "${i.suffix}"`:i.format==="includes"?`Ógildur strengur: verður að innihalda "${i.includes}"`:i.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${ye(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function RJ(){return{localeError:AJ()}}const NJ=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${Be(i.values[0])}`:`Opzione non valida: atteso uno tra ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function MJ(){return{localeError:NJ()}}const DJ=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"数値";case"object":{if(Array.isArray(i))return"配列";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return i=>{switch(i.code){case"invalid_type":return`無効な入力: ${i.expected}が期待されましたが、${r(i.input)}が入力されました`;case"invalid_value":return i.values.length===1?`無効な入力: ${Be(i.values[0])}が期待されました`:`無効な選択: ${ye(i.values,"、")}のいずれかである必要があります`;case"too_big":{const o=i.inclusive?"以下である":"より小さい",a=t(i.origin);return a?`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${o}必要があります`}case"too_small":{const o=i.inclusive?"以上である":"より大きい",a=t(i.origin);return a?`小さすぎる値: ${i.origin}は${i.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${i.origin}は${i.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=i;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${n[o.format]??i.format}`}case"not_multiple_of":return`無効な数値: ${i.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${i.keys.length>1?"群":""}: ${ye(i.keys,"、")}`;case"invalid_key":return`${i.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${i.origin}内の無効な値`;default:return"無効な入力"}}};function zJ(){return{localeError:DJ()}}const LJ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},UJ=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(n){return e[n]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return n=>{switch(n.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${n.expected}, მიღებული ${LJ(n.input)}`;case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Be(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ye(n.values,"|")}-დან`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${o.verb} ${i}${n.maximum.toString()} ${o.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${o.verb} ${i}${n.minimum.toString()} ${o.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${i.prefix}"-ით`:i.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${i.suffix}"-ით`:i.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${i.includes}"-ს`:i.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}`:`არასწორი ${r[i.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${ye(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function FJ(){return{localeError:UJ()}}const BJ=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(i))return"អារេ (Array)";if(i===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return i=>{switch(i.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i.expected} ប៉ុន្តែទទួលបាន ${r(i.input)}`;case"invalid_value":return i.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Be(i.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${o} ${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[o.format]??i.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${i.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ye(i.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Pz(){return{localeError:BJ()}}function WJ(){return Pz()}const KJ=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return i=>{switch(i.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${i.expected}, 받은 타입은 ${r(i.input)}입니다`;case"invalid_value":return i.values.length===1?`잘못된 입력: 값은 ${Be(i.values[0])} 이어야 합니다`:`잘못된 옵션: ${ye(i.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=i.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",u=t(i.origin),c=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()}${c} ${o}${a}`:`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()} ${o}${a}`}case"too_small":{const o=i.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",u=t(i.origin),c=(u==null?void 0:u.unit)??"요소";return u?`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()}${c} ${o}${a}`:`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[o.format]??i.format}`}case"not_multiple_of":return`잘못된 숫자: ${i.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ye(i.keys,", ")}`;case"invalid_key":return`잘못된 키: ${i.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${i.origin}`;default:return"잘못된 입력"}}};function HJ(){return{localeError:KJ()}}const ZJ=e=>uf(typeof e,e),uf=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Vc=e=>e.charAt(0).toUpperCase()+e.slice(1);function xI(e){const t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}const qJ=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(n,i,o,a){const u=e[n]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[a][o?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return n=>{switch(n.code){case"invalid_type":return`Gautas tipas ${ZJ(n.input)}, o tikėtasi - ${uf(n.expected)}`;case"invalid_value":return n.values.length===1?`Privalo būti ${Be(n.values[0])}`:`Privalo būti vienas iš ${ye(n.values,"|")} pasirinkimų`;case"too_big":{const i=uf(n.origin),o=t(n.origin,xI(Number(n.maximum)),n.inclusive??!1,"smaller");if(o!=null&&o.verb)return`${Vc(i??n.origin??"reikšmė")} ${o.verb} ${n.maximum.toString()} ${o.unit??"elementų"}`;const a=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Vc(i??n.origin??"reikšmė")} turi būti ${a} ${n.maximum.toString()} ${o==null?void 0:o.unit}`}case"too_small":{const i=uf(n.origin),o=t(n.origin,xI(Number(n.minimum)),n.inclusive??!1,"bigger");if(o!=null&&o.verb)return`${Vc(i??n.origin??"reikšmė")} ${o.verb} ${n.minimum.toString()} ${o.unit??"elementų"}`;const a=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Vc(i??n.origin??"reikšmė")} turi būti ${a} ${n.minimum.toString()} ${o==null?void 0:o.unit}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Eilutė privalo prasidėti "${i.prefix}"`:i.format==="ends_with"?`Eilutė privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilutė privalo įtraukti "${i.includes}"`:i.format==="regex"?`Eilutė privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${ye(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const i=uf(n.origin);return`${Vc(i??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function VJ(){return{localeError:qJ()}}const GJ=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"број";case"object":{if(Array.isArray(i))return"низа";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return i=>{switch(i.code){case"invalid_type":return`Грешен внес: се очекува ${i.expected}, примено ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Be(i.values[0])}`:`Грешана опција: се очекува една ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Премногу голем: се очекува ${i.origin??"вредноста"} да има ${o}${i.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${i.origin??"вредноста"} да биде ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Премногу мал: се очекува ${i.origin} да има ${o}${i.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${i.origin} да биде ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${i.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${i.origin}`;default:return"Грешен внес"}}};function YJ(){return{localeError:GJ()}}const XJ=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${Be(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ye(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function QJ(){return{localeError:XJ()}}const JJ=()=>{const e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${Be(i.values[0])}`:`Ongeldige optie: verwacht één van ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Te groot: verwacht dat ${i.origin??"waarde"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elementen"}`:`Te groot: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Te klein: verwacht dat ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Te klein: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function eee(){return{localeError:JJ()}}const tee=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${Be(i.values[0])}`:`Ugyldig valg: forventet en av ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til å ha ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til å ha ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function ree(){return{localeError:tee()}}const nee=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return i=>{switch(i.code){case"invalid_type":return`Fâsit giren: umulan ${i.expected}, alınan ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Fâsit giren: umulan ${Be(i.values[0])}`:`Fâsit tercih: mûteberler ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmalıydı.`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${i.origin}, ${o}${i.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${n[o.format]??i.format}`}case"not_multiple_of":return`Fâsit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`${i.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function iee(){return{localeError:nee()}}const oee=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"عدد";case"object":{if(Array.isArray(i))return"ارې";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return i=>{switch(i.code){case"invalid_type":return`ناسم ورودي: باید ${i.expected} وای, مګر ${r(i.input)} ترلاسه شو`;case"invalid_value":return i.values.length===1?`ناسم ورودي: باید ${Be(i.values[0])} وای`:`ناسم انتخاب: باید یو له ${ye(i.values,"|")} څخه وای`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${i.origin??"ارزښت"} باید ${o}${i.maximum.toString()} وي`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${i.origin} باید ${o}${i.minimum.toString()} وي`}case"invalid_format":{const o=i;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${n[o.format]??i.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${i.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${i.keys.length>1?"کلیډونه":"کلیډ"}: ${ye(i.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${i.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${i.origin} کې`;default:return"ناسمه ورودي"}}};function aee(){return{localeError:oee()}}const see=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return i=>{switch(i.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${i.expected}, otrzymano ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Be(i.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Za duża wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Za mała wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${o}${i.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${n[o.format]??i.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${i.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${i.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function lee(){return{localeError:see()}}const uee=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"número";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipo inválido: esperado ${i.expected}, recebido ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inválida: esperado ${Be(i.values[0])}`:`Opção inválida: esperada uma das ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${n[o.format]??i.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Chave inválida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${i.origin}`;default:return"Campo inválido"}}};function cee(){return{localeError:uee()}}function SI(e,t,r,n){const i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?n:o===1?t:o>=2&&o<=4?r:n}const fee=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"число";case"object":{if(Array.isArray(i))return"массив";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return i=>{switch(i.code){case"invalid_type":return`Неверный ввод: ожидалось ${i.expected}, получено ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Неверный ввод: ожидалось ${Be(i.values[0])}`:`Неверный вариант: ожидалось одно из ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);if(a){const u=Number(i.maximum),c=SI(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет иметь ${o}${i.maximum.toString()} ${c}`}return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);if(a){const u=Number(i.minimum),c=SI(u,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${i.origin} будет иметь ${o}${i.minimum.toString()} ${c}`}return`Слишком маленькое значение: ожидалось, что ${i.origin} будет ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${n[o.format]??i.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспознанн${i.keys.length>1?"ые":"ый"} ключ${i.keys.length>1?"и":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${i.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${i.origin}`;default:return"Неверные входные данные"}}};function dee(){return{localeError:fee()}}const pee=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"število";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${i.expected}, prejeto ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pričakovano ${Be(i.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Premajhno: pričakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i ključi":" ključ"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function mee(){return{localeError:pee()}}const hee=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${i.expected}, fick ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: förväntat ${Be(i.values[0])}`:`Ogiltigt val: förväntade en av ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`För stor(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${i.origin??"värdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${i.origin??"värdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ye(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${i.origin??"värdet"}`;default:return"Ogiltig input"}}};function vee(){return{localeError:hee()}}const gee=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(i))return"அணி";if(i===null)return"வெறுமை";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i.expected}, பெறப்பட்டது ${r(i.input)}`;case"invalid_value":return i.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Be(i.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ye(i.values,"|")} இல் ஒன்று`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${o}${i.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${o}${i.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=i;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[o.format]??i.format}`}case"not_multiple_of":return`தவறான எண்: ${i.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${i.keys.length>1?"கள்":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`${i.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${i.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function yee(){return{localeError:gee()}}const bee=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(i))return"อาร์เรย์ (Array)";if(i===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return i=>{switch(i.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i.expected} แต่ได้รับ ${r(i.input)}`;case"invalid_value":return i.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Be(i.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(i.origin);return a?`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${o} ${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?"อย่างน้อย":"มากกว่า",a=t(i.origin);return a?`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${i.origin} ควรมี${o} ${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[o.format]??i.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${i.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ye(i.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${i.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${i.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function wee(){return{localeError:bee()}}const xee=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},See=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(n){return e[n]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return n=>{switch(n.code){case"invalid_type":return`Geçersiz değer: beklenen ${n.expected}, alınan ${xee(n.input)}`;case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${Be(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ye(n.values,"|")}`;case"too_big":{const i=n.inclusive?"<=":"<",o=t(n.origin);return o?`Çok büyük: beklenen ${n.origin??"değer"} ${i}${n.maximum.toString()} ${o.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${i}${n.maximum.toString()}`}case"too_small":{const i=n.inclusive?">=":">",o=t(n.origin);return o?`Çok küçük: beklenen ${n.origin} ${i}${n.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{const i=n;return i.format==="starts_with"?`Geçersiz metin: "${i.prefix}" ile başlamalı`:i.format==="ends_with"?`Geçersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Geçersiz metin: "${i.includes}" içermeli`:i.format==="regex"?`Geçersiz metin: ${i.pattern} desenine uymalı`:`Geçersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${ye(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function kee(){return{localeError:See()}}const $ee=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"число";case"object":{if(Array.isArray(i))return"масив";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return i=>{switch(i.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${i.expected}, отримано ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Неправильні вхідні дані: очікується ${Be(i.values[0])}`:`Неправильна опція: очікується одне з ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Занадто велике: очікується, що ${i.origin??"значення"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${i.origin??"значення"} буде ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Занадто мале: очікується, що ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${i.origin} буде ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${n[o.format]??i.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${i.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${i.keys.length>1?"і":""}: ${ye(i.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${i.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${i.origin}`;default:return"Неправильні вхідні дані"}}};function Oz(){return{localeError:$ee()}}function _ee(){return Oz()}const Pee=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"نمبر";case"object":{if(Array.isArray(i))return"آرے";if(i===null)return"نل";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return i=>{switch(i.code){case"invalid_type":return`غلط ان پٹ: ${i.expected} متوقع تھا، ${r(i.input)} موصول ہوا`;case"invalid_value":return i.values.length===1?`غلط ان پٹ: ${Be(i.values[0])} متوقع تھا`:`غلط آپشن: ${ye(i.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`بہت بڑا: ${i.origin??"ویلیو"} کے ${o}${i.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${i.origin??"ویلیو"} کا ${o}${i.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`بہت چھوٹا: ${i.origin} کے ${o}${i.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${i.origin} کا ${o}${i.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=i;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${n[o.format]??i.format}`}case"not_multiple_of":return`غلط نمبر: ${i.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${i.keys.length>1?"ز":""}: ${ye(i.keys,"، ")}`;case"invalid_key":return`${i.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${i.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Oee(){return{localeError:Pee()}}const Cee=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"số";case"object":{if(Array.isArray(i))return"mảng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return i=>{switch(i.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${i.expected}, nhận được ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Be(i.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Quá lớn: mong đợi ${i.origin??"giá trị"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${i.origin??"giá trị"} ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Quá nhỏ: mong đợi ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${n[o.format]??i.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${i.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ye(i.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${i.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${i.origin}`;default:return"Đầu vào không hợp lệ"}}};function Eee(){return{localeError:Cee()}}const Iee=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(i))return"数组";if(i===null)return"空值(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return i=>{switch(i.code){case"invalid_type":return`无效输入:期望 ${i.expected},实际接收 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`无效输入:期望 ${Be(i.values[0])}`:`无效选项:期望以下之一 ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${i.origin??"值"} ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`数值过小:期望 ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${n[o.format]??i.format}`}case"not_multiple_of":return`无效数字:必须是 ${i.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ye(i.keys,", ")}`;case"invalid_key":return`${i.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${i.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Tee(){return{localeError:Iee()}}const jee=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return i=>{switch(i.code){case"invalid_type":return`無效的輸入值:預期為 ${i.expected},但收到 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`無效的輸入值:預期為 ${Be(i.values[0])}`:`無效的選項:預期為以下其中之一 ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${i.origin??"值"} 應為 ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()} ${a.unit}`:`數值過小:預期 ${i.origin} 應為 ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${n[o.format]??i.format}`}case"not_multiple_of":return`無效的數字:必須為 ${i.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${i.keys.length>1?"們":""}:${ye(i.keys,"、")}`;case"invalid_key":return`${i.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${i.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Aee(){return{localeError:jee()}}const Ree=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(i){return e[i]??null}const r=i=>{const o=typeof i;switch(o){case"number":return Number.isNaN(i)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(i))return"akopọ";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return o},n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return i=>{switch(i.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${i.expected}, àmọ̀ a rí ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Be(i.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ye(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${i.origin??"iye"} ${a.verb} ${o}${i.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${i.maximum}`}case"too_small":{const o=i.inclusive?">=":">",a=t(i.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${i.origin} ${a.verb} ${o}${i.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${i.minimum}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${n[o.format]??i.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${i.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ye(i.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${i.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${i.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function Nee(){return{localeError:Ree()}}const Cz=Object.freeze(Object.defineProperty({__proto__:null,ar:GQ,az:XQ,be:JQ,bg:rJ,ca:iJ,cs:aJ,da:lJ,de:cJ,en:_z,eo:hJ,es:gJ,fa:bJ,fi:xJ,fr:kJ,frCA:_J,he:OJ,hu:EJ,id:TJ,is:RJ,it:MJ,ja:zJ,ka:FJ,kh:WJ,km:Pz,ko:HJ,lt:VJ,mk:YJ,ms:QJ,nl:eee,no:ree,ota:iee,pl:lee,ps:aee,pt:cee,ru:dee,sl:mee,sv:vee,ta:yee,th:wee,tr:kee,ua:_ee,uk:Oz,ur:Oee,vi:Eee,yo:Nee,zhCN:Tee,zhTW:Aee},Symbol.toStringTag,{value:"Module"}));var kI;const Ez=Symbol("ZodOutput"),Iz=Symbol("ZodInput");class K1{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function H1(){return new K1}(kI=globalThis).__zod_globalRegistry??(kI.__zod_globalRegistry=H1());const Ii=globalThis.__zod_globalRegistry;function Tz(e,t){return new e({type:"string",...ce(t)})}function jz(e,t){return new e({type:"string",coerce:!0,...ce(t)})}function Z1(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ce(t)})}function ph(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ce(t)})}function q1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ce(t)})}function V1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ce(t)})}function G1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ce(t)})}function Y1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ce(t)})}function qv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ce(t)})}function X1(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ce(t)})}function Q1(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ce(t)})}function J1(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ce(t)})}function ek(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ce(t)})}function tk(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ce(t)})}function rk(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ce(t)})}function nk(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ce(t)})}function ik(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ce(t)})}function ok(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ce(t)})}function Az(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ce(t)})}function ak(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ce(t)})}function sk(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ce(t)})}function lk(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ce(t)})}function uk(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ce(t)})}function ck(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ce(t)})}function fk(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ce(t)})}const Rz={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Nz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ce(t)})}function Mz(e,t){return new e({type:"string",format:"date",check:"string_format",...ce(t)})}function Dz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ce(t)})}function zz(e,t){return new e({type:"string",format:"duration",check:"string_format",...ce(t)})}function Lz(e,t){return new e({type:"number",checks:[],...ce(t)})}function Uz(e,t){return new e({type:"number",coerce:!0,checks:[],...ce(t)})}function Fz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ce(t)})}function Bz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ce(t)})}function Wz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ce(t)})}function Kz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ce(t)})}function Hz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ce(t)})}function Zz(e,t){return new e({type:"boolean",...ce(t)})}function qz(e,t){return new e({type:"boolean",coerce:!0,...ce(t)})}function Vz(e,t){return new e({type:"bigint",...ce(t)})}function Gz(e,t){return new e({type:"bigint",coerce:!0,...ce(t)})}function Yz(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ce(t)})}function Xz(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ce(t)})}function Qz(e,t){return new e({type:"symbol",...ce(t)})}function Jz(e,t){return new e({type:"undefined",...ce(t)})}function e4(e,t){return new e({type:"null",...ce(t)})}function t4(e){return new e({type:"any"})}function r4(e){return new e({type:"unknown"})}function n4(e,t){return new e({type:"never",...ce(t)})}function i4(e,t){return new e({type:"void",...ce(t)})}function o4(e,t){return new e({type:"date",...ce(t)})}function a4(e,t){return new e({type:"date",coerce:!0,...ce(t)})}function s4(e,t){return new e({type:"nan",...ce(t)})}function rl(e,t){return new N1({check:"less_than",...ce(t),value:e,inclusive:!1})}function Ri(e,t){return new N1({check:"less_than",...ce(t),value:e,inclusive:!0})}function nl(e,t){return new M1({check:"greater_than",...ce(t),value:e,inclusive:!1})}function In(e,t){return new M1({check:"greater_than",...ce(t),value:e,inclusive:!0})}function l4(e){return nl(0,e)}function u4(e){return rl(0,e)}function c4(e){return Ri(0,e)}function f4(e){return In(0,e)}function Ef(e,t){return new qM({check:"multiple_of",...ce(t),value:e})}function Vv(e,t){return new YM({check:"max_size",...ce(t),maximum:e})}function If(e,t){return new XM({check:"min_size",...ce(t),minimum:e})}function dk(e,t){return new QM({check:"size_equals",...ce(t),size:e})}function Gv(e,t){return new JM({check:"max_length",...ce(t),maximum:e})}function Cu(e,t){return new eD({check:"min_length",...ce(t),minimum:e})}function Yv(e,t){return new tD({check:"length_equals",...ce(t),length:e})}function pk(e,t){return new rD({check:"string_format",format:"regex",...ce(t),pattern:e})}function mk(e){return new nD({check:"string_format",format:"lowercase",...ce(e)})}function hk(e){return new iD({check:"string_format",format:"uppercase",...ce(e)})}function vk(e,t){return new oD({check:"string_format",format:"includes",...ce(t),includes:e})}function gk(e,t){return new aD({check:"string_format",format:"starts_with",...ce(t),prefix:e})}function yk(e,t){return new sD({check:"string_format",format:"ends_with",...ce(t),suffix:e})}function d4(e,t,r){return new lD({check:"property",property:e,schema:t,...ce(r)})}function bk(e,t){return new uD({check:"mime_type",mime:e,...ce(t)})}function es(e){return new cD({check:"overwrite",tx:e})}function wk(e){return es(t=>t.normalize(e))}function xk(){return es(e=>e.trim())}function Sk(){return es(e=>e.toLowerCase())}function kk(){return es(e=>e.toUpperCase())}function $k(){return es(e=>WN(e))}function p4(e,t,r){return new e({type:"array",element:t,...ce(r)})}function Mee(e,t,r){return new e({type:"union",options:t,...ce(r)})}function Dee(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...ce(n)})}function zee(e,t,r){return new e({type:"intersection",left:t,right:r})}function Lee(e,t,r,n){const i=r instanceof Ke,o=i?n:r,a=i?r:null;return new e({type:"tuple",items:t,rest:a,...ce(o)})}function Uee(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...ce(n)})}function Fee(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...ce(n)})}function Bee(e,t,r){return new e({type:"set",valueType:t,...ce(r)})}function Wee(e,t,r){const n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:n,...ce(r)})}function Kee(e,t,r){return new e({type:"enum",entries:t,...ce(r)})}function Hee(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ce(r)})}function m4(e,t){return new e({type:"file",...ce(t)})}function Zee(e,t){return new e({type:"transform",transform:t})}function qee(e,t){return new e({type:"optional",innerType:t})}function Vee(e,t){return new e({type:"nullable",innerType:t})}function Gee(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Kv(r)}})}function Yee(e,t,r){return new e({type:"nonoptional",innerType:t,...ce(r)})}function Xee(e,t){return new e({type:"success",innerType:t})}function Qee(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Jee(e,t,r){return new e({type:"pipe",in:t,out:r})}function ete(e,t){return new e({type:"readonly",innerType:t})}function tte(e,t,r){return new e({type:"template_literal",parts:t,...ce(r)})}function rte(e,t){return new e({type:"lazy",getter:t})}function nte(e,t){return new e({type:"promise",innerType:t})}function h4(e,t,r){const n=ce(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function v4(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ce(r)})}function g4(e){const t=y4(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Pu(n,r.value,t._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(Pu(i))}},e(r.value,r)));return t}function y4(e,t){const r=new Kt({check:"custom",...ce(t)});return r._zod.check=e,r}function b4(e){const t=new Kt({check:"describe"});return t._zod.onattach=[r=>{const n=Ii.get(r)??{};Ii.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function w4(e){const t=new Kt({check:"meta"});return t._zod.onattach=[r=>{const n=Ii.get(r)??{};Ii.add(r,{...n,...e})}],t._zod.check=()=>{},t}function x4(e,t){const r=ce(t);let n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(g=>typeof g=="string"?g.toLowerCase():g),i=i.map(g=>typeof g=="string"?g.toLowerCase():g));const o=new Set(n),a=new Set(i),u=e.Codec??W1,c=e.Boolean??L1,f=e.String??bd,d=new f({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),h=new u({type:"pipe",in:d,out:m,transform:((g,y)=>{let x=g;return r.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?!0:a.has(x)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:h,continue:!1}),{})}),reverseTransform:((g,y)=>g===!0?n[0]||"true":i[0]||"false"),error:r.error});return h}function wd(e,t,r,n={}){const i=ce(n),o={...ce(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:u=>r.test(u),...i};return r instanceof RegExp&&(o.pattern=r),new e(o)}class ux{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??Ii,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var m,h,g;var n;const i=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,r.schemaPath.includes(t)&&(a.cycle=r.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,u);const c=(h=(m=t._zod).toJSONSchema)==null?void 0:h.call(m);if(c)u.schema=c;else{const y={...r,schemaPath:[...r.schemaPath,t],path:r.path},x=t._zod.parent;if(x)u.ref=x,this.process(x,y),this.seen.get(x).isParent=!0;else{const w=u.schema;switch(i.type){case"string":{const k=w;k.type="string";const{minimum:C,maximum:$,format:P,patterns:O,contentEncoding:E}=t._zod.bag;if(typeof C=="number"&&(k.minLength=C),typeof $=="number"&&(k.maxLength=$),P&&(k.format=o[P]??P,k.format===""&&delete k.format),E&&(k.contentEncoding=E),O&&O.size>0){const j=[...O];j.length===1?k.pattern=j[0].source:j.length>1&&(u.schema.allOf=[...j.map(R=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:R.source}))])}break}case"number":{const k=w,{minimum:C,maximum:$,format:P,multipleOf:O,exclusiveMaximum:E,exclusiveMinimum:j}=t._zod.bag;typeof P=="string"&&P.includes("int")?k.type="integer":k.type="number",typeof j=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(k.minimum=j,k.exclusiveMinimum=!0):k.exclusiveMinimum=j),typeof C=="number"&&(k.minimum=C,typeof j=="number"&&this.target!=="draft-4"&&(j>=C?delete k.minimum:delete k.exclusiveMinimum)),typeof E=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(k.maximum=E,k.exclusiveMaximum=!0):k.exclusiveMaximum=E),typeof $=="number"&&(k.maximum=$,typeof E=="number"&&this.target!=="draft-4"&&(E<=$?delete k.maximum:delete k.exclusiveMaximum)),typeof O=="number"&&(k.multipleOf=O);break}case"boolean":{const k=w;k.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(w.type="string",w.nullable=!0,w.enum=[null]):w.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{w.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const k=w,{minimum:C,maximum:$}=t._zod.bag;typeof C=="number"&&(k.minItems=C),typeof $=="number"&&(k.maxItems=$),k.type="array",k.items=this.process(i.element,{...y,path:[...y.path,"items"]});break}case"object":{const k=w;k.type="object",k.properties={};const C=i.shape;for(const O in C)k.properties[O]=this.process(C[O],{...y,path:[...y.path,"properties",O]});const $=new Set(Object.keys(C)),P=new Set([...$].filter(O=>{const E=i.shape[O]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));P.size>0&&(k.required=Array.from(P)),((g=i.catchall)==null?void 0:g._zod.def.type)==="never"?k.additionalProperties=!1:i.catchall?i.catchall&&(k.additionalProperties=this.process(i.catchall,{...y,path:[...y.path,"additionalProperties"]})):this.io==="output"&&(k.additionalProperties=!1);break}case"union":{const k=w,C=i.discriminator!==void 0,$=i.options.map((P,O)=>this.process(P,{...y,path:[...y.path,C?"oneOf":"anyOf",O]}));C?k.oneOf=$:k.anyOf=$;break}case"intersection":{const k=w,C=this.process(i.left,{...y,path:[...y.path,"allOf",0]}),$=this.process(i.right,{...y,path:[...y.path,"allOf",1]}),P=E=>"allOf"in E&&Object.keys(E).length===1,O=[...P(C)?C.allOf:[C],...P($)?$.allOf:[$]];k.allOf=O;break}case"tuple":{const k=w;k.type="array";const C=this.target==="draft-2020-12"?"prefixItems":"items",$=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",P=i.items.map((R,D)=>this.process(R,{...y,path:[...y.path,C,D]})),O=i.rest?this.process(i.rest,{...y,path:[...y.path,$,...this.target==="openapi-3.0"?[i.items.length]:[]]}):null;this.target==="draft-2020-12"?(k.prefixItems=P,O&&(k.items=O)):this.target==="openapi-3.0"?(k.items={anyOf:P},O&&k.items.anyOf.push(O),k.minItems=P.length,O||(k.maxItems=P.length)):(k.items=P,O&&(k.additionalItems=O));const{minimum:E,maximum:j}=t._zod.bag;typeof E=="number"&&(k.minItems=E),typeof j=="number"&&(k.maxItems=j);break}case"record":{const k=w;k.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(k.propertyNames=this.process(i.keyType,{...y,path:[...y.path,"propertyNames"]})),k.additionalProperties=this.process(i.valueType,{...y,path:[...y.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const k=w,C=w1(i.entries);C.every($=>typeof $=="number")&&(k.type="number"),C.every($=>typeof $=="string")&&(k.type="string"),k.enum=C;break}case"literal":{const k=w,C=[];for(const $ of i.values)if($===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof $=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");C.push(Number($))}else C.push($);if(C.length!==0)if(C.length===1){const $=C[0];k.type=$===null?"null":typeof $,this.target==="draft-4"||this.target==="openapi-3.0"?k.enum=[$]:k.const=$}else C.every($=>typeof $=="number")&&(k.type="number"),C.every($=>typeof $=="string")&&(k.type="string"),C.every($=>typeof $=="boolean")&&(k.type="string"),C.every($=>$===null)&&(k.type="null"),k.enum=C;break}case"file":{const k=w,C={type:"string",format:"binary",contentEncoding:"binary"},{minimum:$,maximum:P,mime:O}=t._zod.bag;$!==void 0&&(C.minLength=$),P!==void 0&&(C.maxLength=P),O?O.length===1?(C.contentMediaType=O[0],Object.assign(k,C)):k.anyOf=O.map(E=>({...C,contentMediaType:E})):Object.assign(k,C);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const k=this.process(i.innerType,y);this.target==="openapi-3.0"?(u.ref=i.innerType,w.nullable=!0):w.anyOf=[k,{type:"null"}];break}case"nonoptional":{this.process(i.innerType,y),u.ref=i.innerType;break}case"success":{const k=w;k.type="boolean";break}case"default":{this.process(i.innerType,y),u.ref=i.innerType,w.default=JSON.parse(JSON.stringify(i.defaultValue));break}case"prefault":{this.process(i.innerType,y),u.ref=i.innerType,this.io==="input"&&(w._prefault=JSON.parse(JSON.stringify(i.defaultValue)));break}case"catch":{this.process(i.innerType,y),u.ref=i.innerType;let k;try{k=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}w.default=k;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const k=w,C=t._zod.pattern;if(!C)throw new Error("Pattern not found in template literal");k.type="string",k.pattern=C.source;break}case"pipe":{const k=this.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;this.process(k,y),u.ref=k;break}case"readonly":{this.process(i.innerType,y),u.ref=i.innerType,w.readOnly=!0;break}case"promise":{this.process(i.innerType,y),u.ref=i.innerType;break}case"optional":{this.process(i.innerType,y),u.ref=i.innerType;break}case"lazy":{const k=t._zod.innerType;this.process(k,y),u.ref=k;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const f=this.metadataRegistry.get(t);return f&&Object.assign(u.schema,f),this.io==="input"&&Yr(t)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((n=u.schema).default??(n.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(t).schema}emit(t,r){var d,m,h,g,y,x;const n={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},i=this.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=w=>{var O;const k=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const E=(O=n.external.registry.get(w[0]))==null?void 0:O.id,j=n.external.uri??(D=>D);if(E)return{ref:j(E)};const R=w[1].defId??w[1].schema.id??`schema${this.counter++}`;return w[1].defId=R,{defId:R,ref:`${j("__shared")}#/${k}/${R}`}}if(w[1]===i)return{ref:"#"};const $=`#/${k}/`,P=w[1].schema.id??`__schema${this.counter++}`;return{defId:P,ref:$+P}},a=w=>{if(w[1].schema.$ref)return;const k=w[1],{ref:C,defId:$}=o(w);k.def={...k.schema},$&&(k.defId=$);const P=k.schema;for(const O in P)delete P[O];P.$ref=C};if(n.cycles==="throw")for(const w of this.seen.entries()){const k=w[1];if(k.cycle)throw new Error(`Cycle detected: #/${(d=k.cycle)==null?void 0:d.join("/")}/<root>
|
|
225
|
-
|
|
226
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const w of this.seen.entries()){const k=w[1];if(t===w[0]){a(w);continue}if(n.external){const $=(m=n.external.registry.get(w[0]))==null?void 0:m.id;if(t!==w[0]&&$){a(w);continue}}if((h=this.metadataRegistry.get(w[0]))==null?void 0:h.id){a(w);continue}if(k.cycle){a(w);continue}if(k.count>1&&n.reused==="ref"){a(w);continue}}const u=(w,k)=>{const C=this.seen.get(w),$=C.def??C.schema,P={...$};if(C.ref===null)return;const O=C.ref;if(C.ref=null,O){u(O,k);const E=this.seen.get(O).schema;E.$ref&&(k.target==="draft-7"||k.target==="draft-4"||k.target==="openapi-3.0")?($.allOf=$.allOf??[],$.allOf.push(E)):(Object.assign($,E),Object.assign($,P))}C.isParent||this.override({zodSchema:w,jsonSchema:$,path:C.path??[]})};for(const w of[...this.seen.entries()].reverse())u(w[0],{target:this.target});const c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?c.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(g=n.external)!=null&&g.uri){const w=(y=n.external.registry.get(t))==null?void 0:y.id;if(!w)throw new Error("Schema is missing an `id` property");c.$id=n.external.uri(w)}Object.assign(c,i.def);const f=((x=n.external)==null?void 0:x.defs)??{};for(const w of this.seen.entries()){const k=w[1];k.def&&k.defId&&(f[k.defId]=k.def)}n.external||Object.keys(f).length>0&&(this.target==="draft-2020-12"?c.$defs=f:c.definitions=f);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}}function S4(e,t){if(e instanceof K1){const n=new ux(t),i={};for(const u of e._idmap.entries()){const[c,f]=u;n.process(f)}const o={},a={registry:e,uri:t==null?void 0:t.uri,defs:i};for(const u of e._idmap.entries()){const[c,f]=u;o[c]=n.emit(f,{...t,external:a})}if(Object.keys(i).length>0){const u=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[u]:i}}return{schemas:o}}const r=new ux(t);return r.process(e),r.emit(e,t)}function Yr(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Yr(n.element,r);if(n.type==="set")return Yr(n.valueType,r);if(n.type==="lazy")return Yr(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Yr(n.innerType,r);if(n.type==="intersection")return Yr(n.left,r)||Yr(n.right,r);if(n.type==="record"||n.type==="map")return Yr(n.keyType,r)||Yr(n.valueType,r);if(n.type==="pipe")return Yr(n.in,r)||Yr(n.out,r);if(n.type==="object"){for(const i in n.shape)if(Yr(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(const i of n.options)if(Yr(i,r))return!0;return!1}if(n.type==="tuple"){for(const i of n.items)if(Yr(i,r))return!0;return!!(n.rest&&Yr(n.rest,r))}return!1}const ite=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ote=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:HD,$ZodArray:YD,$ZodAsyncError:qs,$ZodBase64:AD,$ZodBase64URL:ND,$ZodBigInt:U1,$ZodBigIntFormat:FD,$ZodBoolean:L1,$ZodCIDRv4:TD,$ZodCIDRv6:jD,$ZodCUID:bD,$ZodCUID2:wD,$ZodCatch:vz,$ZodCheck:Kt,$ZodCheckBigIntFormat:GM,$ZodCheckEndsWith:sD,$ZodCheckGreaterThan:M1,$ZodCheckIncludes:oD,$ZodCheckLengthEquals:tD,$ZodCheckLessThan:N1,$ZodCheckLowerCase:nD,$ZodCheckMaxLength:JM,$ZodCheckMaxSize:YM,$ZodCheckMimeType:uD,$ZodCheckMinLength:eD,$ZodCheckMinSize:XM,$ZodCheckMultipleOf:qM,$ZodCheckNumberFormat:VM,$ZodCheckOverwrite:cD,$ZodCheckProperty:lD,$ZodCheckRegex:rD,$ZodCheckSizeEquals:QM,$ZodCheckStartsWith:aD,$ZodCheckStringFormat:yd,$ZodCheckUpperCase:iD,$ZodCodec:W1,$ZodCustom:$z,$ZodCustomStringFormat:LD,$ZodDate:GD,$ZodDefault:dz,$ZodDiscriminatedUnion:tz,$ZodE164:MD,$ZodEmail:hD,$ZodEmoji:gD,$ZodEncodeError:Bv,$ZodEnum:az,$ZodError:S1,$ZodFile:lz,$ZodFunction:xz,$ZodGUID:pD,$ZodIPv4:CD,$ZodIPv6:ED,$ZodISODate:_D,$ZodISODateTime:$D,$ZodISODuration:OD,$ZodISOTime:PD,$ZodIntersection:rz,$ZodJWT:zD,$ZodKSUID:kD,$ZodLazy:kz,$ZodLiteral:sz,$ZodMAC:ID,$ZodMap:iz,$ZodNaN:gz,$ZodNanoID:yD,$ZodNever:qD,$ZodNonOptional:mz,$ZodNull:KD,$ZodNullable:fz,$ZodNumber:z1,$ZodNumberFormat:UD,$ZodObject:JD,$ZodObjectJIT:ez,$ZodOptional:cz,$ZodPipe:yz,$ZodPrefault:pz,$ZodPromise:Sz,$ZodReadonly:bz,$ZodRealError:Un,$ZodRecord:nz,$ZodRegistry:K1,$ZodSet:oz,$ZodString:bd,$ZodStringFormat:It,$ZodSuccess:hz,$ZodSymbol:BD,$ZodTemplateLiteral:wz,$ZodTransform:uz,$ZodTuple:B1,$ZodType:Ke,$ZodULID:xD,$ZodURL:vD,$ZodUUID:mD,$ZodUndefined:WD,$ZodUnion:F1,$ZodUnknown:ZD,$ZodVoid:VD,$ZodXID:SD,$brand:FN,$constructor:X,$input:Iz,$output:Ez,Doc:fD,JSONSchema:ite,JSONSchemaGenerator:ux,NEVER:UN,TimePrecision:Rz,_any:t4,_array:p4,_base64:lk,_base64url:uk,_bigint:Vz,_boolean:Zz,_catch:Qee,_check:y4,_cidrv4:ak,_cidrv6:sk,_coercedBigint:Gz,_coercedBoolean:qz,_coercedDate:a4,_coercedNumber:Uz,_coercedString:jz,_cuid:J1,_cuid2:ek,_custom:h4,_date:o4,_decode:P1,_decodeAsync:C1,_default:Gee,_discriminatedUnion:Dee,_e164:ck,_email:Z1,_emoji:X1,_encode:_1,_encodeAsync:O1,_endsWith:yk,_enum:Wee,_file:m4,_float32:Bz,_float64:Wz,_gt:nl,_gte:In,_guid:ph,_includes:vk,_int:Fz,_int32:Kz,_int64:Yz,_intersection:zee,_ipv4:ik,_ipv6:ok,_isoDate:Mz,_isoDateTime:Nz,_isoDuration:zz,_isoTime:Dz,_jwt:fk,_ksuid:nk,_lazy:rte,_length:Yv,_literal:Hee,_lowercase:mk,_lt:rl,_lte:Ri,_mac:Az,_map:Fee,_max:Ri,_maxLength:Gv,_maxSize:Vv,_mime:bk,_min:In,_minLength:Cu,_minSize:If,_multipleOf:Ef,_nan:s4,_nanoid:Q1,_nativeEnum:Kee,_negative:u4,_never:n4,_nonnegative:f4,_nonoptional:Yee,_nonpositive:c4,_normalize:wk,_null:e4,_nullable:Vee,_number:Lz,_optional:qee,_overwrite:es,_parse:dd,_parseAsync:pd,_pipe:Jee,_positive:l4,_promise:nte,_property:d4,_readonly:ete,_record:Uee,_refine:v4,_regex:pk,_safeDecode:I1,_safeDecodeAsync:j1,_safeEncode:E1,_safeEncodeAsync:T1,_safeParse:md,_safeParseAsync:hd,_set:Bee,_size:dk,_slugify:$k,_startsWith:gk,_string:Tz,_stringFormat:wd,_stringbool:x4,_success:Xee,_superRefine:g4,_symbol:Qz,_templateLiteral:tte,_toLowerCase:Sk,_toUpperCase:kk,_transform:Zee,_trim:xk,_tuple:Lee,_uint32:Hz,_uint64:Xz,_ulid:tk,_undefined:Jz,_union:Mee,_unknown:r4,_uppercase:hk,_url:qv,_uuid:q1,_uuidv4:V1,_uuidv6:G1,_uuidv7:Y1,_void:i4,_xid:rk,clone:di,config:tn,decode:gQ,decodeAsync:bQ,describe:b4,encode:vQ,encodeAsync:yQ,flattenError:k1,formatError:$1,globalConfig:uh,globalRegistry:Ii,isValidBase64:D1,isValidBase64URL:RD,isValidJWT:DD,locales:Cz,meta:w4,parse:ax,parseAsync:sx,prettifyError:lM,regexes:R1,registry:H1,safeDecode:xQ,safeDecodeAsync:kQ,safeEncode:wQ,safeEncodeAsync:SQ,safeParse:uM,safeParseAsync:cM,toDotPath:sM,toJSONSchema:S4,treeifyError:aM,util:iM,version:dD},Symbol.toStringTag,{value:"Module"})),_k=X("ZodISODateTime",(e,t)=>{$D.init(e,t),At.init(e,t)});function k4(e){return Nz(_k,e)}const Pk=X("ZodISODate",(e,t)=>{_D.init(e,t),At.init(e,t)});function $4(e){return Mz(Pk,e)}const Ok=X("ZodISOTime",(e,t)=>{PD.init(e,t),At.init(e,t)});function _4(e){return Dz(Ok,e)}const Ck=X("ZodISODuration",(e,t)=>{OD.init(e,t),At.init(e,t)});function P4(e){return zz(Ck,e)}const ate=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Pk,ZodISODateTime:_k,ZodISODuration:Ck,ZodISOTime:Ok,date:$4,datetime:k4,duration:P4,time:_4},Symbol.toStringTag,{value:"Module"})),O4=(e,t)=>{S1.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>$1(e,r)},flatten:{value:r=>k1(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ch,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ch,2)}},isEmpty:{get(){return e.issues.length===0}}})},ste=X("ZodError",O4),Fn=X("ZodError",O4,{Parent:Error}),C4=dd(Fn),E4=pd(Fn),I4=md(Fn),T4=hd(Fn),j4=_1(Fn),A4=P1(Fn),R4=O1(Fn),N4=C1(Fn),M4=E1(Fn),D4=I1(Fn),z4=T1(Fn),L4=j1(Fn),Je=X("ZodType",(e,t)=>(Ke.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(ta(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>di(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>C4(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>I4(e,r,n),e.parseAsync=async(r,n)=>E4(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>T4(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>j4(e,r,n),e.decode=(r,n)=>A4(e,r,n),e.encodeAsync=async(r,n)=>R4(e,r,n),e.decodeAsync=async(r,n)=>N4(e,r,n),e.safeEncode=(r,n)=>M4(e,r,n),e.safeDecode=(r,n)=>D4(e,r,n),e.safeEncodeAsync=async(r,n)=>z4(e,r,n),e.safeDecodeAsync=async(r,n)=>L4(e,r,n),e.refine=(r,n)=>e.check(_L(r,n)),e.superRefine=r=>e.check(PL(r)),e.overwrite=r=>e.check(es(r)),e.optional=()=>vh(e),e.nullable=()=>gh(e),e.nullish=()=>vh(gh(e)),e.nonoptional=r=>pL(e,r),e.array=()=>Sd(e),e.or=r=>rg([e,r]),e.and=r=>Yk(e,r),e.transform=r=>yh(e,Jk(r)),e.default=r=>cL(e,r),e.prefault=r=>dL(e,r),e.catch=r=>vL(e,r),e.pipe=r=>yh(e,r),e.readonly=()=>bL(e),e.describe=r=>{const n=e.clone();return Ii.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){var r;return(r=Ii.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ii.get(e);const n=e.clone();return Ii.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ek=X("_ZodString",(e,t)=>{bd.init(e,t),Je.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(pk(...n)),e.includes=(...n)=>e.check(vk(...n)),e.startsWith=(...n)=>e.check(gk(...n)),e.endsWith=(...n)=>e.check(yk(...n)),e.min=(...n)=>e.check(Cu(...n)),e.max=(...n)=>e.check(Gv(...n)),e.length=(...n)=>e.check(Yv(...n)),e.nonempty=(...n)=>e.check(Cu(1,...n)),e.lowercase=n=>e.check(mk(n)),e.uppercase=n=>e.check(hk(n)),e.trim=()=>e.check(xk()),e.normalize=(...n)=>e.check(wk(...n)),e.toLowerCase=()=>e.check(Sk()),e.toUpperCase=()=>e.check(kk()),e.slugify=()=>e.check($k())}),Xv=X("ZodString",(e,t)=>{bd.init(e,t),Ek.init(e,t),e.email=r=>e.check(Z1(Ik,r)),e.url=r=>e.check(qv(Qv,r)),e.jwt=r=>e.check(fk(Hk,r)),e.emoji=r=>e.check(X1(Tk,r)),e.guid=r=>e.check(ph(mh,r)),e.uuid=r=>e.check(q1(No,r)),e.uuidv4=r=>e.check(V1(No,r)),e.uuidv6=r=>e.check(G1(No,r)),e.uuidv7=r=>e.check(Y1(No,r)),e.nanoid=r=>e.check(Q1(jk,r)),e.guid=r=>e.check(ph(mh,r)),e.cuid=r=>e.check(J1(Ak,r)),e.cuid2=r=>e.check(ek(Rk,r)),e.ulid=r=>e.check(tk(Nk,r)),e.base64=r=>e.check(lk(Bk,r)),e.base64url=r=>e.check(uk(Wk,r)),e.xid=r=>e.check(rk(Mk,r)),e.ksuid=r=>e.check(nk(Dk,r)),e.ipv4=r=>e.check(ik(zk,r)),e.ipv6=r=>e.check(ok(Lk,r)),e.cidrv4=r=>e.check(ak(Uk,r)),e.cidrv6=r=>e.check(sk(Fk,r)),e.e164=r=>e.check(ck(Kk,r)),e.datetime=r=>e.check(k4(r)),e.date=r=>e.check($4(r)),e.time=r=>e.check(_4(r)),e.duration=r=>e.check(P4(r))});function il(e){return Tz(Xv,e)}const At=X("ZodStringFormat",(e,t)=>{It.init(e,t),Ek.init(e,t)}),Ik=X("ZodEmail",(e,t)=>{hD.init(e,t),At.init(e,t)});function lte(e){return Z1(Ik,e)}const mh=X("ZodGUID",(e,t)=>{pD.init(e,t),At.init(e,t)});function ute(e){return ph(mh,e)}const No=X("ZodUUID",(e,t)=>{mD.init(e,t),At.init(e,t)});function cte(e){return q1(No,e)}function fte(e){return V1(No,e)}function dte(e){return G1(No,e)}function pte(e){return Y1(No,e)}const Qv=X("ZodURL",(e,t)=>{vD.init(e,t),At.init(e,t)});function mte(e){return qv(Qv,e)}function hte(e){return qv(Qv,{protocol:/^https?$/,hostname:EM,...ce(e)})}const Tk=X("ZodEmoji",(e,t)=>{gD.init(e,t),At.init(e,t)});function vte(e){return X1(Tk,e)}const jk=X("ZodNanoID",(e,t)=>{yD.init(e,t),At.init(e,t)});function gte(e){return Q1(jk,e)}const Ak=X("ZodCUID",(e,t)=>{bD.init(e,t),At.init(e,t)});function yte(e){return J1(Ak,e)}const Rk=X("ZodCUID2",(e,t)=>{wD.init(e,t),At.init(e,t)});function bte(e){return ek(Rk,e)}const Nk=X("ZodULID",(e,t)=>{xD.init(e,t),At.init(e,t)});function wte(e){return tk(Nk,e)}const Mk=X("ZodXID",(e,t)=>{SD.init(e,t),At.init(e,t)});function xte(e){return rk(Mk,e)}const Dk=X("ZodKSUID",(e,t)=>{kD.init(e,t),At.init(e,t)});function Ste(e){return nk(Dk,e)}const zk=X("ZodIPv4",(e,t)=>{CD.init(e,t),At.init(e,t)});function kte(e){return ik(zk,e)}const U4=X("ZodMAC",(e,t)=>{ID.init(e,t),At.init(e,t)});function $te(e){return Az(U4,e)}const Lk=X("ZodIPv6",(e,t)=>{ED.init(e,t),At.init(e,t)});function _te(e){return ok(Lk,e)}const Uk=X("ZodCIDRv4",(e,t)=>{TD.init(e,t),At.init(e,t)});function Pte(e){return ak(Uk,e)}const Fk=X("ZodCIDRv6",(e,t)=>{jD.init(e,t),At.init(e,t)});function Ote(e){return sk(Fk,e)}const Bk=X("ZodBase64",(e,t)=>{AD.init(e,t),At.init(e,t)});function Cte(e){return lk(Bk,e)}const Wk=X("ZodBase64URL",(e,t)=>{ND.init(e,t),At.init(e,t)});function Ete(e){return uk(Wk,e)}const Kk=X("ZodE164",(e,t)=>{MD.init(e,t),At.init(e,t)});function Ite(e){return ck(Kk,e)}const Hk=X("ZodJWT",(e,t)=>{zD.init(e,t),At.init(e,t)});function Tte(e){return fk(Hk,e)}const xd=X("ZodCustomStringFormat",(e,t)=>{LD.init(e,t),At.init(e,t)});function jte(e,t,r={}){return wd(xd,e,t,r)}function Ate(e){return wd(xd,"hostname",CM,e)}function Rte(e){return wd(xd,"hex",HM,e)}function Nte(e,t){const r=(t==null?void 0:t.enc)??"hex",n=`${e}_${r}`,i=R1[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return wd(xd,n,i,t)}const Jv=X("ZodNumber",(e,t)=>{z1.init(e,t),Je.init(e,t),e.gt=(n,i)=>e.check(nl(n,i)),e.gte=(n,i)=>e.check(In(n,i)),e.min=(n,i)=>e.check(In(n,i)),e.lt=(n,i)=>e.check(rl(n,i)),e.lte=(n,i)=>e.check(Ri(n,i)),e.max=(n,i)=>e.check(Ri(n,i)),e.int=n=>e.check(cx(n)),e.safe=n=>e.check(cx(n)),e.positive=n=>e.check(nl(0,n)),e.nonnegative=n=>e.check(In(0,n)),e.negative=n=>e.check(rl(0,n)),e.nonpositive=n=>e.check(Ri(0,n)),e.multipleOf=(n,i)=>e.check(Ef(n,i)),e.step=(n,i)=>e.check(Ef(n,i)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function F4(e){return Lz(Jv,e)}const Ku=X("ZodNumberFormat",(e,t)=>{UD.init(e,t),Jv.init(e,t)});function cx(e){return Fz(Ku,e)}function Mte(e){return Bz(Ku,e)}function Dte(e){return Wz(Ku,e)}function zte(e){return Kz(Ku,e)}function Lte(e){return Hz(Ku,e)}const eg=X("ZodBoolean",(e,t)=>{L1.init(e,t),Je.init(e,t)});function B4(e){return Zz(eg,e)}const tg=X("ZodBigInt",(e,t)=>{U1.init(e,t),Je.init(e,t),e.gte=(n,i)=>e.check(In(n,i)),e.min=(n,i)=>e.check(In(n,i)),e.gt=(n,i)=>e.check(nl(n,i)),e.gte=(n,i)=>e.check(In(n,i)),e.min=(n,i)=>e.check(In(n,i)),e.lt=(n,i)=>e.check(rl(n,i)),e.lte=(n,i)=>e.check(Ri(n,i)),e.max=(n,i)=>e.check(Ri(n,i)),e.positive=n=>e.check(nl(BigInt(0),n)),e.negative=n=>e.check(rl(BigInt(0),n)),e.nonpositive=n=>e.check(Ri(BigInt(0),n)),e.nonnegative=n=>e.check(In(BigInt(0),n)),e.multipleOf=(n,i)=>e.check(Ef(n,i));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Ute(e){return Vz(tg,e)}const Zk=X("ZodBigIntFormat",(e,t)=>{FD.init(e,t),tg.init(e,t)});function Fte(e){return Yz(Zk,e)}function Bte(e){return Xz(Zk,e)}const W4=X("ZodSymbol",(e,t)=>{BD.init(e,t),Je.init(e,t)});function Wte(e){return Qz(W4,e)}const K4=X("ZodUndefined",(e,t)=>{WD.init(e,t),Je.init(e,t)});function Kte(e){return Jz(K4,e)}const H4=X("ZodNull",(e,t)=>{KD.init(e,t),Je.init(e,t)});function Z4(e){return e4(H4,e)}const q4=X("ZodAny",(e,t)=>{HD.init(e,t),Je.init(e,t)});function Hte(){return t4(q4)}const V4=X("ZodUnknown",(e,t)=>{ZD.init(e,t),Je.init(e,t)});function Eu(){return r4(V4)}const G4=X("ZodNever",(e,t)=>{qD.init(e,t),Je.init(e,t)});function qk(e){return n4(G4,e)}const Y4=X("ZodVoid",(e,t)=>{VD.init(e,t),Je.init(e,t)});function Zte(e){return i4(Y4,e)}const Vk=X("ZodDate",(e,t)=>{GD.init(e,t),Je.init(e,t),e.min=(n,i)=>e.check(In(n,i)),e.max=(n,i)=>e.check(Ri(n,i));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function qte(e){return o4(Vk,e)}const X4=X("ZodArray",(e,t)=>{YD.init(e,t),Je.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(Cu(r,n)),e.nonempty=r=>e.check(Cu(1,r)),e.max=(r,n)=>e.check(Gv(r,n)),e.length=(r,n)=>e.check(Yv(r,n)),e.unwrap=()=>e.element});function Sd(e,t){return p4(X4,e,t)}function Vte(e){const t=e._zod.def.shape;return Qk(Object.keys(t))}const Hu=X("ZodObject",(e,t)=>{ez.init(e,t),Je.init(e,t),it(e,"shape",()=>t.shape),e.keyof=()=>Qk(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Eu()}),e.loose=()=>e.clone({...e._zod.def,catchall:Eu()}),e.strict=()=>e.clone({...e._zod.def,catchall:qk()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>XN(e,r),e.safeExtend=r=>QN(e,r),e.merge=r=>JN(e,r),e.pick=r=>GN(e,r),e.omit=r=>YN(e,r),e.partial=(...r)=>eM(e$,e,r[0]),e.required=(...r)=>tM(t$,e,r[0])});function hh(e,t){const r={type:"object",shape:e??{},...ce(t)};return new Hu(r)}function Gte(e,t){return new Hu({type:"object",shape:e,catchall:qk(),...ce(t)})}function Yte(e,t){return new Hu({type:"object",shape:e,catchall:Eu(),...ce(t)})}const Gk=X("ZodUnion",(e,t)=>{F1.init(e,t),Je.init(e,t),e.options=t.options});function rg(e,t){return new Gk({type:"union",options:e,...ce(t)})}const Q4=X("ZodDiscriminatedUnion",(e,t)=>{Gk.init(e,t),tz.init(e,t)});function Xte(e,t,r){return new Q4({type:"union",options:t,discriminator:e,...ce(r)})}const J4=X("ZodIntersection",(e,t)=>{rz.init(e,t),Je.init(e,t)});function Yk(e,t){return new J4({type:"intersection",left:e,right:t})}const eL=X("ZodTuple",(e,t)=>{B1.init(e,t),Je.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function tL(e,t,r){const n=t instanceof Ke,i=n?r:t,o=n?t:null;return new eL({type:"tuple",items:e,rest:o,...ce(i)})}const Xk=X("ZodRecord",(e,t)=>{nz.init(e,t),Je.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function rL(e,t,r){return new Xk({type:"record",keyType:e,valueType:t,...ce(r)})}function Qte(e,t,r){const n=di(e);return n._zod.values=void 0,new Xk({type:"record",keyType:n,valueType:t,...ce(r)})}const nL=X("ZodMap",(e,t)=>{iz.init(e,t),Je.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Jte(e,t,r){return new nL({type:"map",keyType:e,valueType:t,...ce(r)})}const iL=X("ZodSet",(e,t)=>{oz.init(e,t),Je.init(e,t),e.min=(...r)=>e.check(If(...r)),e.nonempty=r=>e.check(If(1,r)),e.max=(...r)=>e.check(Vv(...r)),e.size=(...r)=>e.check(dk(...r))});function ere(e,t){return new iL({type:"set",valueType:e,...ce(t)})}const Tf=X("ZodEnum",(e,t)=>{az.init(e,t),Je.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const o={};for(const a of n)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Tf({...t,checks:[],...ce(i),entries:o})},e.exclude=(n,i)=>{const o={...t.entries};for(const a of n)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Tf({...t,checks:[],...ce(i),entries:o})}});function Qk(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Tf({type:"enum",entries:r,...ce(t)})}function tre(e,t){return new Tf({type:"enum",entries:e,...ce(t)})}const oL=X("ZodLiteral",(e,t)=>{sz.init(e,t),Je.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function rre(e,t){return new oL({type:"literal",values:Array.isArray(e)?e:[e],...ce(t)})}const aL=X("ZodFile",(e,t)=>{lz.init(e,t),Je.init(e,t),e.min=(r,n)=>e.check(If(r,n)),e.max=(r,n)=>e.check(Vv(r,n)),e.mime=(r,n)=>e.check(bk(Array.isArray(r)?r:[r],n))});function nre(e){return m4(aL,e)}const sL=X("ZodTransform",(e,t)=>{uz.init(e,t),Je.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Bv(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Pu(o,r.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Pu(a))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then(o=>(r.value=o,r)):(r.value=i,r)}});function Jk(e){return new sL({type:"transform",transform:e})}const e$=X("ZodOptional",(e,t)=>{cz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function vh(e){return new e$({type:"optional",innerType:e})}const lL=X("ZodNullable",(e,t)=>{fz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gh(e){return new lL({type:"nullable",innerType:e})}function ire(e){return vh(gh(e))}const uL=X("ZodDefault",(e,t)=>{dz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cL(e,t){return new uL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Kv(t)}})}const fL=X("ZodPrefault",(e,t)=>{pz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function dL(e,t){return new fL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Kv(t)}})}const t$=X("ZodNonOptional",(e,t)=>{mz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pL(e,t){return new t$({type:"nonoptional",innerType:e,...ce(t)})}const mL=X("ZodSuccess",(e,t)=>{hz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ore(e){return new mL({type:"success",innerType:e})}const hL=X("ZodCatch",(e,t)=>{vz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vL(e,t){return new hL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const gL=X("ZodNaN",(e,t)=>{gz.init(e,t),Je.init(e,t)});function are(e){return s4(gL,e)}const r$=X("ZodPipe",(e,t)=>{yz.init(e,t),Je.init(e,t),e.in=t.in,e.out=t.out});function yh(e,t){return new r$({type:"pipe",in:e,out:t})}const n$=X("ZodCodec",(e,t)=>{r$.init(e,t),W1.init(e,t)});function sre(e,t,r){return new n$({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const yL=X("ZodReadonly",(e,t)=>{bz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bL(e){return new yL({type:"readonly",innerType:e})}const wL=X("ZodTemplateLiteral",(e,t)=>{wz.init(e,t),Je.init(e,t)});function lre(e,t){return new wL({type:"template_literal",parts:e,...ce(t)})}const xL=X("ZodLazy",(e,t)=>{kz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.getter()});function SL(e){return new xL({type:"lazy",getter:e})}const kL=X("ZodPromise",(e,t)=>{Sz.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ure(e){return new kL({type:"promise",innerType:e})}const $L=X("ZodFunction",(e,t)=>{xz.init(e,t),Je.init(e,t)});function $I(e){return new $L({type:"function",input:Array.isArray(e==null?void 0:e.input)?tL(e==null?void 0:e.input):(e==null?void 0:e.input)??Sd(Eu()),output:(e==null?void 0:e.output)??Eu()})}const ng=X("ZodCustom",(e,t)=>{$z.init(e,t),Je.init(e,t)});function cre(e){const t=new Kt({check:"custom"});return t._zod.check=e,t}function fre(e,t){return h4(ng,e??(()=>!0),t)}function _L(e,t={}){return v4(ng,e,t)}function PL(e){return g4(e)}const dre=b4,pre=w4;function mre(e,t={error:`Input not instance of ${e.name}`}){const r=new ng({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...ce(t)});return r._zod.bag.Class=e,r}const hre=(...e)=>x4({Codec:n$,Boolean:eg,String:Xv},...e);function vre(e){const t=SL(()=>rg([il(e),F4(),B4(),Z4(),Sd(t),rL(il(),t)]));return t}function gre(e,t){return yh(Jk(e),t)}const yre={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function bre(e){tn({customError:e})}function wre(){return tn().customError}var fx;fx||(fx={});function xre(e){return jz(Xv,e)}function Sre(e){return Uz(Jv,e)}function kre(e){return qz(eg,e)}function $re(e){return Gz(tg,e)}function _re(e){return a4(Vk,e)}const Pre=Object.freeze(Object.defineProperty({__proto__:null,bigint:$re,boolean:kre,date:_re,number:Sre,string:xre},Symbol.toStringTag,{value:"Module"}));tn(_z());const ge=Object.freeze(Object.defineProperty({__proto__:null,$brand:FN,$input:Iz,$output:Ez,NEVER:UN,TimePrecision:Rz,ZodAny:q4,ZodArray:X4,ZodBase64:Bk,ZodBase64URL:Wk,ZodBigInt:tg,ZodBigIntFormat:Zk,ZodBoolean:eg,ZodCIDRv4:Uk,ZodCIDRv6:Fk,ZodCUID:Ak,ZodCUID2:Rk,ZodCatch:hL,ZodCodec:n$,ZodCustom:ng,ZodCustomStringFormat:xd,ZodDate:Vk,ZodDefault:uL,ZodDiscriminatedUnion:Q4,ZodE164:Kk,ZodEmail:Ik,ZodEmoji:Tk,ZodEnum:Tf,ZodError:ste,ZodFile:aL,get ZodFirstPartyTypeKind(){return fx},ZodFunction:$L,ZodGUID:mh,ZodIPv4:zk,ZodIPv6:Lk,ZodISODate:Pk,ZodISODateTime:_k,ZodISODuration:Ck,ZodISOTime:Ok,ZodIntersection:J4,ZodIssueCode:yre,ZodJWT:Hk,ZodKSUID:Dk,ZodLazy:xL,ZodLiteral:oL,ZodMAC:U4,ZodMap:nL,ZodNaN:gL,ZodNanoID:jk,ZodNever:G4,ZodNonOptional:t$,ZodNull:H4,ZodNullable:lL,ZodNumber:Jv,ZodNumberFormat:Ku,ZodObject:Hu,ZodOptional:e$,ZodPipe:r$,ZodPrefault:fL,ZodPromise:kL,ZodReadonly:yL,ZodRealError:Fn,ZodRecord:Xk,ZodSet:iL,ZodString:Xv,ZodStringFormat:At,ZodSuccess:mL,ZodSymbol:W4,ZodTemplateLiteral:wL,ZodTransform:sL,ZodTuple:eL,ZodType:Je,ZodULID:Nk,ZodURL:Qv,ZodUUID:No,ZodUndefined:K4,ZodUnion:Gk,ZodUnknown:V4,ZodVoid:Y4,ZodXID:Mk,_ZodString:Ek,_default:cL,_function:$I,any:Hte,array:Sd,base64:Cte,base64url:Ete,bigint:Ute,boolean:B4,catch:vL,check:cre,cidrv4:Pte,cidrv6:Ote,clone:di,codec:sre,coerce:Pre,config:tn,core:ote,cuid:yte,cuid2:bte,custom:fre,date:qte,decode:A4,decodeAsync:N4,describe:dre,discriminatedUnion:Xte,e164:Ite,email:lte,emoji:vte,encode:j4,encodeAsync:R4,endsWith:yk,enum:Qk,file:nre,flattenError:k1,float32:Mte,float64:Dte,formatError:$1,function:$I,getErrorMap:wre,globalRegistry:Ii,gt:nl,gte:In,guid:ute,hash:Nte,hex:Rte,hostname:Ate,httpUrl:hte,includes:vk,instanceof:mre,int:cx,int32:zte,int64:Fte,intersection:Yk,ipv4:kte,ipv6:_te,iso:ate,json:vre,jwt:Tte,keyof:Vte,ksuid:Ste,lazy:SL,length:Yv,literal:rre,locales:Cz,looseObject:Yte,lowercase:mk,lt:rl,lte:Ri,mac:$te,map:Jte,maxLength:Gv,maxSize:Vv,meta:pre,mime:bk,minLength:Cu,minSize:If,multipleOf:Ef,nan:are,nanoid:gte,nativeEnum:tre,negative:u4,never:qk,nonnegative:f4,nonoptional:pL,nonpositive:c4,normalize:wk,null:Z4,nullable:gh,nullish:ire,number:F4,object:hh,optional:vh,overwrite:es,parse:C4,parseAsync:E4,partialRecord:Qte,pipe:yh,positive:l4,prefault:dL,preprocess:gre,prettifyError:lM,promise:ure,property:d4,readonly:bL,record:rL,refine:_L,regex:pk,regexes:R1,registry:H1,safeDecode:D4,safeDecodeAsync:L4,safeEncode:M4,safeEncodeAsync:z4,safeParse:I4,safeParseAsync:T4,set:ere,setErrorMap:bre,size:dk,slugify:$k,startsWith:gk,strictObject:Gte,string:il,stringFormat:jte,stringbool:hre,success:ore,superRefine:PL,symbol:Wte,templateLiteral:lre,toJSONSchema:S4,toLowerCase:Sk,toUpperCase:kk,transform:Jk,treeifyError:aM,trim:xk,tuple:tL,uint32:Lte,uint64:Bte,ulid:wte,undefined:Kte,union:rg,unknown:Eu,uppercase:hk,url:mte,util:iM,uuid:cte,uuidv4:fte,uuidv6:dte,uuidv7:pte,void:Zte,xid:xte},Symbol.toStringTag,{value:"Module"}));var bh=(e,t)=>e.parse(t);function OL(e,t){return e&&t?Yk(e,t):e??t}function CL(e){var r,n;const t=e.shape?e.shape:(n=(r=e._def)==null?void 0:r.shape)==null?void 0:n.call(r);return t?typeof t=="function"?t.call(e):t:{}}function EL(e,t=[]){if(!e)return[];const r=[];for(const[n,i]of Object.entries(e))if(i instanceof Hu){const o=CL(i),a=EL(o,[...t,n]);r.push(...a.length?a:[[...t,n].join("_")])}else t.length>0&&r.push([...t,n].join("_"));return r}function i$(e,t){return t?e.replace(/:([A-Za-z0-9_]+)/g,(r,n)=>{const i=t[n];if(i==null)throw new Error(`Missing param :${n}`);return String(i)}):e}function Ore(e){let t=e.leaf.path;return e.params&&(t=i$(t,e.params)),[e.leaf.method,...t.split("/").filter(Boolean),e.query??{}]}function Cre(e){const r={...e.node??{},...e.cfg},n=r.feed===!0?OL(r.querySchema,r.queryExtensionSchema):r.querySchema,i=r.outputSchema?hh({out:r.outputSchema,meta:r.outputMetaSchema??il().optional()}):hh({meta:r.outputMetaSchema??il().optional()});if(r.feed===!0&&n instanceof Hu){const o=CL(n),a=EL(o);a.length>0&&console.warn(`[routesV3.builder] Warning: feed query schema for ${e.method.toUpperCase()} ${e.path} contains nested objects. Consider using flat keys instead: ${a.join(", ")}`)}return{method:e.method,path:e.path,cfg:{...r,bodySchema:r.bodySchema,querySchema:n,paramsSchema:r.paramsSchema,outputSchema:i,outputMetaSchema:r.outputMetaSchema,queryExtensionSchema:r.queryExtensionSchema}}}function Iu(e,t,r){const n=e??"",i=Ere(n,!!r),o={},a=Ire(n,r);function u(c,f,d){const m=[],h=c,g=f;let y=d;function x(k,C){const $=C.paramsSchema??y,P=$?{...C,paramsSchema:$}:{...C},O=Cre({method:k,path:h,node:g,cfg:P});return m.push(O),w}const w={sub(...k){if(k.length===0)throw new Error("sub() expects at least one resource");for(const C of k)for(const $ of C){const P=$,O=P.cfg,E=O.paramsSchema,j=OL(y,E),R={...g,...O};j?R.paramsSchema=j:"paramsSchema"in R&&delete R.paramsSchema;const D={method:P.method,path:Tre(h,P.path),cfg:R};m.push(D)}return w},get(k){return x("get",k)},post(k){return x("post",{...k,feed:!1})},put(k){return x("put",{...k,feed:!1})},patch(k){return x("patch",{...k,feed:!1})},delete(k){return x("delete",{...k,feed:!1})},done(){return m}};return w}return u(i,o,a)}function Ere(e,t){const r=e??"";if(!t)return r;if(!r)throw new Error("resource() requires a segment name when defining an id schema");if(r.includes("/")){const n=r.split("/").filter(Boolean);if(n.length===0)throw new Error("resource() received an invalid segment for param injection");const i=n.length-1,o=n[i];return n[i]=o.startsWith(":")?o:`:${o}`,`${r.startsWith("/")?"/":""}${n.join("/")}`}return r.startsWith(":")?r:`:${r}`}function Ire(e,t){if(!t)return;const r=e.split("/").filter(Boolean),n=r.length>0?r[r.length-1]:e,i=n.startsWith(":")?n.slice(1):n;if(!i)throw new Error("resource() requires a non-empty name for id schema");return hh({[i]:t})}function Tre(e,t){if(!e)return t;if(!t)return e;const r=e.endsWith("/")?e.replace(/\/+$/,""):e,n=t.startsWith("/")?t.replace(/^\/+/,""):t;return n?`${r}/${n}`:r}var Zu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jre={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,OS,W2,Are=(W2=class{constructor(){Ne(this,Ra,jre);Ne(this,OS,!1)}setTimeoutProvider(e){_e(this,Ra,e)}setTimeout(e,t){return B(this,Ra).setTimeout(e,t)}clearTimeout(e){B(this,Ra).clearTimeout(e)}setInterval(e,t){return B(this,Ra).setInterval(e,t)}clearInterval(e){B(this,Ra).clearInterval(e)}},Ra=new WeakMap,OS=new WeakMap,W2),As=new Are;function Rre(e){setTimeout(e,0)}var ol=typeof window>"u"||"Deno"in globalThis;function Jr(){}function Nre(e,t){return typeof e=="function"?e(t):e}function dx(e){return typeof e=="number"&&e>=0&&e!==1/0}function IL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ka(e,t){return typeof e=="function"?e(t):e}function ti(e,t){return typeof e=="function"?e(t):e}function _I(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:u}=e;if(a){if(n){if(t.queryHash!==o$(a,t.options))return!1}else if(!jf(t.queryKey,a))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function PI(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(al(t.options.mutationKey)!==al(o))return!1}else if(!jf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function o$(e,t){return((t==null?void 0:t.queryKeyHashFn)||al)(e)}function al(e){return JSON.stringify(e,(t,r)=>px(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function jf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>jf(e[r],t[r])):!1}var Mre=Object.prototype.hasOwnProperty;function TL(e,t){if(e===t)return e;const r=OI(e)&&OI(t);if(!r&&!(px(e)&&px(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,u=r?new Array(a):{};let c=0;for(let f=0;f<a;f++){const d=r?f:o[f],m=e[d],h=t[d];if(m===h){u[d]=m,(r?f<i:Mre.call(e,d))&&c++;continue}if(m===null||h===null||typeof m!="object"||typeof h!="object"){u[d]=h;continue}const g=TL(m,h);u[d]=g,g===m&&c++}return i===a&&c===i?e:u}function wh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function OI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function px(e){if(!CI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!CI(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function CI(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dre(e){return new Promise(t=>{As.setTimeout(t,e)})}function mx(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?TL(e,t):t}function EI(e){return e}function zre(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Lre(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var a$=Symbol();function jL(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===a$?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function AL(e,t){return typeof e=="function"?e(...t):!!e}var Ds,Na,ou,K2,Ure=(K2=class extends Zu{constructor(){super();Ne(this,Ds);Ne(this,Na);Ne(this,ou);_e(this,ou,t=>{if(!ol&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){B(this,Na)||this.setEventListener(B(this,ou))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,Na))==null||t.call(this),_e(this,Na,void 0))}setEventListener(t){var r;_e(this,ou,t),(r=B(this,Na))==null||r.call(this),_e(this,Na,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){B(this,Ds)!==t&&(_e(this,Ds,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof B(this,Ds)=="boolean"?B(this,Ds):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ds=new WeakMap,Na=new WeakMap,ou=new WeakMap,K2),s$=new Ure;function hx(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var Fre=Rre;function Bre(){let e=[],t=0,r=u=>{u()},n=u=>{u()},i=Fre;const o=u=>{t?e.push(u):i(()=>{r(u)})},a=()=>{const u=e;e=[],u.length&&i(()=>{n(()=>{u.forEach(c=>{r(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||a()}return c},batchCalls:u=>(...c)=>{o(()=>{u(...c)})},schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{i=u}}}var pr=Bre(),au,Ma,su,H2,Wre=(H2=class extends Zu{constructor(){super();Ne(this,au,!0);Ne(this,Ma);Ne(this,su);_e(this,su,t=>{if(!ol&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){B(this,Ma)||this.setEventListener(B(this,su))}onUnsubscribe(){var t;this.hasListeners()||((t=B(this,Ma))==null||t.call(this),_e(this,Ma,void 0))}setEventListener(t){var r;_e(this,su,t),(r=B(this,Ma))==null||r.call(this),_e(this,Ma,t(this.setOnline.bind(this)))}setOnline(t){B(this,au)!==t&&(_e(this,au,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return B(this,au)}},au=new WeakMap,Ma=new WeakMap,su=new WeakMap,H2),xh=new Wre;function Kre(e){return Math.min(1e3*2**e,3e4)}function RL(e){return(e??"online")==="online"?xh.isOnline():!0}var vx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function NL(e){let t=!1,r=0,n;const i=hx(),o=()=>i.status!=="pending",a=x=>{var w;if(!o()){const k=new vx(x);h(k),(w=e.onCancel)==null||w.call(e,k)}},u=()=>{t=!0},c=()=>{t=!1},f=()=>s$.isFocused()&&(e.networkMode==="always"||xh.isOnline())&&e.canRun(),d=()=>RL(e.networkMode)&&e.canRun(),m=x=>{o()||(n==null||n(),i.resolve(x))},h=x=>{o()||(n==null||n(),i.reject(x))},g=()=>new Promise(x=>{var w;n=k=>{(o()||f())&&x(k)},(w=e.onPause)==null||w.call(e)}).then(()=>{var x;n=void 0,o()||(x=e.onContinue)==null||x.call(e)}),y=()=>{if(o())return;let x;const w=r===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(k){x=Promise.reject(k)}Promise.resolve(x).then(m).catch(k=>{var E;if(o())return;const C=e.retry??(ol?0:3),$=e.retryDelay??Kre,P=typeof $=="function"?$(r,k):$,O=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,k);if(t||!O){h(k);return}r++,(E=e.onFail)==null||E.call(e,r,k),Dre(P).then(()=>f()?void 0:g()).then(()=>{t?h(k):y()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(n==null||n(),i),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?y():g().then(y),i)}}var zs,Z2,ML=(Z2=class{constructor(){Ne(this,zs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dx(this.gcTime)&&_e(this,zs,As.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ol?1/0:300*1e3))}clearGcTimeout(){B(this,zs)&&(As.clearTimeout(B(this,zs)),_e(this,zs,void 0))}},zs=new WeakMap,Z2),Ls,lu,Jn,Us,_r,Gf,Fs,$i,Oo,q2,Hre=(q2=class extends ML{constructor(t){super();Ne(this,$i);Ne(this,Ls);Ne(this,lu);Ne(this,Jn);Ne(this,Us);Ne(this,_r);Ne(this,Gf);Ne(this,Fs);_e(this,Fs,!1),_e(this,Gf,t.defaultOptions),this.setOptions(t.options),this.observers=[],_e(this,Us,t.client),_e(this,Jn,B(this,Us).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_e(this,Ls,TI(this.options)),this.state=t.state??B(this,Ls),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=B(this,_r))==null?void 0:t.promise}setOptions(t){if(this.options={...B(this,Gf),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=TI(this.options);r.data!==void 0&&(this.setState(II(r.data,r.dataUpdatedAt)),_e(this,Ls,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&B(this,Jn).remove(this)}setData(t,r){const n=mx(this.state.data,t,this.options);return Xe(this,$i,Oo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Xe(this,$i,Oo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=B(this,_r))==null?void 0:n.promise;return(i=B(this,_r))==null||i.cancel(t),r?r.then(Jr).catch(Jr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(B(this,Ls))}isActive(){return this.observers.some(t=>ti(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===a$||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ka(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!IL(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=B(this,_r))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=B(this,_r))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),B(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(B(this,_r)&&(B(this,Fs)?B(this,_r).cancel({revert:!0}):B(this,_r).cancelRetry()),this.scheduleGc()),B(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xe(this,$i,Oo).call(this,{type:"invalidate"})}async fetch(t,r){var c,f,d,m,h,g,y,x,w,k,C,$;if(this.state.fetchStatus!=="idle"&&((c=B(this,_r))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(B(this,_r))return B(this,_r).continueRetry(),B(this,_r).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(O=>O.options.queryFn);P&&this.setOptions(P.options)}const n=new AbortController,i=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(_e(this,Fs,!0),n.signal)})},o=()=>{const P=jL(this.options,r),E=(()=>{const j={client:B(this,Us),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return _e(this,Fs,!1),this.options.persister?this.options.persister(P,E,this):P(E)},u=(()=>{const P={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:B(this,Us),state:this.state,fetchFn:o};return i(P),P})();(f=this.options.behavior)==null||f.onFetch(u,this),_e(this,lu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=u.fetchOptions)==null?void 0:d.meta))&&Xe(this,$i,Oo).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta}),_e(this,_r,NL({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:P=>{P instanceof vx&&P.revert&&this.setState({...B(this,lu),fetchStatus:"idle"}),n.abort()},onFail:(P,O)=>{Xe(this,$i,Oo).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{Xe(this,$i,Oo).call(this,{type:"pause"})},onContinue:()=>{Xe(this,$i,Oo).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const P=await B(this,_r).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(g=(h=B(this,Jn).config).onSuccess)==null||g.call(h,P,this),(x=(y=B(this,Jn).config).onSettled)==null||x.call(y,P,this.state.error,this),P}catch(P){if(P instanceof vx){if(P.silent)return B(this,_r).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Xe(this,$i,Oo).call(this,{type:"error",error:P}),(k=(w=B(this,Jn).config).onError)==null||k.call(w,P,this),($=(C=B(this,Jn).config).onSettled)==null||$.call(C,this.state.data,P,this),P}finally{this.scheduleGc()}}},Ls=new WeakMap,lu=new WeakMap,Jn=new WeakMap,Us=new WeakMap,_r=new WeakMap,Gf=new WeakMap,Fs=new WeakMap,$i=new WeakSet,Oo=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...DL(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...II(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _e(this,lu,t.manual?i:void 0),i;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),pr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),B(this,Jn).notify({query:this,type:"updated",action:t})})},q2);function DL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RL(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function II(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function TI(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var dn,at,Yf,Xr,Bs,uu,Eo,Da,Xf,cu,fu,Ws,Ks,za,du,St,cf,gx,yx,bx,wx,xx,Sx,kx,LL,V2,zL=(V2=class extends Zu{constructor(t,r){super();Ne(this,St);Ne(this,dn);Ne(this,at);Ne(this,Yf);Ne(this,Xr);Ne(this,Bs);Ne(this,uu);Ne(this,Eo);Ne(this,Da);Ne(this,Xf);Ne(this,cu);Ne(this,fu);Ne(this,Ws);Ne(this,Ks);Ne(this,za);Ne(this,du,new Set);this.options=r,_e(this,dn,t),_e(this,Da,null),_e(this,Eo,hx()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(B(this,at).addObserver(this),jI(B(this,at),this.options)?Xe(this,St,cf).call(this):this.updateResult(),Xe(this,St,wx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $x(B(this,at),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $x(B(this,at),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Xe(this,St,xx).call(this),Xe(this,St,Sx).call(this),B(this,at).removeObserver(this)}setOptions(t){const r=this.options,n=B(this,at);if(this.options=B(this,dn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ti(this.options.enabled,B(this,at))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Xe(this,St,kx).call(this),B(this,at).setOptions(this.options),r._defaulted&&!wh(this.options,r)&&B(this,dn).getQueryCache().notify({type:"observerOptionsUpdated",query:B(this,at),observer:this});const i=this.hasListeners();i&&AI(B(this,at),n,this.options,r)&&Xe(this,St,cf).call(this),this.updateResult(),i&&(B(this,at)!==n||ti(this.options.enabled,B(this,at))!==ti(r.enabled,B(this,at))||Ka(this.options.staleTime,B(this,at))!==Ka(r.staleTime,B(this,at)))&&Xe(this,St,gx).call(this);const o=Xe(this,St,yx).call(this);i&&(B(this,at)!==n||ti(this.options.enabled,B(this,at))!==ti(r.enabled,B(this,at))||o!==B(this,za))&&Xe(this,St,bx).call(this,o)}getOptimisticResult(t){const r=B(this,dn).getQueryCache().build(B(this,dn),t),n=this.createResult(r,t);return qre(this,n)&&(_e(this,Xr,n),_e(this,uu,this.options),_e(this,Bs,B(this,at).state)),n}getCurrentResult(){return B(this,Xr)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&B(this,Eo).status==="pending"&&B(this,Eo).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){B(this,du).add(t)}getCurrentQuery(){return B(this,at)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=B(this,dn).defaultQueryOptions(t),n=B(this,dn).getQueryCache().build(B(this,dn),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Xe(this,St,cf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),B(this,Xr)))}createResult(t,r){var D;const n=B(this,at),i=this.options,o=B(this,Xr),a=B(this,Bs),u=B(this,uu),f=t!==n?t.state:B(this,Yf),{state:d}=t;let m={...d},h=!1,g;if(r._optimisticResults){const L=this.hasListeners(),M=!L&&jI(t,r),I=L&&AI(t,n,r,i);(M||I)&&(m={...m,...DL(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:x,status:w}=m;g=m.data;let k=!1;if(r.placeholderData!==void 0&&g===void 0&&w==="pending"){let L;o!=null&&o.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(L=o.data,k=!0):L=typeof r.placeholderData=="function"?r.placeholderData((D=B(this,fu))==null?void 0:D.state.data,B(this,fu)):r.placeholderData,L!==void 0&&(w="success",g=mx(o==null?void 0:o.data,L,r),h=!0)}if(r.select&&g!==void 0&&!k)if(o&&g===(a==null?void 0:a.data)&&r.select===B(this,Xf))g=B(this,cu);else try{_e(this,Xf,r.select),g=r.select(g),g=mx(o==null?void 0:o.data,g,r),_e(this,cu,g),_e(this,Da,null)}catch(L){_e(this,Da,L)}B(this,Da)&&(y=B(this,Da),g=B(this,cu),x=Date.now(),w="error");const C=m.fetchStatus==="fetching",$=w==="pending",P=w==="error",O=$&&C,E=g!==void 0,R={status:w,fetchStatus:m.fetchStatus,isPending:$,isSuccess:w==="success",isError:P,isInitialLoading:O,isLoading:O,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:x,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!$,isLoadingError:P&&!E,isPaused:m.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:P&&E,isStale:l$(t,r),refetch:this.refetch,promise:B(this,Eo),isEnabled:ti(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=W=>{R.status==="error"?W.reject(R.error):R.data!==void 0&&W.resolve(R.data)},M=()=>{const W=_e(this,Eo,R.promise=hx());L(W)},I=B(this,Eo);switch(I.status){case"pending":t.queryHash===n.queryHash&&L(I);break;case"fulfilled":(R.status==="error"||R.data!==I.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==I.reason)&&M();break}}return R}updateResult(){const t=B(this,Xr),r=this.createResult(B(this,at),this.options);if(_e(this,Bs,B(this,at).state),_e(this,uu,this.options),B(this,Bs).data!==void 0&&_e(this,fu,B(this,at)),wh(r,t))return;_e(this,Xr,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!B(this,du).size)return!0;const a=new Set(o??B(this,du));return this.options.throwOnError&&a.add("error"),Object.keys(B(this,Xr)).some(u=>{const c=u;return B(this,Xr)[c]!==t[c]&&a.has(c)})};Xe(this,St,LL).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Xe(this,St,wx).call(this)}},dn=new WeakMap,at=new WeakMap,Yf=new WeakMap,Xr=new WeakMap,Bs=new WeakMap,uu=new WeakMap,Eo=new WeakMap,Da=new WeakMap,Xf=new WeakMap,cu=new WeakMap,fu=new WeakMap,Ws=new WeakMap,Ks=new WeakMap,za=new WeakMap,du=new WeakMap,St=new WeakSet,cf=function(t){Xe(this,St,kx).call(this);let r=B(this,at).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Jr)),r},gx=function(){Xe(this,St,xx).call(this);const t=Ka(this.options.staleTime,B(this,at));if(ol||B(this,Xr).isStale||!dx(t))return;const n=IL(B(this,Xr).dataUpdatedAt,t)+1;_e(this,Ws,As.setTimeout(()=>{B(this,Xr).isStale||this.updateResult()},n))},yx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(B(this,at)):this.options.refetchInterval)??!1},bx=function(t){Xe(this,St,Sx).call(this),_e(this,za,t),!(ol||ti(this.options.enabled,B(this,at))===!1||!dx(B(this,za))||B(this,za)===0)&&_e(this,Ks,As.setInterval(()=>{(this.options.refetchIntervalInBackground||s$.isFocused())&&Xe(this,St,cf).call(this)},B(this,za)))},wx=function(){Xe(this,St,gx).call(this),Xe(this,St,bx).call(this,Xe(this,St,yx).call(this))},xx=function(){B(this,Ws)&&(As.clearTimeout(B(this,Ws)),_e(this,Ws,void 0))},Sx=function(){B(this,Ks)&&(As.clearInterval(B(this,Ks)),_e(this,Ks,void 0))},kx=function(){const t=B(this,dn).getQueryCache().build(B(this,dn),this.options);if(t===B(this,at))return;const r=B(this,at);_e(this,at,t),_e(this,Yf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},LL=function(t){pr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(B(this,Xr))}),B(this,dn).getQueryCache().notify({query:B(this,at),type:"observerResultsUpdated"})})},V2);function Zre(e,t){return ti(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jI(e,t){return Zre(e,t)||e.state.data!==void 0&&$x(e,t,t.refetchOnMount)}function $x(e,t,r){if(ti(t.enabled,e)!==!1&&Ka(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&l$(e,t)}return!1}function AI(e,t,r,n){return(e!==t||ti(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&l$(e,r)}function l$(e,t){return ti(t.enabled,e)!==!1&&e.isStaleByTime(Ka(t.staleTime,e))}function qre(e,t){return!wh(e.getCurrentResult(),t)}function Sh(e){return{onFetch:(t,r)=>{var d,m,h,g,y;const n=t.options,i=(h=(m=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:m.fetchMore)==null?void 0:h.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let x=!1;const w=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},k=jL(t.options,t.fetchOptions),C=async($,P,O)=>{if(x)return Promise.reject();if(P==null&&$.pages.length)return Promise.resolve($);const j=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:P,direction:O?"backward":"forward",meta:t.options.meta};return w(M),M})(),R=await k(j),{maxPages:D}=t.options,L=O?Lre:zre;return{pages:L($.pages,R,D),pageParams:L($.pageParams,P,D)}};if(i&&o.length){const $=i==="backward",P=$?UL:_x,O={pages:o,pageParams:a},E=P(n,O);u=await C(O,E,$)}else{const $=e??o.length;do{const P=c===0?a[0]??n.initialPageParam:_x(n,u);if(c>0&&P==null)break;u=await C(u,P),c++}while(c<$)}return u};t.options.persister?t.fetchFn=()=>{var x,w;return(w=(x=t.options).persister)==null?void 0:w.call(x,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function _x(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function UL(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function Vre(e,t){return t?_x(e,t)!=null:!1}function Gre(e,t){return!t||!e.getPreviousPageParam?!1:UL(e,t)!=null}var Yre=class extends zL{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Sh()})}getOptimisticResult(e){return e.behavior=Sh(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var y,x;const{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:a,isRefetchError:u}=n,c=(x=(y=r.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:x.direction,f=a&&c==="forward",d=i&&c==="forward",m=a&&c==="backward",h=i&&c==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Vre(t,r.data),hasPreviousPage:Gre(t,r.data),isFetchNextPageError:f,isFetchingNextPage:d,isFetchPreviousPageError:m,isFetchingPreviousPage:h,isRefetchError:u&&!f&&!m,isRefetching:o&&!d&&!h}}},Qf,Qi,Qr,Hs,Ji,Ia,G2,Xre=(G2=class extends ML{constructor(t){super();Ne(this,Ji);Ne(this,Qf);Ne(this,Qi);Ne(this,Qr);Ne(this,Hs);_e(this,Qf,t.client),this.mutationId=t.mutationId,_e(this,Qr,t.mutationCache),_e(this,Qi,[]),this.state=t.state||FL(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){B(this,Qi).includes(t)||(B(this,Qi).push(t),this.clearGcTimeout(),B(this,Qr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_e(this,Qi,B(this,Qi).filter(r=>r!==t)),this.scheduleGc(),B(this,Qr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){B(this,Qi).length||(this.state.status==="pending"?this.scheduleGc():B(this,Qr).remove(this))}continue(){var t;return((t=B(this,Hs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,u,c,f,d,m,h,g,y,x,w,k,C,$,P,O,E,j,R,D;const r=()=>{Xe(this,Ji,Ia).call(this,{type:"continue"})},n={client:B(this,Qf),meta:this.options.meta,mutationKey:this.options.mutationKey};_e(this,Hs,NL({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(L,M)=>{Xe(this,Ji,Ia).call(this,{type:"failed",failureCount:L,error:M})},onPause:()=>{Xe(this,Ji,Ia).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>B(this,Qr).canRun(this)}));const i=this.state.status==="pending",o=!B(this,Hs).canStart();try{if(i)r();else{Xe(this,Ji,Ia).call(this,{type:"pending",variables:t,isPaused:o}),await((u=(a=B(this,Qr).config).onMutate)==null?void 0:u.call(a,t,this,n));const M=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t,n));M!==this.state.context&&Xe(this,Ji,Ia).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const L=await B(this,Hs).start();return await((m=(d=B(this,Qr).config).onSuccess)==null?void 0:m.call(d,L,t,this.state.context,this,n)),await((g=(h=this.options).onSuccess)==null?void 0:g.call(h,L,t,this.state.context,n)),await((x=(y=B(this,Qr).config).onSettled)==null?void 0:x.call(y,L,null,this.state.variables,this.state.context,this,n)),await((k=(w=this.options).onSettled)==null?void 0:k.call(w,L,null,t,this.state.context,n)),Xe(this,Ji,Ia).call(this,{type:"success",data:L}),L}catch(L){try{throw await(($=(C=B(this,Qr).config).onError)==null?void 0:$.call(C,L,t,this.state.context,this,n)),await((O=(P=this.options).onError)==null?void 0:O.call(P,L,t,this.state.context,n)),await((j=(E=B(this,Qr).config).onSettled)==null?void 0:j.call(E,void 0,L,this.state.variables,this.state.context,this,n)),await((D=(R=this.options).onSettled)==null?void 0:D.call(R,void 0,L,t,this.state.context,n)),L}finally{Xe(this,Ji,Ia).call(this,{type:"error",error:L})}}finally{B(this,Qr).runNext(this)}}},Qf=new WeakMap,Qi=new WeakMap,Qr=new WeakMap,Hs=new WeakMap,Ji=new WeakSet,Ia=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pr.batch(()=>{B(this,Qi).forEach(n=>{n.onMutationUpdate(t)}),B(this,Qr).notify({mutation:this,type:"updated",action:t})})},G2);function FL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Io,_i,Jf,Y2,Qre=(Y2=class extends Zu{constructor(t={}){super();Ne(this,Io);Ne(this,_i);Ne(this,Jf);this.config=t,_e(this,Io,new Set),_e(this,_i,new Map),_e(this,Jf,0)}build(t,r,n){const i=new Xre({client:t,mutationCache:this,mutationId:++Jp(this,Jf)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){B(this,Io).add(t);const r=ym(t);if(typeof r=="string"){const n=B(this,_i).get(r);n?n.push(t):B(this,_i).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(B(this,Io).delete(t)){const r=ym(t);if(typeof r=="string"){const n=B(this,_i).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&B(this,_i).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ym(t);if(typeof r=="string"){const n=B(this,_i).get(r),i=n==null?void 0:n.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=ym(t);if(typeof r=="string"){const i=(n=B(this,_i).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pr.batch(()=>{B(this,Io).forEach(t=>{this.notify({type:"removed",mutation:t})}),B(this,Io).clear(),B(this,_i).clear()})}getAll(){return Array.from(B(this,Io))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>PI(r,n))}findAll(t={}){return this.getAll().filter(r=>PI(t,r))}notify(t){pr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return pr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Jr))))}},Io=new WeakMap,_i=new WeakMap,Jf=new WeakMap,Y2);function ym(e){var t;return(t=e.options.scope)==null?void 0:t.id}var To,La,pn,jo,Fo,Hm,Px,X2,Jre=(X2=class extends Zu{constructor(t,r){super();Ne(this,Fo);Ne(this,To);Ne(this,La);Ne(this,pn);Ne(this,jo);_e(this,To,t),this.setOptions(r),this.bindMethods(),Xe(this,Fo,Hm).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=B(this,To).defaultMutationOptions(t),wh(this.options,r)||B(this,To).getMutationCache().notify({type:"observerOptionsUpdated",mutation:B(this,pn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&al(r.mutationKey)!==al(this.options.mutationKey)?this.reset():((n=B(this,pn))==null?void 0:n.state.status)==="pending"&&B(this,pn).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=B(this,pn))==null||t.removeObserver(this)}onMutationUpdate(t){Xe(this,Fo,Hm).call(this),Xe(this,Fo,Px).call(this,t)}getCurrentResult(){return B(this,La)}reset(){var t;(t=B(this,pn))==null||t.removeObserver(this),_e(this,pn,void 0),Xe(this,Fo,Hm).call(this),Xe(this,Fo,Px).call(this)}mutate(t,r){var n;return _e(this,jo,r),(n=B(this,pn))==null||n.removeObserver(this),_e(this,pn,B(this,To).getMutationCache().build(B(this,To),this.options)),B(this,pn).addObserver(this),B(this,pn).execute(t)}},To=new WeakMap,La=new WeakMap,pn=new WeakMap,jo=new WeakMap,Fo=new WeakSet,Hm=function(){var r;const t=((r=B(this,pn))==null?void 0:r.state)??FL();_e(this,La,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Px=function(t){pr.batch(()=>{var r,n,i,o,a,u,c,f;if(B(this,jo)&&this.hasListeners()){const d=B(this,La).variables,m=B(this,La).context,h={client:B(this,To),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((n=(r=B(this,jo)).onSuccess)==null||n.call(r,t.data,d,m,h),(o=(i=B(this,jo)).onSettled)==null||o.call(i,t.data,null,d,m,h)):(t==null?void 0:t.type)==="error"&&((u=(a=B(this,jo)).onError)==null||u.call(a,t.error,d,m,h),(f=(c=B(this,jo)).onSettled)==null||f.call(c,void 0,t.error,d,m,h))}this.listeners.forEach(d=>{d(B(this,La))})})},X2),eo,Q2,ene=(Q2=class extends Zu{constructor(t={}){super();Ne(this,eo);this.config=t,_e(this,eo,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??o$(i,r);let a=this.get(o);return a||(a=new Hre({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){B(this,eo).has(t.queryHash)||(B(this,eo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=B(this,eo).get(t.queryHash);r&&(t.destroy(),r===t&&B(this,eo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return B(this,eo).get(t)}getAll(){return[...B(this,eo).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>_I(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>_I(t,n)):r}notify(t){pr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){pr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},eo=new WeakMap,Q2),Xt,Ua,Fa,pu,mu,Ba,hu,vu,J2,tne=(J2=class{constructor(e={}){Ne(this,Xt);Ne(this,Ua);Ne(this,Fa);Ne(this,pu);Ne(this,mu);Ne(this,Ba);Ne(this,hu);Ne(this,vu);_e(this,Xt,e.queryCache||new ene),_e(this,Ua,e.mutationCache||new Qre),_e(this,Fa,e.defaultOptions||{}),_e(this,pu,new Map),_e(this,mu,new Map),_e(this,Ba,0)}mount(){Jp(this,Ba)._++,B(this,Ba)===1&&(_e(this,hu,s$.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,Xt).onFocus())})),_e(this,vu,xh.subscribe(async e=>{e&&(await this.resumePausedMutations(),B(this,Xt).onOnline())})))}unmount(){var e,t;Jp(this,Ba)._--,B(this,Ba)===0&&((e=B(this,hu))==null||e.call(this),_e(this,hu,void 0),(t=B(this,vu))==null||t.call(this),_e(this,vu,void 0))}isFetching(e){return B(this,Xt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return B(this,Ua).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=B(this,Xt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=B(this,Xt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ka(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return B(this,Xt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=B(this,Xt).get(n.queryHash),o=i==null?void 0:i.state.data,a=Nre(t,o);if(a!==void 0)return B(this,Xt).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return pr.batch(()=>B(this,Xt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=B(this,Xt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=B(this,Xt);pr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=B(this,Xt);return pr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=pr.batch(()=>B(this,Xt).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Jr).catch(Jr)}invalidateQueries(e,t={}){return pr.batch(()=>(B(this,Xt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=pr.batch(()=>B(this,Xt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(Jr)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Jr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=B(this,Xt).build(this,t);return r.isStaleByTime(Ka(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jr).catch(Jr)}fetchInfiniteQuery(e){return e.behavior=Sh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jr).catch(Jr)}ensureInfiniteQueryData(e){return e.behavior=Sh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return xh.isOnline()?B(this,Ua).resumePausedMutations():Promise.resolve()}getQueryCache(){return B(this,Xt)}getMutationCache(){return B(this,Ua)}getDefaultOptions(){return B(this,Fa)}setDefaultOptions(e){_e(this,Fa,e)}setQueryDefaults(e,t){B(this,pu).set(al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...B(this,pu).values()],r={};return t.forEach(n=>{jf(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){B(this,mu).set(al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...B(this,mu).values()],r={};return t.forEach(n=>{jf(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...B(this,Fa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=o$(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===a$&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...B(this,Fa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){B(this,Xt).clear(),B(this,Ua).clear()}},Xt=new WeakMap,Ua=new WeakMap,Fa=new WeakMap,pu=new WeakMap,mu=new WeakMap,Ba=new WeakMap,hu=new WeakMap,vu=new WeakMap,J2),rne=b.createContext(void 0),BL=e=>{const t=b.useContext(rne);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},WL=b.createContext(!1),nne=()=>b.useContext(WL);WL.Provider;function ine(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var one=b.createContext(ine()),ane=()=>b.useContext(one),sne=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},lne=e=>{b.useEffect(()=>{e.clearReset()},[e])},une=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||AL(r,[e.error,n])),cne=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},fne=(e,t)=>e.isLoading&&e.isFetching&&!t,dne=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,RI=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function KL(e,t,r){var m,h,g,y,x;const n=nne(),i=ane(),o=BL(r),a=o.defaultQueryOptions(e);(h=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||h.call(m,a),a._optimisticResults=n?"isRestoring":"optimistic",cne(a),sne(a,i),lne(i);const u=!o.getQueryCache().get(a.queryHash),[c]=b.useState(()=>new t(o,a)),f=c.getOptimisticResult(a),d=!n&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(w=>{const k=d?c.subscribe(pr.batchCalls(w)):Jr;return c.updateResult(),k},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),b.useEffect(()=>{c.setOptions(a)},[a,c]),dne(a,f))throw RI(a,c,i);if(une({result:f,errorResetBoundary:i,throwOnError:a.throwOnError,query:o.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw f.error;if((y=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||y.call(g,a,f),a.experimental_prefetchInRender&&!ol&&fne(f,n)){const w=u?RI(a,c,i):(x=o.getQueryCache().get(a.queryHash))==null?void 0:x.promise;w==null||w.catch(Jr).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?f:c.trackResult(f)}function pne(e,t){return KL(e,zL,t)}function mne(e,t){const r=BL(t),[n]=b.useState(()=>new Jre(r,e));b.useEffect(()=>{n.setOptions(e)},[n,e]);const i=b.useSyncExternalStore(b.useCallback(a=>n.subscribe(pr.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=b.useCallback((a,u)=>{n.mutate(a,u).catch(Jr)},[n]);if(i.error&&AL(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function hne(e,t){return KL(e,Yre,t)}var HL=class extends Error{constructor({res:e,url:t,body:{message:r}}){super(`[${e.status}] ${e.statusText}${r?` - ${r}`:""}`),this.name="HttpError",this.status=e.status,this.statusText=e.statusText,this.url=t,this.body={message:r},this.headers=e.headers?Object.fromEntries(e.headers.entries()):{}}},ZL=async e=>{const t={...e.headers??{}},r=typeof FormData<"u"&&e.body instanceof FormData;r||(t["Content-Type"]||(t["Content-Type"]="application/json"),t.Accept||(t.Accept="application/json"));const n=await fetch(e.url,{method:e.method,headers:t,body:r?e.body:e.body==null?void 0:JSON.stringify(e.body)}),i=await n.json();if(!n.ok)throw new HL({res:n,url:e.url,body:i});try{return{data:i,headers:n.headers?Object.fromEntries(n.headers.entries()):{},status:n.status}}catch{return{data:i,headers:n.headers?Object.fromEntries(n.headers.entries()):{},status:n.status}}},NI=e=>e.toUpperCase();function qL(e){if(!e)return"";const t=new URLSearchParams;for(const[n,i]of Object.entries(e))if(i!=null){if(Array.isArray(i)){i.forEach(o=>{o!=null&&(typeof o=="object"?t.append(n,JSON.stringify(o)):t.append(n,String(o)))});continue}if(typeof i=="object"){t.set(n,JSON.stringify(i));continue}t.set(n,String(i))}const r=t.toString();return r?`?${r}`:""}function vne(e,t){if(!e)return e;const{[t]:r,...n}=e;return n}var gne=e=>{if(!e||typeof e!="object")return;const t=e;if("nextCursor"in t)return t.nextCursor;if("meta"in t){const r=t.meta;if(r&&typeof r=="object"&&"nextCursor"in r)return r.nextCursor}},Yb=e=>{if(typeof console>"u")return;const t=console.debug??console.log;t==null||t.call(console,"[rrroutes-client]",e)},yne=["fetch","invalidate","setData","build","useEndpoint"],MI=()=>{};function bne(e,t){const r={emit:MI,mode:"minimal"};if(t&&t.toLowerCase()==="production"||!e)return r;if(e===!0||e==="minimal")return{emit:(n,i)=>Yb(i?{...n,name:i}:n),mode:"minimal"};if(e==="complete")return{emit:(n,i)=>Yb(i?{...n,name:i}:n),mode:"complete"};if(typeof e=="function")return{emit:(n,i)=>e(i?{...n,name:i}:n),mode:"minimal"};if(typeof e=="object"){const n=e,i=!!n.verbose,o=yne.filter(d=>n[d]);if(o.length===0)return{emit:MI,mode:i?"complete":"minimal"};const a=new Set(o),u=n.only&&n.only.length>0?new Set(n.only):void 0,c=n.logger??Yb;return{emit:(d,m)=>{a.has(d.type)&&(u&&(!m||!u.has(m))||c(m?{...d,name:m}:d))},mode:i?"complete":"minimal"}}return r}function DI(e){return e[0]}function Xb(e){return typeof e>"u"?[]:[e]}function Qb(e,t,r,n){const i=e.cfg.paramsSchema?bh(e.cfg.paramsSchema,r):{},o=e.cfg.querySchema?bh(e.cfg.querySchema,n):{},a=i$(e.path,i??{});return{url:`${t??""}${a}${qL(o)}`,normalizedQuery:o,normalizedParams:i}}function wne(e){const t=e.queryClient,r=e.fetcher??ZL,n=e.baseUrl,i=e.cursorParam??"pagination_cursor",o=e.getNextCursor??gne,a=e.environment??void 0,{emit:u,mode:c}=bne(e.debug,a),f=c==="complete",d=(y,x)=>!f||!x?y:{...y,...x};async function m(y,x=!1){const w=y;await t.invalidateQueries({queryKey:w,exact:x}),u({type:"invalidate",key:w,exact:x})}function h(y,x,w){const k=y.method==="get",C=!!y.cfg.feed,$=y.cfg,P=NI(y.method),O=!!($.paramsSchema||$.querySchema),E=`${y.method.toUpperCase()} ${String(y.path)}`,j=w==null?void 0:w.name,R=F=>u(F,j);R({type:"build",leaf:E});const D=(...F)=>{const z=DI(F),Y=z==null?void 0:z.params,N=z==null?void 0:z.query,G=k&&C?vne(N,i):N;return Ore({leaf:y,params:Y,query:G})},L=async(...F)=>{const z=D(...F);await t.invalidateQueries({queryKey:z,exact:!0}),R({type:"invalidate",key:z,exact:!0})},M=(...F)=>{const[z,...Y]=F,N=D(...Y);let G;return k&&C?G=t.setQueryData(N,ae=>typeof z=="function"?z(ae):z):G=t.setQueryData(N,ae=>typeof z=="function"?z(ae):z),R({type:"setData",key:N}),G},I=x==null?void 0:x.onReceive,W=async(F,z)=>{var be;const Y=DI(F),N=Y==null?void 0:Y.params,G=(z==null?void 0:z.queryOverride)??(Y==null?void 0:Y.query),{url:ae,normalizedQuery:ue,normalizedParams:pe}=Qb({...y,cfg:$},n,N,G);let le;const he=!!$.bodySchema,ke=(z==null?void 0:z.requireBody)??(!k&&he);if(typeof(z==null?void 0:z.body)<"u"){const re=$.bodySchema?bh($.bodySchema,z.body):void 0;Array.isArray($.bodyFiles)&&$.bodyFiles.length>0&&re&&typeof re=="object"?le=xne(re):le=re}else if(ke)throw new Error("Body is required when invoking a mutation fetch.");const Q=Date.now(),se=f?{params:pe,query:ue}:void 0;R(d({type:"fetch",stage:"start",method:P,url:ae,leaf:E,...le!==void 0?{body:le}:{}},se));try{const re=await r(le===void 0?{url:ae,method:P}:{url:ae,method:P,body:le}),Ue=$.outputSchema?bh($.outputSchema,re):void 0;return R(d({type:"fetch",stage:"success",method:P,url:ae,leaf:E,durationMs:Date.now()-Q},f?{params:pe,query:ue,output:Ue}:void 0)),(be=z==null?void 0:z.onReceive)==null||be.call(z,Ue),Ue}catch(re){throw R(d({type:"fetch",stage:"error",method:P,url:ae,leaf:E,durationMs:Date.now()-Q,...le!==void 0?{body:le}:{},error:re},se)),re}},K=(...F)=>{const z=!!$.bodySchema,Y=F.length,G=z&&Y>(O?1:0),ae=G?F[Y-1]:void 0,ue=G?F.slice(0,Y-1):F;return W(ue,{body:ae,onReceive:I,requireBody:!1})};if(k&&C)return{getQueryKeys:D,invalidate:L,setData:M,useEndpoint:(...z)=>{const Y=z[0];R({type:"useEndpoint",leaf:E,variant:"infiniteGet"});const N=Xb(Y),G=Y==null?void 0:Y.params,ae=Y==null?void 0:Y.query,ue=x??{},pe=b.useRef(new Set),le=b.useCallback(se=>{var be;(be=ue==null?void 0:ue.onReceive)==null||be.call(ue,se),pe.current.forEach(re=>re(se))},[]),he=b.useCallback(se=>(pe.current.add(se),()=>{pe.current.delete(se)}),[]),{normalizedQuery:ke}=Qb({...y,cfg:$},n,G,ae);return{...hne({...ue,queryKey:D(...N),initialPageParam:void 0,getNextPageParam:se=>o(se),placeholderData:EI,queryFn:({pageParam:se})=>{const be={...ke,...se?{[i]:se}:{}};return W(N,{queryOverride:be,onReceive:le})}},t),onReceive:he}},fetch:K};if(k)return{getQueryKeys:D,invalidate:L,setData:M,useEndpoint:(...z)=>{const Y=z[0];R({type:"useEndpoint",leaf:E,variant:"get"});const N=Xb(Y),G=Y==null?void 0:Y.params,ae=Y==null?void 0:Y.query,ue=x??{},pe=b.useRef(new Set),le=b.useCallback(Q=>{var se;(se=ue==null?void 0:ue.onReceive)==null||se.call(ue,Q),pe.current.forEach(be=>be(Q))},[]),he=b.useCallback(Q=>(pe.current.add(Q),()=>{pe.current.delete(Q)}),[]);return Qb({...y,cfg:$},n,G,ae),{...pne({...ue,queryKey:D(...N),placeholderData:EI,queryFn:()=>W(N,{onReceive:le})},t),onReceive:he}},fetch:K};const Z=x??{},V=async(...F)=>{if(F.length===0)throw new Error("Body is required when invoking a mutation fetch.");const z=F.length-1,Y=F.slice(0,z),N=F[z];return await W(Y,{body:N,onReceive:ae=>{var ue;return(ue=Z==null?void 0:Z.onReceive)==null?void 0:ue.call(Z,ae)},requireBody:!0})};return{getQueryKeys:D,invalidate:L,setData:M,useEndpoint:(...F)=>{const z=F[0];R({type:"useEndpoint",leaf:E,variant:"mutation"});const Y=Xb(z),N=b.useRef(new Set),G=b.useCallback(pe=>{N.current.forEach(le=>le(pe))},[]),ae=b.useCallback(pe=>(N.current.add(pe),()=>{N.current.delete(pe)}),[]);return{...mne({...Z,mutationKey:D(...Y),mutationFn:async pe=>{const le=await V(...Y,pe);return G(le),le}},t),onReceive:ae}},fetch:V}}return{queryClient:t,invalidate:m,fetch:async y=>{const{path:x,method:w,query:k,body:C,params:$}=y;if(!x||typeof x!="string")throw new Error("fetch(path, ...) requires a non-empty string path.");if(!w)throw new Error("fetch(path, method, ...) requires an HTTP method.");const P=String(w).toLowerCase(),O=NI(P),E=kne(k),j=qL(E),R=$ne(x,$),D=`${n??""}${R}${j}`,L=`${O} ${x}`,M=Date.now(),I=f?{params:$,query:E}:void 0;u(d({type:"fetch",stage:"start",method:O,url:D,leaf:L,...C!==void 0?{body:C}:{}},I));try{const W=await r(C===void 0?{url:D,method:O}:{url:D,method:O,body:C});return u(d({type:"fetch",stage:"success",method:O,url:D,leaf:L,durationMs:Date.now()-M},f?{params:$,query:E,output:W}:void 0)),W}catch(W){throw u(d({type:"fetch",stage:"error",method:O,url:D,leaf:L,durationMs:Date.now()-M,...C!==void 0?{body:C}:{},error:W},I)),W}},build:h}}function xne(e){const t=new FormData;for(const[r,n]of Object.entries(e??{}))n!=null&&(Array.isArray(n)?n.forEach((i,o)=>t.append(`${r}[${o}]`,i)):t.append(r,n));return t}function Sne(e){const t=new Set,r=/:([A-Za-z0-9_]+)/g;let n;for(;(n=r.exec(e))!==null;)t.add(n[1]);return t}function kne(e){if(e==null)return;if(typeof e!="object"||Array.isArray(e))throw new Error("Query must be a plain object (Record<string, string>).");const t={};for(const[r,n]of Object.entries(e))if(n!=null){if(typeof n!="string")throw new Error(`Query param "${r}" must be a string; received type "${typeof n}".`);t[r]=n}return Object.keys(t).length>0?t:void 0}function $ne(e,t){const r=Sne(e);if(!t||typeof t!="object"||Array.isArray(t)){if(r.size>0)throw new Error(`Missing path parameters for "${e}": ${[...r].join(", ")}`);return e}const n=t,i=new Set(Object.keys(n));for(const o of i){if(!r.has(o))throw new Error(`Unexpected path parameter "${o}" for template "${e}".`);const a=n[o];if(a!=null&&(typeof a=="object"||Array.isArray(a)))throw new Error(`Path parameter "${o}" must be a primitive; received "${typeof a}".`)}for(const o of r)if(!i.has(o))throw new Error(`Missing value for path parameter "${o}" in template "${e}".`);return r.size===0?e:i$(e,n)}rg([Sd(il()),il()]);b.createContext(null);const VL=b.createContext(null);function _ne({children:e,initialBaseUrl:t}){const[r,n]=b.useState([]),[i,o]=b.useState(t),a=b.useMemo(()=>new tne({}),[]),u=b.useMemo(()=>wne({baseUrl:i,queryClient:a,fetcher:async m=>ZL(m)}),[i,a]),c=b.useMemo(()=>({id:m,method:h,path:g})=>{console.log(m);const y=r.filter(x=>(console.log(x.id),x.log.method===h&&x.log.path===g&&(m?x.id===m:!0)));if(y.length>0)return y[y.length-1]},[r]),f=b.useMemo(()=>async(m,h,g,y)=>{const x=Date.now();let w,k,C=-1,$={};try{const E=await u.fetch({method:m,path:h,body:g.body&&g.body.trim().length>0?JSON.parse(g.body):void 0,query:g.query.reduce((j,R)=>(R.key.trim().length>0&&R.value&&R.enabled&&(j[R.key]=R.value),j),{}),params:g.params.reduce((j,R)=>(R.key.trim().length>0&&R.value&&R.enabled&&(j[R.key]=R.value),j),{})});w=E.data,C=E.status,$=E.headers}catch(E){E instanceof HL?(C=E.status,$=E.headers,k={message:E.body.message??E.message,stack:E.stack,name:E.name}):E instanceof Error?k={message:JSON.stringify(E.message),stack:E.stack,name:E.name}:k={message:"An unknown error occurred"}}const P=Date.now(),O={id:y,error:k,log:{durationMs:P-x,method:m,path:h,status:C,name:`${m.toUpperCase()} ${h}`,updatedAt:P,createdAt:x,id:`local-${Math.random().toString(36).substring(2,9)}`,body:g.body?JSON.parse(g.body):void 0,params:g.params.reduce((E,j)=>(j.key.trim().length>0&&j.value&&j.enabled&&(E[j.key]=j.value),E),{}),query:g.query.reduce((E,j)=>(j.key.trim().length>0&&j.value&&j.enabled&&(E[j.key]=j.value),E),{}),headers:$,error:k==null?void 0:k.message,output:w,groupId:void 0,tags:[],fullUrl:""}};return n(E=>[...E,O]),O},[]),d=b.useMemo(()=>({client:u,queryClient:a,baseUrl:i,headers:{},setBaseUrl:o,runs:r,getLastRun:c,fetch:f}),[u,r]);return A.jsx(VL.Provider,{value:d,children:e})}function GL(){const e=b.useContext(VL);if(!e)throw new Error("useHistoryStore must be used within HistoryProvider");return e}const kd=["get","post","put","patch","delete"],ig=ge.object({id:ge.string(),name:ge.string(),description:ge.string().optional(),groupId:ge.string().optional(),tags:ge.string().array().optional(),createdAt:ge.number(),updatedAt:ge.number()}),og=ge.object({beforeDate:ge.string().optional(),afterDate:ge.string().optional(),orderBy:ge.enum(["timestamp","duration","level","path"]).default("timestamp"),orderDirection:ge.enum(["asc","desc"]).default("desc"),searchQuery:ge.string().optional(),groups:ge.string().array().optional(),tags:ge.string().array().optional(),cursor:ge.string().optional()}),YL=ge.enum(["hit","miss","set","delete"]),XL=ig.extend({operation:YL,value:ge.any().nullable(),size:ge.number().optional()}),zI=og.extend({operations:YL.array().optional()});Iu("cache").get({feed:!0,outputSchema:XL.array(),querySchema:zI,outputMetaSchema:ge.object({totalCount:ge.number().optional()})}).post({querySchema:zI}).done();const QL=ge.enum(["info","warning","error","debug","trace"]),JL=ig.extend({level:QL,meta:ge.json()}),Pne=og.extend({level:QL.array().optional()});Iu("logs").get({feed:!0,outputSchema:JL.array(),querySchema:Pne,outputMetaSchema:ge.object({totalCount:ge.number().optional()})}).done();const Ox=ig.extend({status:ge.number(),body:ge.any().optional(),fullUrl:ge.string(),path:ge.string(),method:ge.enum(kd),query:ge.record(ge.string(),ge.any()).optional(),params:ge.record(ge.string(),ge.any()).optional(),output:ge.any().optional(),headers:ge.record(ge.string(),ge.any()).optional(),error:ge.string().optional(),durationMs:ge.number()}),One=og.extend({methods:ge.enum(kd).array().default([]),statuses:ge.number().array().default([]),path:ge.string().optional()});Iu("requests").get({feed:!0,outputSchema:Ox.array(),querySchema:One,outputMetaSchema:ge.object({totalCount:ge.number().optional()})}).sub(Iu(":requestId",void 0,ge.string()).get({outputSchema:Ox.extend({logs:ge.array(JL),caches:ge.array(XL)})}).done()).done();const Cne=["object","string","number","boolean","bigint","date","array","enum","literal","union","record","tuple","unknown","any"],Rs=ge.lazy(()=>ge.object({kind:ge.enum(Cne),optional:ge.boolean().optional(),nullable:ge.boolean().optional(),description:ge.string().optional(),properties:ge.record(ge.string(),Rs).optional(),element:Rs.optional(),union:ge.array(Rs).optional(),literal:ge.unknown().optional(),enumValues:ge.array(ge.string()).optional()})),e6=["experimental","beta","stable","deprecated"],t6=ge.enum(e6),LI=ig.extend({method:ge.enum(kd),path:ge.string(),contract:ge.object({body:Rs.optional(),query:Rs.optional(),output:Rs.optional(),params:Rs.optional(),bodyFiles:ge.array(ge.object({name:ge.string(),maxCount:ge.number()})).optional()}),feed:ge.boolean().optional(),summary:ge.string().optional(),stability:t6,hidden:ge.boolean().optional(),meta:ge.record(ge.string(),ge.string())}),Ene=og.extend({methods:ge.enum(kd).array().optional(),path:ge.string().optional(),stability:t6.array().optional()}),r6=Iu("endpoints").get({feed:!0,querySchema:Ene,outputSchema:LI.array(),outputMetaSchema:ge.object({totalCount:ge.number().optional()})}).sub(Iu(":endpointId",void 0,ge.string()).get({outputSchema:LI.extend({requests:ge.array(Ox),volumeTS:ge.array(ge.object({timestamp:ge.string(),count:ge.number()})),averageDurationMs:ge.number(),successRate:ge.number(),latestErrorRequestIds:ge.array(ge.string())})}).done()).done();var Ine=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function u$(e){if(typeof e!="string")return!1;var t=Ine;return t.includes(e)}var Tne=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],jne=new Set(Tne);function n6(e){return typeof e!="string"?!1:jne.has(e)}function i6(e){return typeof e=="string"&&e.startsWith("data-")}function Zo(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n6(r)||i6(r))&&(t[r]=e[r]);return t}function ag(e){if(e==null)return null;if(b.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Zo(t)}return typeof e=="object"&&!Array.isArray(e)?Zo(e):null}function rn(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n6(r)||i6(r)||u$(r))&&(t[r]=e[r]);return t}function Ane(e){return e==null?null:b.isValidElement(e)?rn(e.props):typeof e=="object"&&!Array.isArray(e)?rn(e):null}var Rne=["children","width","height","viewBox","className","style","title","desc"];function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cx.apply(null,arguments)}function Nne(e,t){if(e==null)return{};var r,n,i=Mne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mne(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var o6=b.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:o,className:a,style:u,title:c,desc:f}=e,d=Nne(e,Rne),m=o||{width:n,height:i,x:0,y:0},h=ve("recharts-surface",a);return b.createElement("svg",Cx({},rn(d),{className:h,width:n,height:i,style:u,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),b.createElement("title",null,c),b.createElement("desc",null,f),r)}),Dne=["children","className"];function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ex.apply(null,arguments)}function zne(e,t){if(e==null)return{};var r,n,i=Lne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Lne(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Va=b.forwardRef((e,t)=>{var{children:r,className:n}=e,i=zne(e,Dne),o=ve("recharts-layer",n);return b.createElement("g",Ex({className:o},rn(i),{ref:t}),r)}),Une=b.createContext(null);function jt(e){return function(){return e}}const a6=Math.cos,kh=Math.sin,Wi=Math.sqrt,$h=Math.PI,sg=2*$h,Ix=Math.PI,Tx=2*Ix,Ps=1e-6,Fne=Tx-Ps;function s6(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Bne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s6;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Wne{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?s6:Bne(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,u=this._y1,c=n-t,f=i-r,d=a-t,m=u-r,h=d*d+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Ps)if(!(Math.abs(m*c-f*d)>Ps)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-a,y=i-u,x=c*c+f*f,w=g*g+y*y,k=Math.sqrt(x),C=Math.sqrt(h),$=o*Math.tan((Ix-Math.acos((x+h-w)/(2*k*C)))/2),P=$/C,O=$/k;Math.abs(P-1)>Ps&&this._append`L${t+P*d},${r+P*m}`,this._append`A${o},${o},0,0,${+(m*g>d*y)},${this._x1=t+O*c},${this._y1=r+O*f}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),f=t+u,d=r+c,m=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>Ps||Math.abs(this._y1-d)>Ps)&&this._append`L${f},${d}`,n&&(h<0&&(h=h%Tx+Tx),h>Fne?this._append`A${n},${n},0,1,${m},${t-u},${r-c}A${n},${n},0,1,${m},${this._x1=f},${this._y1=d}`:h>Ps&&this._append`A${n},${n},0,${+(h>=Ix)},${m},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function c$(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Wne(t)}function f$(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function l6(e){this._context=e}l6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function lg(e){return new l6(e)}function u6(e){return e[0]}function c6(e){return e[1]}function f6(e,t){var r=jt(!0),n=null,i=lg,o=null,a=c$(u);e=typeof e=="function"?e:e===void 0?u6:jt(e),t=typeof t=="function"?t:t===void 0?c6:jt(t);function u(c){var f,d=(c=f$(c)).length,m,h=!1,g;for(n==null&&(o=i(g=a())),f=0;f<=d;++f)!(f<d&&r(m=c[f],f,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(m,f,c),+t(m,f,c));if(g)return o=null,g+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:jt(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:jt(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:jt(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(o=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=o=null:o=i(n=c),u):n},u}function bm(e,t,r){var n=null,i=jt(!0),o=null,a=lg,u=null,c=c$(f);e=typeof e=="function"?e:e===void 0?u6:jt(+e),t=typeof t=="function"?t:jt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?c6:jt(+r);function f(m){var h,g,y,x=(m=f$(m)).length,w,k=!1,C,$=new Array(x),P=new Array(x);for(o==null&&(u=a(C=c())),h=0;h<=x;++h){if(!(h<x&&i(w=m[h],h,m))===k)if(k=!k)g=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=g;--y)u.point($[y],P[y]);u.lineEnd(),u.areaEnd()}k&&($[h]=+e(w,h,m),P[h]=+t(w,h,m),u.point(n?+n(w,h,m):$[h],r?+r(w,h,m):P[h]))}if(C)return u=null,C+""||null}function d(){return f6().defined(i).curve(a).context(o)}return f.x=function(m){return arguments.length?(e=typeof m=="function"?m:jt(+m),n=null,f):e},f.x0=function(m){return arguments.length?(e=typeof m=="function"?m:jt(+m),f):e},f.x1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:jt(+m),f):n},f.y=function(m){return arguments.length?(t=typeof m=="function"?m:jt(+m),r=null,f):t},f.y0=function(m){return arguments.length?(t=typeof m=="function"?m:jt(+m),f):t},f.y1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:jt(+m),f):r},f.lineX0=f.lineY0=function(){return d().x(e).y(t)},f.lineY1=function(){return d().x(e).y(r)},f.lineX1=function(){return d().x(n).y(t)},f.defined=function(m){return arguments.length?(i=typeof m=="function"?m:jt(!!m),f):i},f.curve=function(m){return arguments.length?(a=m,o!=null&&(u=a(o)),f):a},f.context=function(m){return arguments.length?(m==null?o=u=null:u=a(o=m),f):o},f}class d6{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Kne(e){return new d6(e,!0)}function Hne(e){return new d6(e,!1)}const d$={draw(e,t){const r=Wi(t/$h);e.moveTo(r,0),e.arc(0,0,r,0,sg)}},Zne={draw(e,t){const r=Wi(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},p6=Wi(1/3),qne=p6*2,Vne={draw(e,t){const r=Wi(t/qne),n=r*p6;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Gne={draw(e,t){const r=Wi(t),n=-r/2;e.rect(n,n,r,r)}},Yne=.8908130915292852,m6=kh($h/10)/kh(7*$h/10),Xne=kh(sg/10)*m6,Qne=-a6(sg/10)*m6,Jne={draw(e,t){const r=Wi(t*Yne),n=Xne*r,i=Qne*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=sg*o/5,u=a6(a),c=kh(a);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Jb=Wi(3),eie={draw(e,t){const r=-Wi(t/(Jb*3));e.moveTo(0,r*2),e.lineTo(-Jb*r,-r),e.lineTo(Jb*r,-r),e.closePath()}},Yn=-.5,Xn=Wi(3)/2,jx=1/Wi(12),tie=(jx/2+1)*3,rie={draw(e,t){const r=Wi(t/tie),n=r/2,i=r*jx,o=n,a=r*jx+r,u=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(u,c),e.lineTo(Yn*n-Xn*i,Xn*n+Yn*i),e.lineTo(Yn*o-Xn*a,Xn*o+Yn*a),e.lineTo(Yn*u-Xn*c,Xn*u+Yn*c),e.lineTo(Yn*n+Xn*i,Yn*i-Xn*n),e.lineTo(Yn*o+Xn*a,Yn*a-Xn*o),e.lineTo(Yn*u+Xn*c,Yn*c-Xn*u),e.closePath()}};function nie(e,t){let r=null,n=c$(i);e=typeof e=="function"?e:jt(e||d$),t=typeof t=="function"?t:jt(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:jt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:jt(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function _h(){}function Ph(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function h6(e){this._context=e}h6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ph(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iie(e){return new h6(e)}function v6(e){this._context=e}v6.prototype={areaStart:_h,areaEnd:_h,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oie(e){return new v6(e)}function g6(e){this._context=e}g6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aie(e){return new g6(e)}function y6(e){this._context=e}y6.prototype={areaStart:_h,areaEnd:_h,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function sie(e){return new y6(e)}function UI(e){return e<0?-1:1}function FI(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),u=(o*i+a*n)/(n+i);return(UI(o)+UI(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function BI(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function e0(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,u=(o-n)/3;e._context.bezierCurveTo(n+u,i+u*t,o-u,a-u*r,o,a)}function Oh(e){this._context=e}Oh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:e0(this,this._t0,BI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,e0(this,BI(this,r=FI(this,e,t)),r);break;default:e0(this,this._t0,r=FI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function b6(e){this._context=new w6(e)}(b6.prototype=Object.create(Oh.prototype)).point=function(e,t){Oh.prototype.point.call(this,t,e)};function w6(e){this._context=e}w6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function lie(e){return new Oh(e)}function uie(e){return new b6(e)}function x6(e){this._context=e}x6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=WI(e),i=WI(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function WI(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function cie(e){return new x6(e)}function ug(e,t){this._context=e,this._t=t}ug.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function fie(e){return new ug(e,.5)}function die(e){return new ug(e,0)}function pie(e){return new ug(e,1)}function Tu(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,u=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Ax(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function mie(e,t){return e[t]}function hie(e){const t=[];return t.key=e,t}function vie(){var e=jt([]),t=Ax,r=Tu,n=mie;function i(o){var a=Array.from(e.apply(this,arguments),hie),u,c=a.length,f=-1,d;for(const m of o)for(u=0,++f;u<c;++u)(a[u][f]=[0,+n(m,a[u].key,f,o)]).data=m;for(u=0,d=f$(t(a));u<c;++u)a[d[u]].index=u;return r(a,d),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:jt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:jt(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?Ax:typeof o=="function"?o:jt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??Tu,i):r},i}function gie(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}Tu(e,t)}}function yie(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,u=0;a<i;++a)u+=e[a][r][1]||0;n[r][1]+=n[r][0]=-u/2}Tu(e,t)}}function bie(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var u=0,c=0,f=0;u<a;++u){for(var d=e[t[u]],m=d[n][1]||0,h=d[n-1][1]||0,g=(m-h)/2,y=0;y<u;++y){var x=e[t[y]],w=x[n][1]||0,k=x[n-1][1]||0;g+=w-k}c+=m,f+=g*m}i[n-1][1]+=i[n-1][0]=r,c&&(r-=f/c)}i[n-1][1]+=i[n-1][0]=r,Tu(e,t)}}var t0={},r0={},KI;function wie(){return KI||(KI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(r0)),r0}var n0={},HI;function S6(){return HI||(HI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(n0)),n0}var i0={},ZI;function p$(){return ZI||(ZI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var n;return typeof r=="string"||typeof r=="symbol"?r:Object.is((n=r==null?void 0:r.valueOf)==null?void 0:n.call(r),-0)?"-0":String(r)}e.toKey=t})(i0)),i0}var o0={},a0={},qI;function xie(){return qI||(qI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(a0)),a0}var VI;function m$(){return VI||(VI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xie(),r=p$();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],a=i.length;if(a===0)return o;let u=0,c="",f="",d=!1;for(i.charCodeAt(0)===46&&(o.push(""),u++);u<a;){const m=i[u];f?m==="\\"&&u+1<a?(u++,c+=i[u]):m===f?f="":c+=m:d?m==='"'||m==="'"?f=m:m==="]"?(d=!1,o.push(c),c=""):c+=m:m==="["?(d=!0,c&&(o.push(c),c="")):m==="."?c&&(o.push(c),c=""):c+=m,u++}return c&&o.push(c),o}e.toPath=n})(o0)),o0}var GI;function h$(){return GI||(GI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wie(),r=S6(),n=p$(),i=m$();function o(u,c,f){if(u==null)return f;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return f;const d=u[c];return d===void 0?r.isDeepKey(c)?o(u,i.toPath(c),f):f:d}case"number":case"symbol":{typeof c=="number"&&(c=n.toKey(c));const d=u[c];return d===void 0?f:d}default:{if(Array.isArray(c))return a(u,c,f);if(Object.is(c==null?void 0:c.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return f;const d=u[c];return d===void 0?f:d}}}function a(u,c,f){if(c.length===0)return f;let d=u;for(let m=0;m<c.length;m++){if(d==null||t.isUnsafeProperty(c[m]))return f;d=d[c[m]]}return d===void 0?f:d}e.get=o})(t0)),t0}var s0,YI;function Sie(){return YI||(YI=1,s0=h$().get),s0}var kie=Sie();const cg=ho(kie);var Ti=e=>e===0?0:e>0?1:-1,qo=e=>typeof e=="number"&&e!=+e,Vo=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Fe=e=>(typeof e=="number"||e instanceof Number)&&!qo(e),po=e=>Fe(e)||typeof e=="string",$ie=0,Af=e=>{var t=++$ie;return"".concat(e||"").concat(t)},Ga=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Fe(t)&&typeof t!="string")return n;var o;if(Vo(t)){if(r==null)return n;var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return qo(o)&&(o=n),i&&r!=null&&o>r&&(o=r),o},k6=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function hn(e,t,r){return Fe(e)&&Fe(t)?e+r*(t-e):t}function $6(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):cg(n,t))===r)}var Cr=e=>e===null||typeof e>"u",$d=e=>Cr(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _ie(e){return e!=null}function _d(){}var Pie=["type","size","sizeType"];function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rx.apply(null,arguments)}function XI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(r),!0).forEach(function(n){Oie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oie(e,t,r){return(t=Cie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cie(e){var t=Eie(e,"string");return typeof t=="symbol"?t:t+""}function Eie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iie(e,t){if(e==null)return{};var r,n,i=Tie(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tie(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var _6={symbolCircle:d$,symbolCross:Zne,symbolDiamond:Vne,symbolSquare:Gne,symbolStar:Jne,symbolTriangle:eie,symbolWye:rie},jie=Math.PI/180,Aie=e=>{var t="symbol".concat($d(e));return _6[t]||d$},Rie=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*jie;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Nie=(e,t)=>{_6["symbol".concat($d(e))]=t},P6=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Iie(e,Pie),o=QI(QI({},i),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var u=()=>{var h=Aie(a),g=nie().type(h).size(Rie(r,n,a)),y=g();if(y!==null)return y},{className:c,cx:f,cy:d}=o,m=rn(o);return Fe(f)&&Fe(d)&&Fe(r)?b.createElement("path",Rx({},m,{className:ve("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(d,")"),d:u()})):null};P6.registerSymbol=Nie;var O6=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,v$=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(b.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{u$(i)&&(n[i]=(o=>r[i](r,o)))}),n},Mie=(e,t,r)=>n=>(e(t,r,n),null),Die=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var o=e[i];u$(i)&&typeof o=="function"&&(n||(n={}),n[i]=Mie(o,t,r))}),n};function JI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(r),!0).forEach(function(n){Lie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lie(e,t,r){return(t=Uie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uie(e){var t=Fie(e,"string");return typeof t=="symbol"?t:t+""}function Fie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bn(e,t){var r=zie({},e),n=t,i=Object.keys(t),o=i.reduce((a,u)=>(a[u]===void 0&&n[u]!==void 0&&(a[u]=n[u]),a),r);return o}var l0={},u0={},eT;function Bie(){return eT||(eT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let o=0;o<r.length;o++){const a=r[o],u=n(a);i.has(u)||i.set(u,a)}return Array.from(i.values())}e.uniqBy=t})(u0)),u0}var c0={},tT;function C6(){return tT||(tT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(c0)),c0}var f0={},d0={},p0={},rT;function Wie(){return rT||(rT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(p0)),p0}var nT;function g$(){return nT||(nT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wie();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(d0)),d0}var m0={},iT;function Kie(){return iT||(iT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(m0)),m0}var oT;function Hie(){return oT||(oT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g$(),r=Kie();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(f0)),f0}var h0={},v0={},aT;function Zie(){return aT||(aT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=h$();function r(n){return function(i){return t.get(i,n)}}e.property=r})(v0)),v0}var g0={},y0={},b0={},w0={},sT;function E6(){return sT||(sT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(w0)),w0}var x0={},lT;function I6(){return lT||(lT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(x0)),x0}var S0={},uT;function T6(){return uT||(uT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(S0)),S0}var cT;function qie(){return cT||(cT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=E6(),r=I6(),n=T6();function i(d,m,h){return typeof h!="function"?i(d,m,()=>{}):o(d,m,function g(y,x,w,k,C,$){const P=h(y,x,w,k,C,$);return P!==void 0?!!P:o(y,x,g,$)},new Map)}function o(d,m,h,g){if(m===d)return!0;switch(typeof m){case"object":return a(d,m,h,g);case"function":return Object.keys(m).length>0?o(d,{...m},h,g):n.eq(d,m);default:return t.isObject(d)?typeof m=="string"?m==="":!0:n.eq(d,m)}}function a(d,m,h,g){if(m==null)return!0;if(Array.isArray(m))return c(d,m,h,g);if(m instanceof Map)return u(d,m,h,g);if(m instanceof Set)return f(d,m,h,g);const y=Object.keys(m);if(d==null)return y.length===0;if(y.length===0)return!0;if(g!=null&&g.has(m))return g.get(m)===d;g==null||g.set(m,d);try{for(let x=0;x<y.length;x++){const w=y[x];if(!r.isPrimitive(d)&&!(w in d)||m[w]===void 0&&d[w]!==void 0||m[w]===null&&d[w]!==null||!h(d[w],m[w],w,d,m,g))return!1}return!0}finally{g==null||g.delete(m)}}function u(d,m,h,g){if(m.size===0)return!0;if(!(d instanceof Map))return!1;for(const[y,x]of m.entries()){const w=d.get(y);if(h(w,x,y,d,m,g)===!1)return!1}return!0}function c(d,m,h,g){if(m.length===0)return!0;if(!Array.isArray(d))return!1;const y=new Set;for(let x=0;x<m.length;x++){const w=m[x];let k=!1;for(let C=0;C<d.length;C++){if(y.has(C))continue;const $=d[C];let P=!1;if(h($,w,x,d,m,g)&&(P=!0),P){y.add(C),k=!0;break}}if(!k)return!1}return!0}function f(d,m,h,g){return m.size===0?!0:d instanceof Set?c([...d],[...m],h,g):!1}e.isMatchWith=i,e.isSetMatch=f})(b0)),b0}var fT;function j6(){return fT||(fT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qie();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(y0)),y0}var k0={},$0={},_0={},dT;function Vie(){return dT||(dT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(_0)),_0}var P0={},pT;function A6(){return pT||(pT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(P0)),P0}var O0={},mT;function R6(){return mT||(mT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",u="[object Date]",c="[object Map]",f="[object Set]",d="[object Array]",m="[object Function]",h="[object ArrayBuffer]",g="[object Object]",y="[object Error]",x="[object DataView]",w="[object Uint8Array]",k="[object Uint8ClampedArray]",C="[object Uint16Array]",$="[object Uint32Array]",P="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",j="[object Int32Array]",R="[object BigInt64Array]",D="[object Float32Array]",L="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=h,e.arrayTag=d,e.bigInt64ArrayTag=R,e.bigUint64ArrayTag=P,e.booleanTag=i,e.dataViewTag=x,e.dateTag=u,e.errorTag=y,e.float32ArrayTag=D,e.float64ArrayTag=L,e.functionTag=m,e.int16ArrayTag=E,e.int32ArrayTag=j,e.int8ArrayTag=O,e.mapTag=c,e.numberTag=n,e.objectTag=g,e.regexpTag=t,e.setTag=f,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=C,e.uint32ArrayTag=$,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=k})(O0)),O0}var C0={},hT;function Gie(){return hT||(hT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(C0)),C0}var vT;function N6(){return vT||(vT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vie(),r=A6(),n=R6(),i=I6(),o=Gie();function a(d,m){return u(d,void 0,d,new Map,m)}function u(d,m,h,g=new Map,y=void 0){const x=y==null?void 0:y(d,m,h,g);if(x!==void 0)return x;if(i.isPrimitive(d))return d;if(g.has(d))return g.get(d);if(Array.isArray(d)){const w=new Array(d.length);g.set(d,w);for(let k=0;k<d.length;k++)w[k]=u(d[k],k,h,g,y);return Object.hasOwn(d,"index")&&(w.index=d.index),Object.hasOwn(d,"input")&&(w.input=d.input),w}if(d instanceof Date)return new Date(d.getTime());if(d instanceof RegExp){const w=new RegExp(d.source,d.flags);return w.lastIndex=d.lastIndex,w}if(d instanceof Map){const w=new Map;g.set(d,w);for(const[k,C]of d)w.set(k,u(C,k,h,g,y));return w}if(d instanceof Set){const w=new Set;g.set(d,w);for(const k of d)w.add(u(k,void 0,h,g,y));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(d))return d.subarray();if(o.isTypedArray(d)){const w=new(Object.getPrototypeOf(d)).constructor(d.length);g.set(d,w);for(let k=0;k<d.length;k++)w[k]=u(d[k],k,h,g,y);return w}if(d instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&d instanceof SharedArrayBuffer)return d.slice(0);if(d instanceof DataView){const w=new DataView(d.buffer.slice(0),d.byteOffset,d.byteLength);return g.set(d,w),c(w,d,h,g,y),w}if(typeof File<"u"&&d instanceof File){const w=new File([d],d.name,{type:d.type});return g.set(d,w),c(w,d,h,g,y),w}if(typeof Blob<"u"&&d instanceof Blob){const w=new Blob([d],{type:d.type});return g.set(d,w),c(w,d,h,g,y),w}if(d instanceof Error){const w=new d.constructor;return g.set(d,w),w.message=d.message,w.name=d.name,w.stack=d.stack,w.cause=d.cause,c(w,d,h,g,y),w}if(d instanceof Boolean){const w=new Boolean(d.valueOf());return g.set(d,w),c(w,d,h,g,y),w}if(d instanceof Number){const w=new Number(d.valueOf());return g.set(d,w),c(w,d,h,g,y),w}if(d instanceof String){const w=new String(d.valueOf());return g.set(d,w),c(w,d,h,g,y),w}if(typeof d=="object"&&f(d)){const w=Object.create(Object.getPrototypeOf(d));return g.set(d,w),c(w,d,h,g,y),w}return d}function c(d,m,h=d,g,y){const x=[...Object.keys(m),...t.getSymbols(m)];for(let w=0;w<x.length;w++){const k=x[w],C=Object.getOwnPropertyDescriptor(d,k);(C==null||C.writable)&&(d[k]=u(m[k],k,h,g,y))}}function f(d){switch(r.getTag(d)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=u,e.copyProperties=c})($0)),$0}var gT;function Yie(){return gT||(gT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N6();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(k0)),k0}var yT;function Xie(){return yT||(yT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j6(),r=Yie();function n(i){return i=r.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=n})(g0)),g0}var E0={},I0={},T0={},bT;function Qie(){return bT||(bT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N6(),r=R6();function n(i,o){return t.cloneDeepWith(i,(a,u,c,f)=>{const d=o==null?void 0:o(a,u,c,f);if(d!==void 0)return d;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const m=new i.constructor(i==null?void 0:i.valueOf());return t.copyProperties(m,i),m}case r.argumentsTag:{const m={};return t.copyProperties(m,i),m.length=i.length,m[Symbol.iterator]=i[Symbol.iterator],m}default:return}})}e.cloneDeepWith=n})(T0)),T0}var wT;function Jie(){return wT||(wT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qie();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(I0)),I0}var j0={},A0={},xT;function M6(){return xT||(xT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(A0)),A0}var R0={},ST;function eoe(){return ST||(ST=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=A6();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(R0)),R0}var kT;function toe(){return kT||(kT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S6(),r=M6(),n=eoe(),i=m$();function o(a,u){let c;if(Array.isArray(u)?c=u:typeof u=="string"&&t.isDeepKey(u)&&(a==null?void 0:a[u])==null?c=i.toPath(u):c=[u],c.length===0)return!1;let f=a;for(let d=0;d<c.length;d++){const m=c[d];if((f==null||!Object.hasOwn(f,m))&&!((Array.isArray(f)||n.isArguments(f))&&r.isIndex(m)&&m<f.length))return!1;f=f[m]}return!0}e.has=o})(j0)),j0}var $T;function roe(){return $T||($T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j6(),r=p$(),n=Jie(),i=h$(),o=toe();function a(u,c){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return c=n.cloneDeep(c),function(f){const d=i.get(f,u);return d===void 0?o.has(f,u):c===void 0?d===void 0:t.isMatch(d,c)}}e.matchesProperty=a})(E0)),E0}var _T;function noe(){return _T||(_T=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=C6(),r=Zie(),n=Xie(),i=roe();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):n.matches(a);case"string":case"symbol":case"number":return r.property(a)}}e.iteratee=o})(h0)),h0}var PT;function ioe(){return PT||(PT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bie(),r=C6(),n=Hie(),i=noe();function o(a,u=r.identity){return n.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(u)):[]}e.uniqBy=o})(l0)),l0}var N0,OT;function ooe(){return OT||(OT=1,N0=ioe().uniqBy),N0}var aoe=ooe();const CT=ho(aoe);function soe(e,t,r){return t===!0?CT(e,r):typeof t=="function"?CT(e,t):e}var M0={exports:{}},D0={},z0={exports:{}},L0={};/**
|
|
227
|
-
* @license React
|
|
228
|
-
* use-sync-external-store-shim.production.js
|
|
229
|
-
*
|
|
230
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the MIT license found in the
|
|
233
|
-
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/var ET;function loe(){if(ET)return L0;ET=1;var e=zu();function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function u(m,h){var g=h(),y=n({inst:{value:g,getSnapshot:h}}),x=y[0].inst,w=y[1];return o(function(){x.value=g,x.getSnapshot=h,c(x)&&w({inst:x})},[m,g,h]),i(function(){return c(x)&&w({inst:x}),m(function(){c(x)&&w({inst:x})})},[m]),a(g),g}function c(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!r(m,g)}catch{return!0}}function f(m,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return L0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,L0}var IT;function uoe(){return IT||(IT=1,z0.exports=loe()),z0.exports}/**
|
|
235
|
-
* @license React
|
|
236
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
237
|
-
*
|
|
238
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
239
|
-
*
|
|
240
|
-
* This source code is licensed under the MIT license found in the
|
|
241
|
-
* LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/var TT;function coe(){if(TT)return D0;TT=1;var e=zu(),t=uoe();function r(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,u=e.useMemo,c=e.useDebugValue;return D0.useSyncExternalStoreWithSelector=function(f,d,m,h,g){var y=o(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=u(function(){function k(E){if(!C){if(C=!0,$=E,E=h(E),g!==void 0&&x.hasValue){var j=x.value;if(g(j,E))return P=j}return P=E}if(j=P,n($,E))return j;var R=h(E);return g!==void 0&&g(j,R)?($=E,j):($=E,P=R)}var C=!1,$,P,O=m===void 0?null:m;return[function(){return k(d())},O===null?void 0:function(){return k(O())}]},[d,m,h,g]);var w=i(f,y[0],y[1]);return a(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},D0}var jT;function foe(){return jT||(jT=1,M0.exports=coe()),M0.exports}var doe=foe(),y$=b.createContext(null),poe=e=>e,Ir=()=>{var e=b.useContext(y$);return e?e.store.dispatch:poe},Zm=()=>{},moe=()=>Zm,hoe=(e,t)=>e===t;function Le(e){var t=b.useContext(y$);return doe.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:moe,t?t.store.getState:Zm,t?t.store.getState:Zm,t?e:Zm,hoe)}function voe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function goe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function yoe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var AT=e=>Array.isArray(e)?e:[e];function boe(e){const t=Array.isArray(e[0])?e[0]:e;return yoe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function woe(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var xoe=class{constructor(e){this.value=e}deref(){return this.value}},Soe=typeof WeakRef<"u"?WeakRef:xoe,koe=0,RT=1;function wm(){return{s:koe,v:void 0,o:null,p:null}}function D6(e,t={}){let r=wm();const{resultEqualityCheck:n}=t;let i,o=0;function a(){var m;let u=r;const{length:c}=arguments;for(let h=0,g=c;h<g;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let x=u.o;x===null&&(u.o=x=new WeakMap);const w=x.get(y);w===void 0?(u=wm(),x.set(y,u)):u=w}else{let x=u.p;x===null&&(u.p=x=new Map);const w=x.get(y);w===void 0?(u=wm(),x.set(y,u)):u=w}}const f=u;let d;if(u.s===RT)d=u.v;else if(d=e.apply(null,arguments),o++,n){const h=((m=i==null?void 0:i.deref)==null?void 0:m.call(i))??i;h!=null&&n(h,d)&&(d=h,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new Soe(d):d}return f.s=RT,f.v=d,d}return a.clearCache=()=>{r=wm(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function $oe(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,u,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),voe(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const d={...r,...c},{memoize:m,memoizeOptions:h=[],argsMemoize:g=D6,argsMemoizeOptions:y=[]}=d,x=AT(h),w=AT(y),k=boe(i),C=m(function(){return o++,f.apply(null,arguments)},...x),$=g(function(){a++;const O=woe(k,arguments);return u=C.apply(null,O),u},...w);return Object.assign($,{resultFunc:f,memoizedResultFunc:C,dependencies:k,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:m,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var ie=$oe(D6),_oe=Object.assign((e,t=ie)=>{goe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(o=>e[o]);return t(n,(...o)=>o.reduce((a,u,c)=>(a[r[c]]=u,a),{}))},{withTypes:()=>_oe}),U0={},F0={},B0={},NT;function Poe(){return NT||(NT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,o)=>{if(n!==i){const a=t(n),u=t(i);if(a===u&&a===0){if(n<i)return o==="desc"?1:-1;if(n>i)return o==="desc"?-1:1}return o==="desc"?u-a:a-u}return 0};e.compareValues=r})(B0)),B0}var W0={},K0={},MT;function z6(){return MT||(MT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(K0)),K0}var DT;function Ooe(){return DT||(DT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z6(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(o,a){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(n.test(o)||!r.test(o))||a!=null&&Object.hasOwn(a,o)}e.isKey=i})(W0)),W0}var zT;function Coe(){return zT||(zT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Poe(),r=Ooe(),n=m$();function i(o,a,u,c){if(o==null)return[];u=c?void 0:u,Array.isArray(o)||(o=Object.values(o)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(g=>String(g));const f=(g,y)=>{let x=g;for(let w=0;w<y.length&&x!=null;++w)x=x[y[w]];return x},d=(g,y)=>y==null||g==null?y:typeof g=="object"&&"key"in g?Object.hasOwn(y,g.key)?y[g.key]:f(y,g.path):typeof g=="function"?g(y):Array.isArray(g)?f(y,g):typeof y=="object"?y[g]:y,m=a.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||r.isKey(g)?g:{key:g,path:n.toPath(g)}));return o.map(g=>({original:g,criteria:m.map(y=>d(y,g))})).slice().sort((g,y)=>{for(let x=0;x<m.length;x++){const w=t.compareValues(g.criteria[x],y.criteria[x],u[x]);if(w!==0)return w}return 0}).map(g=>g.original)}e.orderBy=i})(F0)),F0}var H0={},LT;function Eoe(){return LT||(LT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],o=Math.floor(n),a=(u,c)=>{for(let f=0;f<u.length;f++){const d=u[f];Array.isArray(d)&&c<o?a(d,c+1):i.push(d)}};return a(r,0),i}e.flatten=t})(H0)),H0}var Z0={},UT;function L6(){return UT||(UT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M6(),r=g$(),n=E6(),i=T6();function o(a,u,c){return n.isObject(c)&&(typeof u=="number"&&r.isArrayLike(c)&&t.isIndex(u)&&u<c.length||typeof u=="string"&&u in c)?i.eq(c[u],a):!1}e.isIterateeCall=o})(Z0)),Z0}var FT;function Ioe(){return FT||(FT=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Coe(),r=Eoe(),n=L6();function i(o,...a){const u=a.length;return u>1&&n.isIterateeCall(o,a[0],a[1])?a=[]:u>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(o,r.flatten(a),["asc"])}e.sortBy=i})(U0)),U0}var q0,BT;function Toe(){return BT||(BT=1,q0=Ioe().sortBy),q0}var joe=Toe();const fg=ho(joe);var U6=e=>e.legend.settings,Aoe=e=>e.legend.size,Roe=e=>e.legend.payload;ie([Roe,U6],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?fg(n,r):n});var xm=1;function Noe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=b.useState({height:0,left:0,top:0,width:0}),n=b.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),a={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(a.height-t.height)>xm||Math.abs(a.left-t.left)>xm||Math.abs(a.top-t.top)>xm||Math.abs(a.width-t.width)>xm)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Nr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Moe=typeof Symbol=="function"&&Symbol.observable||"@@observable",WT=Moe,V0=()=>Math.random().toString(36).substring(7).split("").join("."),Doe={INIT:`@@redux/INIT${V0()}`,REPLACE:`@@redux/REPLACE${V0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${V0()}`},Ch=Doe;function b$(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function F6(e,t,r){if(typeof e!="function")throw new Error(Nr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Nr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Nr(1));return r(F6)(e,t)}let n=e,i=t,o=new Map,a=o,u=0,c=!1;function f(){a===o&&(a=new Map,o.forEach((w,k)=>{a.set(k,w)}))}function d(){if(c)throw new Error(Nr(3));return i}function m(w){if(typeof w!="function")throw new Error(Nr(4));if(c)throw new Error(Nr(5));let k=!0;f();const C=u++;return a.set(C,w),function(){if(k){if(c)throw new Error(Nr(6));k=!1,f(),a.delete(C),o=null}}}function h(w){if(!b$(w))throw new Error(Nr(7));if(typeof w.type>"u")throw new Error(Nr(8));if(typeof w.type!="string")throw new Error(Nr(17));if(c)throw new Error(Nr(9));try{c=!0,i=n(i,w)}finally{c=!1}return(o=a).forEach(C=>{C()}),w}function g(w){if(typeof w!="function")throw new Error(Nr(10));n=w,h({type:Ch.REPLACE})}function y(){const w=m;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Nr(11));function C(){const P=k;P.next&&P.next(d())}return C(),{unsubscribe:w(C)}},[WT](){return this}}}return h({type:Ch.INIT}),{dispatch:h,subscribe:m,getState:d,replaceReducer:g,[WT]:y}}function zoe(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ch.INIT})>"u")throw new Error(Nr(12));if(typeof r(void 0,{type:Ch.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Nr(13))})}function B6(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{zoe(r)}catch(o){i=o}return function(a={},u){if(i)throw i;let c=!1;const f={};for(let d=0;d<n.length;d++){const m=n[d],h=r[m],g=a[m],y=h(g,u);if(typeof y>"u")throw u&&u.type,new Error(Nr(14));f[m]=y,c=c||y!==g}return c=c||n.length!==Object.keys(a).length,c?f:a}}function Eh(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Loe(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(Nr(15))};const a={getState:i.getState,dispatch:(c,...f)=>o(c,...f)},u=e.map(c=>c(a));return o=Eh(...u)(i.dispatch),{...i,dispatch:o}}}function W6(e){return b$(e)&&"type"in e&&typeof e.type=="string"}var K6=Symbol.for("immer-nothing"),KT=Symbol.for("immer-draftable"),nn=Symbol.for("immer-state");function Pi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var An=Object,ju=An.getPrototypeOf,Ih="constructor",dg="prototype",Nx="configurable",Th="enumerable",qm="writable",Rf="value",Go=e=>!!e&&!!e[nn];function Li(e){var t;return e?H6(e)||pg(e)||!!e[KT]||!!((t=e[Ih])!=null&&t[KT])||mg(e)||hg(e):!1}var Uoe=An[dg][Ih].toString(),HT=new WeakMap;function H6(e){if(!e||!w$(e))return!1;const t=ju(e);if(t===null||t===An[dg])return!0;const r=An.hasOwnProperty.call(t,Ih)&&t[Ih];if(r===Object)return!0;if(!Yl(r))return!1;let n=HT.get(r);return n===void 0&&(n=Function.toString.call(r),HT.set(r,n)),n===Uoe}function Pd(e,t,r=!0){Od(e)===0?(r?Reflect.ownKeys(e):An.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Od(e){const t=e[nn];return t?t.type_:pg(e)?1:mg(e)?2:hg(e)?3:0}var ZT=(e,t,r=Od(e))=>r===2?e.has(t):An[dg].hasOwnProperty.call(e,t),Mx=(e,t,r=Od(e))=>r===2?e.get(t):e[t],jh=(e,t,r,n=Od(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Foe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var pg=Array.isArray,mg=e=>e instanceof Map,hg=e=>e instanceof Set,w$=e=>typeof e=="object",Yl=e=>typeof e=="function",G0=e=>typeof e=="boolean",Co=e=>e.copy_||e.base_,x$=e=>e.modified_?e.copy_:e.base_;function Dx(e,t){if(mg(e))return new Map(e);if(hg(e))return new Set(e);if(pg(e))return Array[dg].slice.call(e);const r=H6(e);if(t===!0||t==="class_only"&&!r){const n=An.getOwnPropertyDescriptors(e);delete n[nn];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],u=n[a];u[qm]===!1&&(u[qm]=!0,u[Nx]=!0),(u.get||u.set)&&(n[a]={[Nx]:!0,[qm]:!0,[Th]:u[Th],[Rf]:e[a]})}return An.create(ju(e),n)}else{const n=ju(e);if(n!==null&&r)return{...e};const i=An.create(n);return An.assign(i,e)}}function S$(e,t=!1){return vg(e)||Go(e)||!Li(e)||(Od(e)>1&&An.defineProperties(e,{set:Sm,add:Sm,clear:Sm,delete:Sm}),An.freeze(e),t&&Pd(e,(r,n)=>{S$(n,!0)},!1)),e}function Boe(){Pi(2)}var Sm={[Rf]:Boe};function vg(e){return e===null||!w$(e)?!0:An.isFrozen(e)}var Ah="MapSet",zx="Patches",Z6={};function Au(e){const t=Z6[e];return t||Pi(0,e),t}var Woe=e=>!!Z6[e],Nf,q6=()=>Nf,Koe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Woe(Ah)?Au(Ah):void 0});function qT(e,t){t&&(e.patchPlugin_=Au(zx),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lx(e){Ux(e),e.drafts_.forEach(Hoe),e.drafts_=null}function Ux(e){e===Nf&&(Nf=e.parent_)}var VT=e=>Nf=Koe(Nf,e);function Hoe(e){const t=e[nn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function GT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[nn].modified_&&(Lx(t),Pi(4)),Li(e)&&(e=YT(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[nn].base_,e,t)}else e=YT(t,r);return Zoe(t,e,!0),Lx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==K6?e:void 0}function YT(e,t){if(vg(t))return t;const r=t[nn];if(!r)return k$(t,e.handledSet_,e);if(!gg(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Y6(r,e)}return r.copy_}function Zoe(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&S$(t,r)}function V6(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gg=(e,t)=>e.scope_===t,qoe=[];function G6(e,t,r,n){const i=Co(e),o=e.type_;if(n!==void 0&&Mx(i,n,o)===t){jh(i,n,r,o);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Pd(i,(c,f)=>{if(Go(f)){const d=u.get(f)||[];d.push(c),u.set(f,d)}})}const a=e.draftLocations_.get(t)??qoe;for(const u of a)jh(i,u,r,o)}function Voe(e,t,r){e.callbacks_.push(function(i){var u;const o=t;if(!o||!gg(o,i))return;(u=i.mapSetPlugin_)==null||u.fixSetContents(o);const a=x$(o);G6(e,o.draft_??o,a,r),Y6(o,i)})}function Y6(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}V6(e)}}function Goe(e,t,r){const{scope_:n}=e;if(Go(r)){const i=r[nn];gg(i,n)&&i.callbacks_.push(function(){Vm(e);const a=x$(i);G6(e,r,a,t)})}else Li(r)&&e.callbacks_.push(function(){const o=Co(e);Mx(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&k$(Mx(e.copy_,t,e.type_),n.handledSet_,n)})}function k$(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Go(e)||t.has(e)||!Li(e)||vg(e)||(t.add(e),Pd(e,(n,i)=>{if(Go(i)){const o=i[nn];if(gg(o,r)){const a=x$(o);jh(e,n,a,e.type_),V6(o)}}else Li(i)&&k$(i,t,r)})),e}function Yoe(e,t){const r=pg(e),n={type_:r?1:0,scope_:t?t.scope_:q6(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,o=$$;r&&(i=[n],o=Mf);const{revoke:a,proxy:u}=Proxy.revocable(i,o);return n.draft_=u,n.revoke_=a,[u,n]}var $$={get(e,t){if(t===nn)return e;const r=Co(e);if(!ZT(r,t,e.type_))return Xoe(e,r,t);const n=r[t];if(e.finalized_||!Li(n))return n;if(n===Y0(e.base_,t)){Vm(e);const i=e.type_===1?+t:t,o=Bx(e.scope_,n,e,i);return e.copy_[i]=o}return n},has(e,t){return t in Co(e)},ownKeys(e){return Reflect.ownKeys(Co(e))},set(e,t,r){const n=X6(Co(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Y0(Co(e),t),o=i==null?void 0:i[nn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Foe(r,i)&&(r!==void 0||ZT(e.base_,t,e.type_)))return!0;Vm(e),Fx(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Goe(e,t,r)),!0},deleteProperty(e,t){return Vm(e),Y0(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Fx(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Co(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[qm]:!0,[Nx]:e.type_!==1||t!=="length",[Th]:n[Th],[Rf]:r[t]}},defineProperty(){Pi(11)},getPrototypeOf(e){return ju(e.base_)},setPrototypeOf(){Pi(12)}},Mf={};Pd($$,(e,t)=>{Mf[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}});Mf.deleteProperty=function(e,t){return Mf.set.call(this,e,t,void 0)};Mf.set=function(e,t,r){return $$.set.call(this,e[0],t,r,e[0])};function Y0(e,t){const r=e[nn];return(r?Co(r):e)[t]}function Xoe(e,t,r){var i;const n=X6(t,r);return n?Rf in n?n[Rf]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function X6(e,t){if(!(t in e))return;let r=ju(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ju(r)}}function Fx(e){e.modified_||(e.modified_=!0,e.parent_&&Fx(e.parent_))}function Vm(e){e.copy_||(e.assigned_=new Map,e.copy_=Dx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qoe=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(Yl(r)&&!Yl(n)){const a=n;n=r;const u=this;return function(f=a,...d){return u.produce(f,m=>n.call(this,m,...d))}}Yl(n)||Pi(6),i!==void 0&&!Yl(i)&&Pi(7);let o;if(Li(r)){const a=VT(this),u=Bx(a,r,void 0);let c=!0;try{o=n(u),c=!1}finally{c?Lx(a):Ux(a)}return qT(a,i),GT(o,a)}else if(!r||!w$(r)){if(o=n(r),o===void 0&&(o=r),o===K6&&(o=void 0),this.autoFreeze_&&S$(o,!0),i){const a=[],u=[];Au(zx).generateReplacementPatches_(r,o,{patches_:a,inversePatches_:u}),i(a,u)}return o}else Pi(1,r)},this.produceWithPatches=(r,n)=>{if(Yl(r))return(u,...c)=>this.produceWithPatches(u,f=>r(f,...c));let i,o;return[this.produce(r,n,(u,c)=>{i=u,o=c}),i,o]},G0(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),G0(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),G0(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Li(t)||Pi(8),Go(t)&&(t=Ni(t));const r=VT(this),n=Bx(r,t,void 0);return n[nn].isManual_=!0,Ux(r),n}finishDraft(t,r){const n=t&&t[nn];(!n||!n.isManual_)&&Pi(9);const{scope_:i}=n;return qT(i,r),GT(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const o=r[n];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}n>-1&&(r=r.slice(n+1));const i=Au(zx).applyPatches_;return Go(t)?i(t,r):this.produce(t,o=>i(o,r))}};function Bx(e,t,r,n){const[i,o]=mg(t)?Au(Ah).proxyMap_(t,r):hg(t)?Au(Ah).proxySet_(t,r):Yoe(t,r);return((r==null?void 0:r.scope_)??q6()).drafts_.push(i),o.callbacks_=(r==null?void 0:r.callbacks_)??[],o.key_=n,r&&n!==void 0?Voe(r,o,n):o.callbacks_.push(function(c){var d;(d=c.mapSetPlugin_)==null||d.fixSetContents(o);const{patchPlugin_:f}=c;o.modified_&&f&&f.generatePatches_(o,[],c)}),i}function Ni(e){return Go(e)||Pi(10,e),Q6(e)}function Q6(e){if(!Li(e)||vg(e))return e;const t=e[nn];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Dx(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Dx(e,!0);return Pd(r,(i,o)=>{jh(r,i,Q6(o))},n),t&&(t.finalized_=!1),r}var Joe=new Qoe,J6=Joe.produce;function eU(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var eae=eU(),tae=eU,rae=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Eh:Eh.apply(null,arguments)};function li(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Nn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>W6(n)&&n.type===e,r}var tU=class ff extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ff.prototype)}static get[Symbol.species](){return ff}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ff(...t[0].concat(this)):new ff(...t.concat(this))}};function XT(e){return Li(e)?J6(e,()=>{}):e}function km(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function nae(e){return typeof e=="boolean"}var iae=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new tU;return r&&(nae(r)?a.push(eae):a.push(tae(r.extraArgument))),a},rU="RTK_autoBatch",Ft=()=>e=>({payload:e,meta:{[rU]:!0}}),QT=e=>t=>{setTimeout(t,e)},nU=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QT(10):e.type==="callback"?e.queueNotification:QT(e.timeout),f=()=>{a=!1,o&&(o=!1,u.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const m=()=>i&&d(),h=n.subscribe(m);return u.add(d),()=>{h(),u.delete(d)}},dispatch(d){var m;try{return i=!((m=d==null?void 0:d.meta)!=null&&m[rU]),o=!i,o&&(a||(a=!0,c(f))),n.dispatch(d)}finally{i=!0}}})},oae=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new tU(e);return n&&i.push(nU(typeof n=="object"?n:void 0)),i};function aae(e){const t=iae(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(b$(r))u=B6(r);else throw new Error(Nn(1));let c;typeof n=="function"?c=n(t):c=t();let f=Eh;i&&(f=rae({trace:!1,...typeof i=="object"&&i}));const d=Loe(...c),m=oae(d);let h=typeof a=="function"?a(m):m();const g=f(...h);return F6(u,o,g)}function iU(e){const t={},r=[];let n;const i={addCase(o,a){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(Nn(28));if(u in t)throw new Error(Nn(29));return t[u]=a,i},addAsyncThunk(o,a){return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function sae(e){return typeof e=="function"}function lae(e,t){let[r,n,i]=iU(t),o;if(sae(e))o=()=>XT(e());else{const u=XT(e);o=()=>u}function a(u=o(),c){let f=[r[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return f.filter(d=>!!d).length===0&&(f=[i]),f.reduce((d,m)=>{if(m)if(Go(d)){const g=m(d,c);return g===void 0?d:g}else{if(Li(d))return J6(d,h=>m(h,c));{const h=m(d,c);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},u)}return a.getInitialState=o,a}var uae="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cae=(e=21)=>{let t="",r=e;for(;r--;)t+=uae[Math.random()*64|0];return t},fae=Symbol.for("rtk-slice-createasyncthunk");function dae(e,t){return`${e}/${t}`}function pae({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[fae];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Nn(11));const u=(typeof i.reducers=="function"?i.reducers(hae()):i.reducers)||{},c=Object.keys(u),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(P,O){const E=typeof P=="string"?P:P.type;if(!E)throw new Error(Nn(12));if(E in f.sliceCaseReducersByType)throw new Error(Nn(13));return f.sliceCaseReducersByType[E]=O,d},addMatcher(P,O){return f.sliceMatchers.push({matcher:P,reducer:O}),d},exposeAction(P,O){return f.actionCreators[P]=O,d},exposeCaseReducer(P,O){return f.sliceCaseReducersByName[P]=O,d}};c.forEach(P=>{const O=u[P],E={reducerName:P,type:dae(o,P),createNotation:typeof i.reducers=="function"};gae(O)?bae(E,O,d,t):vae(E,O,d)});function m(){const[P={},O=[],E=void 0]=typeof i.extraReducers=="function"?iU(i.extraReducers):[i.extraReducers],j={...P,...f.sliceCaseReducersByType};return lae(i.initialState,R=>{for(let D in j)R.addCase(D,j[D]);for(let D of f.sliceMatchers)R.addMatcher(D.matcher,D.reducer);for(let D of O)R.addMatcher(D.matcher,D.reducer);E&&R.addDefaultCase(E)})}const h=P=>P,g=new Map,y=new WeakMap;let x;function w(P,O){return x||(x=m()),x(P,O)}function k(){return x||(x=m()),x.getInitialState()}function C(P,O=!1){function E(R){let D=R[P];return typeof D>"u"&&O&&(D=km(y,E,k)),D}function j(R=h){const D=km(g,O,()=>new WeakMap);return km(D,R,()=>{const L={};for(const[M,I]of Object.entries(i.selectors??{}))L[M]=mae(I,R,()=>km(y,R,k),O);return L})}return{reducerPath:P,getSelectors:j,get selectors(){return j(E)},selectSlice:E}}const $={name:o,reducer:w,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:k,...C(a),injectInto(P,{reducerPath:O,...E}={}){const j=O??a;return P.inject({reducerPath:j,reducer:w},E),{...$,...C(j,!0)}}};return $}}function mae(e,t,r,n){function i(o,...a){let u=t(o);return typeof u>"u"&&n&&(u=r()),e(u,...a)}return i.unwrapped=e,i}var Sn=pae();function hae(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function vae({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!yae(n))throw new Error(Nn(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?li(e,a):li(e))}function gae(e){return e._reducerDefinitionType==="asyncThunk"}function yae(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bae({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Nn(18));const{payloadCreator:o,fulfilled:a,pending:u,rejected:c,settled:f,options:d}=r,m=i(e,o,d);n.exposeAction(t,m),a&&n.addCase(m.fulfilled,a),u&&n.addCase(m.pending,u),c&&n.addCase(m.rejected,c),f&&n.addMatcher(m.settled,f),n.exposeCaseReducer(t,{fulfilled:a||$m,pending:u||$m,rejected:c||$m,settled:f||$m})}function $m(){}var wae="task",oU="listener",aU="completed",_$="cancelled",xae=`task-${_$}`,Sae=`task-${aU}`,Wx=`${oU}-${_$}`,kae=`${oU}-${aU}`,yg=class{constructor(e){xs(this,"name","TaskAbortError");xs(this,"message");this.code=e,this.message=`${wae} ${_$} (reason: ${e})`}},P$=(e,t)=>{if(typeof e!="function")throw new TypeError(Nn(32))},Rh=()=>{},sU=(e,t=Rh)=>(e.catch(t),e),lU=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Vs=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Gs=e=>{if(e.aborted){const{reason:t}=e;throw new yg(t)}};function uU(e,t){let r=Rh;return new Promise((n,i)=>{const o=()=>i(new yg(e.reason));if(e.aborted){o();return}r=lU(e,o),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Rh})}var $ae=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof yg?"cancelled":"rejected",error:r}}finally{t==null||t()}},Nh=e=>t=>sU(uU(e,t).then(r=>(Gs(e),r))),cU=e=>{const t=Nh(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:nu}=Object,JT={},bg="listenerMiddleware",_ae=(e,t)=>{const r=n=>lU(e,()=>Vs(n,e.reason));return(n,i)=>{P$(n);const o=new AbortController;r(o);const a=$ae(async()=>{Gs(e),Gs(o.signal);const u=await n({pause:Nh(o.signal),delay:cU(o.signal),signal:o.signal});return Gs(o.signal),u},()=>Vs(o,Sae));return i!=null&&i.autoJoin&&t.push(a.catch(Rh)),{result:Nh(e)(a),cancel(){Vs(o,xae)}}}},Pae=(e,t)=>{const r=async(n,i)=>{Gs(t);let o=()=>{};const u=[new Promise((c,f)=>{let d=e({predicate:n,effect:(m,h)=>{h.unsubscribe(),c([m,h.getState(),h.getOriginalState()])}});o=()=>{d(),f()}})];i!=null&&u.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await uU(t,Promise.race(u));return Gs(t),c}finally{o()}};return(n,i)=>sU(r(n,i))},fU=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=li(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Nn(21));return P$(o),{predicate:i,type:t,effect:o}},dU=nu(e=>{const{type:t,predicate:r,effect:n}=fU(e);return{id:cae(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Nn(22))}}},{withTypes:()=>dU}),ej=(e,t)=>{const{type:r,effect:n,predicate:i}=fU(t);return Array.from(e.values()).find(o=>(typeof r=="string"?o.type===r:o.predicate===i)&&o.effect===n)},Kx=e=>{e.pending.forEach(t=>{Vs(t,Wx)})},Oae=(e,t)=>()=>{for(const r of t.keys())Kx(r);e.clear()},tj=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},pU=nu(li(`${bg}/add`),{withTypes:()=>pU}),Cae=li(`${bg}/removeAll`),mU=nu(li(`${bg}/remove`),{withTypes:()=>mU}),Eae=(...e)=>{console.error(`${bg}/error`,...e)},Cd=(e={})=>{const t=new Map,r=new Map,n=g=>{const y=r.get(g)??0;r.set(g,y+1)},i=g=>{const y=r.get(g)??1;y===1?r.delete(g):r.set(g,y-1)},{extra:o,onError:a=Eae}=e;P$(a);const u=g=>(g.unsubscribe=()=>t.delete(g.id),t.set(g.id,g),y=>{g.unsubscribe(),y!=null&&y.cancelActive&&Kx(g)}),c=g=>{const y=ej(t,g)??dU(g);return u(y)};nu(c,{withTypes:()=>c});const f=g=>{const y=ej(t,g);return y&&(y.unsubscribe(),g.cancelActive&&Kx(y)),!!y};nu(f,{withTypes:()=>f});const d=async(g,y,x,w)=>{const k=new AbortController,C=Pae(c,k.signal),$=[];try{g.pending.add(k),n(g),await Promise.resolve(g.effect(y,nu({},x,{getOriginalState:w,condition:(P,O)=>C(P,O).then(Boolean),take:C,delay:cU(k.signal),pause:Nh(k.signal),extra:o,signal:k.signal,fork:_ae(k.signal,$),unsubscribe:g.unsubscribe,subscribe:()=>{t.set(g.id,g)},cancelActiveListeners:()=>{g.pending.forEach((P,O,E)=>{P!==k&&(Vs(P,Wx),E.delete(P))})},cancel:()=>{Vs(k,Wx),g.pending.delete(k)},throwIfCancelled:()=>{Gs(k.signal)}})))}catch(P){P instanceof yg||tj(a,P,{raisedBy:"effect"})}finally{await Promise.all($),Vs(k,kae),i(g),g.pending.delete(k)}},m=Oae(t,r);return{middleware:g=>y=>x=>{if(!W6(x))return y(x);if(pU.match(x))return c(x.payload);if(Cae.match(x)){m();return}if(mU.match(x))return f(x.payload);let w=g.getState();const k=()=>{if(w===JT)throw new Error(Nn(23));return w};let C;try{if(C=y(x),t.size>0){const $=g.getState(),P=Array.from(t.values());for(const O of P){let E=!1;try{E=O.predicate(x,$,w)}catch(j){E=!1,tj(a,j,{raisedBy:"predicate"})}E&&d(O,x,g,k)}}}finally{w=JT}return C},startListening:c,stopListening:f,clearListeners:m}};function Nn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Iae={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},hU=Sn({name:"chartLayout",initialState:Iae,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,o;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Tae,setLayout:jae,setChartSize:Aae,setScale:Rae}=hU.actions,Nae=hU.reducer;function vU(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function rj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rj(Object(r),!0).forEach(function(n){Mae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mae(e,t,r){return(t=Dae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dae(e){var t=zae(e,"string");return typeof t=="symbol"?t:t+""}function zae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hr(e,t,r){return Cr(e)||Cr(t)?r:po(t)?cg(e,t,r):typeof t=="function"?t(e):r}var Lae=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:o,verticalAlign:a,layout:u}=t;if((u==="vertical"||u==="horizontal"&&a==="middle")&&o!=="center"&&Fe(e[o]))return Jl(Jl({},e),{},{[o]:e[o]+(n||0)});if((u==="horizontal"||u==="vertical"&&o==="center")&&a!=="middle"&&Fe(e[a]))return Jl(Jl({},e),{},{[a]:e[a]+(i||0)})}return e},ts=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",nj=1e-4,Uae=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-nj,o=Math.max(n[0],n[1])+nj,a=e(t[0]),u=e(t[r-1]);(a<i||a>o||u<i||u>o)&&e.domain([t[0],t[r-1]])}},Fae=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0,a=0;a<t;++a){var u=qo(e[a][r][1])?e[a][r][0]:e[a][r][1];u>=0?(e[a][r][0]=i,e[a][r][1]=i+u,i=e[a][r][1]):(e[a][r][0]=o,e[a][r][1]=o+u,o=e[a][r][1])}},Bae=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0;o<t;++o){var a=qo(e[o][r][1])?e[o][r][0]:e[o][r][1];a>=0?(e[o][r][0]=i,e[o][r][1]=i+a,i=e[o][r][1]):(e[o][r][0]=0,e[o][r][1]=0)}},Wae={sign:Fae,expand:gie,none:Tu,silhouette:yie,wiggle:bie,positive:Bae},Kae=(e,t,r)=>{var n=Wae[r],i=vie().keys(t).value((o,a)=>Number(Hr(o,a,0))).order(Ax).offset(n);return i(e)};function ij(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:o,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Cr(i[t.dataKey])){var u=$6(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var c=Hr(i,Cr(a)?t.dataKey:a);return Cr(c)?null:t.scale(c)}var Hae=e=>{var t=e.flat(2).filter(Fe);return[Math.min(...t),Math.max(...t)]},Zae=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],qae=(e,t,r)=>{if(e!=null)return Zae(Object.keys(e).reduce((n,i)=>{var o=e[i],{stackedData:a}=o,u=a.reduce((c,f)=>{var d=vU(f,t,r),m=Hae(d);return[Math.min(c[0],m[0]),Math.max(c[1],m[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},oj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Mh=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=fg(t,d=>d.coordinate),o=1/0,a=1,u=i.length;a<u;a++){var c=i[a],f=i[a-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0};function sj(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:o}=e;return Jl(Jl({},t),{},{dataKey:r,payload:n,value:i,name:o})}function gU(e,t){if(e)return String(e);if(typeof t=="string")return t}var Vae=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},Gae=(e,t)=>t==="centric"?e.angle:e.radius,ra=e=>e.layout.width,na=e=>e.layout.height,Yae=e=>e.layout.scale,yU=e=>e.layout.margin,wg=ie(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),xg=ie(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Xae="data-recharts-item-index",Qae="data-recharts-item-data-key",Ed=60;function lj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lj(Object(r),!0).forEach(function(n){Jae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jae(e,t,r){return(t=ese(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ese(e){var t=tse(e,"string");return typeof t=="symbol"?t:t+""}function tse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rse=e=>e.brush.height;function nse(e){var t=xg(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Ed;return r+i}return r},0)}function ise(e){var t=xg(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Ed;return r+i}return r},0)}function ose(e){var t=wg(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function ase(e){var t=wg(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var zr=ie([ra,na,yU,rse,nse,ise,ose,ase,U6,Aoe],(e,t,r,n,i,o,a,u,c,f)=>{var d={left:(r.left||0)+i,right:(r.right||0)+o},m={top:(r.top||0)+a,bottom:(r.bottom||0)+u},h=_m(_m({},m),d),g=h.bottom;h.bottom+=n,h=Lae(h,c,f);var y=e-h.left-h.right,x=t-h.top-h.bottom;return _m(_m({brushBottom:g},h),{},{width:Math.max(y,0),height:Math.max(x,0)})}),sse=ie(zr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),bU=ie(ra,na,(e,t)=>({x:0,y:0,width:e,height:t})),lse=b.createContext(null),Wn=()=>b.useContext(lse)!=null,Sg=e=>e.brush,kg=ie([Sg,zr,yU],(e,t,r)=>({height:e.height,x:Fe(e.x)?e.x:t.left,y:Fe(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:Fe(e.width)?e.width:t.width})),X0={},Q0={},J0={},uj;function use(){return uj||(uj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:o}={}){let a,u=null;const c=o!=null&&o.includes("leading"),f=o==null||o.includes("trailing"),d=()=>{u!==null&&(r.apply(a,u),a=void 0,u=null)},m=()=>{f&&d(),x()};let h=null;const g=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,m()},n)},y=()=>{h!==null&&(clearTimeout(h),h=null)},x=()=>{y(),a=void 0,u=null},w=()=>{d()},k=function(...C){if(i!=null&&i.aborted)return;a=this,u=C;const $=h==null;g(),c&&$&&d()};return k.schedule=g,k.cancel=x,k.flush=w,i==null||i.addEventListener("abort",x,{once:!0}),k}e.debounce=t})(J0)),J0}var cj;function cse(){return cj||(cj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=use();function r(n,i=0,o={}){typeof o!="object"&&(o={});const{leading:a=!1,trailing:u=!0,maxWait:c}=o,f=Array(2);a&&(f[0]="leading"),u&&(f[1]="trailing");let d,m=null;const h=t.debounce(function(...x){d=n.apply(this,x),m=null},i,{edges:f}),g=function(...x){return c!=null&&(m===null&&(m=Date.now()),Date.now()-m>=c)?(d=n.apply(this,x),m=Date.now(),h.cancel(),h.schedule(),d):(h.apply(this,x),d)},y=()=>(h.flush(),d);return g.cancel=h.cancel,g.flush=y,g}e.debounce=r})(Q0)),Q0}var fj;function fse(){return fj||(fj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cse();function r(n,i=0,o={}){const{leading:a=!0,trailing:u=!0}=o;return t.debounce(n,i,{leading:a,maxWait:i,trailing:u})}e.throttle=r})(X0)),X0}var ew,dj;function dse(){return dj||(dj=1,ew=fse().throttle),ew}var pse=dse();const mse=ho(pse);var pj=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(r.replace(/%s/g,()=>i[a++]))}},wU=(e,t,r)=>{var{width:n="100%",height:i="100%",aspect:o,maxHeight:a}=r,u=Vo(n)?e:Number(n),c=Vo(i)?t:Number(i);return o&&o>0&&(u?c=u/o:c&&(u=c*o),a&&c!=null&&c>a&&(c=a)),{calculatedWidth:u,calculatedHeight:c}},hse={width:0,height:0,overflow:"visible"},vse={width:0,overflowX:"visible"},gse={height:0,overflowY:"visible"},yse={},bse=e=>{var{width:t,height:r}=e,n=Vo(t),i=Vo(r);return n&&i?hse:n?vse:i?gse:yse};function wse(e){var{width:t,height:r,aspect:n}=e,i=t,o=r;return i===void 0&&o===void 0?(i="100%",o="100%"):i===void 0?i=n&&n>0?void 0:"100%":o===void 0&&(o=n&&n>0?void 0:"100%"),{width:i,height:o}}function Er(e){return Number.isFinite(e)}function Ya(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hx.apply(null,arguments)}function mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(n){xse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xse(e,t,r){return(t=Sse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sse(e){var t=kse(e,"string");return typeof t=="symbol"?t:t+""}function kse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xU=b.createContext({width:-1,height:-1});function $se(e){return Ya(e.width)&&Ya(e.height)}function SU(e){var{children:t,width:r,height:n}=e,i=b.useMemo(()=>({width:r,height:n}),[r,n]);return $se(i)?b.createElement(xU.Provider,{value:i},t):null}var O$=()=>b.useContext(xU),_se=b.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i,height:o,minWidth:a=0,minHeight:u,maxHeight:c,children:f,debounce:d=0,id:m,className:h,onResize:g,style:y={}}=e,x=b.useRef(null),w=b.useRef();w.current=g,b.useImperativeHandle(t,()=>x.current);var[k,C]=b.useState({containerWidth:n.width,containerHeight:n.height}),$=b.useCallback((R,D)=>{C(L=>{var M=Math.round(R),I=Math.round(D);return L.containerWidth===M&&L.containerHeight===I?L:{containerWidth:M,containerHeight:I}})},[]);b.useEffect(()=>{if(x.current==null||typeof ResizeObserver>"u")return _d;var R=I=>{var W,{width:K,height:Z}=I[0].contentRect;$(K,Z),(W=w.current)===null||W===void 0||W.call(w,K,Z)};d>0&&(R=mse(R,d,{trailing:!0,leading:!1}));var D=new ResizeObserver(R),{width:L,height:M}=x.current.getBoundingClientRect();return $(L,M),D.observe(x.current),()=>{D.disconnect()}},[$,d]);var{containerWidth:P,containerHeight:O}=k;pj(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:E,calculatedHeight:j}=wU(P,O,{width:i,height:o,aspect:r,maxHeight:c});return pj(E!=null&&E>0||j!=null&&j>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
243
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
244
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
245
|
-
height and width.`,E,j,i,o,a,u,r),b.createElement("div",{id:m?"".concat(m):void 0,className:ve("recharts-responsive-container",h),style:hj(hj({},y),{},{width:i,height:o,minWidth:a,minHeight:u,maxHeight:c}),ref:x},b.createElement("div",{style:bse({width:i,height:o})},b.createElement(SU,{width:E,height:j},f)))}),Pse=b.forwardRef((e,t)=>{var r=O$();if(Ya(r.width)&&Ya(r.height))return e.children;var{width:n,height:i}=wse({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:a}=wU(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Fe(o)&&Fe(a)?b.createElement(SU,{width:o,height:a},e.children):b.createElement(_se,Hx({},e,{width:n,height:i,ref:t}))});function kU(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var $g=()=>{var e,t=Wn(),r=Le(sse),n=Le(kg),i=(e=Le(Sg))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Ose={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Cse=()=>{var e;return(e=Le(zr))!==null&&e!==void 0?e:Ose},Ese=()=>Le(ra),Ise=()=>Le(na),zt=e=>e.layout.layoutType,_g=()=>Le(zt),Tse=()=>{var e=_g();return e!==void 0},Pg=e=>{var t=Ir(),r=Wn(),{width:n,height:i}=e,o=O$(),a=n,u=i;return o&&(a=o.width>0?o.width:n,u=o.height>0?o.height:i),b.useEffect(()=>{!r&&Ya(a)&&Ya(u)&&t(Aae({width:a,height:u}))},[t,r,a,u]),null},$U=Symbol.for("immer-nothing"),vj=Symbol.for("immer-draftable"),zn=Symbol.for("immer-state");function Oi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Df=Object.getPrototypeOf;function Ru(e){return!!e&&!!e[zn]}function sl(e){var t;return e?_U(e)||Array.isArray(e)||!!e[vj]||!!((t=e.constructor)!=null&&t[vj])||Id(e)||Cg(e):!1}var jse=Object.prototype.constructor.toString(),gj=new WeakMap;function _U(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=gj.get(r);return n===void 0&&(n=Function.toString.call(r),gj.set(r,n)),n===jse}function Dh(e,t,r=!0){Og(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Og(e){const t=e[zn];return t?t.type_:Array.isArray(e)?1:Id(e)?2:Cg(e)?3:0}function Zx(e,t){return Og(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function PU(e,t,r){const n=Og(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ase(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Id(e){return e instanceof Map}function Cg(e){return e instanceof Set}function Os(e){return e.copy_||e.base_}function qx(e,t){if(Id(e))return new Map(e);if(Cg(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=_U(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[zn];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],u=n[a];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[a]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[a]})}return Object.create(Df(e),n)}else{const n=Df(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function C$(e,t=!1){return Eg(e)||Ru(e)||!sl(e)||(Og(e)>1&&Object.defineProperties(e,{set:Pm,add:Pm,clear:Pm,delete:Pm}),Object.freeze(e),t&&Object.values(e).forEach(r=>C$(r,!0))),e}function Rse(){Oi(2)}var Pm={value:Rse};function Eg(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Nse={};function ll(e){const t=Nse[e];return t||Oi(0,e),t}var zf;function OU(){return zf}function Mse(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yj(e,t){t&&(ll("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vx(e){Gx(e),e.drafts_.forEach(Dse),e.drafts_=null}function Gx(e){e===zf&&(zf=e.parent_)}function bj(e){return zf=Mse(zf,e)}function Dse(e){const t=e[zn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[zn].modified_&&(Vx(t),Oi(4)),sl(e)&&(e=zh(t,e),t.parent_||Lh(t,e)),t.patches_&&ll("Patches").generateReplacementPatches_(r[zn].base_,e,t.patches_,t.inversePatches_)):e=zh(t,r,[]),Vx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$U?e:void 0}function zh(e,t,r){if(Eg(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[zn];if(!i)return Dh(t,(o,a)=>xj(e,i,t,o,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Lh(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,u=!1;i.type_===3&&(a=new Set(o),o.clear(),u=!0),Dh(a,(c,f)=>xj(e,i,o,c,f,r,u),n),Lh(e,o,!1),r&&e.patches_&&ll("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function xj(e,t,r,n,i,o,a){if(i==null||typeof i!="object"&&!a)return;const u=Eg(i);if(!(u&&!a)){if(Ru(i)){const c=o&&t&&t.type_!==3&&!Zx(t.assigned_,n)?o.concat(n):void 0,f=zh(e,i,c);if(PU(r,n,f),Ru(f))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(sl(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;zh(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Id(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Lh(e,i)}}}function Lh(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&C$(t,r)}function zse(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:OU(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=E$;r&&(i=[n],o=Lf);const{revoke:a,proxy:u}=Proxy.revocable(i,o);return n.draft_=u,n.revoke_=a,u}var E$={get(e,t){if(t===zn)return e;const r=Os(e);if(!Zx(r,t))return Lse(e,r,t);const n=r[t];return e.finalized_||!sl(n)?n:n===tw(e.base_,t)?(rw(e),e.copy_[t]=Xx(n,e)):n},has(e,t){return t in Os(e)},ownKeys(e){return Reflect.ownKeys(Os(e))},set(e,t,r){const n=CU(Os(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=tw(Os(e),t),o=i==null?void 0:i[zn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ase(r,i)&&(r!==void 0||Zx(e.base_,t)))return!0;rw(e),Yx(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return tw(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,rw(e),Yx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Os(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Oi(11)},getPrototypeOf(e){return Df(e.base_)},setPrototypeOf(){Oi(12)}},Lf={};Dh(E$,(e,t)=>{Lf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Lf.deleteProperty=function(e,t){return Lf.set.call(this,e,t,void 0)};Lf.set=function(e,t,r){return E$.set.call(this,e[0],t,r,e[0])};function tw(e,t){const r=e[zn];return(r?Os(r):e)[t]}function Lse(e,t,r){var i;const n=CU(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function CU(e,t){if(!(t in e))return;let r=Df(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Df(r)}}function Yx(e){e.modified_||(e.modified_=!0,e.parent_&&Yx(e.parent_))}function rw(e){e.copy_||(e.copy_=qx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Use=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(c=o,...f){return a.produce(c,d=>r.call(this,d,...f))}}typeof r!="function"&&Oi(6),n!==void 0&&typeof n!="function"&&Oi(7);let i;if(sl(t)){const o=bj(this),a=Xx(t,void 0);let u=!0;try{i=r(a),u=!1}finally{u?Vx(o):Gx(o)}return yj(o,n),wj(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===$U&&(i=void 0),this.autoFreeze_&&C$(i,!0),n){const o=[],a=[];ll("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else Oi(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...u)=>this.produceWithPatches(a,c=>t(c,...u));let n,i;return[this.produce(t,r,(a,u)=>{n=a,i=u}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){sl(e)||Oi(8),Ru(e)&&(e=Fse(e));const t=bj(this),r=Xx(e,void 0);return r[zn].isManual_=!0,Gx(t),r}finishDraft(e,t){const r=e&&e[zn];(!r||!r.isManual_)&&Oi(9);const{scope_:n}=r;return yj(n,t),wj(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=ll("Patches").applyPatches_;return Ru(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Xx(e,t){const r=Id(e)?ll("MapSet").proxyMap_(e,t):Cg(e)?ll("MapSet").proxySet_(e,t):zse(e,t);return(t?t.scope_:OU()).drafts_.push(r),r}function Fse(e){return Ru(e)||Oi(10,e),EU(e)}function EU(e){if(!sl(e)||Eg(e))return e;const t=e[zn];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=qx(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=qx(e,!0);return Dh(r,(i,o)=>{PU(r,i,EU(o))},n),t&&(t.finalized_=!1),r}var Bse=new Use;Bse.produce;var Wse={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},IU=Sn({name:"legend",initialState:Wse,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ft()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Ni(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Ft()},removeLegendPayload:{reducer(e,t){var r=Ni(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ft()}}}),{setLegendSize:R0e,setLegendSettings:N0e,addLegendPayload:Kse,replaceLegendPayload:Hse,removeLegendPayload:Zse}=IU.actions,qse=IU.reducer;function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qx.apply(null,arguments)}function Sj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sj(Object(r),!0).forEach(function(n){Vse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vse(e,t,r){return(t=Gse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gse(e){var t=Yse(e,"string");return typeof t=="symbol"?t:t+""}function Yse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xse(e){return Array.isArray(e)&&po(e[0])&&po(e[1])?e.join(" ~ "):e}var Qse=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:o,formatter:a,itemSorter:u,wrapperClassName:c,labelClassName:f,label:d,labelFormatter:m,accessibilityLayer:h=!1}=e,g=()=>{if(o&&o.length){var O={padding:0,margin:0},E=(u?fg(o,u):o).map((j,R)=>{if(j.type==="none")return null;var D=j.formatter||a||Xse,{value:L,name:M}=j,I=L,W=M;if(D){var K=D(L,M,j,R,o);if(Array.isArray(K))[I,W]=K;else if(K!=null)I=K;else return null}var Z=nw({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},n);return b.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:Z},po(W)?b.createElement("span",{className:"recharts-tooltip-item-name"},W):null,po(W)?b.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,b.createElement("span",{className:"recharts-tooltip-item-value"},I),b.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return b.createElement("ul",{className:"recharts-tooltip-item-list",style:O},E)}return null},y=nw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),x=nw({margin:0},i),w=!Cr(d),k=w?d:"",C=ve("recharts-default-tooltip",c),$=ve("recharts-tooltip-label",f);w&&m&&o!==void 0&&o!==null&&(k=m(d,o));var P=h?{role:"status","aria-live":"assertive"}:{};return b.createElement("div",Qx({className:C,style:y},P),b.createElement("p",{className:$,style:x},b.isValidElement(k)?k:"".concat(k)),g())},Gc="recharts-tooltip-wrapper",Jse={visibility:"hidden"};function ele(e){var{coordinate:t,translateX:r,translateY:n}=e;return ve(Gc,{["".concat(Gc,"-right")]:Fe(r)&&t&&Fe(t.x)&&r>=t.x,["".concat(Gc,"-left")]:Fe(r)&&t&&Fe(t.x)&&r<t.x,["".concat(Gc,"-bottom")]:Fe(n)&&t&&Fe(t.y)&&n>=t.y,["".concat(Gc,"-top")]:Fe(n)&&t&&Fe(t.y)&&n<t.y})}function kj(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:o,reverseDirection:a,tooltipDimension:u,viewBox:c,viewBoxDimension:f}=e;if(o&&Fe(o[n]))return o[n];var d=r[n]-u-(i>0?i:0),m=r[n]+i;if(t[n])return a[n]?d:m;var h=c[n];if(h==null)return 0;if(a[n]){var g=d,y=h;return g<y?Math.max(m,h):Math.max(d,h)}if(f==null)return 0;var x=m+u,w=h+f;return x>w?Math.max(d,h):Math.max(m,h)}function tle(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function rle(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:o,tooltipBox:a,useTranslate3d:u,viewBox:c}=e,f,d,m;return a.height>0&&a.width>0&&r?(d=kj({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),m=kj({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),f=tle({translateX:d,translateY:m,useTranslate3d:u})):f=Jse,{cssProperties:f,cssClasses:ele({translateX:d,translateY:m,coordinate:r})}}function $j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Om(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$j(Object(r),!0).forEach(function(n){Jx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jx(e,t,r){return(t=nle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nle(e){var t=ile(e,"string");return typeof t=="symbol"?t:t+""}function ile(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class ole extends b.PureComponent{constructor(){super(...arguments),Jx(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Jx(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:o,coordinate:a,hasPayload:u,isAnimationActive:c,offset:f,position:d,reverseDirection:m,useTranslate3d:h,viewBox:g,wrapperStyle:y,lastBoundingBox:x,innerRef:w,hasPortalFromProps:k}=this.props,{cssClasses:C,cssProperties:$}=rle({allowEscapeViewBox:r,coordinate:a,offsetTopLeft:f,position:d,reverseDirection:m,tooltipBox:{height:x.height,width:x.width},useTranslate3d:h,viewBox:g}),P=k?{}:Om(Om({transition:c&&t?"transform ".concat(n,"ms ").concat(i):void 0},$),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),O=Om(Om({},P),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},y);return b.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:C,style:O,ref:w},o)}}var TU=()=>{var e;return(e=Le(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eS.apply(null,arguments)}function _j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_j(Object(r),!0).forEach(function(n){ale(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ale(e,t,r){return(t=sle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sle(e){var t=lle(e,"string");return typeof t=="symbol"?t:t+""}function lle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oj={curveBasisClosed:oie,curveBasisOpen:aie,curveBasis:iie,curveBumpX:Kne,curveBumpY:Hne,curveLinearClosed:sie,curveLinear:lg,curveMonotoneX:lie,curveMonotoneY:uie,curveNatural:cie,curveStep:fie,curveStepAfter:pie,curveStepBefore:die},Uh=e=>Er(e.x)&&Er(e.y),Cj=e=>e.base!=null&&Uh(e.base)&&Uh(e),Yc=e=>e.x,Xc=e=>e.y,ule=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat($d(e));return(r==="curveMonotone"||r==="curveBump")&&t?Oj["".concat(r).concat(t==="vertical"?"Y":"X")]:Oj[r]||lg},cle=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:o=!1}=e,a=ule(t,i),u=o?r.filter(Uh):r,c;if(Array.isArray(n)){var f=r.map((g,y)=>Pj(Pj({},g),{},{base:n[y]}));i==="vertical"?c=bm().y(Xc).x1(Yc).x0(g=>g.base.x):c=bm().x(Yc).y1(Xc).y0(g=>g.base.y);var d=c.defined(Cj).curve(a),m=o?f.filter(Cj):f;return d(m)}i==="vertical"&&Fe(n)?c=bm().y(Xc).x1(Yc).x0(n):Fe(n)?c=bm().x(Yc).y1(Xc).y0(n):c=f6().x(Yc).y(Xc);var h=c.defined(Uh).curve(a);return h(u)},jU=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var o=r&&r.length?cle(e):n;return b.createElement("path",eS({},Zo(e),v$(e),{className:ve("recharts-curve",t),d:o===null?void 0:o,ref:i}))},fle=["x","y","top","left","width","height","className"];function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tS.apply(null,arguments)}function Ej(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dle(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ej(Object(r),!0).forEach(function(n){ple(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ej(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ple(e,t,r){return(t=mle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mle(e){var t=hle(e,"string");return typeof t=="symbol"?t:t+""}function hle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vle(e,t){if(e==null)return{};var r,n,i=gle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function gle(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var yle=(e,t,r,n,i,o)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r),ble=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:o=0,height:a=0,className:u}=e,c=vle(e,fle),f=dle({x:t,y:r,top:n,left:i,width:o,height:a},c);return!Fe(t)||!Fe(r)||!Fe(o)||!Fe(a)||!Fe(n)||!Fe(i)?null:b.createElement("path",tS({},rn(f),{className:ve("recharts-cross",u),d:yle(t,r,o,a,n,i)}))};function wle(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Ij(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ij(Object(r),!0).forEach(function(n){xle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xle(e,t,r){return(t=Sle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sle(e){var t=kle(e,"string");return typeof t=="symbol"?t:t+""}function kle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $le=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),AU=(e,t,r)=>e.map(n=>"".concat($le(n)," ").concat(t,"ms ").concat(r)).join(","),_le=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Uf=(e,t)=>Object.keys(t).reduce((r,n)=>Tj(Tj({},r),{},{[n]:e(n,t[n])}),{});function jj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jj(Object(r),!0).forEach(function(n){Ple(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ple(e,t,r){return(t=Ole(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ole(e){var t=Cle(e,"string");return typeof t=="symbol"?t:t+""}function Cle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fh=(e,t,r)=>e+(t-e)*r,rS=e=>{var{from:t,to:r}=e;return t!==r},RU=(e,t,r)=>{var n=Uf((i,o)=>{if(rS(o)){var[a,u]=e(o.from,o.to,o.velocity);return dr(dr({},o),{},{from:a,velocity:u})}return o},t);return r<1?Uf((i,o)=>rS(o)?dr(dr({},o),{},{velocity:Fh(o.velocity,n[i].velocity,r),from:Fh(o.from,n[i].from,r)}):o,t):RU(e,n,r-1)};function Ele(e,t,r,n,i,o){var a,u=n.reduce((h,g)=>dr(dr({},h),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),c=()=>Uf((h,g)=>g.from,u),f=()=>!Object.values(u).filter(rS).length,d=null,m=h=>{a||(a=h);var g=h-a,y=g/r.dt;u=RU(r,u,y),i(dr(dr(dr({},e),t),c())),a=h,f()||(d=o.setTimeout(m))};return()=>(d=o.setTimeout(m),()=>{var h;(h=d)===null||h===void 0||h()})}function Ile(e,t,r,n,i,o,a){var u=null,c=i.reduce((m,h)=>dr(dr({},m),{},{[h]:[e[h],t[h]]}),{}),f,d=m=>{f||(f=m);var h=(m-f)/n,g=Uf((x,w)=>Fh(...w,r(h)),c);if(o(dr(dr(dr({},e),t),g)),h<1)u=a.setTimeout(d);else{var y=Uf((x,w)=>Fh(...w,r(1)),c);o(dr(dr(dr({},e),t),y))}};return()=>(u=a.setTimeout(d),()=>{var m;(m=u)===null||m===void 0||m()})}const Tle=(e,t,r,n,i,o)=>{var a=_le(e,t);return r==null?()=>(i(dr(dr({},e),t)),()=>{}):r.isStepper===!0?Ele(e,t,r,a,i,o):Ile(e,t,r,n,a,i,o)};var Bh=1e-4,NU=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],MU=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Aj=(e,t)=>r=>{var n=NU(e,t);return MU(n,r)},jle=(e,t)=>r=>{var n=NU(e,t),i=[...n.map((o,a)=>o*a).slice(1),0];return MU(i,r)},Ale=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i,o=r[0].split("(");if(o[0]==="cubic-bezier"&&((i=o[1])===null||i===void 0?void 0:i.split(")")[0].split(",").length)===4){var a=o[1].split(")")[0].split(",").map(u=>parseFloat(u));return[a[0],a[1],a[2],a[3]]}}}return r.length===4?r:[0,0,1,1]},Rle=(e,t,r,n)=>{var i=Aj(e,r),o=Aj(t,n),a=jle(e,r),u=f=>f>1?1:f<0?0:f,c=f=>{for(var d=f>1?1:f,m=d,h=0;h<8;++h){var g=i(m)-d,y=a(m);if(Math.abs(g-d)<Bh||y<Bh)return o(m);m=u(m-g/y)}return o(m)};return c.isStepper=!1,c},Rj=function(){return Rle(...Ale(...arguments))},Nle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,o=(a,u,c)=>{var f=-(a-u)*r,d=c*n,m=c+(f-d)*i/1e3,h=c*i/1e3+a;return Math.abs(h-u)<Bh&&Math.abs(m)<Bh?[u,0]:[h,m]};return o.isStepper=!0,o.dt=i,o},Mle=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Rj(e);case"spring":return Nle();default:if(e.split("(")[0]==="cubic-bezier")return Rj(e)}return typeof e=="function"?e:null};function Dle(e){var t,r=()=>null,n=!1,i=null,o=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var u=a,[c,...f]=u;if(typeof c=="number"){i=e.setTimeout(o.bind(null,f),c);return}o(c),i=e.setTimeout(o.bind(null,f));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,i&&(i(),i=null),o(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}class zle{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,o=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}}function Lle(){return Dle(new zle)}var Ule=b.createContext(Lle);function Fle(e,t){var r=b.useContext(Ule);return b.useMemo(()=>t??r(e),[e,t,r])}var Ble=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Td={devToolsEnabled:!1,isSsr:Ble()},Wle={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Nj={t:0},iw={t:1};function I$(e){var t=Bn(e,Wle),{isActive:r,canBegin:n,duration:i,easing:o,begin:a,onAnimationEnd:u,onAnimationStart:c,children:f}=t,d=r==="auto"?!Td.isSsr:r,m=Fle(t.animationId,t.animationManager),[h,g]=b.useState(d?Nj:iw),y=b.useRef(null);return b.useEffect(()=>{d||g(iw)},[d]),b.useEffect(()=>{if(!d||!n)return _d;var x=Tle(Nj,iw,Mle(o),i,g,m.getTimeoutController()),w=()=>{y.current=x()};return m.start([c,a,w,i,u]),()=>{m.stop(),y.current&&y.current(),u()}},[d,n,i,o,a,c,u,m]),f(h.t)}function T$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=b.useRef(Af(t)),n=b.useRef(e);return n.current!==e&&(r.current=Af(t),n.current=e),r.current}var Kle=["radius"],Hle=["radius"];function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(r),!0).forEach(function(n){Zle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zle(e,t,r){return(t=qle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qle(e){var t=Vle(e,"string");return typeof t=="symbol"?t:t+""}function Vle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wh.apply(null,arguments)}function zj(e,t){if(e==null)return{};var r,n,i=Gle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Gle(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lj=(e,t,r,n,i)=>{var o=Math.min(Math.abs(r)/2,Math.abs(n)/2),a=n>=0?1:-1,u=r>=0?1:-1,c=n>=0&&r>=0||n<0&&r<0?1:0,f;if(o>0&&i instanceof Array){for(var d=[0,0,0,0],m=0,h=4;m<h;m++)d[m]=i[m]>o?o:i[m];f="M".concat(e,",").concat(t+a*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(e+u*d[0],",").concat(t)),f+="L ".concat(e+r-u*d[1],",").concat(t),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
|
|
246
|
-
`).concat(e+r,",").concat(t+a*d[1])),f+="L ".concat(e+r,",").concat(t+n-a*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`,
|
|
247
|
-
`).concat(e+r-u*d[2],",").concat(t+n)),f+="L ".concat(e+u*d[3],",").concat(t+n),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`,
|
|
248
|
-
`).concat(e,",").concat(t+n-a*d[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var g=Math.min(o,i);f="M ".concat(e,",").concat(t+a*g,`
|
|
249
|
-
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+u*g,",").concat(t,`
|
|
250
|
-
L `).concat(e+r-u*g,",").concat(t,`
|
|
251
|
-
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+r,",").concat(t+a*g,`
|
|
252
|
-
L `).concat(e+r,",").concat(t+n-a*g,`
|
|
253
|
-
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e+r-u*g,",").concat(t+n,`
|
|
254
|
-
L `).concat(e+u*g,",").concat(t+n,`
|
|
255
|
-
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(e,",").concat(t+n-a*g," Z")}else f="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return f},Uj={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DU=e=>{var t=Bn(e,Uj),r=b.useRef(null),[n,i]=b.useState(-1);b.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var ee=r.current.getTotalLength();ee&&i(ee)}catch{}},[]);var{x:o,y:a,width:u,height:c,radius:f,className:d}=t,{animationEasing:m,animationDuration:h,animationBegin:g,isAnimationActive:y,isUpdateAnimationActive:x}=t,w=b.useRef(u),k=b.useRef(c),C=b.useRef(o),$=b.useRef(a),P=b.useMemo(()=>({x:o,y:a,width:u,height:c,radius:f}),[o,a,u,c,f]),O=T$(P,"rectangle-");if(o!==+o||a!==+a||u!==+u||c!==+c||u===0||c===0)return null;var E=ve("recharts-rectangle",d);if(!x){var j=rn(t),{radius:R}=j,D=zj(j,Kle);return b.createElement("path",Wh({},D,{radius:typeof f=="number"?f:void 0,className:E,d:Lj(o,a,u,c,f)}))}var L=w.current,M=k.current,I=C.current,W=$.current,K="0px ".concat(n===-1?1:n,"px"),Z="".concat(n,"px 0px"),V=AU(["strokeDasharray"],h,typeof m=="string"?m:Uj.animationEasing);return b.createElement(I$,{animationId:O,key:O,canBegin:n>0,duration:h,easing:m,isActive:x,begin:g},ee=>{var F=hn(L,u,ee),z=hn(M,c,ee),Y=hn(I,o,ee),N=hn(W,a,ee);r.current&&(w.current=F,k.current=z,C.current=Y,$.current=N);var G;y?ee>0?G={transition:V,strokeDasharray:Z}:G={strokeDasharray:K}:G={strokeDasharray:Z};var ae=rn(t),{radius:ue}=ae,pe=zj(ae,Hle);return b.createElement("path",Wh({},pe,{radius:typeof f=="number"?f:void 0,className:E,d:Lj(Y,N,F,z,f),ref:r,style:Dj(Dj({},G),t.style)}))})};function Fj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fj(Object(r),!0).forEach(function(n){Yle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yle(e,t,r){return(t=Xle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xle(e){var t=Qle(e,"string");return typeof t=="symbol"?t:t+""}function Qle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kh=Math.PI/180,Jle=e=>e*180/Math.PI,Dr=(e,t,r,n)=>({x:e+Math.cos(-Kh*n)*r,y:t+Math.sin(-Kh*n)*r}),eue=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},tue=(e,t)=>{var{x:r,y:n}=e,{x:i,y:o}=t;return Math.sqrt((r-i)**2+(n-o)**2)},rue=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:o}=t,a=tue({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var u=(r-i)/a,c=Math.acos(u);return n>o&&(c=2*Math.PI-c),{radius:a,angle:Jle(c),angleInRadian:c}},nue=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-o*360,endAngle:r-o*360}},iue=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return e+a*360},oue=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:o}=rue({x:r,y:n},t),{innerRadius:a,outerRadius:u}=t;if(i<a||i>u||i===0)return null;var{startAngle:c,endAngle:f}=nue(t),d=o,m;if(c<=f){for(;d>f;)d-=360;for(;d<c;)d+=360;m=d>=c&&d<=f}else{for(;d>c;)d-=360;for(;d<f;)d+=360;m=d>=f&&d<=c}return m?Bj(Bj({},t),{},{radius:i,angle:iue(d,t)}):null};function zU(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:o}=e,a=Dr(t,r,n,i),u=Dr(t,r,n,o);return{points:[a,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nS.apply(null,arguments)}var aue=(e,t)=>{var r=Ti(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Cm=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:o,isExternal:a,cornerRadius:u,cornerIsExternal:c}=e,f=u*(a?1:-1)+n,d=Math.asin(u/f)/Kh,m=c?i:i+o*d,h=Dr(t,r,f,m),g=Dr(t,r,n,m),y=c?i-o*d:i,x=Dr(t,r,f*Math.cos(d*Kh),y);return{center:h,circleTangency:g,lineTangency:x,theta:d}},LU=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:o,endAngle:a}=e,u=aue(o,a),c=o+u,f=Dr(t,r,i,o),d=Dr(t,r,i,c),m="M ".concat(f.x,",").concat(f.y,`
|
|
256
|
-
A `).concat(i,",").concat(i,`,0,
|
|
257
|
-
`).concat(+(Math.abs(u)>180),",").concat(+(o>c),`,
|
|
258
|
-
`).concat(d.x,",").concat(d.y,`
|
|
259
|
-
`);if(n>0){var h=Dr(t,r,n,o),g=Dr(t,r,n,c);m+="L ".concat(g.x,",").concat(g.y,`
|
|
260
|
-
A `).concat(n,",").concat(n,`,0,
|
|
261
|
-
`).concat(+(Math.abs(u)>180),",").concat(+(o<=c),`,
|
|
262
|
-
`).concat(h.x,",").concat(h.y," Z")}else m+="L ".concat(t,",").concat(r," Z");return m},sue=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:f}=e,d=Ti(f-c),{circleTangency:m,lineTangency:h,theta:g}=Cm({cx:t,cy:r,radius:i,angle:c,sign:d,cornerRadius:o,cornerIsExternal:u}),{circleTangency:y,lineTangency:x,theta:w}=Cm({cx:t,cy:r,radius:i,angle:f,sign:-d,cornerRadius:o,cornerIsExternal:u}),k=u?Math.abs(c-f):Math.abs(c-f)-g-w;if(k<0)return a?"M ".concat(h.x,",").concat(h.y,`
|
|
263
|
-
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
264
|
-
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
265
|
-
`):LU({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:f});var C="M ".concat(h.x,",").concat(h.y,`
|
|
266
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(m.x,",").concat(m.y,`
|
|
267
|
-
A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(d<0),",").concat(y.x,",").concat(y.y,`
|
|
268
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(x.x,",").concat(x.y,`
|
|
269
|
-
`);if(n>0){var{circleTangency:$,lineTangency:P,theta:O}=Cm({cx:t,cy:r,radius:n,angle:c,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),{circleTangency:E,lineTangency:j,theta:R}=Cm({cx:t,cy:r,radius:n,angle:f,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),D=u?Math.abs(c-f):Math.abs(c-f)-O-R;if(D<0&&o===0)return"".concat(C,"L").concat(t,",").concat(r,"Z");C+="L".concat(j.x,",").concat(j.y,`
|
|
270
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(E.x,",").concat(E.y,`
|
|
271
|
-
A`).concat(n,",").concat(n,",0,").concat(+(D>180),",").concat(+(d>0),",").concat($.x,",").concat($.y,`
|
|
272
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(P.x,",").concat(P.y,"Z")}else C+="L".concat(t,",").concat(r,"Z");return C},lue={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},UU=e=>{var t=Bn(e,lue),{cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:d,className:m}=t;if(o<i||f===d)return null;var h=ve("recharts-sector",m),g=o-i,y=Ga(a,g,0,!0),x;return y>0&&Math.abs(f-d)<360?x=sue({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,g/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:d}):x=LU({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:f,endAngle:d}),b.createElement("path",nS({},rn(t),{className:h,d:x}))};function uue(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(O6(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:o,outerRadius:a,angle:u}=t,c=Dr(n,i,o,u),f=Dr(n,i,a,u);return[{x:c.x,y:c.y},{x:f.x,y:f.y}]}return zU(t)}}var ow={},aw={},sw={},Wj;function cue(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z6();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(sw)),sw}var Kj;function fue(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cue();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(aw)),aw}var Hj;function due(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L6(),r=fue();function n(i,o,a){a&&typeof a!="number"&&t.isIterateeCall(i,o,a)&&(o=a=void 0),i=r.toFinite(i),o===void 0?(o=i,i=0):o=r.toFinite(o),a=a===void 0?i<o?1:-1:r.toFinite(a);const u=Math.max(Math.ceil((o-i)/(a||1)),0),c=new Array(u);for(let f=0;f<u;f++)c[f]=i,i+=a;return c}e.range=n})(ow)),ow}var lw,Zj;function pue(){return Zj||(Zj=1,lw=due().range),lw}var mue=pue();const FU=ho(mue);function Ha(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hue(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j$(e){let t,r,n;e.length!==2?(t=Ha,r=(u,c)=>Ha(e(u),c),n=(u,c)=>e(u)-c):(t=e===Ha||e===hue?e:vue,r=e,n=e);function i(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const m=f+d>>>1;r(u[m],c)<0?f=m+1:d=m}while(f<d)}return f}function o(u,c,f=0,d=u.length){if(f<d){if(t(c,c)!==0)return d;do{const m=f+d>>>1;r(u[m],c)<=0?f=m+1:d=m}while(f<d)}return f}function a(u,c,f=0,d=u.length){const m=i(u,c,f,d-1);return m>f&&n(u[m-1],c)>-n(u[m],c)?m-1:m}return{left:i,center:a,right:o}}function vue(){return 0}function BU(e){return e===null?NaN:+e}function*gue(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const yue=j$(Ha),jd=yue.right;j$(BU).center;class qj extends Map{constructor(t,r=xue){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Vj(this,t))}has(t){return super.has(Vj(this,t))}set(t,r){return super.set(bue(this,t),r)}delete(t){return super.delete(wue(this,t))}}function Vj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function bue({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function wue({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function xue(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Sue(e=Ha){if(e===Ha)return WU;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function WU(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kue=Math.sqrt(50),$ue=Math.sqrt(10),_ue=Math.sqrt(2);function Hh(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=kue?10:o>=$ue?5:o>=_ue?2:1;let u,c,f;return i<0?(f=Math.pow(10,-i)/a,u=Math.round(e*f),c=Math.round(t*f),u/f<e&&++u,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*a,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=r&&r<2?Hh(e,t,r*2):[u,c,f]}function iS(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?Hh(t,e,r):Hh(e,t,r);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(n)if(a<0)for(let f=0;f<u;++f)c[f]=(o-f)/-a;else for(let f=0;f<u;++f)c[f]=(o-f)*a;else if(a<0)for(let f=0;f<u;++f)c[f]=(i+f)/-a;else for(let f=0;f<u;++f)c[f]=(i+f)*a;return c}function oS(e,t,r){return t=+t,e=+e,r=+r,Hh(e,t,r)[2]}function aS(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?oS(t,e,r):oS(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Gj(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Yj(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function KU(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?WU:Sue(i);n>r;){if(n-r>600){const c=n-r+1,f=t-r+1,d=Math.log(c),m=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*m*(c-m)/c)*(f-c/2<0?-1:1),g=Math.max(r,Math.floor(t-f*m/c+h)),y=Math.min(n,Math.floor(t+(c-f)*m/c+h));KU(e,t,g,y,i)}const o=e[t];let a=r,u=n;for(Qc(e,r,t),i(e[n],o)>0&&Qc(e,r,n);a<u;){for(Qc(e,a,u),++a,--u;i(e[a],o)<0;)++a;for(;i(e[u],o)>0;)--u}i(e[r],o)===0?Qc(e,r,u):(++u,Qc(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Qc(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Pue(e,t,r){if(e=Float64Array.from(gue(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Yj(e);if(t>=1)return Gj(e);var n,i=(n-1)*t,o=Math.floor(i),a=Gj(KU(e,o).subarray(0,o+1)),u=Yj(e.subarray(o+1));return a+(u-a)*(i-o)}}function Oue(e,t,r=BU){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),u=+r(e[o+1],o+1,e);return a+(u-a)*(i-o)}}function Cue(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function pi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ia(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const sS=Symbol("implicit");function A$(){var e=new qj,t=[],r=[],n=sS;function i(o){let a=e.get(o);if(a===void 0){if(n!==sS)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new qj;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return A$(t,r).unknown(n)},pi.apply(i,arguments),i}function R$(){var e=A$().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,u=!1,c=0,f=0,d=.5;delete e.unknown;function m(){var h=t().length,g=i<n,y=g?i:n,x=g?n:i;o=(x-y)/Math.max(1,h-c+f*2),u&&(o=Math.floor(o)),y+=(x-y-o*(h-c))*d,a=o*(1-c),u&&(y=Math.round(y),a=Math.round(a));var w=Cue(h).map(function(k){return y+o*k});return r(g?w.reverse():w)}return e.domain=function(h){return arguments.length?(t(h),m()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,m()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,m()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(u=!!h,m()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,f=+h),m()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),m()):c},e.paddingOuter=function(h){return arguments.length?(f=+h,m()):f},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),m()):d},e.copy=function(){return R$(t(),[n,i]).round(u).paddingInner(c).paddingOuter(f).align(d)},pi.apply(m(),arguments)}function HU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return HU(t())},e}function Eue(){return HU(R$.apply(null,arguments).paddingInner(1))}function N$(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ZU(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ad(){}var Ff=.7,Zh=1/Ff,iu="\\s*([+-]?\\d+)\\s*",Bf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",co="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iue=/^#([0-9a-f]{3,8})$/,Tue=new RegExp(`^rgb\\(${iu},${iu},${iu}\\)$`),jue=new RegExp(`^rgb\\(${co},${co},${co}\\)$`),Aue=new RegExp(`^rgba\\(${iu},${iu},${iu},${Bf}\\)$`),Rue=new RegExp(`^rgba\\(${co},${co},${co},${Bf}\\)$`),Nue=new RegExp(`^hsl\\(${Bf},${co},${co}\\)$`),Mue=new RegExp(`^hsla\\(${Bf},${co},${co},${Bf}\\)$`),Xj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};N$(Ad,Wf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qj,formatHex:Qj,formatHex8:Due,formatHsl:zue,formatRgb:Jj,toString:Jj});function Qj(){return this.rgb().formatHex()}function Due(){return this.rgb().formatHex8()}function zue(){return qU(this).formatHsl()}function Jj(){return this.rgb().formatRgb()}function Wf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Iue.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?eA(t):r===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Em(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Em(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Tue.exec(e))?new vn(t[1],t[2],t[3],1):(t=jue.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Aue.exec(e))?Em(t[1],t[2],t[3],t[4]):(t=Rue.exec(e))?Em(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Nue.exec(e))?nA(t[1],t[2]/100,t[3]/100,1):(t=Mue.exec(e))?nA(t[1],t[2]/100,t[3]/100,t[4]):Xj.hasOwnProperty(e)?eA(Xj[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function eA(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function Em(e,t,r,n){return n<=0&&(e=t=r=NaN),new vn(e,t,r,n)}function Lue(e){return e instanceof Ad||(e=Wf(e)),e?(e=e.rgb(),new vn(e.r,e.g,e.b,e.opacity)):new vn}function lS(e,t,r,n){return arguments.length===1?Lue(e):new vn(e,t,r,n??1)}function vn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}N$(vn,lS,ZU(Ad,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ff:Math.pow(Ff,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(Ys(this.r),Ys(this.g),Ys(this.b),qh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tA,formatHex:tA,formatHex8:Uue,formatRgb:rA,toString:rA}));function tA(){return`#${Ns(this.r)}${Ns(this.g)}${Ns(this.b)}`}function Uue(){return`#${Ns(this.r)}${Ns(this.g)}${Ns(this.b)}${Ns((isNaN(this.opacity)?1:this.opacity)*255)}`}function rA(){const e=qh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ys(this.r)}, ${Ys(this.g)}, ${Ys(this.b)}${e===1?")":`, ${e})`}`}function qh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ys(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ns(e){return e=Ys(e),(e<16?"0":"")+e.toString(16)}function nA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ci(e,t,r,n)}function qU(e){if(e instanceof Ci)return new Ci(e.h,e.s,e.l,e.opacity);if(e instanceof Ad||(e=Wf(e)),!e)return new Ci;if(e instanceof Ci)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,u=o-i,c=(o+i)/2;return u?(t===o?a=(r-n)/u+(r<n)*6:r===o?a=(n-t)/u+2:a=(t-r)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new Ci(a,u,c,e.opacity)}function Fue(e,t,r,n){return arguments.length===1?qU(e):new Ci(e,t,r,n??1)}function Ci(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}N$(Ci,Fue,ZU(Ad,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new Ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ff:Math.pow(Ff,e),new Ci(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new vn(uw(e>=240?e-240:e+120,i,n),uw(e,i,n),uw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ci(iA(this.h),Im(this.s),Im(this.l),qh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qh(this.opacity);return`${e===1?"hsl(":"hsla("}${iA(this.h)}, ${Im(this.s)*100}%, ${Im(this.l)*100}%${e===1?")":`, ${e})`}`}}));function iA(e){return e=(e||0)%360,e<0?e+360:e}function Im(e){return Math.max(0,Math.min(1,e||0))}function uw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const M$=e=>()=>e;function Bue(e,t){return function(r){return e+r*t}}function Wue(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Kue(e){return(e=+e)==1?VU:function(t,r){return r-t?Wue(t,r,e):M$(isNaN(t)?r:t)}}function VU(e,t){var r=t-e;return r?Bue(e,r):M$(isNaN(e)?t:e)}const oA=(function e(t){var r=Kue(t);function n(i,o){var a=r((i=lS(i)).r,(o=lS(o)).r),u=r(i.g,o.g),c=r(i.b,o.b),f=VU(i.opacity,o.opacity);return function(d){return i.r=a(d),i.g=u(d),i.b=c(d),i.opacity=f(d),i+""}}return n.gamma=e,n})(1);function Hue(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function Zue(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function que(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=qu(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(u){for(a=0;a<n;++a)o[a]=i[a](u);return o}}function Vue(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Vh(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Gue(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=qu(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var uS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cw=new RegExp(uS.source,"g");function Yue(e){return function(){return e}}function Xue(e){return function(t){return e(t)+""}}function Que(e,t){var r=uS.lastIndex=cw.lastIndex=0,n,i,o,a=-1,u=[],c=[];for(e=e+"",t=t+"";(n=uS.exec(e))&&(i=cw.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,c.push({i:a,x:Vh(n,i)})),r=cw.lastIndex;return r<t.length&&(o=t.slice(r),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?Xue(c[0].x):Yue(t):(t=c.length,function(f){for(var d=0,m;d<t;++d)u[(m=c[d]).i]=m.x(f);return u.join("")})}function qu(e,t){var r=typeof t,n;return t==null||r==="boolean"?M$(t):(r==="number"?Vh:r==="string"?(n=Wf(t))?(t=n,oA):Que:t instanceof Wf?oA:t instanceof Date?Vue:Zue(t)?Hue:Array.isArray(t)?que:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Gue:Vh)(e,t)}function D$(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Jue(e,t){t===void 0&&(t=e,e=qu);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var u=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[u](a-u)}}function ece(e){return function(){return e}}function Gh(e){return+e}var aA=[0,1];function en(e){return e}function cS(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:ece(isNaN(t)?NaN:.5)}function tce(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function rce(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=cS(i,n),o=r(a,o)):(n=cS(n,i),o=r(o,a)),function(u){return o(n(u))}}function nce(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=cS(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(u){var c=jd(e,u,1,n)-1;return o[c](i[c](u))}}function Rd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ig(){var e=aA,t=aA,r=qu,n,i,o,a=en,u,c,f;function d(){var h=Math.min(e.length,t.length);return a!==en&&(a=tce(e[0],e[h-1])),u=h>2?nce:rce,c=f=null,m}function m(h){return h==null||isNaN(h=+h)?o:(c||(c=u(e.map(n),t,r)))(n(a(h)))}return m.invert=function(h){return a(i((f||(f=u(t,e.map(n),Vh)))(h)))},m.domain=function(h){return arguments.length?(e=Array.from(h,Gh),d()):e.slice()},m.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},m.rangeRound=function(h){return t=Array.from(h),r=D$,d()},m.clamp=function(h){return arguments.length?(a=h?!0:en,d()):a!==en},m.interpolate=function(h){return arguments.length?(r=h,d()):r},m.unknown=function(h){return arguments.length?(o=h,m):o},function(h,g){return n=h,i=g,d()}}function z$(){return Ig()(en,en)}function ice(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Yh(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Nu(e){return e=Yh(Math.abs(e)),e?e[1]:NaN}function oce(e,t){return function(r,n){for(var i=r.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),o.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return o.reverse().join(t)}}function ace(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sce=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kf(e){if(!(t=sce.exec(e)))throw new Error("invalid format: "+e);var t;return new L$({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Kf.prototype=L$.prototype;function L$(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}L$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lce(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var GU;function uce(e,t){var r=Yh(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(GU=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Yh(e,Math.max(0,t+o-1))[0]}function sA(e,t){var r=Yh(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const lA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ice,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sA(e*100,t),r:sA,s:uce,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uA(e){return e}var cA=Array.prototype.map,fA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cce(e){var t=e.grouping===void 0||e.thousands===void 0?uA:oce(cA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?uA:ace(cA.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(m){m=Kf(m);var h=m.fill,g=m.align,y=m.sign,x=m.symbol,w=m.zero,k=m.width,C=m.comma,$=m.precision,P=m.trim,O=m.type;O==="n"?(C=!0,O="g"):lA[O]||($===void 0&&($=12),P=!0,O="g"),(w||h==="0"&&g==="=")&&(w=!0,h="0",g="=");var E=x==="$"?r:x==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=x==="$"?n:/[%p]/.test(O)?a:"",R=lA[O],D=/[defgprs%]/.test(O);$=$===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function L(M){var I=E,W=j,K,Z,V;if(O==="c")W=R(M)+W,M="";else{M=+M;var ee=M<0||1/M<0;if(M=isNaN(M)?c:R(Math.abs(M),$),P&&(M=lce(M)),ee&&+M==0&&y!=="+"&&(ee=!1),I=(ee?y==="("?y:u:y==="-"||y==="("?"":y)+I,W=(O==="s"?fA[8+GU/3]:"")+W+(ee&&y==="("?")":""),D){for(K=-1,Z=M.length;++K<Z;)if(V=M.charCodeAt(K),48>V||V>57){W=(V===46?i+M.slice(K+1):M.slice(K))+W,M=M.slice(0,K);break}}}C&&!w&&(M=t(M,1/0));var F=I.length+M.length+W.length,z=F<k?new Array(k-F+1).join(h):"";switch(C&&w&&(M=t(z+M,z.length?k-W.length:1/0),z=""),g){case"<":M=I+M+W+z;break;case"=":M=I+z+M+W;break;case"^":M=z.slice(0,F=z.length>>1)+I+M+W+z.slice(F);break;default:M=z+I+M+W;break}return o(M)}return L.toString=function(){return m+""},L}function d(m,h){var g=f((m=Kf(m),m.type="f",m)),y=Math.max(-8,Math.min(8,Math.floor(Nu(h)/3)))*3,x=Math.pow(10,-y),w=fA[8+y/3];return function(k){return g(x*k)+w}}return{format:f,formatPrefix:d}}var Tm,U$,YU;fce({thousands:",",grouping:[3],currency:["$",""]});function fce(e){return Tm=cce(e),U$=Tm.format,YU=Tm.formatPrefix,Tm}function dce(e){return Math.max(0,-Nu(Math.abs(e)))}function pce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Nu(t)/3)))*3-Nu(Math.abs(e)))}function mce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nu(t)-Nu(e))+1}function XU(e,t,r,n){var i=aS(e,t,r),o;switch(n=Kf(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=pce(i,a))&&(n.precision=o),YU(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=mce(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=dce(i))&&(n.precision=o-(n.type==="%")*2);break}}return U$(n)}function rs(e){var t=e.domain;return e.ticks=function(r){var n=t();return iS(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return XU(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],u=n[o],c,f,d=10;for(u<a&&(f=a,a=u,u=f,f=i,i=o,o=f);d-- >0;){if(f=oS(a,u,r),f===c)return n[i]=a,n[o]=u,t(n);if(f>0)a=Math.floor(a/f)*f,u=Math.ceil(u/f)*f;else if(f<0)a=Math.ceil(a*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function QU(){var e=z$();return e.copy=function(){return Rd(e,QU())},pi.apply(e,arguments),rs(e)}function JU(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Gh),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return JU(e).unknown(t)},e=arguments.length?Array.from(e,Gh):[0,1],rs(r)}function eF(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function dA(e){return Math.log(e)}function pA(e){return Math.exp(e)}function hce(e){return-Math.log(-e)}function vce(e){return-Math.exp(-e)}function gce(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yce(e){return e===10?gce:e===Math.E?Math.exp:t=>Math.pow(e,t)}function bce(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function mA(e){return(t,r)=>-e(-t,r)}function F$(e){const t=e(dA,pA),r=t.domain;let n=10,i,o;function a(){return i=bce(n),o=yce(n),r()[0]<0?(i=mA(i),o=mA(o),e(hce,vce)):e(dA,pA),t}return t.base=function(u){return arguments.length?(n=+u,a()):n},t.domain=function(u){return arguments.length?(r(u),a()):r()},t.ticks=u=>{const c=r();let f=c[0],d=c[c.length-1];const m=d<f;m&&([f,d]=[d,f]);let h=i(f),g=i(d),y,x;const w=u==null?10:+u;let k=[];if(!(n%1)&&g-h<w){if(h=Math.floor(h),g=Math.ceil(g),f>0){for(;h<=g;++h)for(y=1;y<n;++y)if(x=h<0?y/o(-h):y*o(h),!(x<f)){if(x>d)break;k.push(x)}}else for(;h<=g;++h)for(y=n-1;y>=1;--y)if(x=h>0?y/o(-h):y*o(h),!(x<f)){if(x>d)break;k.push(x)}k.length*2<w&&(k=iS(f,d,w))}else k=iS(h,g,Math.min(g-h,w)).map(o);return m?k.reverse():k},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Kf(c)).precision==null&&(c.trim=!0),c=U$(c)),u===1/0)return c;const f=Math.max(1,n*u/t.ticks().length);return d=>{let m=d/o(Math.round(i(d)));return m*n<n-.5&&(m*=n),m<=f?c(d):""}},t.nice=()=>r(eF(r(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),t}function tF(){const e=F$(Ig()).domain([1,10]);return e.copy=()=>Rd(e,tF()).base(e.base()),pi.apply(e,arguments),e}function hA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function B$(e){var t=1,r=e(hA(t),vA(t));return r.constant=function(n){return arguments.length?e(hA(t=+n),vA(t)):t},rs(r)}function rF(){var e=B$(Ig());return e.copy=function(){return Rd(e,rF()).constant(e.constant())},pi.apply(e,arguments)}function gA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function xce(e){return e<0?-e*e:e*e}function W$(e){var t=e(en,en),r=1;function n(){return r===1?e(en,en):r===.5?e(wce,xce):e(gA(r),gA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},rs(t)}function K$(){var e=W$(Ig());return e.copy=function(){return Rd(e,K$()).exponent(e.exponent())},pi.apply(e,arguments),e}function Sce(){return K$.apply(null,arguments).exponent(.5)}function yA(e){return Math.sign(e)*e*e}function kce(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nF(){var e=z$(),t=[0,1],r=!1,n;function i(o){var a=kce(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(yA(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Gh)).map(yA)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return nF(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},pi.apply(i,arguments),rs(i)}function iF(){var e=[],t=[],r=[],n;function i(){var a=0,u=Math.max(1,t.length);for(r=new Array(u-1);++a<u;)r[a-1]=Oue(e,a/u);return o}function o(a){return a==null||isNaN(a=+a)?n:t[jd(r,a)]}return o.invertExtent=function(a){var u=t.indexOf(a);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let u of a)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Ha),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return iF().domain(e).range(t).unknown(n)},pi.apply(o,arguments)}function oF(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[jd(n,c,0,r)]:o}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},a.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},a.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,n[0]]:f>=r?[n[r-1],t]:[n[f-1],n[f]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return n.slice()},a.copy=function(){return oF().domain([e,t]).range(i).unknown(o)},pi.apply(rs(a),arguments)}function aF(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[jd(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return aF().domain(e).range(t).unknown(r)},pi.apply(i,arguments)}const fw=new Date,dw=new Date;function mr(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),u=i.ceil(o);return o-a<u-o?a:u},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,u)=>{const c=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<a)||!(u>0))return c;let f;do c.push(f=new Date(+o)),t(o,u),e(o);while(f<o&&o<a);return c},i.filter=o=>mr(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,u)=>{if(a>=a)if(u<0)for(;++u<=0;)for(;t(a,-1),!o(a););else for(;--u>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(fw.setTime(+o),dw.setTime(+a),e(fw),e(dw),Math.floor(r(fw,dw))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Xh=mr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?mr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Xh);Xh.range;const Mo=1e3,ni=Mo*60,Do=ni*60,Yo=Do*24,H$=Yo*7,bA=Yo*30,pw=Yo*365,Ms=mr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Mo)},(e,t)=>(t-e)/Mo,e=>e.getUTCSeconds());Ms.range;const Z$=mr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mo)},(e,t)=>{e.setTime(+e+t*ni)},(e,t)=>(t-e)/ni,e=>e.getMinutes());Z$.range;const q$=mr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ni)},(e,t)=>(t-e)/ni,e=>e.getUTCMinutes());q$.range;const V$=mr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mo-e.getMinutes()*ni)},(e,t)=>{e.setTime(+e+t*Do)},(e,t)=>(t-e)/Do,e=>e.getHours());V$.range;const G$=mr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Do)},(e,t)=>(t-e)/Do,e=>e.getUTCHours());G$.range;const Nd=mr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ni)/Yo,e=>e.getDate()-1);Nd.range;const Tg=mr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yo,e=>e.getUTCDate()-1);Tg.range;const sF=mr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yo,e=>Math.floor(e/Yo));sF.range;function hl(e){return mr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ni)/H$)}const jg=hl(0),Qh=hl(1),$ce=hl(2),_ce=hl(3),Mu=hl(4),Pce=hl(5),Oce=hl(6);jg.range;Qh.range;$ce.range;_ce.range;Mu.range;Pce.range;Oce.range;function vl(e){return mr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/H$)}const Ag=vl(0),Jh=vl(1),Cce=vl(2),Ece=vl(3),Du=vl(4),Ice=vl(5),Tce=vl(6);Ag.range;Jh.range;Cce.range;Ece.range;Du.range;Ice.range;Tce.range;const Y$=mr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Y$.range;const X$=mr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());X$.range;const Xo=mr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Xo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Xo.range;const Qo=mr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Qo.range;function lF(e,t,r,n,i,o){const a=[[Ms,1,Mo],[Ms,5,5*Mo],[Ms,15,15*Mo],[Ms,30,30*Mo],[o,1,ni],[o,5,5*ni],[o,15,15*ni],[o,30,30*ni],[i,1,Do],[i,3,3*Do],[i,6,6*Do],[i,12,12*Do],[n,1,Yo],[n,2,2*Yo],[r,1,H$],[t,1,bA],[t,3,3*bA],[e,1,pw]];function u(f,d,m){const h=d<f;h&&([f,d]=[d,f]);const g=m&&typeof m.range=="function"?m:c(f,d,m),y=g?g.range(f,+d+1):[];return h?y.reverse():y}function c(f,d,m){const h=Math.abs(d-f)/m,g=j$(([,,w])=>w).right(a,h);if(g===a.length)return e.every(aS(f/pw,d/pw,m));if(g===0)return Xh.every(Math.max(aS(f,d,m),1));const[y,x]=a[h/a[g-1][2]<a[g][2]/h?g-1:g];return y.every(x)}return[u,c]}const[jce,Ace]=lF(Qo,X$,Ag,sF,G$,q$),[Rce,Nce]=lF(Xo,Y$,jg,Nd,V$,Z$);function mw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Jc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Mce(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,u=e.months,c=e.shortMonths,f=ef(i),d=tf(i),m=ef(o),h=tf(o),g=ef(a),y=tf(a),x=ef(u),w=tf(u),k=ef(c),C=tf(c),$={a:ee,A:F,b:z,B:Y,c:null,d:_A,e:_A,f:ofe,g:hfe,G:gfe,H:rfe,I:nfe,j:ife,L:uF,m:afe,M:sfe,p:N,q:G,Q:CA,s:EA,S:lfe,u:ufe,U:cfe,V:ffe,w:dfe,W:pfe,x:null,X:null,y:mfe,Y:vfe,Z:yfe,"%":OA},P={a:ae,A:ue,b:pe,B:le,c:null,d:PA,e:PA,f:Sfe,g:jfe,G:Rfe,H:bfe,I:wfe,j:xfe,L:fF,m:kfe,M:$fe,p:he,q:ke,Q:CA,s:EA,S:_fe,u:Pfe,U:Ofe,V:Cfe,w:Efe,W:Ife,x:null,X:null,y:Tfe,Y:Afe,Z:Nfe,"%":OA},O={a:L,A:M,b:I,B:W,c:K,d:kA,e:kA,f:Qce,g:SA,G:xA,H:$A,I:$A,j:Vce,L:Xce,m:qce,M:Gce,p:D,q:Zce,Q:efe,s:tfe,S:Yce,u:Fce,U:Bce,V:Wce,w:Uce,W:Kce,x:Z,X:V,y:SA,Y:xA,Z:Hce,"%":Jce};$.x=E(r,$),$.X=E(n,$),$.c=E(t,$),P.x=E(r,P),P.X=E(n,P),P.c=E(t,P);function E(Q,se){return function(be){var re=[],Ue=-1,Se=0,Me=Q.length,rt,et,ot;for(be instanceof Date||(be=new Date(+be));++Ue<Me;)Q.charCodeAt(Ue)===37&&(re.push(Q.slice(Se,Ue)),(et=wA[rt=Q.charAt(++Ue)])!=null?rt=Q.charAt(++Ue):et=rt==="e"?" ":"0",(ot=se[rt])&&(rt=ot(be,et)),re.push(rt),Se=Ue+1);return re.push(Q.slice(Se,Ue)),re.join("")}}function j(Q,se){return function(be){var re=Jc(1900,void 0,1),Ue=R(re,Q,be+="",0),Se,Me;if(Ue!=be.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(se&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(Se=hw(Jc(re.y,0,1)),Me=Se.getUTCDay(),Se=Me>4||Me===0?Jh.ceil(Se):Jh(Se),Se=Tg.offset(Se,(re.V-1)*7),re.y=Se.getUTCFullYear(),re.m=Se.getUTCMonth(),re.d=Se.getUTCDate()+(re.w+6)%7):(Se=mw(Jc(re.y,0,1)),Me=Se.getDay(),Se=Me>4||Me===0?Qh.ceil(Se):Qh(Se),Se=Nd.offset(Se,(re.V-1)*7),re.y=Se.getFullYear(),re.m=Se.getMonth(),re.d=Se.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Me="Z"in re?hw(Jc(re.y,0,1)).getUTCDay():mw(Jc(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Me+5)%7:re.w+re.U*7-(Me+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,hw(re)):mw(re)}}function R(Q,se,be,re){for(var Ue=0,Se=se.length,Me=be.length,rt,et;Ue<Se;){if(re>=Me)return-1;if(rt=se.charCodeAt(Ue++),rt===37){if(rt=se.charAt(Ue++),et=O[rt in wA?se.charAt(Ue++):rt],!et||(re=et(Q,be,re))<0)return-1}else if(rt!=be.charCodeAt(re++))return-1}return re}function D(Q,se,be){var re=f.exec(se.slice(be));return re?(Q.p=d.get(re[0].toLowerCase()),be+re[0].length):-1}function L(Q,se,be){var re=g.exec(se.slice(be));return re?(Q.w=y.get(re[0].toLowerCase()),be+re[0].length):-1}function M(Q,se,be){var re=m.exec(se.slice(be));return re?(Q.w=h.get(re[0].toLowerCase()),be+re[0].length):-1}function I(Q,se,be){var re=k.exec(se.slice(be));return re?(Q.m=C.get(re[0].toLowerCase()),be+re[0].length):-1}function W(Q,se,be){var re=x.exec(se.slice(be));return re?(Q.m=w.get(re[0].toLowerCase()),be+re[0].length):-1}function K(Q,se,be){return R(Q,t,se,be)}function Z(Q,se,be){return R(Q,r,se,be)}function V(Q,se,be){return R(Q,n,se,be)}function ee(Q){return a[Q.getDay()]}function F(Q){return o[Q.getDay()]}function z(Q){return c[Q.getMonth()]}function Y(Q){return u[Q.getMonth()]}function N(Q){return i[+(Q.getHours()>=12)]}function G(Q){return 1+~~(Q.getMonth()/3)}function ae(Q){return a[Q.getUTCDay()]}function ue(Q){return o[Q.getUTCDay()]}function pe(Q){return c[Q.getUTCMonth()]}function le(Q){return u[Q.getUTCMonth()]}function he(Q){return i[+(Q.getUTCHours()>=12)]}function ke(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var se=E(Q+="",$);return se.toString=function(){return Q},se},parse:function(Q){var se=j(Q+="",!1);return se.toString=function(){return Q},se},utcFormat:function(Q){var se=E(Q+="",P);return se.toString=function(){return Q},se},utcParse:function(Q){var se=j(Q+="",!0);return se.toString=function(){return Q},se}}}var wA={"-":"",_:" ",0:"0"},Tr=/^\s*\d+/,Dce=/^%/,zce=/[\\^$*+?|[\]().{}]/g;function pt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function Lce(e){return e.replace(zce,"\\$&")}function ef(e){return new RegExp("^(?:"+e.map(Lce).join("|")+")","i")}function tf(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Uce(e,t,r){var n=Tr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Fce(e,t,r){var n=Tr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Bce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Wce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Kce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function xA(e,t,r){var n=Tr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function SA(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Hce(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Zce(e,t,r){var n=Tr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function kA(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vce(e,t,r){var n=Tr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function $A(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Gce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Yce(e,t,r){var n=Tr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Xce(e,t,r){var n=Tr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Qce(e,t,r){var n=Tr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Jce(e,t,r){var n=Dce.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function efe(e,t,r){var n=Tr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function tfe(e,t,r){var n=Tr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function _A(e,t){return pt(e.getDate(),t,2)}function rfe(e,t){return pt(e.getHours(),t,2)}function nfe(e,t){return pt(e.getHours()%12||12,t,2)}function ife(e,t){return pt(1+Nd.count(Xo(e),e),t,3)}function uF(e,t){return pt(e.getMilliseconds(),t,3)}function ofe(e,t){return uF(e,t)+"000"}function afe(e,t){return pt(e.getMonth()+1,t,2)}function sfe(e,t){return pt(e.getMinutes(),t,2)}function lfe(e,t){return pt(e.getSeconds(),t,2)}function ufe(e){var t=e.getDay();return t===0?7:t}function cfe(e,t){return pt(jg.count(Xo(e)-1,e),t,2)}function cF(e){var t=e.getDay();return t>=4||t===0?Mu(e):Mu.ceil(e)}function ffe(e,t){return e=cF(e),pt(Mu.count(Xo(e),e)+(Xo(e).getDay()===4),t,2)}function dfe(e){return e.getDay()}function pfe(e,t){return pt(Qh.count(Xo(e)-1,e),t,2)}function mfe(e,t){return pt(e.getFullYear()%100,t,2)}function hfe(e,t){return e=cF(e),pt(e.getFullYear()%100,t,2)}function vfe(e,t){return pt(e.getFullYear()%1e4,t,4)}function gfe(e,t){var r=e.getDay();return e=r>=4||r===0?Mu(e):Mu.ceil(e),pt(e.getFullYear()%1e4,t,4)}function yfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pt(t/60|0,"0",2)+pt(t%60,"0",2)}function PA(e,t){return pt(e.getUTCDate(),t,2)}function bfe(e,t){return pt(e.getUTCHours(),t,2)}function wfe(e,t){return pt(e.getUTCHours()%12||12,t,2)}function xfe(e,t){return pt(1+Tg.count(Qo(e),e),t,3)}function fF(e,t){return pt(e.getUTCMilliseconds(),t,3)}function Sfe(e,t){return fF(e,t)+"000"}function kfe(e,t){return pt(e.getUTCMonth()+1,t,2)}function $fe(e,t){return pt(e.getUTCMinutes(),t,2)}function _fe(e,t){return pt(e.getUTCSeconds(),t,2)}function Pfe(e){var t=e.getUTCDay();return t===0?7:t}function Ofe(e,t){return pt(Ag.count(Qo(e)-1,e),t,2)}function dF(e){var t=e.getUTCDay();return t>=4||t===0?Du(e):Du.ceil(e)}function Cfe(e,t){return e=dF(e),pt(Du.count(Qo(e),e)+(Qo(e).getUTCDay()===4),t,2)}function Efe(e){return e.getUTCDay()}function Ife(e,t){return pt(Jh.count(Qo(e)-1,e),t,2)}function Tfe(e,t){return pt(e.getUTCFullYear()%100,t,2)}function jfe(e,t){return e=dF(e),pt(e.getUTCFullYear()%100,t,2)}function Afe(e,t){return pt(e.getUTCFullYear()%1e4,t,4)}function Rfe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Du(e):Du.ceil(e),pt(e.getUTCFullYear()%1e4,t,4)}function Nfe(){return"+0000"}function OA(){return"%"}function CA(e){return+e}function EA(e){return Math.floor(+e/1e3)}var Hl,pF,mF;Mfe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Mfe(e){return Hl=Mce(e),pF=Hl.format,Hl.parse,mF=Hl.utcFormat,Hl.utcParse,Hl}function Dfe(e){return new Date(e)}function zfe(e){return e instanceof Date?+e:+new Date(+e)}function Q$(e,t,r,n,i,o,a,u,c,f){var d=z$(),m=d.invert,h=d.domain,g=f(".%L"),y=f(":%S"),x=f("%I:%M"),w=f("%I %p"),k=f("%a %d"),C=f("%b %d"),$=f("%B"),P=f("%Y");function O(E){return(c(E)<E?g:u(E)<E?y:a(E)<E?x:o(E)<E?w:n(E)<E?i(E)<E?k:C:r(E)<E?$:P)(E)}return d.invert=function(E){return new Date(m(E))},d.domain=function(E){return arguments.length?h(Array.from(E,zfe)):h().map(Dfe)},d.ticks=function(E){var j=h();return e(j[0],j[j.length-1],E??10)},d.tickFormat=function(E,j){return j==null?O:f(j)},d.nice=function(E){var j=h();return(!E||typeof E.range!="function")&&(E=t(j[0],j[j.length-1],E??10)),E?h(eF(j,E)):d},d.copy=function(){return Rd(d,Q$(e,t,r,n,i,o,a,u,c,f))},d}function Lfe(){return pi.apply(Q$(Rce,Nce,Xo,Y$,jg,Nd,V$,Z$,Ms,pF).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ufe(){return pi.apply(Q$(jce,Ace,Qo,X$,Ag,Tg,G$,q$,Ms,mF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rg(){var e=0,t=1,r,n,i,o,a=en,u=!1,c;function f(m){return m==null||isNaN(m=+m)?c:a(i===0?.5:(m=(o(m)-r)*i,u?Math.max(0,Math.min(1,m)):m))}f.domain=function(m){return arguments.length?([e,t]=m,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),f):[e,t]},f.clamp=function(m){return arguments.length?(u=!!m,f):u},f.interpolator=function(m){return arguments.length?(a=m,f):a};function d(m){return function(h){var g,y;return arguments.length?([g,y]=h,a=m(g,y),f):[a(0),a(1)]}}return f.range=d(qu),f.rangeRound=d(D$),f.unknown=function(m){return arguments.length?(c=m,f):c},function(m){return o=m,r=m(e),n=m(t),i=r===n?0:1/(n-r),f}}function ns(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hF(){var e=rs(Rg()(en));return e.copy=function(){return ns(e,hF())},ia.apply(e,arguments)}function vF(){var e=F$(Rg()).domain([1,10]);return e.copy=function(){return ns(e,vF()).base(e.base())},ia.apply(e,arguments)}function gF(){var e=B$(Rg());return e.copy=function(){return ns(e,gF()).constant(e.constant())},ia.apply(e,arguments)}function J$(){var e=W$(Rg());return e.copy=function(){return ns(e,J$()).exponent(e.exponent())},ia.apply(e,arguments)}function Ffe(){return J$.apply(null,arguments).exponent(.5)}function yF(){var e=[],t=en;function r(n){if(n!=null&&!isNaN(n=+n))return t((jd(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ha),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>Pue(e,o/n))},r.copy=function(){return yF(t).domain(e)},ia.apply(r,arguments)}function Ng(){var e=0,t=.5,r=1,n=1,i,o,a,u,c,f=en,d,m=!1,h;function g(x){return isNaN(x=+x)?h:(x=.5+((x=+d(x))-o)*(n*x<n*o?u:c),f(m?Math.max(0,Math.min(1,x)):x))}g.domain=function(x){return arguments.length?([e,t,r]=x,i=d(e=+e),o=d(t=+t),a=d(r=+r),u=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,g):[e,t,r]},g.clamp=function(x){return arguments.length?(m=!!x,g):m},g.interpolator=function(x){return arguments.length?(f=x,g):f};function y(x){return function(w){var k,C,$;return arguments.length?([k,C,$]=w,f=Jue(x,[k,C,$]),g):[f(0),f(.5),f(1)]}}return g.range=y(qu),g.rangeRound=y(D$),g.unknown=function(x){return arguments.length?(h=x,g):h},function(x){return d=x,i=x(e),o=x(t),a=x(r),u=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,g}}function bF(){var e=rs(Ng()(en));return e.copy=function(){return ns(e,bF())},ia.apply(e,arguments)}function wF(){var e=F$(Ng()).domain([.1,1,10]);return e.copy=function(){return ns(e,wF()).base(e.base())},ia.apply(e,arguments)}function xF(){var e=B$(Ng());return e.copy=function(){return ns(e,xF()).constant(e.constant())},ia.apply(e,arguments)}function e_(){var e=W$(Ng());return e.copy=function(){return ns(e,e_()).exponent(e.exponent())},ia.apply(e,arguments)}function Bfe(){return e_.apply(null,arguments).exponent(.5)}const df=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:R$,scaleDiverging:bF,scaleDivergingLog:wF,scaleDivergingPow:e_,scaleDivergingSqrt:Bfe,scaleDivergingSymlog:xF,scaleIdentity:JU,scaleImplicit:sS,scaleLinear:QU,scaleLog:tF,scaleOrdinal:A$,scalePoint:Eue,scalePow:K$,scaleQuantile:iF,scaleQuantize:oF,scaleRadial:nF,scaleSequential:hF,scaleSequentialLog:vF,scaleSequentialPow:J$,scaleSequentialQuantile:yF,scaleSequentialSqrt:Ffe,scaleSequentialSymlog:gF,scaleSqrt:Sce,scaleSymlog:rF,scaleThreshold:aF,scaleTime:Lfe,scaleUtc:Ufe,tickFormat:XU},Symbol.toStringTag,{value:"Module"}));var is=e=>e.chartData,Wfe=ie([is],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),t_=(e,t,r,n)=>n?Wfe(e):is(e);function Xa(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Er(t)&&Er(r))return!0}return!1}function IA(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function SF(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,o;if(Er(r))i=r;else if(typeof r=="function")return;if(Er(n))o=n;else if(typeof n=="function")return;var a=[i,o];if(Xa(a))return a}}function Kfe(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Xa(n))return IA(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,a,u;if(i==="auto")t!=null&&(a=Math.min(...t));else if(Fe(i))a=i;else if(typeof i=="function")try{t!=null&&(a=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&oj.test(i)){var c=oj.exec(i);if(c==null||t==null)a=void 0;else{var f=+c[1];a=t[0]-f}}else a=t==null?void 0:t[0];if(o==="auto")t!=null&&(u=Math.max(...t));else if(Fe(o))u=o;else if(typeof o=="function")try{t!=null&&(u=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&aj.test(o)){var d=aj.exec(o);if(d==null||t==null)u=void 0;else{var m=+d[1];u=t[1]+m}}else u=t==null?void 0:t[1];var h=[a,u];if(Xa(h))return t==null?h:IA(h,t,r)}}}var Vu=1e9,Hfe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n_,Bt=!0,ui="[DecimalError] ",Xs=ui+"Invalid argument: ",r_=ui+"Exponent out of range: ",Gu=Math.floor,Cs=Math.pow,Zfe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Tn,Pr=1e7,Dt=7,kF=9007199254740991,ev=Gu(kF/Dt),Ee={};Ee.absoluteValue=Ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ee.comparedTo=Ee.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};Ee.decimalPlaces=Ee.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Dt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ee.dividedBy=Ee.div=function(e){return Uo(this,new this.constructor(e))};Ee.dividedToIntegerBy=Ee.idiv=function(e){var t=this,r=t.constructor;return Et(Uo(t,new r(e),0,1),r.precision)};Ee.equals=Ee.eq=function(e){return!this.cmp(e)};Ee.exponent=function(){return lr(this)};Ee.greaterThan=Ee.gt=function(e){return this.cmp(e)>0};Ee.greaterThanOrEqualTo=Ee.gte=function(e){return this.cmp(e)>=0};Ee.isInteger=Ee.isint=function(){return this.e>this.d.length-2};Ee.isNegative=Ee.isneg=function(){return this.s<0};Ee.isPositive=Ee.ispos=function(){return this.s>0};Ee.isZero=function(){return this.s===0};Ee.lessThan=Ee.lt=function(e){return this.cmp(e)<0};Ee.lessThanOrEqualTo=Ee.lte=function(e){return this.cmp(e)<1};Ee.logarithm=Ee.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Tn))throw Error(ui+"NaN");if(r.s<1)throw Error(ui+(r.s?"NaN":"-Infinity"));return r.eq(Tn)?new n(0):(Bt=!1,t=Uo(Hf(r,o),Hf(e,o),o),Bt=!0,Et(t,i))};Ee.minus=Ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?PF(t,e):$F(t,(e.s=-e.s,e))};Ee.modulo=Ee.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ui+"NaN");return r.s?(Bt=!1,t=Uo(r,e,0,1).times(e),Bt=!0,r.minus(t)):Et(new n(r),i)};Ee.naturalExponential=Ee.exp=function(){return _F(this)};Ee.naturalLogarithm=Ee.ln=function(){return Hf(this)};Ee.negated=Ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ee.plus=Ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$F(t,e):PF(t,(e.s=-e.s,e))};Ee.precision=Ee.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xs+e);if(t=lr(i)+1,n=i.d.length-1,r=n*Dt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ee.squareRoot=Ee.sqrt=function(){var e,t,r,n,i,o,a,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(ui+"NaN")}for(e=lr(u),Bt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=so(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Gu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=a=r+3;;)if(o=n,n=o.plus(Uo(u,o,a+2)).times(.5),so(o.d).slice(0,a)===(t=so(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Et(o,r+1,0),o.times(o).eq(u)){n=o;break}}else if(t!="9999")break;a+=4}return Bt=!0,Et(n,r)};Ee.times=Ee.mul=function(e){var t,r,n,i,o,a,u,c,f,d=this,m=d.constructor,h=d.d,g=(e=new m(e)).d;if(!d.s||!e.s)return new m(0);for(e.s*=d.s,r=d.e+e.e,c=h.length,f=g.length,c<f&&(o=h,h=g,g=o,a=c,c=f,f=a),o=[],a=c+f,n=a;n--;)o.push(0);for(n=f;--n>=0;){for(t=0,i=c+n;i>n;)u=o[i]+g[n]*h[i-n-1]+t,o[i--]=u%Pr|0,t=u/Pr|0;o[i]=(o[i]+t)%Pr|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Bt?Et(e,m.precision):e};Ee.toDecimalPlaces=Ee.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(mo(e,0,Vu),t===void 0?t=n.rounding:mo(t,0,8),Et(r,e+lr(r)+1,t))};Ee.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ul(n,!0):(mo(e,0,Vu),t===void 0?t=i.rounding:mo(t,0,8),n=Et(new i(n),e+1,t),r=ul(n,!0,e+1)),r};Ee.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?ul(i):(mo(e,0,Vu),t===void 0?t=o.rounding:mo(t,0,8),n=Et(new o(i),e+lr(i)+1,t),r=ul(n.abs(),!1,e+lr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Ee.toInteger=Ee.toint=function(){var e=this,t=e.constructor;return Et(new t(e),lr(e)+1,t.rounding)};Ee.toNumber=function(){return+this};Ee.toPower=Ee.pow=function(e){var t,r,n,i,o,a,u=this,c=u.constructor,f=12,d=+(e=new c(e));if(!e.s)return new c(Tn);if(u=new c(u),!u.s){if(e.s<1)throw Error(ui+"Infinity");return u}if(u.eq(Tn))return u;if(n=c.precision,e.eq(Tn))return Et(u,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=u.s,a){if((r=d<0?-d:d)<=kF){for(i=new c(Tn),t=Math.ceil(n/Dt+4),Bt=!1;r%2&&(i=i.times(u),jA(i.d,t)),r=Gu(r/2),r!==0;)u=u.times(u),jA(u.d,t);return Bt=!0,e.s<0?new c(Tn).div(i):Et(i,n)}}else if(o<0)throw Error(ui+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Bt=!1,i=e.times(Hf(u,n+f)),Bt=!0,i=_F(i),i.s=o,i};Ee.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=lr(i),n=ul(i,r<=o.toExpNeg||r>=o.toExpPos)):(mo(e,1,Vu),t===void 0?t=o.rounding:mo(t,0,8),i=Et(new o(i),e,t),r=lr(i),n=ul(i,e<=r||r<=o.toExpNeg,e)),n};Ee.toSignificantDigits=Ee.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(mo(e,1,Vu),t===void 0?t=n.rounding:mo(t,0,8)),Et(new n(r),e,t)};Ee.toString=Ee.valueOf=Ee.val=Ee.toJSON=Ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=lr(e),r=e.constructor;return ul(e,t<=r.toExpNeg||t>=r.toExpPos)};function $F(e,t){var r,n,i,o,a,u,c,f,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Bt?Et(t,m):t;if(c=e.d,f=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(n=c,o=-o,u=f.length):(n=f,i=a,u=c.length),a=Math.ceil(m/Dt),u=a>u?a+1:u+1,o>u&&(o=u,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(u=c.length,o=f.length,u-o<0&&(o=u,n=f,f=c,c=n),r=0;o;)r=(c[--o]=c[o]+f[o]+r)/Pr|0,c[o]%=Pr;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,Bt?Et(t,m):t}function mo(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Xs+e)}function so(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=Dt-n.length,r&&(o+=Ta(r)),o+=n;a=e[t],n=a+"",r=Dt-n.length,r&&(o+=Ta(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Uo=(function(){function e(n,i){var o,a=0,u=n.length;for(n=n.slice();u--;)o=n[u]*i+a,n[u]=o%Pr|0,a=o/Pr|0;return a&&n.unshift(a),n}function t(n,i,o,a){var u,c;if(o!=a)c=o>a?1:-1;else for(u=c=0;u<o;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*Pr+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var u,c,f,d,m,h,g,y,x,w,k,C,$,P,O,E,j,R,D=n.constructor,L=n.s==i.s?1:-1,M=n.d,I=i.d;if(!n.s)return new D(n);if(!i.s)throw Error(ui+"Division by zero");for(c=n.e-i.e,j=I.length,O=M.length,g=new D(L),y=g.d=[],f=0;I[f]==(M[f]||0);)++f;if(I[f]>(M[f]||0)&&--c,o==null?C=o=D.precision:a?C=o+(lr(n)-lr(i))+1:C=o,C<0)return new D(0);if(C=C/Dt+2|0,f=0,j==1)for(d=0,I=I[0],C++;(f<O||d)&&C--;f++)$=d*Pr+(M[f]||0),y[f]=$/I|0,d=$%I|0;else{for(d=Pr/(I[0]+1)|0,d>1&&(I=e(I,d),M=e(M,d),j=I.length,O=M.length),P=j,x=M.slice(0,j),w=x.length;w<j;)x[w++]=0;R=I.slice(),R.unshift(0),E=I[0],I[1]>=Pr/2&&++E;do d=0,u=t(I,x,j,w),u<0?(k=x[0],j!=w&&(k=k*Pr+(x[1]||0)),d=k/E|0,d>1?(d>=Pr&&(d=Pr-1),m=e(I,d),h=m.length,w=x.length,u=t(m,x,h,w),u==1&&(d--,r(m,j<h?R:I,h))):(d==0&&(u=d=1),m=I.slice()),h=m.length,h<w&&m.unshift(0),r(x,m,w),u==-1&&(w=x.length,u=t(I,x,j,w),u<1&&(d++,r(x,j<w?R:I,w))),w=x.length):u===0&&(d++,x=[0]),y[f++]=d,u&&x[0]?x[w++]=M[P]||0:(x=[M[P]],w=1);while((P++<O||x[0]!==void 0)&&C--)}return y[0]||y.shift(),g.e=c,Et(g,a?o+lr(g)+1:o)}})();function _F(e,t){var r,n,i,o,a,u,c=0,f=0,d=e.constructor,m=d.precision;if(lr(e)>16)throw Error(r_+lr(e));if(!e.s)return new d(Tn);for(Bt=!1,u=m,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(n=Math.log(Cs(2,f))/Math.LN10*2+5|0,u+=n,r=i=o=new d(Tn),d.precision=u;;){if(i=Et(i.times(e),u),r=r.times(++c),a=o.plus(Uo(i,r,u)),so(a.d).slice(0,u)===so(o.d).slice(0,u)){for(;f--;)o=Et(o.times(o),u);return d.precision=m,t==null?(Bt=!0,Et(o,m)):o}o=a}}function lr(e){for(var t=e.e*Dt,r=e.d[0];r>=10;r/=10)t++;return t}function vw(e,t,r){if(t>e.LN10.sd())throw Bt=!0,r&&(e.precision=r),Error(ui+"LN10 precision limit exceeded");return Et(new e(e.LN10),t)}function Ta(e){for(var t="";e--;)t+="0";return t}function Hf(e,t){var r,n,i,o,a,u,c,f,d,m=1,h=10,g=e,y=g.d,x=g.constructor,w=x.precision;if(g.s<1)throw Error(ui+(g.s?"NaN":"-Infinity"));if(g.eq(Tn))return new x(0);if(t==null?(Bt=!1,f=w):f=t,g.eq(10))return t==null&&(Bt=!0),vw(x,f);if(f+=h,x.precision=f,r=so(y),n=r.charAt(0),o=lr(g),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(e),r=so(g.d),n=r.charAt(0),m++;o=lr(g),n>1?(g=new x("0."+r),o++):g=new x(n+"."+r.slice(1))}else return c=vw(x,f+2,w).times(o+""),g=Hf(new x(n+"."+r.slice(1)),f-h).plus(c),x.precision=w,t==null?(Bt=!0,Et(g,w)):g;for(u=a=g=Uo(g.minus(Tn),g.plus(Tn),f),d=Et(g.times(g),f),i=3;;){if(a=Et(a.times(d),f),c=u.plus(Uo(a,new x(i),f)),so(c.d).slice(0,f)===so(u.d).slice(0,f))return u=u.times(2),o!==0&&(u=u.plus(vw(x,f+2,w).times(o+""))),u=Uo(u,new x(m),f),x.precision=w,t==null?(Bt=!0,Et(u,w)):u;u=c,i+=2}}function TA(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Gu(r/Dt),e.d=[],n=(r+1)%Dt,r<0&&(n+=Dt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Dt;n<i;)e.d.push(+t.slice(n,n+=Dt));t=t.slice(n),n=Dt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Bt&&(e.e>ev||e.e<-ev))throw Error(r_+r)}else e.s=0,e.e=0,e.d=[0];return e}function Et(e,t,r){var n,i,o,a,u,c,f,d,m=e.d;for(a=1,o=m[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=Dt,i=t,f=m[d=0];else{if(d=Math.ceil((n+1)/Dt),o=m.length,d>=o)return e;for(f=o=m[d],a=1;o>=10;o/=10)a++;n%=Dt,i=n-Dt+a}if(r!==void 0&&(o=Cs(10,a-i-1),u=f/o%10|0,c=t<0||m[d+1]!==void 0||f%o,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?f/Cs(10,a-i):0:m[d-1])%10&1||r==(e.s<0?8:7))),t<1||!m[0])return c?(o=lr(e),m.length=1,t=t-o-1,m[0]=Cs(10,(Dt-t%Dt)%Dt),e.e=Gu(-t/Dt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(n==0?(m.length=d,o=1,d--):(m.length=d+1,o=Cs(10,Dt-n),m[d]=i>0?(f/Cs(10,a-i)%Cs(10,i)|0)*o:0),c)for(;;)if(d==0){(m[0]+=o)==Pr&&(m[0]=1,++e.e);break}else{if(m[d]+=o,m[d]!=Pr)break;m[d--]=0,o=1}for(n=m.length;m[--n]===0;)m.pop();if(Bt&&(e.e>ev||e.e<-ev))throw Error(r_+lr(e));return e}function PF(e,t){var r,n,i,o,a,u,c,f,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Bt?Et(t,g):t;if(c=e.d,m=t.d,n=t.e,f=e.e,c=c.slice(),a=f-n,a){for(d=a<0,d?(r=c,a=-a,u=m.length):(r=m,n=f,u=c.length),i=Math.max(Math.ceil(g/Dt),u)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=m.length,d=i<u,d&&(u=i),i=0;i<u;i++)if(c[i]!=m[i]){d=c[i]<m[i];break}a=0}for(d&&(r=c,c=m,m=r,t.s=-t.s),u=c.length,i=m.length-u;i>0;--i)c[u++]=0;for(i=m.length;i>a;){if(c[--i]<m[i]){for(o=i;o&&c[--o]===0;)c[o]=Pr-1;--c[o],c[i]+=Pr}c[i]-=m[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Bt?Et(t,g):t):new h(0)}function ul(e,t,r){var n,i=lr(e),o=so(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ta(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ta(-i-1)+o,r&&(n=r-a)>0&&(o+=Ta(n))):i>=a?(o+=Ta(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+Ta(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=Ta(n))),e.s<0?"-"+o:o}function jA(e,t){if(e.length>t)return e.length=t,!0}function OF(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Xs+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return TA(a,o.toString())}else if(typeof o!="string")throw Error(Xs+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Zfe.test(o))TA(a,o);else throw Error(Xs+o)}if(i.prototype=Ee,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=OF,i.config=i.set=qfe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function qfe(e){if(!e||typeof e!="object")throw Error(ui+"Object expected");var t,r,n,i=["precision",1,Vu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Gu(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Xs+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Xs+r+": "+n);return this}var n_=OF(Hfe);Tn=new n_(1);const Pt=n_;var Vfe=e=>e,CF={},EF=e=>e===CF,AA=e=>function t(){return arguments.length===0||arguments.length===1&&EF(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},IF=(e,t)=>e===1?t:AA(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=n.filter(a=>a!==CF).length;return o>=e?t(...n):IF(e-o,AA(function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var f=n.map(d=>EF(d)?u.shift():d);return t(...f,...u)}))}),Gfe=e=>IF(e.length,e),fS=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},Yfe=Gfe((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),Xfe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Vfe;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce((u,c)=>c(u),o(...arguments))}},dS=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join("");function TF(e){var t;return e===0?t=1:t=Math.floor(new Pt(e).abs().log(10).toNumber())+1,t}function jF(e,t,r){for(var n=new Pt(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var AF=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},RF=(e,t,r)=>{if(e.lte(0))return new Pt(0);var n=TF(e.toNumber()),i=new Pt(10).pow(n),o=e.div(i),a=n!==1?.05:.1,u=new Pt(Math.ceil(o.div(a).toNumber())).add(r).mul(a),c=u.mul(i);return t?new Pt(c.toNumber()):new Pt(Math.ceil(c.toNumber()))},Qfe=(e,t,r)=>{var n=new Pt(1),i=new Pt(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new Pt(10).pow(TF(e)-1),i=new Pt(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new Pt(Math.floor(e)))}else e===0?i=new Pt(Math.floor((t-1)/2)):r||(i=new Pt(Math.floor(e)));var a=Math.floor((t-1)/2),u=Xfe(Yfe(c=>i.add(new Pt(c-a).mul(n)).toNumber()),fS);return u(0,t)},NF=function(t,r,n,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Pt(0),tickMin:new Pt(0),tickMax:new Pt(0)};var a=RF(new Pt(r).sub(t).div(n-1),i,o),u;t<=0&&r>=0?u=new Pt(0):(u=new Pt(t).add(r).div(2),u=u.sub(new Pt(u).mod(a)));var c=Math.ceil(u.sub(t).div(a).toNumber()),f=Math.ceil(new Pt(r).sub(u).div(a).toNumber()),d=c+f+1;return d>n?NF(t,r,n,i,o+1):(d<n&&(f=r>0?f+(n-d):f,c=r>0?c:c+(n-d)),{step:a,tickMin:u.sub(new Pt(c).mul(a)),tickMax:u.add(new Pt(f).mul(a))})},Jfe=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),[u,c]=AF([r,n]);if(u===-1/0||c===1/0){var f=c===1/0?[u,...fS(0,i-1).map(()=>1/0)]:[...fS(0,i-1).map(()=>-1/0),c];return r>n?dS(f):f}if(u===c)return Qfe(u,i,o);var{step:d,tickMin:m,tickMax:h}=NF(u,c,a,o,0),g=jF(m,h.add(new Pt(.1).mul(d)),d);return r>n?dS(g):g},ede=function(t,r){var[n,i]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,u]=AF([n,i]);if(a===-1/0||u===1/0)return[n,i];if(a===u)return[a];var c=Math.max(r,2),f=RF(new Pt(u).sub(a).div(c-1),o,0),d=[...jF(new Pt(a),new Pt(u),f),u];return o===!1&&(d=d.map(m=>Math.round(m))),n>i?dS(d):d},tde=e=>e.rootProps.barCategoryGap,Mg=e=>e.rootProps.stackOffset,MF=e=>e.rootProps.reverseStackOrder,i_=e=>e.options.chartName,o_=e=>e.rootProps.syncId,DF=e=>e.rootProps.syncMethod,a_=e=>e.options.eventEmitter,gn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Ao={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Cn={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Dg=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},rde={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Ao.angleAxisId,includeHidden:!1,name:void 0,reversed:Ao.reversed,scale:Ao.scale,tick:Ao.tick,tickCount:void 0,ticks:void 0,type:Ao.type,unit:void 0},nde={allowDataOverflow:Cn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Cn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Cn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Cn.scale,tick:Cn.tick,tickCount:Cn.tickCount,ticks:void 0,type:Cn.type,unit:void 0},ide={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Ao.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ao.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ao.scale,tick:Ao.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},ode={allowDataOverflow:Cn.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Cn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Cn.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Cn.scale,tick:Cn.tick,tickCount:Cn.tickCount,ticks:void 0,type:"category",unit:void 0},s_=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?ide:rde,l_=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?ode:nde,zg=e=>e.polarOptions,u_=ie([ra,na,zr],eue),zF=ie([zg,u_],(e,t)=>{if(e!=null)return Ga(e.innerRadius,t,0)}),LF=ie([zg,u_],(e,t)=>{if(e!=null)return Ga(e.outerRadius,t,t*.8)}),ade=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},UF=ie([zg],ade);ie([s_,UF],Dg);var FF=ie([u_,zF,LF],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});ie([l_,FF],Dg);var BF=ie([zt,zg,zF,LF,ra,na],(e,t,r,n,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:u,startAngle:c,endAngle:f}=t;return{cx:Ga(a,i,i/2),cy:Ga(u,o,o/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:f,clockWise:!1}}}),hr=(e,t)=>t,Lg=(e,t,r)=>r;function WF(e){return e==null?void 0:e.id}function KF(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=r,a=new Map;return e.forEach(u=>{var c,f=(c=u.data)!==null&&c!==void 0?c:n;if(!(f==null||f.length===0)){var d=WF(u);f.forEach((m,h)=>{var g=o==null||i?h:String(Hr(m,o,null)),y=Hr(m,u.dataKey,0),x;a.has(g)?x=a.get(g):x={},Object.assign(x,{[d]:y}),a.set(g,x)})}}),Array.from(a.values())}function c_(e){return e.stackId!=null&&e.dataKey!=null}var Ug=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Fg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function sde(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var vr=e=>{var t=zt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Yu=e=>e.tooltip.settings.axisId;function RA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(r),!0).forEach(function(n){lde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lde(e,t,r){return(t=ude(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ude(e){var t=cde(e,"string");return typeof t=="symbol"?t:t+""}function cde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pS=[0,"auto"],kr={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},HF=(e,t)=>e.cartesianAxis.xAxis[t],oa=(e,t)=>{var r=HF(e,t);return r??kr},$r={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:pS,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ed},ZF=(e,t)=>e.cartesianAxis.yAxis[t],aa=(e,t)=>{var r=ZF(e,t);return r??$r},fde={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},f_=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??fde},on=(e,t,r)=>{switch(t){case"xAxis":return oa(e,r);case"yAxis":return aa(e,r);case"zAxis":return f_(e,r);case"angleAxis":return s_(e,r);case"radiusAxis":return l_(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},dde=(e,t,r)=>{switch(t){case"xAxis":return oa(e,r);case"yAxis":return aa(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Md=(e,t,r)=>{switch(t){case"xAxis":return oa(e,r);case"yAxis":return aa(e,r);case"angleAxis":return s_(e,r);case"radiusAxis":return l_(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},qF=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function VF(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var GF=e=>e.graphicalItems.cartesianItems,pde=ie([hr,Lg],VF),YF=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Dd=ie([GF,on,pde],YF,{memoizeOptions:{resultEqualityCheck:Fg}}),XF=ie([Dd],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(c_)),QF=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),mde=ie([Dd],QF),JF=e=>e.map(t=>t.data).filter(Boolean).flat(1),hde=ie([Dd],JF,{memoizeOptions:{resultEqualityCheck:Fg}}),e5=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},d_=ie([hde,t_],e5),t5=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Hr(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Hr(i,n)}))):e.map(n=>({value:n})),Bg=ie([d_,on,Dd],t5);function r5(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Gm(e){if(po(e)||e instanceof Date){var t=Number(e);if(Er(t))return t}}function NA(e){if(Array.isArray(e)){var t=[Gm(e[0]),Gm(e[1])];return Xa(t)?t:void 0}var r=Gm(e);if(r!=null)return[r,r]}function Jo(e){return e.map(Gm).filter(_ie)}function vde(e,t,r){return!r||typeof t!="number"||qo(t)?[]:r.length?Jo(r.flatMap(n=>{var i=Hr(e,n.dataKey),o,a;if(Array.isArray(i)?[o,a]=i:o=a=i,!(!Er(o)||!Er(a)))return[t-o,t+a]})):[]}var gr=e=>{var t=vr(e),r=Yu(e);return Md(e,t,r)},zd=ie([gr],e=>e==null?void 0:e.dataKey),gde=ie([XF,t_,gr],KF),n5=(e,t,r,n)=>{var i={},o=t.reduce((a,u)=>(u.stackId==null||(a[u.stackId]==null&&(a[u.stackId]=[]),a[u.stackId].push(u)),a),i);return Object.fromEntries(Object.entries(o).map(a=>{var[u,c]=a,f=n?[...c].reverse():c,d=f.map(WF);return[u,{stackedData:Kae(e,d,r),graphicalItems:f}]}))},yde=ie([gde,XF,Mg,MF],n5),i5=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(n==null&&r!=="zAxis"){var a=qae(e,i,o);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},bde=ie([on],e=>e.allowDataOverflow),p_=e=>{var t;if(e==null||!("domain"in e))return pS;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=Jo(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:pS},o5=ie([on],p_),a5=ie([o5,bde],SF),wde=ie([yde,is,hr,a5],i5,{memoizeOptions:{resultEqualityCheck:Ug}}),m_=e=>e.errorBars,xde=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>r5(r,n)),rv=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var o=i.flat(),a=Math.min(...o),u=Math.max(...o);return[a,u]}},s5=(e,t,r,n,i)=>{var o,a;if(r.length>0&&e.forEach(u=>{r.forEach(c=>{var f,d,m=(f=n[c.id])===null||f===void 0?void 0:f.filter(k=>r5(i,k)),h=Hr(u,(d=t.dataKey)!==null&&d!==void 0?d:c.dataKey),g=vde(u,h,m);if(g.length>=2){var y=Math.min(...g),x=Math.max(...g);(o==null||y<o)&&(o=y),(a==null||x>a)&&(a=x)}var w=NA(h);w!=null&&(o=o==null?w[0]:Math.min(o,w[0]),a=a==null?w[1]:Math.max(a,w[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(u=>{var c=NA(Hr(u,t.dataKey));c!=null&&(o=o==null?c[0]:Math.min(o,c[0]),a=a==null?c[1]:Math.max(a,c[1]))}),Er(o)&&Er(a))return[o,a]},Sde=ie([d_,on,mde,m_,hr],s5,{memoizeOptions:{resultEqualityCheck:Ug}});function kde(e){var{value:t}=e;if(po(t)||t instanceof Date)return t}var $de=(e,t,r)=>{var n=e.map(kde).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&k6(n))?FU(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},l5=e=>e.referenceElements.dots,Xu=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),_de=ie([l5,hr,Lg],Xu),u5=e=>e.referenceElements.areas,Pde=ie([u5,hr,Lg],Xu),c5=e=>e.referenceElements.lines,Ode=ie([c5,hr,Lg],Xu),f5=(e,t)=>{var r=Jo(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Cde=ie(_de,hr,f5),d5=(e,t)=>{var r=Jo(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Ede=ie([Pde,hr],d5);function Ide(e){var t;if(e.x!=null)return Jo([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Jo(r)}function Tde(e){var t;if(e.y!=null)return Jo([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Jo(r)}var p5=(e,t)=>{var r=e.flatMap(n=>t==="xAxis"?Ide(n):Tde(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},jde=ie([Ode,hr],p5),Ade=ie(Cde,jde,Ede,(e,t,r)=>rv(e,r,t)),m5=(e,t,r,n,i,o,a,u)=>{if(r!=null)return r;var c=a==="vertical"&&u==="xAxis"||a==="horizontal"&&u==="yAxis",f=c?rv(n,o,i):rv(o,i);return Kfe(t,f,e.allowDataOverflow)},Rde=ie([on,o5,a5,wde,Sde,Ade,zt,hr],m5,{memoizeOptions:{resultEqualityCheck:Ug}}),Nde=[0,1],h5=(e,t,r,n,i,o,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:u,type:c}=e,f=ts(t,o);if(f&&u==null){var d;return FU(0,(d=r==null?void 0:r.length)!==null&&d!==void 0?d:0)}return c==="category"?$de(n,e,f):i==="expand"?Nde:a}},h_=ie([on,zt,d_,Bg,Mg,hr,Rde],h5),v5=(e,t,r,n,i)=>{if(e!=null){var{scale:o,type:a}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":a==="category"?"band":"linear";if(typeof o=="string"){var u="scale".concat($d(o));return u in df?u:"point"}}},Ld=ie([on,zt,qF,i_,hr],v5);function Mde(e){if(e!=null){if(e in df)return df[e]();var t="scale".concat($d(e));if(t in df)return df[t]()}}function v_(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=Mde(t);if(i!=null){var o=i.domain(r).range(n);return Uae(o),o}}}var g5=(e,t,r)=>{var n=p_(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Xa(e))return Jfe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Xa(e))return ede(e,t.tickCount,t.allowDecimals)}},g_=ie([h_,Md,Ld],g5),y5=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Xa(t)&&Array.isArray(r)&&r.length>0){var i=t[0],o=r[0],a=t[1],u=r[r.length-1];return[Math.min(i,o),Math.max(a,u)]}return t},Dde=ie([on,h_,g_,hr],y5),zde=ie(Bg,on,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Jo(e.map(u=>u.value))).sort((u,c)=>u-c);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var o=0;o<n.length-1;o++){var a=n[o+1]-n[o];r=Math.min(r,a)}return r/i}}),b5=ie(zde,zt,tde,zr,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!Er(e))return 0;var o=t==="vertical"?n.height:n.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var a=Ga(r,e*o),u=e*o/2;return u-a-(u-a)/o*a}return 0}),Lde=(e,t)=>{var r=oa(e,t);return r==null||typeof r.padding!="string"?0:b5(e,"xAxis",t,r.padding)},Ude=(e,t)=>{var r=aa(e,t);return r==null||typeof r.padding!="string"?0:b5(e,"yAxis",t,r.padding)},Fde=ie(oa,Lde,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),Bde=ie(aa,Ude,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),Wde=ie([zr,Fde,kg,Sg,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:o}=n;return i?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),Kde=ie([zr,zt,Bde,kg,Sg,(e,t,r)=>r],(e,t,r,n,i,o)=>{var{padding:a}=i;return o?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Ud=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Wde(e,r,n);case"yAxis":return Kde(e,r,n);case"zAxis":return(i=f_(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return UF(e);case"radiusAxis":return FF(e,r);default:return}},w5=ie([on,Ud],Dg),Qu=ie([on,Ld,Dde,w5],v_);ie([Dd,m_,hr],xde);function x5(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Wg=(e,t)=>t,Kg=(e,t,r)=>r,Hde=ie(wg,Wg,Kg,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(x5)),Zde=ie(xg,Wg,Kg,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(x5)),S5=(e,t)=>({width:e.width,height:t.height}),qde=(e,t)=>{var r=typeof t.width=="number"?t.width:Ed;return{width:r,height:e.height}},Vde=ie(zr,oa,S5),Gde=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},Yde=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},Xde=ie(na,zr,Hde,Wg,Kg,(e,t,r,n,i)=>{var o={},a;return r.forEach(u=>{var c=S5(t,u);a==null&&(a=Gde(t,n,e));var f=n==="top"&&!i||n==="bottom"&&i;o[u.id]=a-Number(f)*c.height,a+=(f?-1:1)*c.height}),o}),Qde=ie(ra,zr,Zde,Wg,Kg,(e,t,r,n,i)=>{var o={},a;return r.forEach(u=>{var c=qde(t,u);a==null&&(a=Yde(t,n,e));var f=n==="left"&&!i||n==="right"&&i;o[u.id]=a-Number(f)*c.width,a+=(f?-1:1)*c.width}),o}),Jde=(e,t)=>{var r=oa(e,t);if(r!=null)return Xde(e,r.orientation,r.mirror)},epe=ie([zr,oa,Jde,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),tpe=(e,t)=>{var r=aa(e,t);if(r!=null)return Qde(e,r.orientation,r.mirror)},rpe=ie([zr,aa,tpe,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),npe=ie(zr,aa,(e,t)=>{var r=typeof t.width=="number"?t.width:Ed;return{width:r,height:e.height}}),k5=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:o,dataKey:a}=r,u=ts(e,n),c=t.map(f=>f.value);if(a&&u&&o==="category"&&i&&k6(c))return c}},y_=ie([zt,Bg,on,hr],k5),$5=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:o}=r,a=ts(e,n);if(a&&(i==="number"||o!=="auto"))return t.map(u=>u.value)}},b_=ie([zt,Bg,Md,hr],$5);ie([zt,dde,Ld,Qu,y_,b_,Ud,g_,hr],(e,t,r,n,i,o,a,u,c)=>{if(t!=null){var f=ts(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:o,duplicateDomain:i,isCategorical:f,niceTicks:u,range:a,realScaleType:r,scale:n}}});var ipe=(e,t,r,n,i,o,a,u,c)=>{if(!(t==null||n==null)){var f=ts(e,c),{type:d,ticks:m,tickCount:h}=t,g=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,y=d==="category"&&n.bandwidth?n.bandwidth()/g:0;y=c==="angleAxis"&&o!=null&&o.length>=2?Ti(o[0]-o[1])*2*y:y;var x=m||i;if(x){var w=x.map((k,C)=>{var $=a?a.indexOf(k):k;return{index:C,coordinate:n($)+y,value:k,offset:y}});return w.filter(k=>Er(k.coordinate))}return f&&u?u.map((k,C)=>({coordinate:n(k)+y,value:k,index:C,offset:y})).filter(k=>Er(k.coordinate)):n.ticks?n.ticks(h).map(k=>({coordinate:n(k)+y,value:k,offset:y})):n.domain().map((k,C)=>({coordinate:n(k)+y,value:a?a[k]:k,index:C,offset:y}))}},_5=ie([zt,Md,Ld,Qu,g_,Ud,y_,b_,hr],ipe),ope=(e,t,r,n,i,o,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=ts(e,a),{tickCount:c}=t,f=0;return f=a==="angleAxis"&&(n==null?void 0:n.length)>=2?Ti(n[0]-n[1])*2*f:f,u&&o?o.map((d,m)=>({coordinate:r(d)+f,value:d,index:m,offset:f})):r.ticks?r.ticks(c).map(d=>({coordinate:r(d)+f,value:d,offset:f})):r.domain().map((d,m)=>({coordinate:r(d)+f,value:i?i[d]:d,index:m,offset:f}))}},P5=ie([zt,Md,Qu,Ud,y_,b_,hr],ope),O5=ie(on,Qu,(e,t)=>{if(!(e==null||t==null))return tv(tv({},e),{},{scale:t})}),ape=ie([on,Ld,h_,w5],v_);ie((e,t,r)=>f_(e,r),ape,(e,t)=>{if(!(e==null||t==null))return tv(tv({},e),{},{scale:t})});var spe=ie([zt,wg,xg],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),C5=e=>e.options.defaultTooltipEventType,E5=e=>e.options.validateTooltipEventTypes;function I5(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function w_(e,t){var r=C5(e),n=E5(e);return I5(t,r,n)}function lpe(e){return Le(t=>w_(t,e))}var T5=(e,t)=>{var r,n=Number(t);if(!(qo(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},upe=e=>e.tooltip.settings,Aa={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},cpe={itemInteraction:{click:Aa,hover:Aa},axisInteraction:{click:Aa,hover:Aa},keyboardInteraction:Aa,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},j5=Sn({name:"tooltip",initialState:cpe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ft()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Ni(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Ft()},removeTooltipEntrySettings:{reducer(e,t){var r=Ni(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ft()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:fpe,replaceTooltipEntrySettings:dpe,removeTooltipEntrySettings:ppe,setTooltipSettingsState:mpe,setActiveMouseOverItemIndex:hpe,mouseLeaveItem:M0e,mouseLeaveChart:A5,setActiveClickItemIndex:D0e,setMouseOverAxisIndex:R5,setMouseClickAxisIndex:vpe,setSyncInteraction:mS,setKeyboardInteraction:hS}=j5.actions,gpe=j5.reducer;function MA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(r),!0).forEach(function(n){ype(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ype(e,t,r){return(t=bpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bpe(e){var t=wpe(e,"string");return typeof t=="symbol"?t:t+""}function wpe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xpe(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Spe(e){return e.index!=null}var N5=(e,t,r,n)=>{if(t==null)return Aa;var i=xpe(e,t,r);if(i==null)return Aa;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Spe(i)){if(o)return jm(jm({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return jm(jm({},Aa),{},{coordinate:i.coordinate})};function kpe(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function $pe(e,t){var r=kpe(e),n=t[0],i=t[1];if(r===void 0)return!1;var o=Math.min(n,i),a=Math.max(n,i);return r>=o&&r<=a}function _pe(e,t,r){if(r==null||t==null)return!0;var n=Hr(e,t);return n==null||!Xa(r)?!0:$pe(n,r)}var x_=(e,t,r,n)=>{var i=e==null?void 0:e.index;if(i==null)return null;var o=Number(i);if(!Er(o))return i;var a=0,u=1/0;t.length>0&&(u=t.length-1);var c=Math.max(a,Math.min(o,u)),f=t[c];return f==null||_pe(f,r,n)?String(c):null},M5=(e,t,r,n,i,o,a,u)=>{if(!(o==null||u==null)){var c=a[0],f=c==null?void 0:u(c.positions,o);if(f!=null)return f;var d=i==null?void 0:i[Number(o)];if(d)switch(r){case"horizontal":return{x:d.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:d.coordinate}}}},D5=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var a;return((a=o.settings)===null||a===void 0?void 0:a.dataKey)===i})},Fd=e=>e.options.tooltipPayloadSearcher,Ju=e=>e.tooltip;function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){Ppe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ppe(e,t,r){return(t=Ope(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ope(e){var t=Cpe(e,"string");return typeof t=="symbol"?t:t+""}function Cpe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Epe(e,t){return e??t}var z5=(e,t,r,n,i,o,a)=>{if(!(t==null||o==null)){var{chartData:u,computedData:c,dataStartIndex:f,dataEndIndex:d}=r,m=[];return e.reduce((h,g)=>{var y,{dataDefinedOnItem:x,settings:w}=g,k=Epe(x,u),C=Array.isArray(k)?vU(k,f,d):k,$=(y=w==null?void 0:w.dataKey)!==null&&y!==void 0?y:n,P=w==null?void 0:w.nameKey,O;if(n&&Array.isArray(C)&&!Array.isArray(C[0])&&a==="axis"?O=$6(C,n,i):O=o(C,t,c,P),Array.isArray(O))O.forEach(j=>{var R=zA(zA({},w),{},{name:j.name,unit:j.unit,color:void 0,fill:void 0});h.push(sj({tooltipEntrySettings:R,dataKey:j.dataKey,payload:j.payload,value:Hr(j.payload,j.dataKey),name:j.name}))});else{var E;h.push(sj({tooltipEntrySettings:w,dataKey:$,payload:O,value:Hr(O,$),name:(E=Hr(O,P))!==null&&E!==void 0?E:w==null?void 0:w.name}))}return h},m)}},S_=ie([gr,zt,qF,i_,vr],v5),Ipe=ie([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Tpe=ie([vr,Yu],VF),Bd=ie([Ipe,gr,Tpe],YF,{memoizeOptions:{resultEqualityCheck:Fg}}),jpe=ie([Bd],e=>e.filter(c_)),Ape=ie([Bd],JF,{memoizeOptions:{resultEqualityCheck:Fg}}),ec=ie([Ape,is],e5),Rpe=ie([jpe,is,gr],KF),k_=ie([ec,gr,Bd],t5),L5=ie([gr],p_),Npe=ie([gr],e=>e.allowDataOverflow),U5=ie([L5,Npe],SF),Mpe=ie([Bd],e=>e.filter(c_)),Dpe=ie([Rpe,Mpe,Mg,MF],n5),zpe=ie([Dpe,is,vr,U5],i5),Lpe=ie([Bd],QF),Upe=ie([ec,gr,Lpe,m_,vr],s5,{memoizeOptions:{resultEqualityCheck:Ug}}),Fpe=ie([l5,vr,Yu],Xu),Bpe=ie([Fpe,vr],f5),Wpe=ie([u5,vr,Yu],Xu),Kpe=ie([Wpe,vr],d5),Hpe=ie([c5,vr,Yu],Xu),Zpe=ie([Hpe,vr],p5),qpe=ie([Bpe,Zpe,Kpe],rv),Vpe=ie([gr,L5,U5,zpe,Upe,qpe,zt,vr],m5),Wd=ie([gr,zt,ec,k_,Mg,vr,Vpe],h5),Gpe=ie([Wd,gr,S_],g5),Ype=ie([gr,Wd,Gpe,vr],y5),F5=e=>{var t=vr(e),r=Yu(e),n=!1;return Ud(e,t,r,n)},B5=ie([gr,F5],Dg),W5=ie([gr,S_,Ype,B5],v_),Xpe=ie([zt,k_,gr,vr],k5),Qpe=ie([zt,k_,gr,vr],$5),Jpe=(e,t,r,n,i,o,a,u)=>{if(t){var{type:c}=t,f=ts(e,u);if(n){var d=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,m=c==="category"&&n.bandwidth?n.bandwidth()/d:0;return m=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ti(i[0]-i[1])*2*m:m,f&&a?a.map((h,g)=>({coordinate:n(h)+m,value:h,index:g,offset:m})):n.domain().map((h,g)=>({coordinate:n(h)+m,value:o?o[h]:h,index:g,offset:m}))}}},sa=ie([zt,gr,S_,W5,F5,Xpe,Qpe,vr],Jpe),$_=ie([C5,E5,upe],(e,t,r)=>I5(r.shared,e,t)),K5=e=>e.tooltip.settings.trigger,__=e=>e.tooltip.settings.defaultIndex,Kd=ie([Ju,$_,K5,__],N5),Zf=ie([Kd,ec,zd,Wd],x_),H5=ie([sa,Zf],T5),eme=ie([Kd],e=>{if(e)return e.dataKey});ie([Kd],e=>{if(e)return e.graphicalItemId});var Z5=ie([Ju,$_,K5,__],D5),tme=ie([ra,na,zt,zr,sa,__,Z5,Fd],M5),rme=ie([Kd,tme],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),nme=ie([Kd],e=>e.active),ime=ie([Z5,Zf,is,zd,H5,Fd,$_],z5),ome=ie([ime],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function UA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){ame(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ame(e,t,r){return(t=sme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sme(e){var t=lme(e,"string");return typeof t=="symbol"?t:t+""}function lme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ume=()=>Le(gr),cme=()=>{var e=ume(),t=Le(sa),r=Le(W5);return Mh(!e||!r?void 0:UA(UA({},e),{},{scale:r}),t)};function FA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(r),!0).forEach(function(n){fme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fme(e,t,r){return(t=dme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dme(e){var t=pme(e,"string");return typeof t=="symbol"?t:t+""}function pme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mme=(e,t,r,n)=>{var i=t.find(o=>o&&o.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},hme=(e,t,r,n)=>{var i=t.find(f=>f&&f.index===r);if(i){if(e==="centric"){var o=i.coordinate,{radius:a}=n;return Zl(Zl(Zl({},n),Dr(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var u=i.coordinate,{angle:c}=n;return Zl(Zl(Zl({},n),Dr(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function vme(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var q5=(e,t,r,n,i)=>{var o,a=-1,u=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c<u;c++){var f=c>0?r[c-1].coordinate:r[u-1].coordinate,d=r[c].coordinate,m=c>=u-1?r[0].coordinate:r[c+1].coordinate,h=void 0;if(Ti(d-f)!==Ti(m-d)){var g=[];if(Ti(m-d)===Ti(i[1]-i[0])){h=m;var y=d+i[1]-i[0];g[0]=Math.min(y,(y+f)/2),g[1]=Math.max(y,(y+f)/2)}else{h=f;var x=m+i[1]-i[0];g[0]=Math.min(d,(x+d)/2),g[1]=Math.max(d,(x+d)/2)}var w=[Math.min(d,(h+d)/2),Math.max(d,(h+d)/2)];if(e>w[0]&&e<=w[1]||e>=g[0]&&e<=g[1]){({index:a}=r[c]);break}}else{var k=Math.min(f,m),C=Math.max(f,m);if(e>(k+d)/2&&e<=(C+d)/2){({index:a}=r[c]);break}}}else if(t){for(var $=0;$<u;$++)if($===0&&e<=(t[$].coordinate+t[$+1].coordinate)/2||$>0&&$<u-1&&e>(t[$].coordinate+t[$-1].coordinate)/2&&e<=(t[$].coordinate+t[$+1].coordinate)/2||$===u-1&&e>(t[$].coordinate+t[$-1].coordinate)/2){({index:a}=t[$]);break}}return a},gme=()=>Le(i_),P_=(e,t)=>t,V5=(e,t,r)=>r,O_=(e,t,r,n)=>n,yme=ie(sa,e=>fg(e,t=>t.coordinate)),C_=ie([Ju,P_,V5,O_],N5),E_=ie([C_,ec,zd,Wd],x_),bme=(e,t,r)=>{if(t!=null){var n=Ju(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},G5=ie([Ju,P_,V5,O_],D5),nv=ie([ra,na,zt,zr,sa,O_,G5,Fd],M5),wme=ie([C_,nv],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Y5=ie([sa,E_],T5),xme=ie([G5,E_,is,zd,Y5,Fd,P_],z5),Sme=ie([C_,E_],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),kme=(e,t,r,n,i,o,a)=>{if(!(!e||!r||!n||!i)&&vme(e,a)){var u=Vae(e,t),c=q5(u,o,i,r,n),f=mme(t,i,c,e);return{activeIndex:String(c),activeCoordinate:f}}},$me=(e,t,r,n,i,o,a)=>{if(!(!e||!n||!i||!o||!r)){var u=oue(e,r);if(u){var c=Gae(u,t),f=q5(c,a,o,n,i),d=hme(t,o,f,u);return{activeIndex:String(f),activeCoordinate:d}}}},_me=(e,t,r,n,i,o,a,u)=>{if(!(!e||!t||!n||!i||!o))return t==="horizontal"||t==="vertical"?kme(e,t,n,i,o,a,u):$me(e,t,r,n,i,o,a)},Pme=ie(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElementId:n.elementId}}),Ome=ie(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(gn)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:sde}});function BA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){Cme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cme(e,t,r){return(t=Eme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eme(e){var t=Ime(e,"string");return typeof t=="symbol"?t:t+""}function Ime(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tme={},jme={zIndexMap:Object.values(gn).reduce((e,t)=>WA(WA({},e),{},{[t]:{elementId:void 0,panoramaElementId:void 0,consumers:0}}),Tme)},Ame=new Set(Object.values(gn));function Rme(e){return Ame.has(e)}var X5=Sn({name:"zIndex",initialState:jme,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,elementId:void 0,panoramaElementId:void 0}},prepare:Ft()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Rme(r)&&delete e.zIndexMap[r])},prepare:Ft()},registerZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r,elementId:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElementId=n:e.zIndexMap[r].elementId=n:e.zIndexMap[r]={consumers:0,elementId:i?void 0:n,panoramaElementId:i?n:void 0}},prepare:Ft()},unregisterZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElementId=void 0:e.zIndexMap[r].elementId=void 0)},prepare:Ft()}}}),{registerZIndexPortal:Nme,unregisterZIndexPortal:Mme,registerZIndexPortalId:Dme,unregisterZIndexPortalId:zme}=X5.actions,Lme=X5.reducer;function os(e){var{zIndex:t,children:r}=e,n=Tse(),i=n&&t!==void 0&&t!==0,o=Wn(),a=Ir();b.useLayoutEffect(()=>i?(a(Nme({zIndex:t})),()=>{a(Mme({zIndex:t}))}):_d,[a,t,i]);var u=Le(f=>Pme(f,t,o));if(!i)return r;if(!u)return null;var c=document.getElementById(u);return c?gv.createPortal(r,c):null}function vS(){return vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vS.apply(null,arguments)}function KA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Am(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(r),!0).forEach(function(n){Ume(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ume(e,t,r){return(t=Fme(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fme(e){var t=Bme(e,"string");return typeof t=="symbol"?t:t+""}function Bme(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wme(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return b.isValidElement(t)?b.cloneElement(t,n):b.createElement(r,n)}function Kme(e){var t,{coordinate:r,payload:n,index:i,offset:o,tooltipAxisBandSize:a,layout:u,cursor:c,tooltipEventType:f,chartName:d}=e,m=r,h=n,g=i;if(!c||!m||d!=="ScatterChart"&&f!=="axis")return null;var y,x,w;if(d==="ScatterChart")y=m,x=ble,w=gn.cursorLine;else if(d==="BarChart")y=wle(u,m,o,a),x=DU,w=gn.cursorRectangle;else if(u==="radial"&&O6(m)){var{cx:k,cy:C,radius:$,startAngle:P,endAngle:O}=zU(m);y={cx:k,cy:C,startAngle:P,endAngle:O,innerRadius:$,outerRadius:$},x=UU,w=gn.cursorLine}else y={points:uue(u,m,o)},x=jU,w=gn.cursorLine;var E=typeof c=="object"&&"className"in c?c.className:void 0,j=Am(Am(Am(Am({stroke:"#ccc",pointerEvents:"none"},o),y),ag(c)),{},{payload:h,payloadIndex:g,className:ve("recharts-tooltip-cursor",E)});return b.createElement(os,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},b.createElement(Wme,{cursor:c,cursorComp:x,cursorProps:j}))}function Hme(e){var t=cme(),r=Cse(),n=_g(),i=gme();return t==null||r==null||n==null||i==null?null:b.createElement(Kme,vS({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Q5=b.createContext(null),Zme=()=>b.useContext(Q5),gw={exports:{}},HA;function qme(){return HA||(HA=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,f,d){this.fn=c,this.context=f,this.once=d||!1}function o(c,f,d,m,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new i(d,m||c,h),y=r?r+f:f;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],g]:c._events[y].push(g):(c._events[y]=g,c._eventsCount++),c}function a(c,f){--c._eventsCount===0?c._events=new n:delete c._events[f]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],d,m;if(this._eventsCount===0)return f;for(m in d=this._events)t.call(d,m)&&f.push(r?m.slice(1):m);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(d)):f},u.prototype.listeners=function(f){var d=r?r+f:f,m=this._events[d];if(!m)return[];if(m.fn)return[m.fn];for(var h=0,g=m.length,y=new Array(g);h<g;h++)y[h]=m[h].fn;return y},u.prototype.listenerCount=function(f){var d=r?r+f:f,m=this._events[d];return m?m.fn?1:m.length:0},u.prototype.emit=function(f,d,m,h,g,y){var x=r?r+f:f;if(!this._events[x])return!1;var w=this._events[x],k=arguments.length,C,$;if(w.fn){switch(w.once&&this.removeListener(f,w.fn,void 0,!0),k){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,d),!0;case 3:return w.fn.call(w.context,d,m),!0;case 4:return w.fn.call(w.context,d,m,h),!0;case 5:return w.fn.call(w.context,d,m,h,g),!0;case 6:return w.fn.call(w.context,d,m,h,g,y),!0}for($=1,C=new Array(k-1);$<k;$++)C[$-1]=arguments[$];w.fn.apply(w.context,C)}else{var P=w.length,O;for($=0;$<P;$++)switch(w[$].once&&this.removeListener(f,w[$].fn,void 0,!0),k){case 1:w[$].fn.call(w[$].context);break;case 2:w[$].fn.call(w[$].context,d);break;case 3:w[$].fn.call(w[$].context,d,m);break;case 4:w[$].fn.call(w[$].context,d,m,h);break;default:if(!C)for(O=1,C=new Array(k-1);O<k;O++)C[O-1]=arguments[O];w[$].fn.apply(w[$].context,C)}}return!0},u.prototype.on=function(f,d,m){return o(this,f,d,m,!1)},u.prototype.once=function(f,d,m){return o(this,f,d,m,!0)},u.prototype.removeListener=function(f,d,m,h){var g=r?r+f:f;if(!this._events[g])return this;if(!d)return a(this,g),this;var y=this._events[g];if(y.fn)y.fn===d&&(!h||y.once)&&(!m||y.context===m)&&a(this,g);else{for(var x=0,w=[],k=y.length;x<k;x++)(y[x].fn!==d||h&&!y[x].once||m&&y[x].context!==m)&&w.push(y[x]);w.length?this._events[g]=w.length===1?w[0]:w:a(this,g)}return this},u.prototype.removeAllListeners=function(f){var d;return f?(d=r?r+f:f,this._events[d]&&a(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(gw)),gw.exports}var Vme=qme();const Gme=ho(Vme);var qf=new Gme,gS="recharts.syncEvent.tooltip",ZA="recharts.syncEvent.brush";function Yme(e,t){if(t){var r=Number.parseInt(t,10);if(!qo(r))return e==null?void 0:e[r]}}var Xme={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},J5=Sn({name:"options",initialState:Xme,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Qme=J5.reducer,{createEventEmitter:Jme}=J5.actions;function ehe(e){return e.tooltip.syncInteraction}var the={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},e3=Sn({name:"chartData",initialState:the,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:qA,setDataStartEndIndexes:rhe,setComputedData:z0e}=e3.actions,nhe=e3.reducer,ihe=["x","y"];function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){ohe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ohe(e,t,r){return(t=ahe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ahe(e){var t=she(e,"string");return typeof t=="symbol"?t:t+""}function she(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lhe(e,t){if(e==null)return{};var r,n,i=uhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uhe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function che(){var e=Le(o_),t=Le(a_),r=Ir(),n=Le(DF),i=Le(sa),o=_g(),a=$g(),u=Le(c=>c.rootProps.className);b.useEffect(()=>{if(e==null)return _d;var c=(f,d,m)=>{if(t!==m&&e===f){if(n==="index"){var h;if(a&&d!==null&&d!==void 0&&(h=d.payload)!==null&&h!==void 0&&h.coordinate&&d.payload.sourceViewBox){var g=d.payload.coordinate,{x:y,y:x}=g,w=lhe(g,ihe),{x:k,y:C,width:$,height:P}=d.payload.sourceViewBox,O=ql(ql({},w),{},{x:a.x+($?(y-k)/$:0)*a.width,y:a.y+(P?(x-C)/P:0)*a.height});r(ql(ql({},d),{},{payload:ql(ql({},d.payload),{},{coordinate:O})}))}else r(d);return}if(i!=null){var E;if(typeof n=="function"){var j={activeTooltipIndex:d.payload.index==null?void 0:Number(d.payload.index),isTooltipActive:d.payload.active,activeIndex:d.payload.index==null?void 0:Number(d.payload.index),activeLabel:d.payload.label,activeDataKey:d.payload.dataKey,activeCoordinate:d.payload.coordinate},R=n(i,j);E=i[R]}else n==="value"&&(E=i.find(V=>String(V.value)===d.payload.label));var{coordinate:D}=d.payload;if(E==null||d.payload.active===!1||D==null||a==null){r(mS({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:L,y:M}=D,I=Math.min(L,a.x+a.width),W=Math.min(M,a.y+a.height),K={x:o==="horizontal"?E.coordinate:I,y:o==="horizontal"?W:E.coordinate},Z=mS({active:d.payload.active,coordinate:K,dataKey:d.payload.dataKey,index:String(E.index),label:d.payload.label,sourceViewBox:d.payload.sourceViewBox,graphicalItemId:d.payload.graphicalItemId});r(Z)}}};return qf.on(gS,c),()=>{qf.off(gS,c)}},[u,r,t,e,n,i,o,a])}function fhe(){var e=Le(o_),t=Le(a_),r=Ir();b.useEffect(()=>{if(e==null)return _d;var n=(i,o,a)=>{t!==a&&e===i&&r(rhe(o))};return qf.on(ZA,n),()=>{qf.off(ZA,n)}},[r,t,e])}function dhe(){var e=Ir();b.useEffect(()=>{e(Jme())},[e]),che(),fhe()}function phe(e,t,r,n,i,o){var a=Le(g=>bme(g,e,t)),u=Le(a_),c=Le(o_),f=Le(DF),d=Le(ehe),m=d==null?void 0:d.active,h=$g();b.useEffect(()=>{if(!m&&c!=null&&u!=null){var g=mS({active:o,coordinate:r,dataKey:a,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:h,graphicalItemId:void 0});qf.emit(gS,c,g,u)}},[m,r,a,i,n,u,c,f,o,h])}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){mhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mhe(e,t,r){return(t=hhe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hhe(e){var t=vhe(e,"string");return typeof t=="symbol"?t:t+""}function vhe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ghe(e){return e.dataKey}function yhe(e,t){return b.isValidElement(e)?b.cloneElement(e,t):typeof e=="function"?b.createElement(e,t):b.createElement(Qse,t)}var XA=[],bhe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function whe(e){var t,r,n=Bn(e,bhe),{active:i,allowEscapeViewBox:o,animationDuration:a,animationEasing:u,content:c,filterNull:f,isAnimationActive:d,offset:m,payloadUniqBy:h,position:g,reverseDirection:y,useTranslate3d:x,wrapperStyle:w,cursor:k,shared:C,trigger:$,defaultIndex:P,portal:O,axisId:E}=n,j=Ir(),R=typeof P=="number"?String(P):P;b.useEffect(()=>{j(mpe({shared:C,trigger:$,axisId:E,active:i,defaultIndex:R}))},[j,C,$,E,i,R]);var D=$g(),L=TU(),M=lpe(C),{activeIndex:I,isActive:W}=(t=Le(he=>Sme(he,M,$,R)))!==null&&t!==void 0?t:{},K=Le(he=>xme(he,M,$,R)),Z=Le(he=>Y5(he,M,$,R)),V=Le(he=>wme(he,M,$,R)),ee=K,F=Zme(),z=(r=i??W)!==null&&r!==void 0?r:!1,[Y,N]=Noe([ee,z]),G=M==="axis"?Z:void 0;phe(M,$,V,G,I,z);var ae=O??F;if(ae==null||D==null||M==null)return null;var ue=ee??XA;z||(ue=XA),f&&ue.length&&(ue=soe(ue.filter(he=>he.value!=null&&(he.hide!==!0||n.includeHidden)),h,ghe));var pe=ue.length>0,le=b.createElement(ole,{allowEscapeViewBox:o,animationDuration:a,animationEasing:u,isAnimationActive:d,active:z,coordinate:V,hasPayload:pe,offset:m,position:g,reverseDirection:y,useTranslate3d:x,viewBox:D,wrapperStyle:w,lastBoundingBox:Y,innerRef:N,hasPortalFromProps:!!O},yhe(c,YA(YA({},n),{},{payload:ue,label:G,active:z,activeIndex:I,coordinate:V,accessibilityLayer:L})));return b.createElement(b.Fragment,null,gv.createPortal(le,ae),z&&b.createElement(Hme,{cursor:k,tooltipEventType:M,coordinate:V,payload:ue,index:I}))}function xhe(e,t,r){return(t=She(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function She(e){var t=khe(e,"string");return typeof t=="symbol"?t:t+""}function khe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class $he{constructor(t){xhe(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function QA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(r),!0).forEach(function(n){Phe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Phe(e,t,r){return(t=Ohe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ohe(e){var t=Che(e,"string");return typeof t=="symbol"?t:t+""}function Che(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ehe={cacheSize:2e3,enableCache:!0},t3=_he({},Ehe),JA=new $he(t3.cacheSize),Ihe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},e2="recharts_measurement_span";function The(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(u)}var t2=(e,t)=>{try{var r=document.getElementById(e2);r||(r=document.createElement("span"),r.setAttribute("id",e2),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,Ihe,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},yf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Td.isSsr)return{width:0,height:0};if(!t3.enableCache)return t2(t,r);var n=The(t,r),i=JA.get(n);if(i)return i;var o=t2(t,r);return JA.set(n,o),o},r2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,n2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jhe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ahe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,r3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Rhe=Object.keys(r3),eu="NaN";function Nhe(e,t){return e*r3[t]}class mn{static parse(t){var r,[,n,i]=(r=Ahe.exec(t))!==null&&r!==void 0?r:[];return new mn(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,qo(t)&&(this.unit=""),r!==""&&!jhe.test(r)&&(this.num=NaN,this.unit=""),Rhe.includes(r)&&(this.num=Nhe(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new mn(NaN,""):new mn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new mn(NaN,""):new mn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new mn(NaN,""):new mn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new mn(NaN,""):new mn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return qo(this.num)}}function n3(e){if(e.includes(eu))return eu;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,o]=(r=r2.exec(t))!==null&&r!==void 0?r:[],a=mn.parse(n??""),u=mn.parse(o??""),c=i==="*"?a.multiply(u):a.divide(u);if(c.isNaN())return eu;t=t.replace(r2,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,d,m,h]=(f=n2.exec(t))!==null&&f!==void 0?f:[],g=mn.parse(d??""),y=mn.parse(h??""),x=m==="+"?g.add(y):g.subtract(y);if(x.isNaN())return eu;t=t.replace(n2,x.toString())}return t}var i2=/\(([^()]*)\)/;function Mhe(e){for(var t=e,r;(r=i2.exec(t))!=null;){var[,n]=r;t=t.replace(i2,n3(n))}return t}function Dhe(e){var t=e.replace(/\s+/g,"");return t=Mhe(t),t=n3(t),t}function zhe(e){try{return Dhe(e)}catch{return eu}}function yw(e){var t=zhe(e.slice(5,-1));return t===eu?"":t}var Lhe=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Uhe=["dx","dy","angle","className","breakAll"];function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yS.apply(null,arguments)}function o2(e,t){if(e==null)return{};var r,n,i=Fhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fhe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var i3=/[ \f\n\r\t\v\u2028\u2029]+/,o3=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];Cr(t)||(r?i=t.toString().split(""):i=t.toString().split(i3));var o=i.map(u=>({word:u,width:yf(u,n).width})),a=r?0:yf(" ",n).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}};function Bhe(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var a3=(e,t,r,n)=>e.reduce((i,o)=>{var{word:a,width:u}=o,c=i[i.length-1];if(c&&u!=null&&(t==null||n||c.width+u+r<Number(t)))c.words.push(a),c.width+=u+r;else{var f={words:[a],width:u};i.push(f)}return i},[]),s3=e=>e.reduce((t,r)=>t.width>r.width?t:r),Whe="…",a2=(e,t,r,n,i,o,a,u)=>{var c=e.slice(0,t),f=o3({breakAll:r,style:n,children:c+Whe});if(!f)return[!1,[]];var d=a3(f.wordsWithComputedWidth,o,a,u),m=d.length>i||s3(d).width>Number(o);return[m,d]},Khe=(e,t,r,n,i)=>{var{maxLines:o,children:a,style:u,breakAll:c}=e,f=Fe(o),d=String(a),m=a3(t,n,r,i);if(!f||i)return m;var h=m.length>o||s3(m).width>Number(n);if(!h)return m;for(var g=0,y=d.length-1,x=0,w;g<=y&&x<=d.length-1;){var k=Math.floor((g+y)/2),C=k-1,[$,P]=a2(d,C,c,u,o,n,r,i),[O]=a2(d,k,c,u,o,n,r,i);if(!$&&!O&&(g=k+1),$&&O&&(y=k-1),!$&&O){w=P;break}x++}return w||m},s2=e=>{var t=Cr(e)?[]:e.toString().split(i3);return[{words:t,width:void 0}]},Hhe=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:o,maxLines:a}=e;if((t||r)&&!Td.isSsr){var u,c,f=o3({breakAll:o,children:n,style:i});if(f){var{wordsWithComputedWidth:d,spaceWidth:m}=f;u=d,c=m}else return s2(n);return Khe({breakAll:o,children:n,maxLines:a,style:i},u,c,t,!!r)}return s2(n)},l3="#808080",Zhe={angle:0,breakAll:!1,capHeight:"0.71em",fill:l3,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},I_=b.forwardRef((e,t)=>{var r=Bn(e,Zhe),{x:n,y:i,lineHeight:o,capHeight:a,fill:u,scaleToFit:c,textAnchor:f,verticalAnchor:d}=r,m=o2(r,Lhe),h=b.useMemo(()=>Hhe({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),{dx:g,dy:y,angle:x,className:w,breakAll:k}=m,C=o2(m,Uhe);if(!po(n)||!po(i)||h.length===0)return null;var $=Number(n)+(Fe(g)?g:0),P=Number(i)+(Fe(y)?y:0);if(!Er($)||!Er(P))return null;var O;switch(d){case"start":O=yw("calc(".concat(a,")"));break;case"middle":O=yw("calc(".concat((h.length-1)/2," * -").concat(o," + (").concat(a," / 2))"));break;default:O=yw("calc(".concat(h.length-1," * -").concat(o,")"));break}var E=[];if(c){var j=h[0].width,{width:R}=m;E.push("scale(".concat(Fe(R)&&Fe(j)?R/j:1,")"))}return x&&E.push("rotate(".concat(x,", ").concat($,", ").concat(P,")")),E.length&&(C.transform=E.join(" ")),b.createElement("text",yS({},rn(C),{ref:t,x:$,y:P,className:ve("recharts-text",w),textAnchor:f,fill:u.includes("url")?l3:u}),h.map((D,L)=>{var M=D.words.join(k?"":" ");return b.createElement("tspan",{x:$,dy:L===0?O:o,key:"".concat(M,"-").concat(L)},M)}))});I_.displayName="Text";var qhe=["labelRef"];function Vhe(e,t){if(e==null)return{};var r,n,i=Ghe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ghe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function l2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(r),!0).forEach(function(n){Yhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yhe(e,t,r){return(t=Xhe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xhe(e){var t=Qhe(e,"string");return typeof t=="symbol"?t:t+""}function Qhe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(null,arguments)}var u3=b.createContext(null),Jhe=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a,children:u}=e,c=b.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a}),[t,r,n,i,o,a]);return b.createElement(u3.Provider,{value:c},u)},c3=()=>{var e=b.useContext(u3),t=$g();return e||kU(t)},eve=b.createContext(null),tve=()=>{var e=b.useContext(eve),t=Le(BF);return e||t},rve=e=>{var{value:t,formatter:r}=e,n=Cr(e.children)?t:e.children;return typeof r=="function"?r(n):n},T_=e=>e!=null&&typeof e=="function",nve=(e,t)=>{var r=Ti(t-e),n=Math.min(Math.abs(t-e),360);return r*n},ive=(e,t,r,n,i)=>{var{offset:o,className:a}=e,{cx:u,cy:c,innerRadius:f,outerRadius:d,startAngle:m,endAngle:h,clockWise:g}=i,y=(f+d)/2,x=nve(m,h),w=x>=0?1:-1,k,C;switch(t){case"insideStart":k=m+w*o,C=g;break;case"insideEnd":k=h-w*o,C=!g;break;case"end":k=h+w*o,C=g;break;default:throw new Error("Unsupported position ".concat(t))}C=x<=0?C:!C;var $=Dr(u,c,y,k),P=Dr(u,c,y,k+(C?1:-1)*359),O="M".concat($.x,",").concat($.y,`
|
|
273
|
-
A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
|
|
274
|
-
`).concat(P.x,",").concat(P.y),E=Cr(e.id)?Af("recharts-radial-line-"):e.id;return b.createElement("text",Ro({},n,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",a)}),b.createElement("defs",null,b.createElement("path",{id:E,d:O})),b.createElement("textPath",{xlinkHref:"#".concat(E)},r))},ove=(e,t,r)=>{var{cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:u,endAngle:c}=e,f=(u+c)/2;if(r==="outside"){var{x:d,y:m}=Dr(n,i,a+t,f);return{x:d,y:m,textAnchor:d>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var h=(o+a)/2,{x:g,y}=Dr(n,i,h,f);return{x:g,y,textAnchor:"middle",verticalAnchor:"middle"}},bS=e=>"cx"in e&&Fe(e.cx),ave=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,o;r!=null&&!bS(r)&&(o=r);var{x:a,y:u,upperWidth:c,lowerWidth:f,height:d}=t,m=a,h=a+(c-f)/2,g=(m+h)/2,y=(c+f)/2,x=m+c/2,w=d>=0?1:-1,k=w*n,C=w>0?"end":"start",$=w>0?"start":"end",P=c>=0?1:-1,O=P*n,E=P>0?"end":"start",j=P>0?"start":"end";if(i==="top"){var R={x:m+c/2,y:u-k,textAnchor:"middle",verticalAnchor:C};return nr(nr({},R),o?{height:Math.max(u-o.y,0),width:c}:{})}if(i==="bottom"){var D={x:h+f/2,y:u+d+k,textAnchor:"middle",verticalAnchor:$};return nr(nr({},D),o?{height:Math.max(o.y+o.height-(u+d),0),width:f}:{})}if(i==="left"){var L={x:g-O,y:u+d/2,textAnchor:E,verticalAnchor:"middle"};return nr(nr({},L),o?{width:Math.max(L.x-o.x,0),height:d}:{})}if(i==="right"){var M={x:g+y+O,y:u+d/2,textAnchor:j,verticalAnchor:"middle"};return nr(nr({},M),o?{width:Math.max(o.x+o.width-M.x,0),height:d}:{})}var I=o?{width:y,height:d}:{};return i==="insideLeft"?nr({x:g+O,y:u+d/2,textAnchor:j,verticalAnchor:"middle"},I):i==="insideRight"?nr({x:g+y-O,y:u+d/2,textAnchor:E,verticalAnchor:"middle"},I):i==="insideTop"?nr({x:m+c/2,y:u+k,textAnchor:"middle",verticalAnchor:$},I):i==="insideBottom"?nr({x:h+f/2,y:u+d-k,textAnchor:"middle",verticalAnchor:C},I):i==="insideTopLeft"?nr({x:m+O,y:u+k,textAnchor:j,verticalAnchor:$},I):i==="insideTopRight"?nr({x:m+c-O,y:u+k,textAnchor:E,verticalAnchor:$},I):i==="insideBottomLeft"?nr({x:h+O,y:u+d-k,textAnchor:j,verticalAnchor:C},I):i==="insideBottomRight"?nr({x:h+f-O,y:u+d-k,textAnchor:E,verticalAnchor:C},I):i&&typeof i=="object"&&(Fe(i.x)||Vo(i.x))&&(Fe(i.y)||Vo(i.y))?nr({x:a+Ga(i.x,y),y:u+Ga(i.y,d),textAnchor:"end",verticalAnchor:"end"},I):nr({x,y:u+d/2,textAnchor:"middle",verticalAnchor:"middle"},I)},sve={angle:0,offset:5,zIndex:gn.label,position:"middle",textBreakAll:!1};function ja(e){var t=Bn(e,sve),{viewBox:r,position:n,value:i,children:o,content:a,className:u="",textBreakAll:c,labelRef:f}=t,d=tve(),m=c3(),h=n==="center"?m:d??m,g,y,x;if(r==null?g=h:bS(r)?g=r:g=kU(r),!g||Cr(i)&&Cr(o)&&!b.isValidElement(a)&&typeof a!="function")return null;var w=nr(nr({},t),{},{viewBox:g});if(b.isValidElement(a)){var{labelRef:k}=w,C=Vhe(w,qhe);return b.cloneElement(a,C)}if(typeof a=="function"){if(y=b.createElement(a,w),b.isValidElement(y))return y}else y=rve(t);var $=rn(t);if(bS(g)){if(n==="insideStart"||n==="insideEnd"||n==="end")return ive(t,n,y,$,g);x=ove(g,t.offset,t.position)}else x=ave(t,g);return b.createElement(os,{zIndex:t.zIndex},b.createElement(I_,Ro({ref:f,className:ve("recharts-label",u)},$,x,{textAnchor:Bhe($.textAnchor)?$.textAnchor:x.textAnchor,breakAll:c}),y))}ja.displayName="Label";var lve=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?b.createElement(ja,Ro({key:"label-implicit"},n)):po(e)?b.createElement(ja,Ro({key:"label-implicit",value:e},n)):b.isValidElement(e)?e.type===ja?b.cloneElement(e,nr({key:"label-implicit"},n)):b.createElement(ja,Ro({key:"label-implicit",content:e},n)):T_(e)?b.createElement(ja,Ro({key:"label-implicit",content:e},n)):e&&typeof e=="object"?b.createElement(ja,Ro({},e,{key:"label-implicit"},n)):null};function uve(e){var{label:t,labelRef:r}=e,n=c3();return lve(t,n,r)||null}var bw={},ww={},u2;function cve(){return u2||(u2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(ww)),ww}var xw={},c2;function fve(){return c2||(c2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(xw)),xw}var f2;function dve(){return f2||(f2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cve(),r=fve(),n=g$();function i(o){if(n.isArrayLike(o))return t.last(r.toArray(o))}e.last=i})(bw)),bw}var Sw,d2;function pve(){return d2||(d2=1,Sw=dve().last),Sw}var mve=pve();const hve=ho(mve);var vve=["valueAccessor"],gve=["dataKey","clockWise","id","textBreakAll","zIndex"];function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iv.apply(null,arguments)}function p2(e,t){if(e==null)return{};var r,n,i=yve(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bve=e=>Array.isArray(e.value)?hve(e.value):e.value,f3=b.createContext(void 0),wve=f3.Provider,d3=b.createContext(void 0);d3.Provider;function xve(){return b.useContext(f3)}function Sve(){return b.useContext(d3)}function Ym(e){var{valueAccessor:t=bve}=e,r=p2(e,vve),{dataKey:n,clockWise:i,id:o,textBreakAll:a,zIndex:u}=r,c=p2(r,gve),f=xve(),d=Sve(),m=f||d;return!m||!m.length?null:b.createElement(os,{zIndex:u??gn.label},b.createElement(Va,{className:"recharts-label-list"},m.map((h,g)=>{var y,x=Cr(n)?t(h,g):Hr(h&&h.payload,n),w=Cr(o)?{}:{id:"".concat(o,"-").concat(g)};return b.createElement(ja,iv({key:"label-".concat(g)},rn(h),c,w,{fill:(y=r.fill)!==null&&y!==void 0?y:h.fill,parentViewBox:h.parentViewBox,value:x,textBreakAll:a,viewBox:h.viewBox,index:g,zIndex:0}))})))}Ym.displayName="LabelList";function kve(e){var{label:t}=e;return t?t===!0?b.createElement(Ym,{key:"labelList-implicit"}):b.isValidElement(t)||T_(t)?b.createElement(Ym,{key:"labelList-implicit",content:t}):typeof t=="object"?b.createElement(Ym,iv({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wS.apply(null,arguments)}var p3=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=ve("recharts-dot",i);return Fe(t)&&Fe(r)&&Fe(n)?b.createElement("circle",wS({},Zo(e),v$(e),{className:o,cx:t,cy:r,r:n})):null},$ve={radiusAxis:{},angleAxis:{}},m3=Sn({name:"polarAxis",initialState:$ve,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:L0e,removeRadiusAxis:U0e,addAngleAxis:F0e,removeAngleAxis:B0e}=m3.actions,_ve=m3.reducer,h3=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,kw={},m2;function Pve(){return m2||(m2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var i;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&i.writable)?!1:r.toString()===`[object ${o}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(kw)),kw}var $w,h2;function Ove(){return h2||(h2=1,$w=Pve().isPlainObject),$w}var Cve=Ove();const Eve=ho(Cve);function v2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v2(Object(r),!0).forEach(function(n){Ive(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ive(e,t,r){return(t=Tve(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tve(e){var t=jve(e,"string");return typeof t=="symbol"?t:t+""}function jve(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ov.apply(null,arguments)}var y2=(e,t,r,n,i)=>{var o=r-n,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+r,",").concat(t),a+="L ".concat(e+r-o/2,",").concat(t+i),a+="L ".concat(e+r-o/2-n,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},Ave={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rve=e=>{var t=Bn(e,Ave),{x:r,y:n,upperWidth:i,lowerWidth:o,height:a,className:u}=t,{animationEasing:c,animationDuration:f,animationBegin:d,isUpdateAnimationActive:m}=t,h=b.useRef(null),[g,y]=b.useState(-1),x=b.useRef(i),w=b.useRef(o),k=b.useRef(a),C=b.useRef(r),$=b.useRef(n),P=T$(e,"trapezoid-");if(b.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var K=h.current.getTotalLength();K&&y(K)}catch{}},[]),r!==+r||n!==+n||i!==+i||o!==+o||a!==+a||i===0&&o===0||a===0)return null;var O=ve("recharts-trapezoid",u);if(!m)return b.createElement("g",null,b.createElement("path",ov({},rn(t),{className:O,d:y2(r,n,i,o,a)})));var E=x.current,j=w.current,R=k.current,D=C.current,L=$.current,M="0px ".concat(g===-1?1:g,"px"),I="".concat(g,"px 0px"),W=AU(["strokeDasharray"],f,c);return b.createElement(I$,{animationId:P,key:P,canBegin:g>0,duration:f,easing:c,isActive:m,begin:d},K=>{var Z=hn(E,i,K),V=hn(j,o,K),ee=hn(R,a,K),F=hn(D,r,K),z=hn(L,n,K);h.current&&(x.current=Z,w.current=V,k.current=ee,C.current=F,$.current=z);var Y=K>0?{transition:W,strokeDasharray:I}:{strokeDasharray:M};return b.createElement("path",ov({},rn(t),{className:O,d:y2(F,z,Z,V,ee),ref:h,style:g2(g2({},Y),t.style)}))})},Nve=["option","shapeType","propTransformer","activeClassName"];function Mve(e,t){if(e==null)return{};var r,n,i=Dve(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Dve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function b2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(r),!0).forEach(function(n){zve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zve(e,t,r){return(t=Lve(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lve(e){var t=Uve(e,"string");return typeof t=="symbol"?t:t+""}function Uve(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fve(e,t){return av(av({},t),e)}function Bve(e,t){return e==="symbols"}function w2(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return b.createElement(DU,r);case"trapezoid":return b.createElement(Rve,r);case"sector":return b.createElement(UU,r);case"symbols":if(Bve(t))return b.createElement(P6,r);break;case"curve":return b.createElement(jU,r);default:return null}}function Wve(e){return b.isValidElement(e)?e.props:e}function Kve(e){var{option:t,shapeType:r,propTransformer:n=Fve,activeClassName:i="recharts-active-shape"}=e,o=Mve(e,Nve),a;if(b.isValidElement(t))a=b.cloneElement(t,av(av({},o),Wve(t)));else if(typeof t=="function")a=t(o,o.index);else if(Eve(t)&&typeof t!="boolean"){var u=n(t,o);a=b.createElement(w2,{shapeType:r,elementProps:u})}else{var c=o;a=b.createElement(w2,{shapeType:r,elementProps:c})}return o.isActive?b.createElement(Va,{className:i},a):a}function Hve(e){var{tooltipEntrySettings:t}=e,r=Ir(),n=Wn(),i=b.useRef(null);return b.useLayoutEffect(()=>{n||(i.current===null?r(fpe(t)):i.current!==t&&r(dpe({prev:i.current,next:t})),i.current=t)},[t,r,n]),b.useLayoutEffect(()=>()=>{i.current&&(r(ppe(i.current)),i.current=null)},[r]),null}function Zve(e){var{legendPayload:t}=e,r=Ir(),n=Wn(),i=b.useRef(null);return b.useLayoutEffect(()=>{n||(i.current===null?r(Kse(t)):i.current!==t&&r(Hse({prev:i.current,next:t})),i.current=t)},[r,n,t]),b.useLayoutEffect(()=>()=>{i.current&&(r(Zse(i.current)),i.current=null)},[r]),null}var _w,qve=()=>{var[e]=b.useState(()=>Af("uid-"));return e},Vve=(_w=xf.useId)!==null&&_w!==void 0?_w:qve;function v3(e,t){var r=Vve();return t||(e?"".concat(e,"-").concat(r):r)}var Gve=b.createContext(void 0),Yve=e=>{var{id:t,type:r,children:n}=e,i=v3("recharts-".concat(r),t);return b.createElement(Gve.Provider,{value:i},n(i))},Xve={cartesianItems:[],polarItems:[]},g3=Sn({name:"graphicalItems",initialState:Xve,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ft()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Ni(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Ft()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ni(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ft()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ft()},removePolarGraphicalItem:{reducer(e,t){var r=Ni(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ft()}}}),{addCartesianGraphicalItem:Qve,replaceCartesianGraphicalItem:Jve,removeCartesianGraphicalItem:ege,addPolarGraphicalItem:W0e,removePolarGraphicalItem:K0e}=g3.actions,tge=g3.reducer,rge=e=>{var t=Ir(),r=b.useRef(null);return b.useLayoutEffect(()=>{r.current===null?t(Qve(e)):r.current!==e&&t(Jve({prev:r.current,next:e})),r.current=e},[t,e]),b.useLayoutEffect(()=>()=>{r.current&&(t(ege(r.current)),r.current=null)},[t]),null},nge=b.memo(rge),ige=["points"];function x2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(r),!0).forEach(function(n){oge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oge(e,t,r){return(t=age(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function age(e){var t=sge(e,"string");return typeof t=="symbol"?t:t+""}function sge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sv.apply(null,arguments)}function lge(e,t){if(e==null)return{};var r,n,i=uge(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cge(e){var{option:t,dotProps:r,className:n}=e;if(b.isValidElement(t))return b.cloneElement(t,r);if(typeof t=="function")return t(r);var i=ve(n,typeof t!="boolean"?t.className:""),o=r??{},{points:a}=o,u=lge(o,ige);return b.createElement(p3,sv({},u,{className:i}))}function fge(e,t){return e==null?!1:t?!0:e.length===1}function dge(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:o,baseProps:a,needClip:u,clipPathId:c,zIndex:f=gn.scatter}=e;if(!fge(t,r))return null;var d=h3(r),m=Ane(r),h=t.map((y,x)=>{var w,k,C=Pw(Pw(Pw({r:3},a),m),{},{index:x,cx:(w=y.x)!==null&&w!==void 0?w:void 0,cy:(k=y.y)!==null&&k!==void 0?k:void 0,dataKey:o,value:y.value,payload:y.payload,points:t});return b.createElement(cge,{key:"dot-".concat(x),option:r,dotProps:C,className:i})}),g={};return u&&c!=null&&(g.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(c,")")),b.createElement(os,{zIndex:f},b.createElement(Va,sv({className:n},g),h))}function S2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(r),!0).forEach(function(n){pge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pge(e,t,r){return(t=mge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mge(e){var t=hge(e,"string");return typeof t=="symbol"?t:t+""}function hge(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vge={xAxis:{},yAxis:{},zAxis:{}},y3=Sn({name:"cartesianAxis",initialState:vge,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ft()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ft()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ft()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ft()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ft()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ft()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ft()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ft()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ft()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-o[0])<=1)return;var a=[...o,n].slice(-3);e.yAxis[r]=k2(k2({},e.yAxis[r]),{},{width:n,widthHistory:a})}}}}),{addXAxis:gge,replaceXAxis:yge,removeXAxis:bge,addYAxis:wge,replaceYAxis:xge,removeYAxis:Sge,addZAxis:H0e,replaceZAxis:Z0e,removeZAxis:q0e,updateYAxisWidth:kge}=y3.actions,$ge=y3.reducer,_ge=ie([zr],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Pge=ie([_ge,ra,na],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),j_=()=>Le(Pge),Oge=()=>Le(ome);function $2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$2(Object(r),!0).forEach(function(n){Cge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cge(e,t,r){return(t=Ege(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ege(e){var t=Ige(e,"string");return typeof t=="symbol"?t:t+""}function Ige(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tge=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:o,clipPath:a}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:r,dataKey:o,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},c=Ow(Ow(Ow({},u),ag(i)),v$(i)),f;return b.isValidElement(i)?f=b.cloneElement(i,c):typeof i=="function"?f=i(c):f=b.createElement(p3,c),b.createElement(Va,{className:"recharts-active-dot",clipPath:a},f)};function jge(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:o,zIndex:a=gn.activeDot}=e,u=Le(Zf),c=Oge();if(t==null||c==null)return null;var f=t.find(d=>c.includes(d.payload));return Cr(f)?null:b.createElement(os,{zIndex:a},b.createElement(Tge,{point:f,childIndex:Number(u),mainColor:r,dataKey:i,activeDot:n,clipPath:o}))}var Age={},b3=Sn({name:"errorBars",initialState:Age,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(o=>o.dataKey===n.dataKey&&o.direction===n.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:V0e,replaceErrorBar:G0e,removeErrorBar:Y0e}=b3.actions,Rge=b3.reducer,Nge=["children"];function Mge(e,t){if(e==null)return{};var r,n,i=Dge(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Dge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zge={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Lge=b.createContext(zge);function Uge(e){var{children:t}=e,r=Mge(e,Nge);return b.createElement(Lge.Provider,{value:r},t)}function w3(e,t){var r,n,i=Le(f=>oa(f,e)),o=Le(f=>aa(f,t)),a=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:kr.allowDataOverflow,u=(n=o==null?void 0:o.allowDataOverflow)!==null&&n!==void 0?n:$r.allowDataOverflow,c=a||u;return{needClip:c,needClipX:a,needClipY:u}}function Fge(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=j_(),{needClipX:o,needClipY:a,needClip:u}=w3(t,r);if(!u||!i)return null;var{x:c,y:f,width:d,height:m}=i;return b.createElement("clipPath",{id:"clipPath-".concat(n)},b.createElement("rect",{x:o?c:c-d/2,y:a?f:f-m/2,width:o?d:d*2,height:a?m:m*2}))}var Cw={exports:{}},Ew={};/**
|
|
275
|
-
* @license React
|
|
276
|
-
* use-sync-external-store-with-selector.production.js
|
|
277
|
-
*
|
|
278
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
279
|
-
*
|
|
280
|
-
* This source code is licensed under the MIT license found in the
|
|
281
|
-
* LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/var _2;function Bge(){if(_2)return Ew;_2=1;var e=zu();function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,u=e.useDebugValue;return Ew.useSyncExternalStoreWithSelector=function(c,f,d,m,h){var g=i(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=a(function(){function w(O){if(!k){if(k=!0,C=O,O=m(O),h!==void 0&&y.hasValue){var E=y.value;if(h(E,O))return $=E}return $=O}if(E=$,r(C,O))return E;var j=m(O);return h!==void 0&&h(E,j)?(C=O,E):(C=O,$=j)}var k=!1,C,$,P=d===void 0?null:d;return[function(){return w(f())},P===null?void 0:function(){return w(P())}]},[f,d,m,h]);var x=n(c,g[0],g[1]);return o(function(){y.hasValue=!0,y.value=x},[x]),u(x),x},Ew}var P2;function Wge(){return P2||(P2=1,Cw.exports=Bge()),Cw.exports}Wge();function Kge(e){e()}function Hge(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Kge(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var O2={notify(){},get:()=>[]};function Zge(e,t){let r,n=O2,i=0,o=!1;function a(x){d();const w=n.subscribe(x);let k=!1;return()=>{k||(k=!0,w(),m())}}function u(){n.notify()}function c(){y.onStateChange&&y.onStateChange()}function f(){return o}function d(){i++,r||(r=e.subscribe(c),n=Hge())}function m(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=O2)}function h(){o||(o=!0,d())}function g(){o&&(o=!1,m())}const y={addNestedSub:a,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:f,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>n};return y}var qge=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vge=qge(),Gge=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Yge=Gge(),Xge=()=>Vge||Yge?b.useLayoutEffect:b.useEffect,Qge=Xge();function C2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jge(e,t){if(C2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!C2(e[r[i]],t[r[i]]))return!1;return!0}var Iw=Symbol.for("react-redux-context"),Tw=typeof globalThis<"u"?globalThis:{};function eye(){if(!b.createContext)return{};const e=Tw[Iw]??(Tw[Iw]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var tye=eye();function rye(e){const{children:t,context:r,serverState:n,store:i}=e,o=b.useMemo(()=>{const c=Zge(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),a=b.useMemo(()=>i.getState(),[i]);Qge(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,a]);const u=r||tye;return b.createElement(u.Provider,{value:o},t)}var nye=rye,iye=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle"]);function oye(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function A_(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(iye.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Jge(e[n],t[n]))return!1}else if(!oye(e[n],t[n]))return!1;return!0}var aye=e=>{var{chartData:t}=e,r=Ir(),n=Wn();return b.useEffect(()=>n?()=>{}:(r(qA(t)),()=>{r(qA(void 0))}),[t,r,n]),null},E2={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},x3=Sn({name:"brush",initialState:E2,reducers:{setBrushSettings(e,t){return t.payload==null?E2:t.payload}}}),{setBrushSettings:X0e}=x3.actions,sye=x3.reducer;function lye(e,t,r){return(t=uye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uye(e){var t=cye(e,"string");return typeof t=="symbol"?t:t+""}function cye(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class R_{static create(t){return new R_(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}lye(R_,"EPS",1e-4);function fye(e){return(e%180+180)%180}var dye=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=fye(i),a=o*Math.PI/180,u=Math.atan(n/r),c=a>u&&a<Math.PI-u?n/Math.sin(a):r/Math.cos(a);return Math.abs(c)},pye={dots:[],areas:[],lines:[]},S3=Sn({name:"referenceElements",initialState:pye,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ni(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ni(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ni(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Q0e,removeDot:J0e,addArea:ewe,removeArea:twe,addLine:rwe,removeLine:nwe}=S3.actions,mye=S3.reducer,hye=b.createContext(void 0),vye=e=>{var{children:t}=e,[r]=b.useState("".concat(Af("recharts"),"-clip")),n=j_();if(n==null)return null;var{x:i,y:o,width:a,height:u}=n;return b.createElement(hye.Provider,{value:r},b.createElement("defs",null,b.createElement("clipPath",{id:r},b.createElement("rect",{x:i,y:o,height:u,width:a}))),t)};function k3(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t)r.push(e[n]);return r}function gye(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return dye(n,r)}function yye(e,t,r){var n=r==="width",{x:i,y:o,width:a,height:u}=e;return t===1?{start:n?i:o,end:n?i+a:o+u}:{start:n?i+a:o+u,end:n?i:o}}function lv(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function bye(e,t){return k3(e,t+1)}function wye(e,t,r,n,i){for(var o=(n||[]).slice(),{start:a,end:u}=t,c=0,f=1,d=a,m=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:k3(n,f)};var x=c,w,k=()=>(w===void 0&&(w=r(y,x)),w),C=y.coordinate,$=c===0||lv(e,C,k,d,u);$||(c=0,d=a,f+=1),$&&(d=C+e*(k()/2+i),c+=f)},h;f<=o.length;)if(h=m(),h)return h.v;return[]}function I2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(r),!0).forEach(function(n){xye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xye(e,t,r){return(t=Sye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sye(e){var t=kye(e,"string");return typeof t=="symbol"?t:t+""}function kye(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ye(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,{start:u}=t,{end:c}=t,f=function(h){var g=o[h],y,x=()=>(y===void 0&&(y=r(g,h)),y);if(h===a-1){var w=e*(g.coordinate+e*x()/2-c);o[h]=g=Kr(Kr({},g),{},{tickCoord:w>0?g.coordinate-w*e:g.coordinate})}else o[h]=g=Kr(Kr({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var k=lv(e,g.tickCoord,x,u,c);k&&(c=g.tickCoord-e*(x()/2+i),o[h]=Kr(Kr({},g),{},{isShow:!0}))}},d=a-1;d>=0;d--)f(d);return o}function _ye(e,t,r,n,i,o){var a=(n||[]).slice(),u=a.length,{start:c,end:f}=t;if(o){var d=n[u-1],m=r(d,u-1),h=e*(d.coordinate+e*m/2-f);if(a[u-1]=d=Kr(Kr({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate}),d.tickCoord!=null){var g=lv(e,d.tickCoord,()=>m,c,f);g&&(f=d.tickCoord-e*(m/2+i),a[u-1]=Kr(Kr({},d),{},{isShow:!0}))}}for(var y=o?u-1:u,x=function(C){var $=a[C],P,O=()=>(P===void 0&&(P=r($,C)),P);if(C===0){var E=e*($.coordinate-e*O()/2-c);a[C]=$=Kr(Kr({},$),{},{tickCoord:E<0?$.coordinate-E*e:$.coordinate})}else a[C]=$=Kr(Kr({},$),{},{tickCoord:$.coordinate});if($.tickCoord!=null){var j=lv(e,$.tickCoord,O,c,f);j&&(c=$.tickCoord+e*(O()/2+i),a[C]=Kr(Kr({},$),{},{isShow:!0}))}},w=0;w<y;w++)x(w);return a}function Pye(e,t,r){var{tick:n,ticks:i,viewBox:o,minTickGap:a,orientation:u,interval:c,tickFormatter:f,unit:d,angle:m}=e;if(!i||!i.length||!n)return[];if(Fe(c)||Td.isSsr){var h;return(h=bye(i,Fe(c)?c:0))!==null&&h!==void 0?h:[]}var g=[],y=u==="top"||u==="bottom"?"width":"height",x=d&&y==="width"?yf(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},w=($,P)=>{var O=typeof f=="function"?f($.value,P):$.value;return y==="width"?gye(yf(O,{fontSize:t,letterSpacing:r}),x,m):yf(O,{fontSize:t,letterSpacing:r})[y]},k=i.length>=2?Ti(i[1].coordinate-i[0].coordinate):1,C=yye(o,k,y);return c==="equidistantPreserveStart"?wye(k,C,w,i,a):(c==="preserveStart"||c==="preserveStartEnd"?g=_ye(k,C,w,i,a,c==="preserveStartEnd"):g=$ye(k,C,w,i,a),g.filter($=>$.isShow))}var Oye=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){Array.from(t).forEach(d=>{if(d){var m=d.getBoundingClientRect();m.width>a&&(a=m.width)}});var u=r?r.getBoundingClientRect().width:0,c=i+o,f=a+c+u+(r?n:0);return Math.round(f)}return 0},Cye=["axisLine","width","height","className","hide","ticks","axisType"];function Eye(e,t){if(e==null)return{};var r,n,i=Iye(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Iye(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cl.apply(null,arguments)}function T2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T2(Object(r),!0).forEach(function(n){Tye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tye(e,t,r){return(t=jye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jye(e){var t=Aye(e,"string");return typeof t=="symbol"?t:t+""}function Aye(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qs={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:gn.axis};function Rye(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:a,axisLine:u,otherSvgProps:c}=e;if(!u)return null;var f=ar(ar(ar({},c),Zo(u)),{},{fill:"none"});if(o==="top"||o==="bottom"){var d=+(o==="top"&&!a||o==="bottom"&&a);f=ar(ar({},f),{},{x1:t,y1:r+d*i,x2:t+n,y2:r+d*i})}else{var m=+(o==="left"&&!a||o==="right"&&a);f=ar(ar({},f),{},{x1:t+m*n,y1:r,x2:t+m*n,y2:r+i})}return b.createElement("line",cl({},f,{className:ve("recharts-cartesian-axis-line",cg(u,"className"))}))}function Nye(e,t,r,n,i,o,a,u,c){var f,d,m,h,g,y,x=u?-1:1,w=e.tickSize||a,k=Fe(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":f=d=e.coordinate,h=r+ +!u*i,m=h-x*w,y=m-x*c,g=k;break;case"left":m=h=e.coordinate,d=t+ +!u*n,f=d-x*w,g=f-x*c,y=k;break;case"right":m=h=e.coordinate,d=t+ +u*n,f=d+x*w,g=f+x*c,y=k;break;default:f=d=e.coordinate,h=r+ +u*i,m=h+x*w,y=m+x*c,g=k;break}return{line:{x1:f,y1:m,x2:d,y2:h},tick:{x:g,y}}}function Mye(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Dye(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function zye(e){var{option:t,tickProps:r,value:n}=e,i,o=ve(r.className,"recharts-cartesian-axis-tick-value");if(b.isValidElement(t))i=b.cloneElement(t,ar(ar({},r),{},{className:o}));else if(typeof t=="function")i=t(ar(ar({},r),{},{className:o}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=ve(a,t==null?void 0:t.className)),i=b.createElement(I_,cl({},r,{className:a}),n)}return i}var Lye=b.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:a,unit:u,padding:c,tickTextProps:f,orientation:d,mirror:m,x:h,y:g,width:y,height:x,tickSize:w,tickMargin:k,fontSize:C,letterSpacing:$,getTicksConfig:P,events:O,axisType:E}=e,j=Pye(ar(ar({},P),{},{ticks:r}),C,$),R=Mye(d,m),D=Dye(d,m),L=Zo(P),M=ag(n),I={};typeof i=="object"&&(I=i);var W=ar(ar({},L),{},{fill:"none"},I),K=j.map(ee=>ar({entry:ee},Nye(ee,h,g,y,x,d,w,m,k))),Z=K.map(ee=>{var{entry:F,line:z}=ee;return b.createElement(Va,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(F.value,"-").concat(F.coordinate,"-").concat(F.tickCoord)},i&&b.createElement("line",cl({},W,z,{className:ve("recharts-cartesian-axis-tick-line",cg(i,"className"))})))}),V=K.map((ee,F)=>{var{entry:z,tick:Y}=ee,N=ar(ar(ar(ar({textAnchor:R,verticalAnchor:D},L),{},{stroke:"none",fill:o},M),Y),{},{index:F,payload:z,visibleTicksCount:j.length,tickFormatter:a,padding:c},f);return b.createElement(Va,cl({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(z.value,"-").concat(z.coordinate,"-").concat(z.tickCoord)},Die(O,z,F)),n&&b.createElement(zye,{option:n,tickProps:N,value:"".concat(typeof a=="function"?a(z.value,F):z.value).concat(u||"")}))});return b.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},V.length>0&&b.createElement(os,{zIndex:gn.label},b.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},V)),Z.length>0&&b.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},Z))}),Uye=b.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:o,hide:a,ticks:u,axisType:c}=e,f=Eye(e,Cye),[d,m]=b.useState(""),[h,g]=b.useState(""),y=b.useRef(null);b.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var w;return Oye({ticks:y.current,label:(w=e.labelRef)===null||w===void 0?void 0:w.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=b.useCallback(w=>{if(w){var k=w.getElementsByClassName("recharts-cartesian-axis-tick-value");y.current=k;var C=k[0];if(C){var $=window.getComputedStyle(C),P=$.fontSize,O=$.letterSpacing;(P!==d||O!==h)&&(m(P),g(O))}}},[d,h]);return a||n!=null&&n<=0||i!=null&&i<=0?null:b.createElement(os,{zIndex:e.zIndex},b.createElement(Va,{className:ve("recharts-cartesian-axis",o)},b.createElement(Rye,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Zo(e)}),b.createElement(Lye,{ref:x,axisType:c,events:f,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y}),b.createElement(Jhe,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},b.createElement(uve,{label:e.label,labelRef:e.labelRef}),e.children)))}),N_=b.forwardRef((e,t)=>{var r=Bn(e,Qs);return b.createElement(Uye,cl({},r,{ref:t}))});N_.displayName="CartesianAxis";var $3=(e,t,r,n)=>O5(e,"xAxis",t,n),_3=(e,t,r,n)=>P5(e,"xAxis",t,n),P3=(e,t,r,n)=>O5(e,"yAxis",r,n),O3=(e,t,r,n)=>P5(e,"yAxis",r,n),Fye=ie([zt,$3,P3,_3,O3],(e,t,r,n,i)=>ts(e,"xAxis")?Mh(t,n,!1):Mh(r,i,!1)),Bye=(e,t,r,n,i)=>i;function Wye(e){return e.type==="line"}var Kye=ie([GF,Bye],(e,t)=>e.filter(Wye).find(r=>r.id===t)),Hye=ie([zt,$3,P3,_3,O3,Kye,Fye,t_],(e,t,r,n,i,o,a,u)=>{var{chartData:c,dataStartIndex:f,dataEndIndex:d}=u;if(!(o==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:m,data:h}=o,g;if(h!=null&&h.length>0?g=h:g=c==null?void 0:c.slice(f,d+1),g!=null)return dbe({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:m,bandSize:a,displayedData:g})}});function Zye(e){var t=ag(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:o}=t,a=Number(i),u=Number(o);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(u)||u<0)&&(u=n),{r:a,strokeWidth:u}}return{r,strokeWidth:n}}var qye=["id"],Vye=["type","layout","connectNulls","needClip","shape"],Gye=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vf.apply(null,arguments)}function j2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(r),!0).forEach(function(n){Yye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yye(e,t,r){return(t=Xye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xye(e){var t=Qye(e,"string");return typeof t=="symbol"?t:t+""}function Qye(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M_(e,t){if(e==null)return{};var r,n,i=Jye(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Jye(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ebe=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:gU(r,t),payload:e}]},tbe=b.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:u,unit:c,tooltipType:f}=e,d={dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:gU(a,t),hide:u,type:f,color:n,unit:c}};return b.createElement(Hve,{tooltipEntrySettings:d})}),C3=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function rbe(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var nbe=(e,t,r)=>{var n=r.reduce((m,h)=>m+h);if(!n)return C3(t,e);for(var i=Math.floor(e/n),o=e%n,a=t-e,u=[],c=0,f=0;c<r.length;f+=r[c],++c)if(f+r[c]>o){u=[...r.slice(0,c),o-f];break}var d=u.length%2===0?[0,a]:[a];return[...rbe(r,i),...u,...d].map(m=>"".concat(m,"px")).join(", ")};function ibe(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:o,needClip:a}=n,{id:u}=n,c=M_(n,qye),f=Zo(c);return b.createElement(dge,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:f,needClip:a,clipPathId:t})}function obe(e){var{showLabels:t,children:r,points:n}=e,i=b.useMemo(()=>n==null?void 0:n.map(o=>{var a,u,c={x:(a=o.x)!==null&&a!==void 0?a:0,y:(u=o.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return io(io({},c),{},{value:o.value,payload:o.payload,viewBox:c,parentViewBox:void 0,fill:void 0})}),[n]);return b.createElement(wve,{value:t?i:void 0},r)}function A2(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:o}=e,{type:a,layout:u,connectNulls:c,needClip:f,shape:d}=o,m=M_(o,Vye),h=io(io({},rn(m)),{},{fill:"none",className:"recharts-line-curve",clipPath:f?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:u,connectNulls:c,strokeDasharray:i??o.strokeDasharray});return b.createElement(b.Fragment,null,(n==null?void 0:n.length)>1&&b.createElement(Kve,Vf({shapeType:"curve",option:d},h,{pathRef:r})),b.createElement(ibe,{points:n,clipPathId:t,props:o}))}function abe(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function sbe(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:u,isAnimationActive:c,animationBegin:f,animationDuration:d,animationEasing:m,animateNewValues:h,width:g,height:y,onAnimationEnd:x,onAnimationStart:w}=r,k=i.current,C=T$(a,"recharts-line-"),$=b.useRef(C),[P,O]=b.useState(!1),E=!P,j=b.useCallback(()=>{typeof x=="function"&&x(),O(!1)},[x]),R=b.useCallback(()=>{typeof w=="function"&&w(),O(!0)},[w]),D=abe(n.current),L=b.useRef(0);$.current!==C&&(L.current=o.current,$.current=C);var M=L.current;return b.createElement(obe,{points:a,showLabels:E},r.children,b.createElement(I$,{animationId:C,begin:f,duration:d,isActive:c,easing:m,onAnimationEnd:j,onAnimationStart:R,key:C},I=>{var W=hn(M,D+M,I),K=Math.min(W,D),Z;if(c)if(u){var V="".concat(u).split(/[,\s]+/gim).map(z=>parseFloat(z));Z=nbe(K,D,V)}else Z=C3(D,K);else Z=u==null?void 0:String(u);if(I>0&&D>0&&(i.current=a,o.current=Math.max(o.current,K)),k){var ee=k.length/a.length,F=I===1?a:a.map((z,Y)=>{var N=Math.floor(Y*ee);if(k[N]){var G=k[N];return io(io({},z),{},{x:hn(G.x,z.x,I),y:hn(G.y,z.y,I)})}return h?io(io({},z),{},{x:hn(g*2,z.x,I),y:hn(y/2,z.y,I)}):io(io({},z),{},{x:z.x,y:z.y})});return i.current=F,b.createElement(A2,{props:r,points:F,clipPathId:t,pathRef:n,strokeDasharray:Z})}return b.createElement(A2,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:Z})}),b.createElement(kve,{label:r.label}))}function lbe(e){var{clipPathId:t,props:r}=e,n=b.useRef(null),i=b.useRef(0),o=b.useRef(null);return b.createElement(sbe,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:o})}var ube=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Hr(e.payload,t)}};class cbe extends b.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:o,yAxisId:a,top:u,left:c,width:f,height:d,id:m,needClip:h,zIndex:g}=this.props;if(t)return null;var y=ve("recharts-line",i),x=m,{r:w,strokeWidth:k}=Zye(r),C=h3(r),$=w*2+k,P=h?"url(#clipPath-".concat(C?"":"dots-").concat(x,")"):void 0;return b.createElement(os,{zIndex:g},b.createElement(Va,{className:y},h&&b.createElement("defs",null,b.createElement(Fge,{clipPathId:x,xAxisId:o,yAxisId:a}),!C&&b.createElement("clipPath",{id:"clipPath-dots-".concat(x)},b.createElement("rect",{x:c-$/2,y:u-$/2,width:f+$,height:d+$}))),b.createElement(Uge,{xAxisId:o,yAxisId:a,data:n,dataPointFormatter:ube,errorBarOffset:0},b.createElement(lbe,{props:this.props,clipPathId:x}))),b.createElement(jge,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:P}))}}var E3={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:gn.line,type:"linear"};function fbe(e){var t=Bn(e,E3),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:u,dot:c,hide:f,isAnimationActive:d,label:m,legendType:h,xAxisId:g,yAxisId:y,id:x}=t,w=M_(t,Gye),{needClip:k}=w3(g,y),C=j_(),$=_g(),P=Wn(),O=Le(L=>Hye(L,g,y,P,x));if($!=="horizontal"&&$!=="vertical"||O==null||C==null)return null;var{height:E,width:j,x:R,y:D}=C;return b.createElement(cbe,Vf({},w,{id:x,connectNulls:u,dot:c,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:d,hide:f,label:m,legendType:h,xAxisId:g,yAxisId:y,points:O,layout:$,height:E,width:j,left:R,top:D,needClip:k}))}function dbe(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:u,displayedData:c}=e;return c.map((f,d)=>{var m=Hr(f,a);if(t==="horizontal"){var h=ij({axis:r,ticks:i,bandSize:u,entry:f,index:d}),g=Cr(m)?null:n.scale(m);return{x:h,y:g,value:m,payload:f}}var y=Cr(m)?null:r.scale(m),x=ij({axis:n,ticks:o,bandSize:u,entry:f,index:d});return y==null||x==null?null:{x:y,y:x,value:m,payload:f}}).filter(Boolean)}function pbe(e){var t=Bn(e,E3),r=Wn();return b.createElement(Yve,{id:t.id,type:"line"},n=>b.createElement(b.Fragment,null,b.createElement(Zve,{legendPayload:ebe(t)}),b.createElement(tbe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType}),b.createElement(nge,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),b.createElement(fbe,Vf({},t,{id:n}))))}var I3=b.memo(pbe,A_);I3.displayName="Line";var mbe=["domain","range"],hbe=["domain","range"];function R2(e,t){if(e==null)return{};var r,n,i=vbe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vbe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function N2(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function T3(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=R2(e,mbe),{domain:o,range:a}=t,u=R2(t,hbe);return!N2(r,o)||!N2(n,a)?!1:A_(i,u)}var gbe=["dangerouslySetInnerHTML","ticks"],ybe=["id"];function xS(){return xS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xS.apply(null,arguments)}function M2(e,t){if(e==null)return{};var r,n,i=bbe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bbe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function wbe(e){var t=Ir(),r=b.useRef(null);return b.useLayoutEffect(()=>{r.current===null?t(gge(e)):r.current!==e&&t(yge({prev:r.current,next:e})),r.current=e},[e,t]),b.useLayoutEffect(()=>()=>{r.current&&(t(bge(r.current)),r.current=null)},[t]),null}var xbe=e=>{var{xAxisId:t,className:r}=e,n=Le(bU),i=Wn(),o="xAxis",a=Le(w=>Qu(w,o,t,i)),u=Le(w=>_5(w,o,t,i)),c=Le(w=>Vde(w,t)),f=Le(w=>epe(w,t)),d=Le(w=>HF(w,t));if(c==null||f==null||d==null)return null;var{dangerouslySetInnerHTML:m,ticks:h}=e,g=M2(e,gbe),{id:y}=d,x=M2(d,ybe);return b.createElement(N_,xS({},g,x,{scale:a,x:f.x,y:f.y,width:c.width,height:c.height,className:ve("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:u,axisType:o}))},Sbe={allowDataOverflow:kr.allowDataOverflow,allowDecimals:kr.allowDecimals,allowDuplicatedCategory:kr.allowDuplicatedCategory,angle:kr.angle,axisLine:Qs.axisLine,height:kr.height,hide:!1,includeHidden:kr.includeHidden,interval:kr.interval,minTickGap:kr.minTickGap,mirror:kr.mirror,orientation:kr.orientation,padding:kr.padding,reversed:kr.reversed,scale:kr.scale,tick:kr.tick,tickCount:kr.tickCount,tickLine:Qs.tickLine,tickSize:Qs.tickSize,type:kr.type,xAxisId:0},kbe=e=>{var t=Bn(e,Sbe);return b.createElement(b.Fragment,null,b.createElement(wbe,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),b.createElement(xbe,t))},j3=b.memo(kbe,T3);j3.displayName="XAxis";var $be=["dangerouslySetInnerHTML","ticks"],_be=["id"];function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SS.apply(null,arguments)}function D2(e,t){if(e==null)return{};var r,n,i=Pbe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pbe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Obe(e){var t=Ir(),r=b.useRef(null);return b.useLayoutEffect(()=>{r.current===null?t(wge(e)):r.current!==e&&t(xge({prev:r.current,next:e})),r.current=e},[e,t]),b.useLayoutEffect(()=>()=>{r.current&&(t(Sge(r.current)),r.current=null)},[t]),null}var Cbe=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,o=b.useRef(null),a=b.useRef(null),u=Le(bU),c=Wn(),f=Ir(),d="yAxis",m=Le(O=>Qu(O,d,t,c)),h=Le(O=>npe(O,t)),g=Le(O=>rpe(O,t)),y=Le(O=>_5(O,d,t,c)),x=Le(O=>ZF(O,t));if(b.useLayoutEffect(()=>{if(!(n!=="auto"||!h||T_(i)||b.isValidElement(i)||x==null)){var O=o.current;if(O){var E=O.getCalculatedWidth();Math.round(h.width)!==Math.round(E)&&f(kge({id:t,width:E}))}}},[y,h,f,i,t,n,x]),h==null||g==null||x==null)return null;var{dangerouslySetInnerHTML:w,ticks:k}=e,C=D2(e,$be),{id:$}=x,P=D2(x,_be);return b.createElement(N_,SS({},C,P,{ref:o,labelRef:a,scale:m,x:g.x,y:g.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:h.width,height:h.height,className:ve("recharts-".concat(d," ").concat(d),r),viewBox:u,ticks:y,axisType:d}))},Ebe={allowDataOverflow:$r.allowDataOverflow,allowDecimals:$r.allowDecimals,allowDuplicatedCategory:$r.allowDuplicatedCategory,angle:$r.angle,axisLine:Qs.axisLine,hide:!1,includeHidden:$r.includeHidden,interval:$r.interval,minTickGap:$r.minTickGap,mirror:$r.mirror,orientation:$r.orientation,padding:$r.padding,reversed:$r.reversed,scale:$r.scale,tick:$r.tick,tickCount:$r.tickCount,tickLine:Qs.tickLine,tickSize:Qs.tickSize,type:$r.type,width:$r.width,yAxisId:0},Ibe=e=>{var t=Bn(e,Ebe);return b.createElement(b.Fragment,null,b.createElement(Obe,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),b.createElement(Cbe,t))},A3=b.memo(Ibe,T3);A3.displayName="YAxis";var Tbe=(e,t)=>t,D_=ie([Tbe,zt,BF,vr,B5,sa,yme,zr],_me),z_=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},R3=li("mouseClick"),N3=Cd();N3.startListening({actionCreator:R3,effect:(e,t)=>{var r=e.payload,n=D_(t.getState(),z_(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(vpe({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var kS=li("mouseMove"),M3=Cd(),Rm=null;M3.startListening({actionCreator:kS,effect:(e,t)=>{var r=e.payload;Rm!==null&&cancelAnimationFrame(Rm);var n=z_(r);Rm=requestAnimationFrame(()=>{var i=t.getState(),o=w_(i,i.tooltip.settings.shared);if(o==="axis"){var a=D_(i,n);(a==null?void 0:a.activeIndex)!=null?t.dispatch(R5({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(A5())}Rm=null})}});var z2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},D3=Sn({name:"rootProps",initialState:z2,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:z2.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),jbe=D3.reducer,{updateOptions:Abe}=D3.actions,z3=Sn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:iwe}=z3.actions,Rbe=z3.reducer,L3=li("keyDown"),U3=li("focus"),L_=Cd();L_.startListening({actionCreator:L3,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var a=x_(i,ec(r),zd(r),Wd(r)),u=a==null?-1:Number(a);if(!(!Number.isFinite(u)||u<0)){var c=sa(r);if(o==="Enter"){var f=nv(r,"axis","hover",String(i.index));t.dispatch(hS({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:f}));return}var d=spe(r),m=d==="left-to-right"?1:-1,h=o==="ArrowRight"?1:-1,g=u+h*m;if(!(c==null||g>=c.length||g<0)){var y=nv(r,"axis","hover",String(g));t.dispatch(hS({active:!0,activeIndex:g.toString(),activeDataKey:void 0,activeCoordinate:y}))}}}}}});L_.startListening({actionCreator:U3,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var o="0",a=nv(r,"axis","hover",String(o));t.dispatch(hS({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:a}))}}}});var Qn=li("externalEvent"),F3=Cd(),jw=new Map;F3.startListening({actionCreator:Qn,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,o=jw.get(i);o!==void 0&&cancelAnimationFrame(o);var a=requestAnimationFrame(()=>{try{var u=t.getState(),c={activeCoordinate:rme(u),activeDataKey:eme(u),activeIndex:Zf(u),activeLabel:H5(u),activeTooltipIndex:Zf(u),isTooltipActive:nme(u)};r(c,n)}finally{jw.delete(i)}});jw.set(i,a)}}});var Nbe=ie([Ju],e=>e.tooltipItemPayloads),Mbe=ie([Nbe,Fd,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(u=>u.settings.dataKey===n);if(i!=null){var{positions:o}=i;if(o!=null){var a=t(o,r);return a}}}),B3=li("touchMove"),W3=Cd();W3.startListening({actionCreator:B3,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=w_(n,n.tooltip.settings.shared);if(i==="axis"){var o=D_(n,z_({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));(o==null?void 0:o.activeIndex)!=null&&t.dispatch(R5({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var a,u=r.touches[0];if(document.elementFromPoint==null)return;var c=document.elementFromPoint(u.clientX,u.clientY);if(!c||!c.getAttribute)return;var f=c.getAttribute(Xae),d=(a=c.getAttribute(Qae))!==null&&a!==void 0?a:void 0,m=Mbe(t.getState(),f,d);t.dispatch(hpe({activeDataKey:d,activeIndex:f,activeCoordinate:m}))}}}});var Dbe=B6({brush:sye,cartesianAxis:$ge,chartData:nhe,errorBars:Rge,graphicalItems:tge,layout:Nae,legend:qse,options:Qme,polarAxis:_ve,polarOptions:Rbe,referenceElements:mye,rootProps:jbe,tooltip:gpe,zIndex:Lme}),zbe=function(t){return aae({reducer:Dbe,preloadedState:t,middleware:r=>{var n;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((n="es6")!==null&&n!==void 0?n:"")}).concat([N3.middleware,M3.middleware,L_.middleware,F3.middleware,W3.middleware])},enhancers:r=>{var n=r;return typeof r=="function"&&(n=r()),n.concat(nU({type:"raf"}))},devTools:Td.devToolsEnabled})};function Lbe(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Wn(),o=b.useRef(null);if(i)return r;o.current==null&&(o.current=zbe(t));var a=y$;return b.createElement(nye,{context:a,store:o.current},r)}function Ube(e){var{layout:t,margin:r}=e,n=Ir(),i=Wn();return b.useEffect(()=>{i||(n(jae(t)),n(Tae(r)))},[n,i,t,r]),null}var Fbe=b.memo(Ube,A_);function Bbe(e){var t=Ir();return b.useEffect(()=>{t(Abe(e))},[t,e]),null}function L2(e){var{zIndex:t,isPanorama:r}=e,n=r?"recharts-zindex-panorama-":"recharts-zindex-",i=v3("".concat(n).concat(t)),o=Ir();return b.useLayoutEffect(()=>(o(Dme({zIndex:t,elementId:i,isPanorama:r})),()=>{o(zme({zIndex:t,isPanorama:r}))}),[o,t,i,r]),b.createElement("g",{tabIndex:-1,id:i})}function U2(e){var{children:t,isPanorama:r}=e,n=Le(Ome);if(!n||n.length===0)return t;var i=n.filter(a=>a<0),o=n.filter(a=>a>0);return b.createElement(b.Fragment,null,i.map(a=>b.createElement(L2,{key:a,zIndex:a,isPanorama:r})),t,o.map(a=>b.createElement(L2,{key:a,zIndex:a,isPanorama:r})))}var Wbe=["children"];function Kbe(e,t){if(e==null)return{};var r,n,i=Hbe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Hbe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uv.apply(null,arguments)}var Zbe={width:"100%",height:"100%",display:"block"},qbe=b.forwardRef((e,t)=>{var r=Ese(),n=Ise(),i=TU();if(!Ya(r)||!Ya(n))return null;var{children:o,otherAttributes:a,title:u,desc:c}=e,f,d;return a!=null&&(typeof a.tabIndex=="number"?f=a.tabIndex:f=i?0:void 0,typeof a.role=="string"?d=a.role:d=i?"application":void 0),b.createElement(o6,uv({},a,{title:u,desc:c,role:d,tabIndex:f,width:r,height:n,style:Zbe,ref:t}),o)}),Vbe=e=>{var{children:t}=e,r=Le(kg);if(!r)return null;var{width:n,height:i,y:o,x:a}=r;return b.createElement(o6,{width:n,height:i,x:a,y:o},t)},F2=b.forwardRef((e,t)=>{var{children:r}=e,n=Kbe(e,Wbe),i=Wn();return i?b.createElement(Vbe,null,b.createElement(U2,{isPanorama:!0},r)):b.createElement(qbe,uv({ref:t},n),b.createElement(U2,{isPanorama:!1},r))});function Gbe(){var e=Ir(),[t,r]=b.useState(null),n=Le(Yae);return b.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;Er(o)&&o!==n&&e(Rae(o))}},[t,e,n]),r}function B2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ybe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(r),!0).forEach(function(n){Xbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xbe(e,t,r){return(t=Qbe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qbe(e){var t=Jbe(e,"string");return typeof t=="symbol"?t:t+""}function Jbe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fl.apply(null,arguments)}var e0e=()=>(dhe(),null);function cv(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var t0e=b.forwardRef((e,t)=>{var r,n,i=b.useRef(null),[o,a]=b.useState({containerWidth:cv((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:cv((n=e.style)===null||n===void 0?void 0:n.height)}),u=b.useCallback((f,d)=>{a(m=>{var h=Math.round(f),g=Math.round(d);return m.containerWidth===h&&m.containerHeight===g?m:{containerWidth:h,containerHeight:g}})},[]),c=b.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null&&typeof ResizeObserver<"u"){var{width:d,height:m}=f.getBoundingClientRect();u(d,m);var h=y=>{var{width:x,height:w}=y[0].contentRect;u(x,w)},g=new ResizeObserver(h);g.observe(f),i.current=g}},[t,u]);return b.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[u]),b.createElement(b.Fragment,null,b.createElement(Pg,{width:o.containerWidth,height:o.containerHeight}),b.createElement("div",fl({ref:c},e)))}),r0e=b.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,o]=b.useState({containerWidth:cv(r),containerHeight:cv(n)}),a=b.useCallback((c,f)=>{o(d=>{var m=Math.round(c),h=Math.round(f);return d.containerWidth===m&&d.containerHeight===h?d:{containerWidth:m,containerHeight:h}})},[]),u=b.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null){var{width:f,height:d}=c.getBoundingClientRect();a(f,d)}},[t,a]);return b.createElement(b.Fragment,null,b.createElement(Pg,{width:i.containerWidth,height:i.containerHeight}),b.createElement("div",fl({ref:u},e)))}),n0e=b.forwardRef((e,t)=>{var{width:r,height:n}=e;return b.createElement(b.Fragment,null,b.createElement(Pg,{width:r,height:n}),b.createElement("div",fl({ref:t},e)))}),i0e=b.forwardRef((e,t)=>{var{width:r,height:n}=e;return Vo(r)||Vo(n)?b.createElement(r0e,fl({},e,{ref:t})):b.createElement(n0e,fl({},e,{ref:t}))});function o0e(e){return e===!0?t0e:i0e}var a0e=b.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:o,onContextMenu:a,onDoubleClick:u,onMouseDown:c,onMouseEnter:f,onMouseLeave:d,onMouseMove:m,onMouseUp:h,onTouchEnd:g,onTouchMove:y,onTouchStart:x,style:w,width:k,responsive:C,dispatchTouchEvents:$=!0}=e,P=b.useRef(null),O=Ir(),[E,j]=b.useState(null),[R,D]=b.useState(null),L=Gbe(),M=O$(),I=(M==null?void 0:M.width)>0?M.width:k,W=(M==null?void 0:M.height)>0?M.height:i,K=b.useCallback(Q=>{L(Q),typeof t=="function"&&t(Q),j(Q),D(Q),Q!=null&&(P.current=Q)},[L,t,j,D]),Z=b.useCallback(Q=>{O(R3(Q)),O(Qn({handler:o,reactEvent:Q}))},[O,o]),V=b.useCallback(Q=>{O(kS(Q)),O(Qn({handler:f,reactEvent:Q}))},[O,f]),ee=b.useCallback(Q=>{O(A5()),O(Qn({handler:d,reactEvent:Q}))},[O,d]),F=b.useCallback(Q=>{O(kS(Q)),O(Qn({handler:m,reactEvent:Q}))},[O,m]),z=b.useCallback(()=>{O(U3())},[O]),Y=b.useCallback(Q=>{O(L3(Q.key))},[O]),N=b.useCallback(Q=>{O(Qn({handler:a,reactEvent:Q}))},[O,a]),G=b.useCallback(Q=>{O(Qn({handler:u,reactEvent:Q}))},[O,u]),ae=b.useCallback(Q=>{O(Qn({handler:c,reactEvent:Q}))},[O,c]),ue=b.useCallback(Q=>{O(Qn({handler:h,reactEvent:Q}))},[O,h]),pe=b.useCallback(Q=>{O(Qn({handler:x,reactEvent:Q}))},[O,x]),le=b.useCallback(Q=>{$&&O(B3(Q)),O(Qn({handler:y,reactEvent:Q}))},[O,$,y]),he=b.useCallback(Q=>{O(Qn({handler:g,reactEvent:Q}))},[O,g]),ke=o0e(C);return b.createElement(Q5.Provider,{value:E},b.createElement(Une.Provider,{value:R},b.createElement(ke,{width:I??(w==null?void 0:w.width),height:W??(w==null?void 0:w.height),className:ve("recharts-wrapper",n),style:Ybe({position:"relative",cursor:"default",width:I,height:W},w),onClick:Z,onContextMenu:N,onDoubleClick:G,onFocus:z,onKeyDown:Y,onMouseDown:ae,onMouseEnter:V,onMouseLeave:ee,onMouseMove:F,onMouseUp:ue,onTouchEnd:he,onTouchMove:le,onTouchStart:pe,ref:K},b.createElement(e0e,null),r)))}),s0e=["width","height","responsive","children","className","style","compact","title","desc"];function l0e(e,t){if(e==null)return{};var r,n,i=u0e(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u0e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var c0e=b.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:o,className:a,style:u,compact:c,title:f,desc:d}=e,m=l0e(e,s0e),h=Zo(m);return c?b.createElement(b.Fragment,null,b.createElement(Pg,{width:r,height:n}),b.createElement(F2,{otherAttributes:h,title:f,desc:d},o)):b.createElement(a0e,{className:a,style:u,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},b.createElement(F2,{otherAttributes:h,title:f,desc:d,ref:t},b.createElement(vye,null,o)))});function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$S.apply(null,arguments)}var f0e={top:5,right:5,bottom:5,left:5},d0e={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:f0e,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},p0e=b.forwardRef(function(t,r){var n,i=Bn(t.categoricalChartProps,d0e),{chartName:o,defaultTooltipEventType:a,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,categoricalChartProps:f}=t,d={chartName:o,defaultTooltipEventType:a,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,eventEmitter:void 0};return b.createElement(Lbe,{preloadedState:{options:d},reduxStoreName:(n=f.id)!==null&&n!==void 0?n:o},b.createElement(aye,{chartData:f.data}),b.createElement(Fbe,{layout:i.layout,margin:i.margin}),b.createElement(Bbe,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),b.createElement(c0e,$S({},i,{ref:r})))}),m0e=["axis"],h0e=b.forwardRef((e,t)=>b.createElement(p0e,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:m0e,tooltipPayloadSearcher:Yme,categoricalChartProps:e,ref:t}));function U_({method:e,size:t="small"}){var i;const r=ea(),n=((i=r.palette.http)==null?void 0:i[e])??r.palette.primary.main;return A.jsx(f1,{size:t,label:e.toUpperCase(),sx:{fontWeight:700,letterSpacing:.6,bgcolor:n,color:r.palette.getContrastText(n)}})}function _S({value:e,size:t="small"}){const r=ea(),{label:n,color:i,variant:o}=(()=>{switch(e){case"experimental":return{label:"Experimental",color:r.palette.warning.main,variant:"outlined"};case"beta":return{label:"Beta",color:r.palette.info.main,variant:"outlined"};case"stable":return{label:"Stable",color:r.palette.status.success,variant:"filled"};case"deprecated":return{label:"Deprecated",color:r.palette.status.error,variant:"filled"};default:return{label:e,color:r.palette.primary.main,variant:"outlined"}}})();return A.jsx(f1,{size:t,label:n,variant:o,sx:{borderColor:i,bgcolor:o==="filled"?i:"transparent",color:o==="filled"?r.palette.getContrastText(i):i,fontWeight:500}})}function v0e({endpointId:e}){const{client:t}=GL(),r=b.useMemo(()=>t.build(r6[1]),[t]),{data:n,isLoading:i,error:o}=r.useEndpoint({params:{endpointId:e}});if(i&&!n)return A.jsx(yt,{sx:{py:4,textAlign:"center",color:"text.secondary"},children:A.jsx(lt,{variant:"body2",children:"Loading endpoint details…"})});if(o||!n)return A.jsx(yt,{sx:{py:4,textAlign:"center"},children:A.jsx(lt,{color:"error",variant:"body2",children:"Failed to load endpoint details."})});const{method:a,path:u,name:c,description:f,summary:d,tags:m,stability:h,contract:g,volumeTS:y,averageDurationMs:x,successRate:w,requests:k}=n.out;return A.jsxs(yt,{sx:{display:"flex",flexDirection:"column",gap:2,height:"100%"},children:[A.jsxs(yt,{children:[A.jsxs(no,{direction:"row",spacing:1,alignItems:"center",mb:1,children:[A.jsx(U_,{method:a}),A.jsx(lt,{variant:"h6",sx:{fontFamily:"monospace"},children:u})]}),A.jsxs(no,{direction:"row",spacing:1,alignItems:"center",mb:1,children:[A.jsx(lt,{variant:"subtitle1",children:c}),A.jsx(_S,{value:h})]}),d&&A.jsx(lt,{variant:"body2",color:"text.secondary",children:d}),f&&A.jsx(lt,{variant:"body2",sx:{mt:.5},children:f}),A.jsx(no,{direction:"row",spacing:.5,mt:1,flexWrap:"wrap",children:(m??[]).map(C=>A.jsx(yt,{mb:.5,children:A.jsx(lt,{variant:"caption",sx:{px:1,py:.25,borderRadius:1,bgcolor:"action.selected"},children:C})},C))})]}),A.jsx(Cf,{}),A.jsxs(no,{direction:"row",spacing:3,children:[A.jsxs(yt,{children:[A.jsx(lt,{variant:"overline",color:"text.secondary",children:"Success rate"}),A.jsxs(lt,{variant:"h6",children:[(w*100).toFixed(1),"%"]})]}),A.jsxs(yt,{children:[A.jsx(lt,{variant:"overline",color:"text.secondary",children:"Avg duration"}),A.jsxs(lt,{variant:"h6",children:[Math.round(x)," ms"]})]})]}),y.length>0&&A.jsxs(yt,{sx:{height:180},children:[A.jsx(lt,{variant:"overline",color:"text.secondary",children:"Request volume"}),A.jsx(Pse,{width:"100%",height:"100%",children:A.jsxs(h0e,{data:y,children:[A.jsx(j3,{dataKey:"timestamp",tickFormatter:C=>new Date(C).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}),A.jsx(A3,{allowDecimals:!1}),A.jsx(whe,{labelFormatter:C=>new Date(C).toLocaleString()}),A.jsx(I3,{type:"monotone",dataKey:"count",dot:!1})]})})]}),A.jsx(Cf,{}),A.jsxs(yt,{children:[A.jsx(lt,{variant:"subtitle2",gutterBottom:!0,children:"Contract"}),A.jsxs(no,{direction:"row",spacing:3,alignItems:"flex-start",children:[A.jsx(Nm,{label:"Query",schema:g.query}),A.jsx(Nm,{label:"Params",schema:g.params}),A.jsx(Nm,{label:"Body",schema:g.body}),A.jsx(Nm,{label:"Output",schema:g.output})]})]}),A.jsxs(yt,{sx:{mt:1},children:[A.jsx(lt,{variant:"subtitle2",gutterBottom:!0,children:"Recent requests"}),A.jsx(h1,{dense:!0,sx:{maxHeight:200,overflow:"auto"},children:k.slice(0,10).map(C=>A.jsx(bY,{disablePadding:!0,sx:{py:.5,borderBottom:"1px solid",borderColor:"divider"},children:A.jsx(AN,{primary:A.jsxs(no,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[A.jsxs(lt,{variant:"body2",children:[C.status," • ",C.durationMs," ms"]}),A.jsx(lt,{variant:"caption",color:"text.secondary",children:new Date(C.createdAt).toLocaleTimeString()})]}),secondary:A.jsxs(lt,{variant:"caption",color:"text.secondary",sx:{fontFamily:"monospace"},children:[C.method.toUpperCase()," ",C.path]})})},C.id))})]})]})}function Nm({label:e,schema:t}){return A.jsxs(yt,{sx:{minWidth:0},children:[A.jsx(lt,{variant:"caption",color:"text.secondary",children:e}),t?A.jsx(yt,{component:"pre",sx:{mt:.5,p:1,borderRadius:1,bgcolor:"background.default",fontSize:12,maxHeight:120,overflow:"auto"},children:PS(t)}):A.jsx(lt,{variant:"body2",color:"text.disabled",children:"–"})]})}function PS(e,t=0){if(!e)return"unknown";const r=" ".repeat(t);let n=`${r}${e.kind}`;if(e.optional&&(n+=" (optional)"),e.nullable&&(n+=" (nullable)"),e.description&&(n+=` – ${e.description}`),e.kind==="object"&&e.properties){n+=`
|
|
283
|
-
`;for(const[i,o]of Object.entries(e.properties))n+=`${r} ${i}:
|
|
284
|
-
${PS(o,t+2)}
|
|
285
|
-
`}else e.kind==="array"&&e.element?n+=` of
|
|
286
|
-
${PS(e.element,t+1)}`:e.kind==="enum"&&e.enumValues?n+=` [${e.enumValues.join(", ")}]`:e.kind==="literal"?n+=` = ${JSON.stringify(e.literal)}`:e.kind==="union"&&e.union&&(n+=`
|
|
287
|
-
`,e.union.forEach(i=>{n+=`${r} | ${i.kind}
|
|
288
|
-
`}));return n}const g0e=Fi(A.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),y0e=Fi(A.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),b0e=Fi(A.jsx("path",{d:"M8 5v14l11-7z"})),w0e=Fi(A.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));function x0e({title:e,searchPlaceholder:t="Search…",searchValue:r,onSearchChange:n,filtersSlot:i,actionsSlot:o}){const a=b.useCallback(u=>{n(u.target.value)},[n]);return A.jsxs(ix,{sx:{gap:2,flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",pb:1},children:[A.jsxs(yt,{sx:{display:"flex",flexDirection:"column",gap:1,flex:1},children:[e&&A.jsx(lt,{variant:"h6",component:"div",children:e}),A.jsxs(yt,{sx:{display:"flex",gap:1,alignItems:"center"},children:[A.jsx(ZX,{size:"small",value:r,onChange:a,placeholder:t,InputProps:{startAdornment:A.jsx(QG,{position:"start",children:A.jsx(w0e,{fontSize:"small"})})},sx:{minWidth:220,maxWidth:360}}),i]})]}),o&&A.jsx(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}function S0e({value:e,onChange:t}){const r=n=>{const o=(e==null?void 0:e.includes(n))?e==null?void 0:e.filter(a=>a!==n):[...e??[],n];t(o)};return A.jsx(no,{direction:"row",spacing:.5,children:kd.map(n=>A.jsx(yt,{onClick:()=>r(n),sx:{cursor:"pointer"},children:A.jsx(U_,{method:n,size:"small"})},n))})}function k0e({endpoints:e,total:t,filters:r,onFiltersChange:n,selectedEndpointId:i,onSelectEndpoint:o}){const a=h=>{n({...r,...h})},u=h=>{var y,x;const g=(y=r.stability)==null?void 0:y.includes(h);a({stability:g?(x=r.stability)==null?void 0:x.filter(w=>w!==h):[...r.stability??[],h]})},c=h=>{a({searchQuery:h})},f=()=>{a({orderDirection:r.orderDirection==="asc"?"desc":"asc"})},d=A.jsxs(no,{direction:"row",spacing:1,alignItems:"center",children:[A.jsx(S0e,{value:r.methods,onChange:h=>a({methods:h})}),A.jsx(no,{direction:"row",spacing:.5,children:e6.map(h=>A.jsx(yt,{onClick:()=>u(h),children:A.jsx(_S,{value:h,size:"small"})},h))})]}),m=A.jsxs(no,{direction:"row",spacing:1,alignItems:"center",children:[A.jsxs(b1,{size:"small",value:r.orderBy,onChange:h=>a({orderBy:h.target.value}),children:[A.jsx(Vb,{value:"path",children:"Path"}),A.jsx(Vb,{value:"timestamp",children:"Timestamp"}),A.jsx(Vb,{value:"duration",children:"Duration"})]}),A.jsx(rI,{title:`Sort ${r.orderDirection}`,children:A.jsx(Qw,{size:"small",onClick:f,children:r.orderDirection==="asc"?A.jsx(y0e,{fontSize:"small"}):A.jsx(g0e,{fontSize:"small"})})})]});return A.jsxs(yt,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[A.jsx(x0e,{title:"Endpoints",searchValue:r.searchQuery,onSearchChange:c,searchPlaceholder:"Search by path, name, tags…",filtersSlot:d,actionsSlot:m}),A.jsx(yt,{sx:{px:2,pb:1},children:A.jsxs(lt,{variant:"caption",color:"text.secondary",children:["Showing ",e.length,typeof t=="number"?` of ${t}`:""," endpoints"]})}),A.jsx(yt,{sx:{flex:1,overflow:"auto"},children:A.jsxs(xX,{size:"small",stickyHeader:!0,children:[A.jsx(NX,{children:A.jsxs(Gb,{children:[A.jsx(On,{sx:{width:90},children:"Method"}),A.jsx(On,{children:"Path"}),A.jsx(On,{children:"Name"}),A.jsx(On,{children:"Stability"}),A.jsx(On,{children:"Tags"}),A.jsx(On,{align:"right",children:"Play"})]})}),A.jsxs(PX,{children:[e.map(h=>{const g=h.id===i;return A.jsxs(Gb,{hover:!0,selected:g,sx:{cursor:"pointer"},onClick:()=>o(h.id),children:[A.jsx(On,{children:A.jsx(U_,{method:h.method})}),A.jsxs(On,{children:[A.jsx(lt,{variant:"body2",sx:{fontFamily:"monospace"},children:h.path}),h.summary&&A.jsx(lt,{variant:"caption",color:"text.secondary",children:h.summary})]}),A.jsx(On,{children:A.jsx(lt,{variant:"body2",children:h.name})}),A.jsx(On,{children:A.jsx(_S,{value:h.stability})}),A.jsx(On,{children:(h.tags??[]).map(y=>A.jsx(f1,{size:"small",label:y,sx:{mr:.5,mb:.25}},y))}),A.jsx(On,{align:"right",children:A.jsx(rI,{title:"Open in playground",children:A.jsx(Qw,{size:"small",onClick:y=>{y.stopPropagation(),o(h.id)},children:A.jsx(b0e,{fontSize:"small"})})})})]},h.id)}),e.length===0&&A.jsx(Gb,{children:A.jsx(On,{colSpan:6,children:A.jsx(yt,{sx:{py:6,textAlign:"center",color:"text.secondary"},children:A.jsx(lt,{variant:"body2",children:"No endpoints match the current filters."})})})})]})]})})]})}const $0e={searchQuery:"",methods:[],stability:[],orderBy:"path",orderDirection:"asc"};function Aw(){const{endpointId:e}=v9(),t=hv(),{client:r}=GL(),[n,i]=b.useState($0e),o=b.useMemo(()=>r.build(r6[0]),[r]),a=b.useMemo(()=>{var y,x;return{searchQuery:n.searchQuery||void 0,methods:(y=n.methods)!=null&&y.length?n.methods:void 0,stability:(x=n.stability)!=null&&x.length?n.stability:void 0,orderBy:n.orderBy,orderDirection:n.orderDirection,pagination_limit:0}},[n]),{data:u,isLoading:c,error:f}=o.useEndpoint({query:a}),d=y=>{t(`/${encodeURIComponent(y)}`)},m=(u==null?void 0:u.pages.flatMap(y=>y.out))??[];m.find(y=>y.id===e);const h=(()=>{var y;return c&&!u?A.jsx(yt,{sx:{py:8,display:"flex",justifyContent:"center",alignItems:"center"},children:A.jsx(mN,{size:32})}):f?A.jsx(yt,{sx:{p:3},children:A.jsx(lt,{color:"error",children:"Failed to load endpoints."})}):A.jsx(k0e,{endpoints:m,filters:n,onFiltersChange:i,selectedEndpointId:e,onSelectEndpoint:d,total:((y=u==null?void 0:u.pages[0])==null?void 0:y.meta.totalCount)||0})})(),g=e?A.jsx(v0e,{endpointId:e}):A.jsx(yt,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"text.secondary"},children:A.jsx(lt,{variant:"body1",children:"Select an endpoint to view details."})});return A.jsx(YX,{list:h,detail:g})}function _0e(){const e=vo();return b.useMemo(()=>e.pathname.startsWith("/presets")?"presets":e.pathname.startsWith("/history")?"history":e.pathname.startsWith("/logs")?"logs":"routes",[e.pathname]),A.jsx(GX,{children:A.jsxs(j9,{children:[A.jsx(rf,{path:"/",element:A.jsx(Aw,{})}),A.jsx(rf,{path:"/routes",element:A.jsx(Aw,{})}),A.jsx(rf,{path:"/:endpointId",element:A.jsx(Aw,{})}),A.jsx(rf,{path:"*",element:A.jsx(I9,{to:"/",replace:!0})})]})})}function P0e(){const e=document.getElementById("docs-root");if(e)return e;const t=document.createElement("div");return t.id="docs-root",document.body.appendChild(t),t}function O0e(){const e=document.getElementById("docs-config");if(!e)throw new Error("Docs config element not found");try{return JSON.parse(e.textContent||"{}")}catch(t){throw console.error("Failed to parse docs config",t),t}}const F_=O0e(),C0e=lR({key:"rrroutes-docs",nonce:F_.cspNonce}),E0e=(F_.docsBasePath||"").replace(/\/+$/,"")||"/",I0e=F_.baseUrl||window.location.origin,T0e=P0e();z8.createRoot(T0e).render(A.jsx(C8,{value:C0e,children:A.jsx(tK,{basename:E0e,children:A.jsx(_ne,{initialBaseUrl:I0e,children:A.jsx(_0e,{})})})}));
|
|
196
|
+
`,Fb=typeof ed!="string"?Id`
|
|
197
|
+
animation: ${ed} 1.4s linear infinite;
|
|
198
|
+
`:null,jb=typeof td!="string"?Id`
|
|
199
|
+
animation: ${td} 1.4s ease-in-out infinite;
|
|
200
|
+
`:null,Bb=e=>{const{classes:t,variant:o,color:i,disableShrink:a}=e,u={root:["root",o,`color${Ue(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Ue(o)}`,a&&"circleDisableShrink"]};return Mt(u,Db,t)},Ub=He("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`color${Ue(o.color)}`]]}})(_t(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Fb||{animation:`${ed} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ks()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Wb=He("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Vb=He("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${Ue(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})(_t(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:jb||{animation:`${td} 1.4s ease-in-out infinite`}}]}))),Zb=He("circle",{name:"MuiCircularProgress",slot:"Track"})(_t(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Hb=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiCircularProgress"}),{className:a,color:u="primary",disableShrink:c=!1,enableTrackSlot:d=!1,size:h=40,style:m,thickness:g=3.6,value:y=0,variant:x="indeterminate",...E}=i,C={...i,color:u,disableShrink:c,size:h,thickness:g,value:y,variant:x,enableTrackSlot:d},w=Bb(C),b={},I={},L={};if(x==="determinate"){const $=2*Math.PI*((In-g)/2);b.strokeDasharray=$.toFixed(3),L["aria-valuenow"]=Math.round(y),b.strokeDashoffset=`${((100-y)/100*$).toFixed(3)}px`,I.transform="rotate(-90deg)"}return Y.jsx(Ub,{className:$e(w.root,a),style:{width:h,height:h,...I,...m},ownerState:C,ref:o,role:"progressbar",...L,...E,children:Y.jsxs(Wb,{className:w.svg,ownerState:C,viewBox:`${In/2} ${In/2} ${In} ${In}`,children:[d?Y.jsx(Zb,{className:w.track,ownerState:C,cx:In,cy:In,r:(In-g)/2,fill:"none",strokeWidth:g,"aria-hidden":"true"}):null,Y.jsx(Vb,{className:w.circle,style:b,ownerState:C,cx:In,cy:In,r:(In-g)/2,fill:"none",strokeWidth:g})]})})});function Qb(e){return Pt("MuiIconButton",e)}const Jg=St("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Kb=e=>{const{classes:t,disabled:o,color:i,edge:a,size:u,loading:c}=e,d={root:["root",c&&"loading",o&&"disabled",i!=="default"&&`color${Ue(i)}`,a&&`edge${Ue(a)}`,`size${Ue(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Mt(d,Qb,t)},Gb=He(c0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.loading&&t.loading,o.color!=="default"&&t[`color${Ue(o.color)}`],o.edge&&t[`edge${Ue(o.edge)}`],t[`size${Ue(o.size)}`]]}})(_t(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_t(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ks()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ks()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Jg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Jg.loading}`]:{color:"transparent"}}))),qb=He("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Yb=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:u,className:c,color:d="default",disabled:h=!1,disableFocusRipple:m=!1,size:g="medium",id:y,loading:x=null,loadingIndicator:E,...C}=i,w=Qv(y),b=E??Y.jsx(Hb,{"aria-labelledby":w,color:"inherit",size:16}),I={...i,edge:a,color:d,disabled:h,disableFocusRipple:m,loading:x,loadingIndicator:b,size:g},L=Kb(I);return Y.jsxs(Gb,{id:x?w:y,className:$e(L.root,c),centerRipple:!0,focusRipple:!m,disabled:h||x,ref:o,...C,ownerState:I,children:[typeof x=="boolean"&&Y.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:Y.jsx(qb,{className:L.loadingIndicator,ownerState:I,children:x&&b})}),u]})});function Xb(e){return Pt("MuiTypography",e)}const ey=St("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Jb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},e2=WE(),t2=e=>{const{align:t,gutterBottom:o,noWrap:i,paragraph:a,variant:u,classes:c}=e,d={root:["root",u,e.align!=="inherit"&&`align${Ue(t)}`,o&&"gutterBottom",i&&"noWrap",a&&"paragraph"]};return Mt(d,Xb,c)},n2=He("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${Ue(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})(_t(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([o,i])=>o!=="inherit"&&i&&typeof i=="object").map(([o,i])=>({props:{variant:o},style:i})),...Object.entries(e.palette).filter(Ks()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${Ue(o)}`},style:{color:(e.vars||e).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}})),ty={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vi=S.forwardRef(function(t,o){const{color:i,...a}=xt({props:t,name:"MuiTypography"}),u=!Jb[i],c=e2({...a,...u&&{color:i}}),{align:d="inherit",className:h,component:m,gutterBottom:g=!1,noWrap:y=!1,paragraph:x=!1,variant:E="body1",variantMapping:C=ty,...w}=c,b={...c,align:d,color:i,className:h,component:m,gutterBottom:g,noWrap:y,paragraph:x,variant:E,variantMapping:C},I=m||(x?"p":C[E]||ty[E])||"span",L=t2(b);return Y.jsx(n2,{as:I,ref:o,className:$e(L.root,h),...w,ownerState:b,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...w.style}})});function r2(e){return Pt("MuiAppBar",e)}St("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const o2=e=>{const{color:t,position:o,classes:i}=e,a={root:["root",`color${Ue(t)}`,`position${Ue(o)}`]};return Mt(a,r2,i)},ny=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,i2=He(u0,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${Ue(o.position)}`],t[`color${Ue(o.color)}`]]}})(_t(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ks(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?ny(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?ny(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),s2=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiAppBar"}),{className:a,color:u="primary",enableColorOnDark:c=!1,position:d="fixed",...h}=i,m={...i,color:u,position:d,enableColorOnDark:c},g=o2(m);return Y.jsx(i2,{square:!0,component:"header",ownerState:m,elevation:4,className:$e(g.root,a,d==="fixed"&&"mui-fixed"),ref:o,...h})});function Cu(e){var t;return parseInt(S.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function a2(e){return typeof e=="function"?e():e}const l2=S.forwardRef(function(t,o){const{children:i,container:a,disablePortal:u=!1}=t,[c,d]=S.useState(null),h=Sr(S.isValidElement(i)?Cu(i):null,o);if(Ni(()=>{u||d(a2(a)||document.body)},[a,u]),Ni(()=>{if(c&&!u)return Kg(o,c),()=>{Kg(o,null)}},[o,c,u]),u){if(S.isValidElement(i)){const m={ref:h};return S.cloneElement(i,m)}return i}return c&&$v.createPortal(i,c)}),u2={entering:{opacity:1},entered:{opacity:1}},c2=S.forwardRef(function(t,o){const i=ku(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:u,appear:c=!0,children:d,easing:h,in:m,onEnter:g,onEntered:y,onEntering:x,onExit:E,onExited:C,onExiting:w,style:b,timeout:I=a,TransitionComponent:L=Xn,...$}=t,T=S.useRef(null),A=Sr(T,Cu(d),o),z=W=>te=>{if(W){const re=T.current;te===void 0?W(re):W(re,te)}},F=z(x),U=z((W,te)=>{a0(W);const re=Jl({style:b,timeout:I,easing:h},{mode:"enter"});W.style.webkitTransition=i.transitions.create("opacity",re),W.style.transition=i.transitions.create("opacity",re),g&&g(W,te)}),H=z(y),V=z(w),J=z(W=>{const te=Jl({style:b,timeout:I,easing:h},{mode:"exit"});W.style.webkitTransition=i.transitions.create("opacity",te),W.style.transition=i.transitions.create("opacity",te),E&&E(W)}),k=z(C),q=W=>{u&&u(T.current,W)};return Y.jsx(L,{appear:c,in:m,nodeRef:T,onEnter:U,onEntered:H,onEntering:F,onExit:J,onExited:k,onExiting:V,addEndListener:q,timeout:I,...$,children:(W,{ownerState:te,...re})=>S.cloneElement(d,{style:{opacity:0,visibility:W==="exited"&&!m?"hidden":void 0,...u2[W],...b,...d.props.style},ref:A,...re})})});function f2(e){return Pt("MuiBackdrop",e)}St("MuiBackdrop",["root","invisible"]);const d2=e=>{const{classes:t,invisible:o}=e;return Mt({root:["root",o&&"invisible"]},f2,t)},p2=He("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),h2=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiBackdrop"}),{children:a,className:u,component:c="div",invisible:d=!1,open:h,components:m={},componentsProps:g={},slotProps:y={},slots:x={},TransitionComponent:E,transitionDuration:C,...w}=i,b={...i,component:c,invisible:d},I=d2(b),L={transition:E,root:m.Root,...x},$={...g,...y},T={component:c,slots:L,slotProps:$},[A,z]=Mn("root",{elementType:p2,externalForwardedProps:T,className:$e(I.root,u),ownerState:b}),[F,U]=Mn("transition",{elementType:c2,externalForwardedProps:T,ownerState:b});return Y.jsx(F,{in:h,timeout:C,...w,...U,children:Y.jsx(A,{"aria-hidden":!0,...z,classes:I,ref:o,children:a})})}),m2=St("MuiBox",["root"]),g2=xu(),zs=kC({themeId:Yn,defaultTheme:g2,defaultClassName:m2.root,generateClassName:Iv.generate}),nd=typeof r0({})=="function",y2=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),v2=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),f0=(e,t=!1)=>{var u,c;const o={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([d,h])=>{var g,y;const m=e.getColorSchemeSelector(d);m.startsWith("@")?o[m]={":root":{colorScheme:(g=h.palette)==null?void 0:g.mode}}:o[m.replace(/\s*&/,"")]={colorScheme:(y=h.palette)==null?void 0:y.mode}});let i={html:y2(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...v2(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...o};const a=(c=(u=e.components)==null?void 0:u.MuiCssBaseline)==null?void 0:c.styleOverrides;return a&&(i=[i,a]),i},Zl="mui-ecs",w2=e=>{const t=f0(e,!1),o=Array.isArray(t)?t[0]:t;return!e.vars&&o&&(o.html[`:root:has(${Zl})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,a])=>{var c,d;const u=e.getColorSchemeSelector(i);u.startsWith("@")?o[u]={[`:root:not(:has(.${Zl}))`]:{colorScheme:(c=a.palette)==null?void 0:c.mode}}:o[u.replace(/\s*&/,"")]={[`&:not(:has(.${Zl}))`]:{colorScheme:(d=a.palette)==null?void 0:d.mode}}}),t},S2=r0(nd?({theme:e,enableColorScheme:t})=>f0(e,t):({theme:e})=>w2(e));function x2(e){const t=xt({props:e,name:"MuiCssBaseline"}),{children:o,enableColorScheme:i=!1}=t;return Y.jsxs(S.Fragment,{children:[nd&&Y.jsx(S2,{enableColorScheme:i}),!nd&&!i&&Y.jsx("span",{className:Zl,style:{display:"none"}}),o]})}function k2(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function C2(e){const t=Mo(e);return t.body===e?Di(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ry(e){return parseInt(Di(e).getComputedStyle(e).paddingRight,10)||0}function E2(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||i}function oy(e,t,o,i,a){const u=[t,o,...i];[].forEach.call(e.children,c=>{const d=!u.includes(c),h=!E2(c);d&&h&&Us(c,a)})}function Mf(e,t){let o=-1;return e.some((i,a)=>t(i)?(o=a,!0):!1),o}function b2(e,t){const o=[],i=e.container;if(!t.disableScrollLock){if(C2(i)){const c=k2(Di(i));o.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${ry(i)+c}px`;const d=Mo(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{o.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${ry(h)+c}px`})}let u;if(i.parentNode instanceof DocumentFragment)u=Mo(i).body;else{const c=i.parentElement,d=Di(i);u=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}o.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>{o.forEach(({value:u,el:c,property:d})=>{u?c.style.setProperty(d,u):c.style.removeProperty(d)})}}function R2(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class _2{constructor(){this.modals=[],this.containers=[]}add(t,o){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&Us(t.modalRef,!1);const a=R2(o);oy(o,t.mount,t.modalRef,a,!0);const u=Mf(this.containers,c=>c.container===o);return u!==-1?(this.containers[u].modals.push(t),i):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:a}),i)}mount(t,o){const i=Mf(this.containers,u=>u.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=b2(a,o))}remove(t,o=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const a=Mf(this.containers,c=>c.modals.includes(t)),u=this.containers[a];if(u.modals.splice(u.modals.indexOf(t),1),this.modals.splice(i,1),u.modals.length===0)u.restore&&u.restore(),t.modalRef&&Us(t.modalRef,o),oy(u.container,t.mount,t.modalRef,u.hiddenSiblings,!1),this.containers.splice(a,1);else{const c=u.modals[u.modals.length-1];c.modalRef&&Us(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Tl(e){var o;let t=e.activeElement;for(;((o=t==null?void 0:t.shadowRoot)==null?void 0:o.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const P2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function T2(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function I2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$2(e))}function O2(e){const t=[],o=[];return Array.from(e.querySelectorAll(P2)).forEach((i,a)=>{const u=T2(i);u===-1||!I2(i)||(u===0?t.push(i):o.push({documentOrder:a,tabIndex:u,node:i}))}),o.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function A2(){return!0}function M2(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:u=O2,isEnabled:c=A2,open:d}=e,h=S.useRef(!1),m=S.useRef(null),g=S.useRef(null),y=S.useRef(null),x=S.useRef(null),E=S.useRef(!1),C=S.useRef(null),w=Sr(Cu(t),C),b=S.useRef(null);S.useEffect(()=>{!d||!C.current||(E.current=!o)},[o,d]),S.useEffect(()=>{if(!d||!C.current)return;const $=Mo(C.current),T=Tl($);return C.current.contains(T)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),E.current&&C.current.focus()),()=>{a||(y.current&&y.current.focus&&(h.current=!0,y.current.focus()),y.current=null)}},[d]),S.useEffect(()=>{if(!d||!C.current)return;const $=Mo(C.current),T=Tl($),A=U=>{b.current=U,!(i||!c()||U.key!=="Tab")&&T===C.current&&U.shiftKey&&(h.current=!0,g.current&&g.current.focus())},z=()=>{var J,k;const U=C.current;if(U===null)return;const H=Tl($);if(!$.hasFocus()||!c()||h.current){h.current=!1;return}if(U.contains(H)||i&&H!==m.current&&H!==g.current)return;if(H!==x.current)x.current=null;else if(x.current!==null)return;if(!E.current)return;let V=[];if((H===m.current||H===g.current)&&(V=u(C.current)),V.length>0){const q=!!((J=b.current)!=null&&J.shiftKey&&((k=b.current)==null?void 0:k.key)==="Tab"),W=V[0],te=V[V.length-1];typeof W!="string"&&typeof te!="string"&&(q?te.focus():W.focus())}else U.focus()};$.addEventListener("focusin",z),$.addEventListener("keydown",A,!0);const F=setInterval(()=>{const U=Tl($);U&&U.tagName==="BODY"&&z()},50);return()=>{clearInterval(F),$.removeEventListener("focusin",z),$.removeEventListener("keydown",A,!0)}},[o,i,a,c,d,u]);const I=$=>{y.current===null&&(y.current=$.relatedTarget),E.current=!0,x.current=$.target;const T=t.props.onFocus;T&&T($)},L=$=>{y.current===null&&(y.current=$.relatedTarget),E.current=!0};return Y.jsxs(S.Fragment,{children:[Y.jsx("div",{tabIndex:d?0:-1,onFocus:L,ref:m,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:w,onFocus:I}),Y.jsx("div",{tabIndex:d?0:-1,onFocus:L,ref:g,"data-testid":"sentinelEnd"})]})}function z2(e){return typeof e=="function"?e():e}function L2(e){return e?e.props.hasOwnProperty("in"):!1}const iy=()=>{},$l=new _2;function N2(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:u,onTransitionExited:c,children:d,onClose:h,open:m,rootRef:g}=e,y=S.useRef({}),x=S.useRef(null),E=S.useRef(null),C=Sr(E,g),[w,b]=S.useState(!m),I=L2(d);let L=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(L=!1);const $=()=>Mo(x.current),T=()=>(y.current.modalRef=E.current,y.current.mount=x.current,y.current),A=()=>{$l.mount(T(),{disableScrollLock:i}),E.current&&(E.current.scrollTop=0)},z=ki(()=>{const te=z2(t)||$().body;$l.add(T(),te),E.current&&A()}),F=()=>$l.isTopModal(T()),U=ki(te=>{x.current=te,te&&(m&&F()?A():E.current&&Us(E.current,L))}),H=S.useCallback(()=>{$l.remove(T(),L)},[L]);S.useEffect(()=>()=>{H()},[H]),S.useEffect(()=>{m?z():(!I||!a)&&H()},[m,H,I,a,z]);const V=te=>re=>{var fe;(fe=te.onKeyDown)==null||fe.call(te,re),!(re.key!=="Escape"||re.which===229||!F())&&(o||(re.stopPropagation(),h&&h(re,"escapeKeyDown")))},J=te=>re=>{var fe;(fe=te.onClick)==null||fe.call(te,re),re.target===re.currentTarget&&h&&h(re,"backdropClick")};return{getRootProps:(te={})=>{const re=l0(e);delete re.onTransitionEnter,delete re.onTransitionExited;const fe={...re,...te};return{role:"presentation",...fe,onKeyDown:V(fe),ref:C}},getBackdropProps:(te={})=>{const re=te;return{"aria-hidden":!0,...re,onClick:J(re),open:m}},getTransitionProps:()=>{const te=()=>{b(!1),u&&u()},re=()=>{b(!0),c&&c(),a&&H()};return{onEnter:Eg(te,(d==null?void 0:d.props.onEnter)??iy),onExited:Eg(re,(d==null?void 0:d.props.onExited)??iy)}},rootRef:C,portalRef:U,isTopModal:F,exited:w,hasTransition:I}}function D2(e){return Pt("MuiModal",e)}St("MuiModal",["root","hidden","backdrop"]);const F2=e=>{const{open:t,exited:o,classes:i}=e;return Mt({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},D2,i)},j2=He("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(_t(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),B2=He(h2,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),U2=S.forwardRef(function(t,o){const i=xt({name:"MuiModal",props:t}),{BackdropComponent:a=B2,BackdropProps:u,classes:c,className:d,closeAfterTransition:h=!1,children:m,container:g,component:y,components:x={},componentsProps:E={},disableAutoFocus:C=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:b=!1,disablePortal:I=!1,disableRestoreFocus:L=!1,disableScrollLock:$=!1,hideBackdrop:T=!1,keepMounted:A=!1,onClose:z,onTransitionEnter:F,onTransitionExited:U,open:H,slotProps:V={},slots:J={},theme:k,...q}=i,W={...i,closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:w,disableEscapeKeyDown:b,disablePortal:I,disableRestoreFocus:L,disableScrollLock:$,hideBackdrop:T,keepMounted:A},{getRootProps:te,getBackdropProps:re,getTransitionProps:fe,portalRef:Z,isTopModal:G,exited:K,hasTransition:P}=N2({...W,rootRef:o}),j={...W,exited:K},se=F2(j),le={};if(m.props.tabIndex===void 0&&(le.tabIndex="-1"),P){const{onEnter:Pe,onExited:Ne}=fe();le.onEnter=Pe,le.onExited=Ne}const de={slots:{root:x.Root,backdrop:x.Backdrop,...J},slotProps:{...E,...V}},[ge,ve]=Mn("root",{ref:o,elementType:j2,externalForwardedProps:{...de,...q,component:y},getSlotProps:te,ownerState:j,className:$e(d,se==null?void 0:se.root,!j.open&&j.exited&&(se==null?void 0:se.hidden))}),[Ce,_e]=Mn("backdrop",{ref:u==null?void 0:u.ref,elementType:a,externalForwardedProps:de,shouldForwardComponentProp:!0,additionalProps:u,getSlotProps:Pe=>re({...Pe,onClick:Ne=>{Pe!=null&&Pe.onClick&&Pe.onClick(Ne)}}),className:$e(u==null?void 0:u.className,se==null?void 0:se.backdrop),ownerState:j});return!A&&!H&&(!P||K)?null:Y.jsx(l2,{ref:Z,container:g,disablePortal:I,children:Y.jsxs(ge,{...ve,children:[!T&&a?Y.jsx(Ce,{..._e}):null,Y.jsx(M2,{disableEnforceFocus:w,disableAutoFocus:C,disableRestoreFocus:L,isEnabled:G,open:H,children:S.cloneElement(m,le)})]})})});function W2(e){return Pt("MuiDivider",e)}St("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const V2=e=>{const{absolute:t,children:o,classes:i,flexItem:a,light:u,orientation:c,textAlign:d,variant:h}=e;return Mt({root:["root",t&&"absolute",h,u&&"light",c==="vertical"&&"vertical",a&&"flexItem",o&&"withChildren",o&&c==="vertical"&&"withChildrenVertical",d==="right"&&c!=="vertical"&&"textAlignRight",d==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},W2,i)},Z2=He("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,o.orientation==="vertical"&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&o.orientation==="vertical"&&t.withChildrenVertical,o.textAlign==="right"&&o.orientation!=="vertical"&&t.textAlignRight,o.textAlign==="left"&&o.orientation!=="vertical"&&t.textAlignLeft]}})(_t(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),H2=He("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.wrapper,o.orientation==="vertical"&&t.wrapperVertical]}})(_t(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),rd=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:u,className:c,orientation:d="horizontal",component:h=u||d==="vertical"?"div":"hr",flexItem:m=!1,light:g=!1,role:y=h!=="hr"?"separator":void 0,textAlign:x="center",variant:E="fullWidth",...C}=i,w={...i,absolute:a,component:h,flexItem:m,light:g,orientation:d,role:y,textAlign:x,variant:E},b=V2(w);return Y.jsx(Z2,{as:h,className:$e(b.root,c),role:y,ref:o,ownerState:w,"aria-orientation":y==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...C,children:u?Y.jsx(H2,{className:b.wrapper,ownerState:w,children:u}):null})});rd&&(rd.muiSkipListHighlight=!0);function Q2(e,t,o){const i=t.getBoundingClientRect(),a=o&&o.getBoundingClientRect(),u=Di(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const m=u.getComputedStyle(t);c=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let d=0,h=0;if(c&&c!=="none"&&typeof c=="string"){const m=c.split("(")[1].split(")")[0].split(",");d=parseInt(m[4],10),h=parseInt(m[5],10)}return e==="left"?a?`translateX(${a.right+d-i.left}px)`:`translateX(${u.innerWidth+d-i.left}px)`:e==="right"?a?`translateX(-${i.right-a.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?a?`translateY(${a.bottom+h-i.top}px)`:`translateY(${u.innerHeight+h-i.top}px)`:a?`translateY(-${i.top-a.top+i.height-h}px)`:`translateY(-${i.top+i.height-h}px)`}function K2(e){return typeof e=="function"?e():e}function Il(e,t,o){const i=K2(o),a=Q2(e,t,i);a&&(t.style.webkitTransform=a,t.style.transform=a)}const G2=S.forwardRef(function(t,o){const i=ku(),a={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},u={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:h,container:m,direction:g="down",easing:y=a,in:x,onEnter:E,onEntered:C,onEntering:w,onExit:b,onExited:I,onExiting:L,style:$,timeout:T=u,TransitionComponent:A=Xn,...z}=t,F=S.useRef(null),U=Sr(Cu(h),F,o),H=Z=>G=>{Z&&(G===void 0?Z(F.current):Z(F.current,G))},V=H((Z,G)=>{Il(g,Z,m),a0(Z),E&&E(Z,G)}),J=H((Z,G)=>{const K=Jl({timeout:T,style:$,easing:y},{mode:"enter"});Z.style.webkitTransition=i.transitions.create("-webkit-transform",{...K}),Z.style.transition=i.transitions.create("transform",{...K}),Z.style.webkitTransform="none",Z.style.transform="none",w&&w(Z,G)}),k=H(C),q=H(L),W=H(Z=>{const G=Jl({timeout:T,style:$,easing:y},{mode:"exit"});Z.style.webkitTransition=i.transitions.create("-webkit-transform",G),Z.style.transition=i.transitions.create("transform",G),Il(g,Z,m),b&&b(Z)}),te=H(Z=>{Z.style.webkitTransition="",Z.style.transition="",I&&I(Z)}),re=Z=>{c&&c(F.current,Z)},fe=S.useCallback(()=>{F.current&&Il(g,F.current,m)},[g,m]);return S.useEffect(()=>{if(x||g==="down"||g==="right")return;const Z=QE(()=>{F.current&&Il(g,F.current,m)}),G=Di(F.current);return G.addEventListener("resize",Z),()=>{Z.clear(),G.removeEventListener("resize",Z)}},[g,x,m]),S.useEffect(()=>{x||fe()},[x,fe]),Y.jsx(A,{nodeRef:F,onEnter:V,onEntered:k,onEntering:J,onExit:W,onExited:te,onExiting:q,addEndListener:re,appear:d,in:x,timeout:T,...z,children:(Z,{ownerState:G,...K})=>S.cloneElement(h,{ref:U,style:{visibility:Z==="exited"&&!x?"hidden":void 0,...$,...h.props.style},...K})})});function q2(e){return Pt("MuiDrawer",e)}St("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const d0=(e,t)=>{const{ownerState:o}=e;return[t.root,(o.variant==="permanent"||o.variant==="persistent")&&t.docked,t.modal]},Y2=e=>{const{classes:t,anchor:o,variant:i}=e,a={root:["root",`anchor${Ue(o)}`],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ue(o)}`,i!=="temporary"&&`paperAnchorDocked${Ue(o)}`]};return Mt(a,q2,t)},X2=He(U2,{name:"MuiDrawer",slot:"Root",overridesResolver:d0})(_t(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),J2=He("div",{shouldForwardProp:qd,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:d0})({flex:"0 0 auto"}),eR=He(u0,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`paperAnchor${Ue(o.anchor)}`],o.variant!=="temporary"&&t[`paperAnchorDocked${Ue(o.anchor)}`]]}})(_t(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),p0={left:"right",right:"left",top:"down",bottom:"up"};function tR(e){return["left","right"].includes(e)}function nR({direction:e},t){return e==="rtl"&&tR(t)?p0[t]:t}const sy=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiDrawer"}),a=ku(),u=UC(),c={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:m,className:g,elevation:y=16,hideBackdrop:x=!1,ModalProps:{BackdropProps:E,...C}={},onClose:w,open:b=!1,PaperProps:I={},SlideProps:L,TransitionComponent:$,transitionDuration:T=c,variant:A="temporary",slots:z={},slotProps:F={},...U}=i,H=S.useRef(!1);S.useEffect(()=>{H.current=!0},[]);const V=nR({direction:u?"rtl":"ltr"},d),k={...i,anchor:d,elevation:y,open:b,variant:A,...U},q=Y2(k),W={slots:{transition:$,...z},slotProps:{paper:I,transition:L,...F,backdrop:GE(F.backdrop||{...h,...E},{transitionDuration:T})}},[te,re]=Mn("root",{ref:o,elementType:X2,className:$e(q.root,q.modal,g),shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{...W,...U,...C},additionalProps:{open:b,onClose:w,hideBackdrop:x,slots:{backdrop:W.slots.backdrop},slotProps:{backdrop:W.slotProps.backdrop}}}),[fe,Z]=Mn("paper",{elementType:eR,shouldForwardComponentProp:!0,className:$e(q.paper,I.className),ownerState:k,externalForwardedProps:W,additionalProps:{elevation:A==="temporary"?y:0,square:!0,...A==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[G,K]=Mn("docked",{elementType:J2,ref:o,className:$e(q.root,q.docked,g),ownerState:k,externalForwardedProps:W,additionalProps:U}),[P,j]=Mn("transition",{elementType:G2,ownerState:k,externalForwardedProps:W,additionalProps:{in:b,direction:p0[V],timeout:T,appear:H.current}}),se=Y.jsx(fe,{...Z,children:m});if(A==="permanent")return Y.jsx(G,{...K,children:se});const le=Y.jsx(P,{...j,children:se});return A==="persistent"?Y.jsx(G,{...K,children:le}):Y.jsx(te,{...re,children:le})}),Gs=S.createContext({});function rR(e){return Pt("MuiList",e)}St("MuiList",["root","padding","dense","subheader"]);const oR=e=>{const{classes:t,disablePadding:o,dense:i,subheader:a}=e;return Mt({root:["root",!o&&"padding",i&&"dense",a&&"subheader"]},rR,t)},iR=He("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),sR=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiList"}),{children:a,className:u,component:c="ul",dense:d=!1,disablePadding:h=!1,subheader:m,...g}=i,y=S.useMemo(()=>({dense:d}),[d]),x={...i,component:c,dense:d,disablePadding:h},E=oR(x);return Y.jsx(Gs.Provider,{value:y,children:Y.jsxs(iR,{as:c,className:$e(E.root,u),ref:o,ownerState:x,...g,children:[m,a]})})});function aR(e){return Pt("MuiListItemButton",e)}const Ls=St("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lR=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.alignItems==="flex-start"&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters]},uR=e=>{const{alignItems:t,classes:o,dense:i,disabled:a,disableGutters:u,divider:c,selected:d}=e,m=Mt({root:["root",i&&"dense",!u&&"gutters",c&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",d&&"selected"]},aR,o);return{...o,...m}},cR=He(c0,{shouldForwardProp:e=>qd(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:lR})(_t(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ls.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ls.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ls.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ls.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ls.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),fR=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:u=!1,component:c="div",children:d,dense:h=!1,disableGutters:m=!1,divider:g=!1,focusVisibleClassName:y,selected:x=!1,className:E,...C}=i,w=S.useContext(Gs),b=S.useMemo(()=>({dense:h||w.dense||!1,alignItems:a,disableGutters:m}),[a,w.dense,h,m]),I=S.useRef(null);Ni(()=>{u&&I.current&&I.current.focus()},[u]);const L={...i,alignItems:a,dense:b.dense,disableGutters:m,divider:g,selected:x},$=uR(L),T=Sr(I,o);return Y.jsx(Gs.Provider,{value:b,children:Y.jsx(cR,{ref:T,href:C.href||C.to,component:(C.href||C.to)&&c==="div"?"button":c,focusVisibleClassName:$e($.focusVisible,y),ownerState:L,className:$e($.root,E),...C,classes:$,children:d})})});function dR(e){return Pt("MuiListItemIcon",e)}St("MuiListItemIcon",["root","alignItemsFlexStart"]);const pR=e=>{const{alignItems:t,classes:o}=e;return Mt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},dR,o)},hR=He("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(_t(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),mR=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiListItemIcon"}),{className:a,...u}=i,c=S.useContext(Gs),d={...i,alignItems:c.alignItems},h=pR(d);return Y.jsx(hR,{className:$e(h.root,a),ownerState:d,ref:o,...u})});function gR(e){return Pt("MuiListItemText",e)}const Ol=St("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yR=e=>{const{classes:t,inset:o,primary:i,secondary:a,dense:u}=e;return Mt({root:["root",o&&"inset",u&&"dense",i&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},gR,t)},vR=He("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Ol.primary}`]:t.primary},{[`& .${Ol.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${ey.root}:where(& .${Ol.primary})`]:{display:"block"},[`.${ey.root}:where(& .${Ol.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),wR=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiListItemText"}),{children:a,className:u,disableTypography:c=!1,inset:d=!1,primary:h,primaryTypographyProps:m,secondary:g,secondaryTypographyProps:y,slots:x={},slotProps:E={},...C}=i,{dense:w}=S.useContext(Gs);let b=h??a,I=g;const L={...i,disableTypography:c,inset:d,primary:!!b,secondary:!!I,dense:w},$=yR(L),T={slots:x,slotProps:{primary:m,secondary:y,...E}},[A,z]=Mn("root",{className:$e($.root,u),elementType:vR,externalForwardedProps:{...T,...C},ownerState:L,ref:o}),[F,U]=Mn("primary",{className:$.primary,elementType:vi,externalForwardedProps:T,ownerState:L}),[H,V]=Mn("secondary",{className:$.secondary,elementType:vi,externalForwardedProps:T,ownerState:L});return b!=null&&b.type!==vi&&!c&&(b=Y.jsx(F,{variant:w?"body2":"body1",component:U!=null&&U.variant?void 0:"span",...U,children:b})),I!=null&&I.type!==vi&&!c&&(I=Y.jsx(H,{variant:"body2",color:"textSecondary",...V,children:I})),Y.jsxs(A,{...z,children:[b,I]})});function SR(e){return Pt("MuiToolbar",e)}St("MuiToolbar",["root","gutters","regular","dense"]);const xR=e=>{const{classes:t,disableGutters:o,variant:i}=e;return Mt({root:["root",!o&&"gutters",i]},SR,t)},kR=He("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})(_t(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),ay=S.forwardRef(function(t,o){const i=xt({props:t,name:"MuiToolbar"}),{className:a,component:u="div",disableGutters:c=!1,variant:d="regular",...h}=i,m={...i,component:u,disableGutters:c,variant:d},g=xR(m);return Y.jsx(kR,{as:u,className:$e(g.root,a),ref:o,ownerState:m,...h})}),CR=xu({palette:{mode:"dark",primary:{main:"#9b5de5",light:"#bfa3f0",dark:"#5a299b",contrastText:"#ffffff"},secondary:{main:"#7b2cbf",light:"#a46be0",dark:"#4a148c",contrastText:"#ffffff"},background:{default:"#16141a",paper:"#1e1b23"},http:{get:"#6ede8a",post:"#7aa2ff",put:"#ffb85c",patch:"#c77dff",delete:"#ff6b6b"},status:{success:"#6ede8a",warning:"#ffdd57",error:"#ff6b6b"}},shape:{borderRadius:10},typography:{fontFamily:'"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',h6:{fontWeight:600},subtitle1:{fontWeight:500},body2:{color:"#c8c8d0"}},components:{MuiCard:{styleOverrides:{root:{backdropFilter:"blur(6px)",backgroundColor:"rgba(30, 27, 35, 0.6)",borderColor:"rgba(255, 255, 255, 0.08)"}},defaultProps:{elevation:0,variant:"outlined"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiChip:{styleOverrides:{root:{fontWeight:600}}},MuiButton:{styleOverrides:{containedPrimary:{boxShadow:"none"}}}}}),Al=240;function ER({children:e,title:t="RRROUTES Docs"}){const[o,i]=S.useState(!1),a=kr(),u=xv(),c=a.pathname.startsWith("/presets")?"presets":a.pathname.startsWith("/history")?"history":a.pathname.startsWith("/logs")?"logs":"routes",d=[{key:"routes",label:"Endpoints",icon:Y.jsx(qE,{}),path:"/routes"},{key:"presets",label:"Presets",icon:Y.jsx(eb,{}),path:"/presets"},{key:"history",label:"History",icon:Y.jsx(YE,{}),path:"/history"},{key:"logs",label:"Logs",icon:Y.jsx(XE,{}),path:"/logs"}],h=Y.jsxs(zs,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[Y.jsx(ay,{children:Y.jsx(vi,{variant:"h6",noWrap:!0,children:"RRROUTES Docs"})}),Y.jsx(rd,{}),Y.jsx(sR,{sx:{flexGrow:1},children:d.map(m=>Y.jsxs(fR,{selected:c===m.key,onClick:()=>u(m.path),children:[Y.jsx(mR,{children:m.icon}),Y.jsx(wR,{primary:m.label})]},m.key))}),Y.jsx(zs,{sx:{p:2,typography:"caption",color:"text.secondary"},children:"Powered by rrroutes"})]});return Y.jsxs(ob,{theme:CR,children:[Y.jsx(x2,{}),Y.jsxs(zs,{sx:{display:"flex",minHeight:"100vh"},children:[Y.jsx(s2,{position:"fixed",sx:{zIndex:m=>m.zIndex.drawer+1},children:Y.jsxs(ay,{children:[Y.jsx(Yb,{color:"inherit",edge:"start",sx:{mr:2,display:{sm:"none"}},onClick:()=>i(m=>!m),children:Y.jsx(JE,{})}),Y.jsx(vi,{variant:"h6",noWrap:!0,sx:{flexGrow:1},children:t})]})}),Y.jsxs(zs,{component:"nav",sx:{width:{sm:Al},flexShrink:{sm:0}},children:[Y.jsx(sy,{variant:"temporary",open:o,onClose:()=>i(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{width:Al}},children:h}),Y.jsx(sy,{variant:"permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{width:Al,boxSizing:"border-box"}},open:!0,children:h})]}),Y.jsx(zs,{component:"main",sx:{flexGrow:1,p:3,width:{sm:`calc(100% - ${Al}px)`},mt:8,bgcolor:"background.default"},children:e})]})]})}function bR(){const e=kr();return S.useMemo(()=>e.pathname.startsWith("/presets")?"presets":e.pathname.startsWith("/history")?"history":e.pathname.startsWith("/logs")?"logs":"routes",[e.pathname]),Y.jsx(ER,{children:Y.jsx(Mx,{})})}function oe(e,t,o){function i(d,h){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:h,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,h);const m=c.prototype,g=Object.keys(m);for(let y=0;y<g.length;y++){const x=g[y];x in d||(d[x]=m[x].bind(d))}}const a=(o==null?void 0:o.Parent)??Object;class u extends a{}Object.defineProperty(u,"name",{value:e});function c(d){var h;const m=o!=null&&o.Parent?new u:this;i(m,d),(h=m._zod).deferred??(h.deferred=[]);for(const g of m._zod.deferred)g();return m}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>{var h,m;return o!=null&&o.Parent&&d instanceof o.Parent?!0:(m=(h=d==null?void 0:d._zod)==null?void 0:h.traits)==null?void 0:m.has(e)}}),Object.defineProperty(c,"name",{value:e}),c}class Ci extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class h0 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const RR={};function zo(e){return RR}function od(e,t){return typeof t=="bigint"?t.toString():t}function ep(e){return e==null}function tp(e){const t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}const ly=Symbol("evaluating");function Ye(e,t,o){let i;Object.defineProperty(e,t,{get(){if(i!==ly)return i===void 0&&(i=ly,i=o()),i},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function _R(...e){const t={};for(const o of e){const i=Object.getOwnPropertyDescriptors(o);Object.assign(t,i)}return Object.defineProperties({},t)}function PR(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const m0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function uy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function id(e){if(uy(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const o=t.prototype;return!(uy(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function g0(e){return id(e)?{...e}:Array.isArray(e)?[...e]:e}function np(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function TR(e,t,o){const i=new e._zod.constr(t??e._zod.def);return(!t||o!=null&&o.parent)&&(i._zod.parent=e),i}function Ee(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function wi(e,t=0){var o;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((o=e.issues[i])==null?void 0:o.continue)!==!0)return!0;return!1}function $R(e,t){return t.map(o=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(e),o})}function Ml(e){return typeof e=="string"?e:e==null?void 0:e.message}function Lo(e,t,o){var a,u,c,d,h,m;const i={...e,path:e.path??[]};if(!e.message){const g=Ml((c=(u=(a=e.inst)==null?void 0:a._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??Ml((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??Ml((h=o.customError)==null?void 0:h.call(o,e))??Ml((m=o.localeError)==null?void 0:m.call(o,e))??"Invalid input";i.message=g}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function rp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function qs(...e){const[t,o,i]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:i}:{...t}}const y0=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,od,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},v0=oe("$ZodError",y0),w0=oe("$ZodError",y0,{Parent:Error});function IR(e,t=o=>o.message){const o={},i=[];for(const a of e.issues)a.path.length>0?(o[a.path[0]]=o[a.path[0]]||[],o[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:o}}function OR(e,t=o=>o.message){const o={_errors:[]},i=a=>{for(const u of a.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c}));else if(u.code==="invalid_key")i({issues:u.issues});else if(u.code==="invalid_element")i({issues:u.issues});else if(u.path.length===0)o._errors.push(t(u));else{let c=o,d=0;for(;d<u.path.length;){const h=u.path[d];d===u.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(t(u))):c[h]=c[h]||{_errors:[]},c=c[h],d++}}};return i(e),o}const op=e=>(t,o,i,a)=>{const u=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:o,issues:[]},u);if(c instanceof Promise)throw new Ci;if(c.issues.length){const d=new((a==null?void 0:a.Err)??e)(c.issues.map(h=>Lo(h,u,zo())));throw m0(d,a==null?void 0:a.callee),d}return c.value},ip=e=>async(t,o,i,a)=>{const u=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:o,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new((a==null?void 0:a.Err)??e)(c.issues.map(h=>Lo(h,u,zo())));throw m0(d,a==null?void 0:a.callee),d}return c.value},Eu=e=>(t,o,i)=>{const a=i?{...i,async:!1}:{async:!1},u=t._zod.run({value:o,issues:[]},a);if(u instanceof Promise)throw new Ci;return u.issues.length?{success:!1,error:new(e??v0)(u.issues.map(c=>Lo(c,a,zo())))}:{success:!0,data:u.value}},AR=Eu(w0),bu=e=>async(t,o,i)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let u=t._zod.run({value:o,issues:[]},a);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(c=>Lo(c,a,zo())))}:{success:!0,data:u.value}},MR=bu(w0),zR=e=>(t,o,i)=>{const a=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return op(e)(t,o,a)},LR=e=>(t,o,i)=>op(e)(t,o,i),NR=e=>async(t,o,i)=>{const a=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ip(e)(t,o,a)},DR=e=>async(t,o,i)=>ip(e)(t,o,i),FR=e=>(t,o,i)=>{const a=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Eu(e)(t,o,a)},jR=e=>(t,o,i)=>Eu(e)(t,o,i),BR=e=>async(t,o,i)=>{const a=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bu(e)(t,o,a)},UR=e=>async(t,o,i)=>bu(e)(t,o,i),WR=/^[cC][^\s-]{8,}$/,VR=/^[0-9a-z]+$/,ZR=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,HR=/^[0-9a-vA-V]{20}$/,QR=/^[A-Za-z0-9]{27}$/,KR=/^[a-zA-Z0-9_-]{21}$/,GR=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qR=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,cy=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,YR=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,XR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function JR(){return new RegExp(XR,"u")}const e_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,n_=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,r_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,o_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,S0=/^[A-Za-z0-9_-]*$/,i_=/^\+(?:[0-9]){6,14}[0-9]$/,x0="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",s_=new RegExp(`^${x0}$`);function k0(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function a_(e){return new RegExp(`^${k0(e)}$`)}function l_(e){const t=k0({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${o.join("|")})`;return new RegExp(`^${x0}T(?:${i})$`)}const u_=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},c_=/^[^A-Z]*$/,f_=/^[^a-z]*$/,Jn=oe("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),d_=oe("$ZodCheckMaxLength",(e,t)=>{var o;Jn.init(e,t),(o=e._zod.def).when??(o.when=i=>{const a=i.value;return!ep(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const a=i.value;if(a.length<=t.maximum)return;const c=rp(a);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),p_=oe("$ZodCheckMinLength",(e,t)=>{var o;Jn.init(e,t),(o=e._zod.def).when??(o.when=i=>{const a=i.value;return!ep(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const a=i.value;if(a.length>=t.minimum)return;const c=rp(a);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),h_=oe("$ZodCheckLengthEquals",(e,t)=>{var o;Jn.init(e,t),(o=e._zod.def).when??(o.when=i=>{const a=i.value;return!ep(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=i=>{const a=i.value,u=a.length;if(u===t.length)return;const c=rp(a),d=u>t.length;i.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ru=oe("$ZodCheckStringFormat",(e,t)=>{var o,i;Jn.init(e,t),e._zod.onattach.push(a=>{const u=a._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),m_=oe("$ZodCheckRegex",(e,t)=>{Ru.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),g_=oe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=c_),Ru.init(e,t)}),y_=oe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=f_),Ru.init(e,t)}),v_=oe("$ZodCheckIncludes",(e,t)=>{Jn.init(e,t);const o=np(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=i,e._zod.onattach.push(a=>{const u=a._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(i)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),w_=oe("$ZodCheckStartsWith",(e,t)=>{Jn.init(e,t);const o=new RegExp(`^${np(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(o)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),S_=oe("$ZodCheckEndsWith",(e,t)=>{Jn.init(e,t);const o=new RegExp(`.*${np(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(o)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),x_=oe("$ZodCheckOverwrite",(e,t)=>{Jn.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}}),k_={major:4,minor:1,patch:13},jt=oe("$ZodType",(e,t)=>{var a;var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=k_;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const u of i)for(const c of u._zod.onattach)c(e);if(i.length===0)(o=e._zod).deferred??(o.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const u=(d,h,m)=>{let g=wi(d),y;for(const x of h){if(x._zod.def.when){if(!x._zod.def.when(d))continue}else if(g)continue;const E=d.issues.length,C=x._zod.check(d);if(C instanceof Promise&&(m==null?void 0:m.async)===!1)throw new Ci;if(y||C instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await C,d.issues.length!==E&&(g||(g=wi(d,E)))});else{if(d.issues.length===E)continue;g||(g=wi(d,E))}}return y?y.then(()=>d):d},c=(d,h,m)=>{if(wi(d))return d.aborted=!0,d;const g=u(h,i,m);if(g instanceof Promise){if(m.async===!1)throw new Ci;return g.then(y=>e._zod.parse(y,m))}return e._zod.parse(g,m)};e._zod.run=(d,h)=>{if(h.skipChecks)return e._zod.parse(d,h);if(h.direction==="backward"){const g=e._zod.parse({value:d.value,issues:[]},{...h,skipChecks:!0});return g instanceof Promise?g.then(y=>c(y,d,h)):c(g,d,h)}const m=e._zod.parse(d,h);if(m instanceof Promise){if(h.async===!1)throw new Ci;return m.then(g=>u(g,i,h))}return u(m,i,h)}}e["~standard"]={validate:u=>{var c;try{const d=AR(e,u);return d.success?{value:d.data}:{issues:(c=d.error)==null?void 0:c.issues}}catch{return MR(e,u).then(h=>{var m;return h.success?{value:h.data}:{issues:(m=h.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}}),sp=oe("$ZodString",(e,t)=>{var o;jt.init(e,t),e._zod.pattern=[...((o=e==null?void 0:e._zod.bag)==null?void 0:o.patterns)??[]].pop()??u_(e._zod.bag),e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Xe=oe("$ZodStringFormat",(e,t)=>{Ru.init(e,t),sp.init(e,t)}),C_=oe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qR),Xe.init(e,t)}),E_=oe("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cy(i))}else t.pattern??(t.pattern=cy());Xe.init(e,t)}),b_=oe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=YR),Xe.init(e,t)}),R_=oe("$ZodURL",(e,t)=>{Xe.init(e,t),e._zod.check=o=>{try{const i=o.value.trim(),a=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=a.href:o.value=i;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),__=oe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=JR()),Xe.init(e,t)}),P_=oe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=KR),Xe.init(e,t)}),T_=oe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=WR),Xe.init(e,t)}),$_=oe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=VR),Xe.init(e,t)}),I_=oe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ZR),Xe.init(e,t)}),O_=oe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=HR),Xe.init(e,t)}),A_=oe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=QR),Xe.init(e,t)}),M_=oe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=l_(t)),Xe.init(e,t)}),z_=oe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=s_),Xe.init(e,t)}),L_=oe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=a_(t)),Xe.init(e,t)}),N_=oe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=GR),Xe.init(e,t)}),D_=oe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=e_),Xe.init(e,t),e._zod.bag.format="ipv4"}),F_=oe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=t_),Xe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),j_=oe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=n_),Xe.init(e,t)}),B_=oe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=r_),Xe.init(e,t),e._zod.check=o=>{const i=o.value.split("/");try{if(i.length!==2)throw new Error;const[a,u]=i;if(!u)throw new Error;const c=Number(u);if(`${c}`!==u)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${a}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function C0(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const U_=oe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=o_),Xe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{C0(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function W_(e){if(!S0.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return C0(o)}const V_=oe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=S0),Xe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{W_(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),Z_=oe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=i_),Xe.init(e,t)});function H_(e,t=null){try{const o=e.split(".");if(o.length!==3)return!1;const[i]=o;if(!i)return!1;const a=JSON.parse(atob(i));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const Q_=oe("$ZodJWT",(e,t)=>{Xe.init(e,t),e._zod.check=o=>{H_(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}});function fy(e,t,o){e.issues.length&&t.issues.push(...$R(o,e.issues)),t.value[o]=e.value}const K_=oe("$ZodArray",(e,t)=>{jt.init(e,t),e._zod.parse=(o,i)=>{const a=o.value;if(!Array.isArray(a))return o.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),o;o.value=Array(a.length);const u=[];for(let c=0;c<a.length;c++){const d=a[c],h=t.element._zod.run({value:d,issues:[]},i);h instanceof Promise?u.push(h.then(m=>fy(m,o,c))):fy(h,o,c)}return u.length?Promise.all(u).then(()=>o):o}});function dy(e,t,o,i){for(const u of e)if(u.issues.length===0)return t.value=u.value,t;const a=e.filter(u=>!wi(u));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(u=>u.issues.map(c=>Lo(c,i,zo())))}),t)}const G_=oe("$ZodUnion",(e,t)=>{jt.init(e,t),Ye(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Ye(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${a.map(u=>tp(u.source)).join("|")})$`)}});const o=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(a,u)=>{if(o)return i(a,u);let c=!1;const d=[];for(const h of t.options){const m=h._zod.run({value:a.value,issues:[]},u);if(m instanceof Promise)d.push(m),c=!0;else{if(m.issues.length===0)return m;d.push(m)}}return c?Promise.all(d).then(h=>dy(h,a,e,u)):dy(d,a,e,u)}}),q_=oe("$ZodIntersection",(e,t)=>{jt.init(e,t),e._zod.parse=(o,i)=>{const a=o.value,u=t.left._zod.run({value:a,issues:[]},i),c=t.right._zod.run({value:a,issues:[]},i);return u instanceof Promise||c instanceof Promise?Promise.all([u,c]).then(([h,m])=>py(o,h,m)):py(o,u,c)}});function sd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(id(e)&&id(t)){const o=Object.keys(t),i=Object.keys(e).filter(u=>o.indexOf(u)!==-1),a={...e,...t};for(const u of i){const c=sd(e[u],t[u]);if(!c.valid)return{valid:!1,mergeErrorPath:[u,...c.mergeErrorPath]};a[u]=c.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let i=0;i<e.length;i++){const a=e[i],u=t[i],c=sd(a,u);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};o.push(c.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function py(e,t,o){if(t.issues.length&&e.issues.push(...t.issues),o.issues.length&&e.issues.push(...o.issues),wi(e))return e;const i=sd(t.value,o.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Y_=oe("$ZodTransform",(e,t)=>{jt.init(e,t),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new h0(e.constructor.name);const a=t.transform(o.value,o);if(i.async)return(a instanceof Promise?a:Promise.resolve(a)).then(c=>(o.value=c,o));if(a instanceof Promise)throw new Ci;return o.value=a,o}});function hy(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const X_=oe("$ZodOptional",(e,t)=>{jt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const o=t.innerType._zod.pattern;return o?new RegExp(`^(${tp(o.source)})?$`):void 0}),e._zod.parse=(o,i)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(o,i);return a instanceof Promise?a.then(u=>hy(u,o.value)):hy(a,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,i)}}),J_=oe("$ZodNullable",(e,t)=>{jt.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const o=t.innerType._zod.pattern;return o?new RegExp(`^(${tp(o.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,i)=>o.value===null?o:t.innerType._zod.run(o,i)}),eP=oe("$ZodDefault",(e,t)=>{jt.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);if(o.value===void 0)return o.value=t.defaultValue,o;const a=t.innerType._zod.run(o,i);return a instanceof Promise?a.then(u=>my(u,t)):my(a,t)}});function my(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const tP=oe("$ZodPrefault",(e,t)=>{jt.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>(i.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,i))}),nP=oe("$ZodNonOptional",(e,t)=>{jt.init(e,t),Ye(e._zod,"values",()=>{const o=t.innerType._zod.values;return o?new Set([...o].filter(i=>i!==void 0)):void 0}),e._zod.parse=(o,i)=>{const a=t.innerType._zod.run(o,i);return a instanceof Promise?a.then(u=>gy(u,e)):gy(a,e)}});function gy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const rP=oe("$ZodCatch",(e,t)=>{jt.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);const a=t.innerType._zod.run(o,i);return a instanceof Promise?a.then(u=>(o.value=u.value,u.issues.length&&(o.value=t.catchValue({...o,error:{issues:u.issues.map(c=>Lo(c,i,zo()))},input:o.value}),o.issues=[]),o)):(o.value=a.value,a.issues.length&&(o.value=t.catchValue({...o,error:{issues:a.issues.map(u=>Lo(u,i,zo()))},input:o.value}),o.issues=[]),o)}}),oP=oe("$ZodPipe",(e,t)=>{jt.init(e,t),Ye(e._zod,"values",()=>t.in._zod.values),Ye(e._zod,"optin",()=>t.in._zod.optin),Ye(e._zod,"optout",()=>t.out._zod.optout),Ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,i)=>{if(i.direction==="backward"){const u=t.out._zod.run(o,i);return u instanceof Promise?u.then(c=>zl(c,t.in,i)):zl(u,t.in,i)}const a=t.in._zod.run(o,i);return a instanceof Promise?a.then(u=>zl(u,t.out,i)):zl(a,t.out,i)}});function zl(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}const iP=oe("$ZodReadonly",(e,t)=>{jt.init(e,t),Ye(e._zod,"propValues",()=>t.innerType._zod.propValues),Ye(e._zod,"values",()=>t.innerType._zod.values),Ye(e._zod,"optin",()=>{var o,i;return(i=(o=t.innerType)==null?void 0:o._zod)==null?void 0:i.optin}),Ye(e._zod,"optout",()=>{var o,i;return(i=(o=t.innerType)==null?void 0:o._zod)==null?void 0:i.optout}),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);const a=t.innerType._zod.run(o,i);return a instanceof Promise?a.then(yy):yy(a)}});function yy(e){return e.value=Object.freeze(e.value),e}const sP=oe("$ZodCustom",(e,t)=>{Jn.init(e,t),jt.init(e,t),e._zod.parse=(o,i)=>o,e._zod.check=o=>{const i=o.value,a=t.fn(i);if(a instanceof Promise)return a.then(u=>vy(u,o,i,e));vy(a,o,i,e)}});function vy(e,t,o,i){if(!e){const a={code:"custom",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(a.params=i._zod.def.params),t.issues.push(qs(a))}}var wy;class aP{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){const i=o[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){const o=t._zod.parent;if(o){const i={...this.get(o)??{}};delete i.id;const a={...i,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function lP(){return new aP}(wy=globalThis).__zod_globalRegistry??(wy.__zod_globalRegistry=lP());const Ll=globalThis.__zod_globalRegistry;function uP(e,t){return new e({type:"string",...Ee(t)})}function cP(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ee(t)})}function Sy(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ee(t)})}function fP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ee(t)})}function dP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ee(t)})}function pP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ee(t)})}function hP(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ee(t)})}function mP(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ee(t)})}function gP(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ee(t)})}function yP(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ee(t)})}function vP(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ee(t)})}function wP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ee(t)})}function SP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ee(t)})}function xP(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ee(t)})}function kP(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ee(t)})}function CP(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ee(t)})}function EP(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ee(t)})}function bP(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ee(t)})}function RP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ee(t)})}function _P(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ee(t)})}function PP(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ee(t)})}function TP(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ee(t)})}function $P(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ee(t)})}function IP(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ee(t)})}function OP(e,t){return new e({type:"string",format:"date",check:"string_format",...Ee(t)})}function AP(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ee(t)})}function MP(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ee(t)})}function E0(e,t){return new d_({check:"max_length",...Ee(t),maximum:e})}function tu(e,t){return new p_({check:"min_length",...Ee(t),minimum:e})}function b0(e,t){return new h_({check:"length_equals",...Ee(t),length:e})}function zP(e,t){return new m_({check:"string_format",format:"regex",...Ee(t),pattern:e})}function LP(e){return new g_({check:"string_format",format:"lowercase",...Ee(e)})}function NP(e){return new y_({check:"string_format",format:"uppercase",...Ee(e)})}function DP(e,t){return new v_({check:"string_format",format:"includes",...Ee(t),includes:e})}function FP(e,t){return new w_({check:"string_format",format:"starts_with",...Ee(t),prefix:e})}function jP(e,t){return new S_({check:"string_format",format:"ends_with",...Ee(t),suffix:e})}function Ui(e){return new x_({check:"overwrite",tx:e})}function BP(e){return Ui(t=>t.normalize(e))}function UP(){return Ui(e=>e.trim())}function WP(){return Ui(e=>e.toLowerCase())}function VP(){return Ui(e=>e.toUpperCase())}function ZP(){return Ui(e=>PR(e))}function HP(e,t,o){return new e({type:"array",element:t,...Ee(o)})}function QP(e,t,o){return new e({type:"custom",check:"custom",fn:t,...Ee(o)})}function KP(e){const t=GP(o=>(o.addIssue=i=>{if(typeof i=="string")o.issues.push(qs(i,o.value,t._zod.def));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=o.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),o.issues.push(qs(a))}},e(o.value,o)));return t}function GP(e,t){const o=new Jn({check:"custom",...Ee(t)});return o._zod.check=e,o}const qP=oe("ZodISODateTime",(e,t)=>{M_.init(e,t),nt.init(e,t)});function YP(e){return IP(qP,e)}const XP=oe("ZodISODate",(e,t)=>{z_.init(e,t),nt.init(e,t)});function JP(e){return OP(XP,e)}const eT=oe("ZodISOTime",(e,t)=>{L_.init(e,t),nt.init(e,t)});function tT(e){return AP(eT,e)}const nT=oe("ZodISODuration",(e,t)=>{N_.init(e,t),nt.init(e,t)});function rT(e){return MP(nT,e)}const oT=(e,t)=>{v0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>OR(e,o)},flatten:{value:o=>IR(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,od,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,od,2)}},isEmpty:{get(){return e.issues.length===0}}})},xn=oe("ZodError",oT,{Parent:Error}),iT=op(xn),sT=ip(xn),aT=Eu(xn),lT=bu(xn),uT=zR(xn),cT=LR(xn),fT=NR(xn),dT=DR(xn),pT=FR(xn),hT=jR(xn),mT=BR(xn),gT=UR(xn),Xt=oe("ZodType",(e,t)=>(jt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(_R(t,{checks:[...t.checks??[],...o.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(o,i)=>TR(e,o,i),e.brand=()=>e,e.register=((o,i)=>(o.add(e,i),e)),e.parse=(o,i)=>iT(e,o,i,{callee:e.parse}),e.safeParse=(o,i)=>aT(e,o,i),e.parseAsync=async(o,i)=>sT(e,o,i,{callee:e.parseAsync}),e.safeParseAsync=async(o,i)=>lT(e,o,i),e.spa=e.safeParseAsync,e.encode=(o,i)=>uT(e,o,i),e.decode=(o,i)=>cT(e,o,i),e.encodeAsync=async(o,i)=>fT(e,o,i),e.decodeAsync=async(o,i)=>dT(e,o,i),e.safeEncode=(o,i)=>pT(e,o,i),e.safeDecode=(o,i)=>hT(e,o,i),e.safeEncodeAsync=async(o,i)=>mT(e,o,i),e.safeDecodeAsync=async(o,i)=>gT(e,o,i),e.refine=(o,i)=>e.check(t$(o,i)),e.superRefine=o=>e.check(n$(o)),e.overwrite=o=>e.check(Ui(o)),e.optional=()=>Cy(e),e.nullable=()=>Ey(e),e.nullish=()=>Cy(Ey(e)),e.nonoptional=o=>KT(e,o),e.array=()=>_0(e),e.or=o=>P0([e,o]),e.and=o=>DT(e,o),e.transform=o=>by(e,jT(o)),e.default=o=>VT(e,o),e.prefault=o=>HT(e,o),e.catch=o=>qT(e,o),e.pipe=o=>by(e,o),e.readonly=()=>JT(e),e.describe=o=>{const i=e.clone();return Ll.add(i,{description:o}),i},Object.defineProperty(e,"description",{get(){var o;return(o=Ll.get(e))==null?void 0:o.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Ll.get(e);const i=e.clone();return Ll.add(i,o[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),R0=oe("_ZodString",(e,t)=>{sp.init(e,t),Xt.init(e,t);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...i)=>e.check(zP(...i)),e.includes=(...i)=>e.check(DP(...i)),e.startsWith=(...i)=>e.check(FP(...i)),e.endsWith=(...i)=>e.check(jP(...i)),e.min=(...i)=>e.check(tu(...i)),e.max=(...i)=>e.check(E0(...i)),e.length=(...i)=>e.check(b0(...i)),e.nonempty=(...i)=>e.check(tu(1,...i)),e.lowercase=i=>e.check(LP(i)),e.uppercase=i=>e.check(NP(i)),e.trim=()=>e.check(UP()),e.normalize=(...i)=>e.check(BP(...i)),e.toLowerCase=()=>e.check(WP()),e.toUpperCase=()=>e.check(VP()),e.slugify=()=>e.check(ZP())}),yT=oe("ZodString",(e,t)=>{sp.init(e,t),R0.init(e,t),e.email=o=>e.check(cP(vT,o)),e.url=o=>e.check(mP(wT,o)),e.jwt=o=>e.check($P(MT,o)),e.emoji=o=>e.check(gP(ST,o)),e.guid=o=>e.check(Sy(ky,o)),e.uuid=o=>e.check(fP(Nl,o)),e.uuidv4=o=>e.check(dP(Nl,o)),e.uuidv6=o=>e.check(pP(Nl,o)),e.uuidv7=o=>e.check(hP(Nl,o)),e.nanoid=o=>e.check(yP(xT,o)),e.guid=o=>e.check(Sy(ky,o)),e.cuid=o=>e.check(vP(kT,o)),e.cuid2=o=>e.check(wP(CT,o)),e.ulid=o=>e.check(SP(ET,o)),e.base64=o=>e.check(_P(IT,o)),e.base64url=o=>e.check(PP(OT,o)),e.xid=o=>e.check(xP(bT,o)),e.ksuid=o=>e.check(kP(RT,o)),e.ipv4=o=>e.check(CP(_T,o)),e.ipv6=o=>e.check(EP(PT,o)),e.cidrv4=o=>e.check(bP(TT,o)),e.cidrv6=o=>e.check(RP($T,o)),e.e164=o=>e.check(TP(AT,o)),e.datetime=o=>e.check(YP(o)),e.date=o=>e.check(JP(o)),e.time=o=>e.check(tT(o)),e.duration=o=>e.check(rT(o))});function xy(e){return uP(yT,e)}const nt=oe("ZodStringFormat",(e,t)=>{Xe.init(e,t),R0.init(e,t)}),vT=oe("ZodEmail",(e,t)=>{b_.init(e,t),nt.init(e,t)}),ky=oe("ZodGUID",(e,t)=>{C_.init(e,t),nt.init(e,t)}),Nl=oe("ZodUUID",(e,t)=>{E_.init(e,t),nt.init(e,t)}),wT=oe("ZodURL",(e,t)=>{R_.init(e,t),nt.init(e,t)}),ST=oe("ZodEmoji",(e,t)=>{__.init(e,t),nt.init(e,t)}),xT=oe("ZodNanoID",(e,t)=>{P_.init(e,t),nt.init(e,t)}),kT=oe("ZodCUID",(e,t)=>{T_.init(e,t),nt.init(e,t)}),CT=oe("ZodCUID2",(e,t)=>{$_.init(e,t),nt.init(e,t)}),ET=oe("ZodULID",(e,t)=>{I_.init(e,t),nt.init(e,t)}),bT=oe("ZodXID",(e,t)=>{O_.init(e,t),nt.init(e,t)}),RT=oe("ZodKSUID",(e,t)=>{A_.init(e,t),nt.init(e,t)}),_T=oe("ZodIPv4",(e,t)=>{D_.init(e,t),nt.init(e,t)}),PT=oe("ZodIPv6",(e,t)=>{F_.init(e,t),nt.init(e,t)}),TT=oe("ZodCIDRv4",(e,t)=>{j_.init(e,t),nt.init(e,t)}),$T=oe("ZodCIDRv6",(e,t)=>{B_.init(e,t),nt.init(e,t)}),IT=oe("ZodBase64",(e,t)=>{U_.init(e,t),nt.init(e,t)}),OT=oe("ZodBase64URL",(e,t)=>{V_.init(e,t),nt.init(e,t)}),AT=oe("ZodE164",(e,t)=>{Z_.init(e,t),nt.init(e,t)}),MT=oe("ZodJWT",(e,t)=>{Q_.init(e,t),nt.init(e,t)}),zT=oe("ZodArray",(e,t)=>{K_.init(e,t),Xt.init(e,t),e.element=t.element,e.min=(o,i)=>e.check(tu(o,i)),e.nonempty=o=>e.check(tu(1,o)),e.max=(o,i)=>e.check(E0(o,i)),e.length=(o,i)=>e.check(b0(o,i)),e.unwrap=()=>e.element});function _0(e,t){return HP(zT,e,t)}const LT=oe("ZodUnion",(e,t)=>{G_.init(e,t),Xt.init(e,t),e.options=t.options});function P0(e,t){return new LT({type:"union",options:e,...Ee(t)})}const NT=oe("ZodIntersection",(e,t)=>{q_.init(e,t),Xt.init(e,t)});function DT(e,t){return new NT({type:"intersection",left:e,right:t})}const FT=oe("ZodTransform",(e,t)=>{Y_.init(e,t),Xt.init(e,t),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new h0(e.constructor.name);o.addIssue=u=>{if(typeof u=="string")o.issues.push(qs(u,o.value,t));else{const c=u;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=o.value),c.inst??(c.inst=e),o.issues.push(qs(c))}};const a=t.transform(o.value,o);return a instanceof Promise?a.then(u=>(o.value=u,o)):(o.value=a,o)}});function jT(e){return new FT({type:"transform",transform:e})}const BT=oe("ZodOptional",(e,t)=>{X_.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Cy(e){return new BT({type:"optional",innerType:e})}const UT=oe("ZodNullable",(e,t)=>{J_.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ey(e){return new UT({type:"nullable",innerType:e})}const WT=oe("ZodDefault",(e,t)=>{eP.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function VT(e,t){return new WT({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():g0(t)}})}const ZT=oe("ZodPrefault",(e,t)=>{tP.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function HT(e,t){return new ZT({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():g0(t)}})}const QT=oe("ZodNonOptional",(e,t)=>{nP.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function KT(e,t){return new QT({type:"nonoptional",innerType:e,...Ee(t)})}const GT=oe("ZodCatch",(e,t)=>{rP.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qT(e,t){return new GT({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const YT=oe("ZodPipe",(e,t)=>{oP.init(e,t),Xt.init(e,t),e.in=t.in,e.out=t.out});function by(e,t){return new YT({type:"pipe",in:e,out:t})}const XT=oe("ZodReadonly",(e,t)=>{iP.init(e,t),Xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function JT(e){return new XT({type:"readonly",innerType:e})}const e$=oe("ZodCustom",(e,t)=>{sP.init(e,t),Xt.init(e,t)});function t$(e,t={}){return QP(e$,e,t)}function n$(e){return KP(e)}var nu=(e,t)=>e.parse(t);function ap(e,t){return t?e.replace(/:([A-Za-z0-9_]+)/g,(o,i)=>{const a=t[i];if(a==null)throw new Error(`Missing param :${i}`);return String(a)}):e}function r$(e){let t=e.leaf.path;return e.params&&(t=ap(t,e.params)),[e.leaf.method,...t.split("/").filter(Boolean),e.query??{}]}var Wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},o$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wr,kd,Fy,i$=(Fy=class{constructor(){ye(this,Wr,o$);ye(this,kd,!1)}setTimeoutProvider(e){ae(this,Wr,e)}setTimeout(e,t){return _(this,Wr).setTimeout(e,t)}clearTimeout(e){_(this,Wr).clearTimeout(e)}setInterval(e,t){return _(this,Wr).setInterval(e,t)}clearInterval(e){_(this,Wr).clearInterval(e)}},Wr=new WeakMap,kd=new WeakMap,Fy),Co=new i$;function s$(e){setTimeout(e,0)}var No=typeof window>"u"||"Deno"in globalThis;function Ft(){}function a$(e,t){return typeof e=="function"?e(t):e}function ad(e){return typeof e=="number"&&e>=0&&e!==1/0}function T0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jr(e,t){return typeof e=="function"?e(t):e}function vn(e,t){return typeof e=="function"?e(t):e}function Ry(e,t){const{type:o="all",exact:i,fetchStatus:a,predicate:u,queryKey:c,stale:d}=e;if(c){if(i){if(t.queryHash!==lp(c,t.options))return!1}else if(!Ys(t.queryKey,c))return!1}if(o!=="all"){const h=t.isActive();if(o==="active"&&!h||o==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||u&&!u(t))}function _y(e,t){const{exact:o,status:i,predicate:a,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(o){if(Do(t.options.mutationKey)!==Do(u))return!1}else if(!Ys(t.options.mutationKey,u))return!1}return!(i&&t.state.status!==i||a&&!a(t))}function lp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Do)(e)}function Do(e){return JSON.stringify(e,(t,o)=>ld(o)?Object.keys(o).sort().reduce((i,a)=>(i[a]=o[a],i),{}):o)}function Ys(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Ys(e[o],t[o])):!1}var l$=Object.prototype.hasOwnProperty;function $0(e,t){if(e===t)return e;const o=Py(e)&&Py(t);if(!o&&!(ld(e)&&ld(t)))return t;const a=(o?e:Object.keys(e)).length,u=o?t:Object.keys(t),c=u.length,d=o?new Array(c):{};let h=0;for(let m=0;m<c;m++){const g=o?m:u[m],y=e[g],x=t[g];if(y===x){d[g]=y,(o?m<a:l$.call(e,g))&&h++;continue}if(y===null||x===null||typeof y!="object"||typeof x!="object"){d[g]=x;continue}const E=$0(y,x);d[g]=E,E===y&&h++}return a===c&&h===a?e:d}function ru(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(e[o]!==t[o])return!1;return!0}function Py(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ld(e){if(!Ty(e))return!1;const t=e.constructor;if(t===void 0)return!0;const o=t.prototype;return!(!Ty(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ty(e){return Object.prototype.toString.call(e)==="[object Object]"}function u$(e){return new Promise(t=>{Co.setTimeout(t,e)})}function ud(e,t,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,t):o.structuralSharing!==!1?$0(e,t):t}function $y(e){return e}function c$(e,t,o=0){const i=[...e,t];return o&&i.length>o?i.slice(1):i}function f$(e,t,o=0){const i=[t,...e];return o&&i.length>o?i.slice(0,-1):i}var up=Symbol();function I0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===up?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function O0(e,t){return typeof e=="function"?e(...t):!!e}var Eo,Vr,Ei,jy,d$=(jy=class extends Wi{constructor(){super();ye(this,Eo);ye(this,Vr);ye(this,Ei);ae(this,Ei,t=>{if(!No&&window.addEventListener){const o=()=>t();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){_(this,Vr)||this.setEventListener(_(this,Ei))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Vr))==null||t.call(this),ae(this,Vr,void 0))}setEventListener(t){var o;ae(this,Ei,t),(o=_(this,Vr))==null||o.call(this),ae(this,Vr,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){_(this,Eo)!==t&&(ae(this,Eo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(o=>{o(t)})}isFocused(){var t;return typeof _(this,Eo)=="boolean"?_(this,Eo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Eo=new WeakMap,Vr=new WeakMap,Ei=new WeakMap,jy),cp=new d$;function cd(){let e,t;const o=new Promise((a,u)=>{e=a,t=u});o.status="pending",o.catch(()=>{});function i(a){Object.assign(o,a),delete o.resolve,delete o.reject}return o.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},o.reject=a=>{i({status:"rejected",reason:a}),t(a)},o}var p$=s$;function h$(){let e=[],t=0,o=d=>{d()},i=d=>{d()},a=p$;const u=d=>{t?e.push(d):a(()=>{o(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{i(()=>{d.forEach(h=>{o(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{u(()=>{d(...h)})},schedule:u,setNotifyFunction:d=>{o=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var mt=h$(),bi,Zr,Ri,By,m$=(By=class extends Wi{constructor(){super();ye(this,bi,!0);ye(this,Zr);ye(this,Ri);ae(this,Ri,t=>{if(!No&&window.addEventListener){const o=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",i)}}})}onSubscribe(){_(this,Zr)||this.setEventListener(_(this,Ri))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Zr))==null||t.call(this),ae(this,Zr,void 0))}setEventListener(t){var o;ae(this,Ri,t),(o=_(this,Zr))==null||o.call(this),ae(this,Zr,t(this.setOnline.bind(this)))}setOnline(t){_(this,bi)!==t&&(ae(this,bi,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return _(this,bi)}},bi=new WeakMap,Zr=new WeakMap,Ri=new WeakMap,By),ou=new m$;function g$(e){return Math.min(1e3*2**e,3e4)}function A0(e){return(e??"online")==="online"?ou.isOnline():!0}var fd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function M0(e){let t=!1,o=0,i;const a=cd(),u=()=>a.status!=="pending",c=w=>{var b;if(!u()){const I=new fd(w);x(I),(b=e.onCancel)==null||b.call(e,I)}},d=()=>{t=!0},h=()=>{t=!1},m=()=>cp.isFocused()&&(e.networkMode==="always"||ou.isOnline())&&e.canRun(),g=()=>A0(e.networkMode)&&e.canRun(),y=w=>{u()||(i==null||i(),a.resolve(w))},x=w=>{u()||(i==null||i(),a.reject(w))},E=()=>new Promise(w=>{var b;i=I=>{(u()||m())&&w(I)},(b=e.onPause)==null||b.call(e)}).then(()=>{var w;i=void 0,u()||(w=e.onContinue)==null||w.call(e)}),C=()=>{if(u())return;let w;const b=o===0?e.initialPromise:void 0;try{w=b??e.fn()}catch(I){w=Promise.reject(I)}Promise.resolve(w).then(y).catch(I=>{var z;if(u())return;const L=e.retry??(No?0:3),$=e.retryDelay??g$,T=typeof $=="function"?$(o,I):$,A=L===!0||typeof L=="number"&&o<L||typeof L=="function"&&L(o,I);if(t||!A){x(I);return}o++,(z=e.onFail)==null||z.call(e,o,I),u$(T).then(()=>m()?void 0:E()).then(()=>{t?x(I):C()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?C():E().then(C),a)}}var bo,Uy,z0=(Uy=class{constructor(){ye(this,bo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ad(this.gcTime)&&ae(this,bo,Co.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(No?1/0:300*1e3))}clearGcTimeout(){_(this,bo)&&(Co.clearTimeout(_(this,bo)),ae(this,bo,void 0))}},bo=new WeakMap,Uy),Ro,_i,gn,_o,wt,Xs,Po,On,fr,Wy,y$=(Wy=class extends z0{constructor(t){super();ye(this,On);ye(this,Ro);ye(this,_i);ye(this,gn);ye(this,_o);ye(this,wt);ye(this,Xs);ye(this,Po);ae(this,Po,!1),ae(this,Xs,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,_o,t.client),ae(this,gn,_(this,_o).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,Ro,Oy(this.options)),this.state=t.state??_(this,Ro),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,wt))==null?void 0:t.promise}setOptions(t){if(this.options={..._(this,Xs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const o=Oy(this.options);o.data!==void 0&&(this.setState(Iy(o.data,o.dataUpdatedAt)),ae(this,Ro,o))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,gn).remove(this)}setData(t,o){const i=ud(this.state.data,t,this.options);return be(this,On,fr).call(this,{data:i,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),i}setState(t,o){be(this,On,fr).call(this,{type:"setState",state:t,setStateOptions:o})}cancel(t){var i,a;const o=(i=_(this,wt))==null?void 0:i.promise;return(a=_(this,wt))==null||a.cancel(t),o?o.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Ro))}isActive(){return this.observers.some(t=>vn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===up||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Jr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!T0(this.state.dataUpdatedAt,t)}onFocus(){var o;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(o=_(this,wt))==null||o.continue()}onOnline(){var o;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(o=_(this,wt))==null||o.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,gn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(o=>o!==t),this.observers.length||(_(this,wt)&&(_(this,Po)?_(this,wt).cancel({revert:!0}):_(this,wt).cancelRetry()),this.scheduleGc()),_(this,gn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,On,fr).call(this,{type:"invalidate"})}async fetch(t,o){var h,m,g,y,x,E,C,w,b,I,L,$;if(this.state.fetchStatus!=="idle"&&((h=_(this,wt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(_(this,wt))return _(this,wt).continueRetry(),_(this,wt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(A=>A.options.queryFn);T&&this.setOptions(T.options)}const i=new AbortController,a=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(ae(this,Po,!0),i.signal)})},u=()=>{const T=I0(this.options,o),z=(()=>{const F={client:_(this,_o),queryKey:this.queryKey,meta:this.meta};return a(F),F})();return ae(this,Po,!1),this.options.persister?this.options.persister(T,z,this):T(z)},d=(()=>{const T={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:_(this,_o),state:this.state,fetchFn:u};return a(T),T})();(m=this.options.behavior)==null||m.onFetch(d,this),ae(this,_i,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&be(this,On,fr).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ae(this,wt,M0({initialPromise:o==null?void 0:o.initialPromise,fn:d.fetchFn,onCancel:T=>{T instanceof fd&&T.revert&&this.setState({..._(this,_i),fetchStatus:"idle"}),i.abort()},onFail:(T,A)=>{be(this,On,fr).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{be(this,On,fr).call(this,{type:"pause"})},onContinue:()=>{be(this,On,fr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const T=await _(this,wt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(E=(x=_(this,gn).config).onSuccess)==null||E.call(x,T,this),(w=(C=_(this,gn).config).onSettled)==null||w.call(C,T,this.state.error,this),T}catch(T){if(T instanceof fd){if(T.silent)return _(this,wt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw be(this,On,fr).call(this,{type:"error",error:T}),(I=(b=_(this,gn).config).onError)==null||I.call(b,T,this),($=(L=_(this,gn).config).onSettled)==null||$.call(L,this.state.data,T,this),T}finally{this.scheduleGc()}}},Ro=new WeakMap,_i=new WeakMap,gn=new WeakMap,_o=new WeakMap,wt=new WeakMap,Xs=new WeakMap,Po=new WeakMap,On=new WeakSet,fr=function(t){const o=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...L0(i.data,this.options),fetchMeta:t.meta??null};case"success":const a={...i,...Iy(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ae(this,_i,t.manual?a:void 0),a;case"error":const u=t.error;return{...i,error:u,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=o(this.state),mt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),_(this,gn).notify({query:this,type:"updated",action:t})})},Wy);function L0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:A0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Iy(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Oy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,i=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var Gt,Te,Js,Nt,To,Pi,dr,Hr,ea,Ti,$i,$o,Io,Qr,Ii,Le,js,dd,pd,hd,md,gd,yd,vd,D0,Vy,N0=(Vy=class extends Wi{constructor(t,o){super();ye(this,Le);ye(this,Gt);ye(this,Te);ye(this,Js);ye(this,Nt);ye(this,To);ye(this,Pi);ye(this,dr);ye(this,Hr);ye(this,ea);ye(this,Ti);ye(this,$i);ye(this,$o);ye(this,Io);ye(this,Qr);ye(this,Ii,new Set);this.options=o,ae(this,Gt,t),ae(this,Hr,null),ae(this,dr,cd()),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Te).addObserver(this),Ay(_(this,Te),this.options)?be(this,Le,js).call(this):this.updateResult(),be(this,Le,md).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wd(_(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wd(_(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Le,gd).call(this),be(this,Le,yd).call(this),_(this,Te).removeObserver(this)}setOptions(t){const o=this.options,i=_(this,Te);if(this.options=_(this,Gt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vn(this.options.enabled,_(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,Le,vd).call(this),_(this,Te).setOptions(this.options),o._defaulted&&!ru(this.options,o)&&_(this,Gt).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Te),observer:this});const a=this.hasListeners();a&&My(_(this,Te),i,this.options,o)&&be(this,Le,js).call(this),this.updateResult(),a&&(_(this,Te)!==i||vn(this.options.enabled,_(this,Te))!==vn(o.enabled,_(this,Te))||Jr(this.options.staleTime,_(this,Te))!==Jr(o.staleTime,_(this,Te)))&&be(this,Le,dd).call(this);const u=be(this,Le,pd).call(this);a&&(_(this,Te)!==i||vn(this.options.enabled,_(this,Te))!==vn(o.enabled,_(this,Te))||u!==_(this,Qr))&&be(this,Le,hd).call(this,u)}getOptimisticResult(t){const o=_(this,Gt).getQueryCache().build(_(this,Gt),t),i=this.createResult(o,t);return w$(this,i)&&(ae(this,Nt,i),ae(this,Pi,this.options),ae(this,To,_(this,Te).state)),i}getCurrentResult(){return _(this,Nt)}trackResult(t,o){return new Proxy(t,{get:(i,a)=>(this.trackProp(a),o==null||o(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,dr).status==="pending"&&_(this,dr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(t){_(this,Ii).add(t)}getCurrentQuery(){return _(this,Te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const o=_(this,Gt).defaultQueryOptions(t),i=_(this,Gt).getQueryCache().build(_(this,Gt),o);return i.fetch().then(()=>this.createResult(i,o))}fetch(t){return be(this,Le,js).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Nt)))}createResult(t,o){var H;const i=_(this,Te),a=this.options,u=_(this,Nt),c=_(this,To),d=_(this,Pi),m=t!==i?t.state:_(this,Js),{state:g}=t;let y={...g},x=!1,E;if(o._optimisticResults){const V=this.hasListeners(),J=!V&&Ay(t,o),k=V&&My(t,i,o,a);(J||k)&&(y={...y,...L0(g.data,t.options)}),o._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:C,errorUpdatedAt:w,status:b}=y;E=y.data;let I=!1;if(o.placeholderData!==void 0&&E===void 0&&b==="pending"){let V;u!=null&&u.isPlaceholderData&&o.placeholderData===(d==null?void 0:d.placeholderData)?(V=u.data,I=!0):V=typeof o.placeholderData=="function"?o.placeholderData((H=_(this,$i))==null?void 0:H.state.data,_(this,$i)):o.placeholderData,V!==void 0&&(b="success",E=ud(u==null?void 0:u.data,V,o),x=!0)}if(o.select&&E!==void 0&&!I)if(u&&E===(c==null?void 0:c.data)&&o.select===_(this,ea))E=_(this,Ti);else try{ae(this,ea,o.select),E=o.select(E),E=ud(u==null?void 0:u.data,E,o),ae(this,Ti,E),ae(this,Hr,null)}catch(V){ae(this,Hr,V)}_(this,Hr)&&(C=_(this,Hr),E=_(this,Ti),w=Date.now(),b="error");const L=y.fetchStatus==="fetching",$=b==="pending",T=b==="error",A=$&&L,z=E!==void 0,U={status:b,fetchStatus:y.fetchStatus,isPending:$,isSuccess:b==="success",isError:T,isInitialLoading:A,isLoading:A,data:E,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:L,isRefetching:L&&!$,isLoadingError:T&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:T&&z,isStale:fp(t,o),refetch:this.refetch,promise:_(this,dr),isEnabled:vn(o.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const V=q=>{U.status==="error"?q.reject(U.error):U.data!==void 0&&q.resolve(U.data)},J=()=>{const q=ae(this,dr,U.promise=cd());V(q)},k=_(this,dr);switch(k.status){case"pending":t.queryHash===i.queryHash&&V(k);break;case"fulfilled":(U.status==="error"||U.data!==k.value)&&J();break;case"rejected":(U.status!=="error"||U.error!==k.reason)&&J();break}}return U}updateResult(){const t=_(this,Nt),o=this.createResult(_(this,Te),this.options);if(ae(this,To,_(this,Te).state),ae(this,Pi,this.options),_(this,To).data!==void 0&&ae(this,$i,_(this,Te)),ru(o,t))return;ae(this,Nt,o);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!_(this,Ii).size)return!0;const c=new Set(u??_(this,Ii));return this.options.throwOnError&&c.add("error"),Object.keys(_(this,Nt)).some(d=>{const h=d;return _(this,Nt)[h]!==t[h]&&c.has(h)})};be(this,Le,D0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Le,md).call(this)}},Gt=new WeakMap,Te=new WeakMap,Js=new WeakMap,Nt=new WeakMap,To=new WeakMap,Pi=new WeakMap,dr=new WeakMap,Hr=new WeakMap,ea=new WeakMap,Ti=new WeakMap,$i=new WeakMap,$o=new WeakMap,Io=new WeakMap,Qr=new WeakMap,Ii=new WeakMap,Le=new WeakSet,js=function(t){be(this,Le,vd).call(this);let o=_(this,Te).fetch(this.options,t);return t!=null&&t.throwOnError||(o=o.catch(Ft)),o},dd=function(){be(this,Le,gd).call(this);const t=Jr(this.options.staleTime,_(this,Te));if(No||_(this,Nt).isStale||!ad(t))return;const i=T0(_(this,Nt).dataUpdatedAt,t)+1;ae(this,$o,Co.setTimeout(()=>{_(this,Nt).isStale||this.updateResult()},i))},pd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Te)):this.options.refetchInterval)??!1},hd=function(t){be(this,Le,yd).call(this),ae(this,Qr,t),!(No||vn(this.options.enabled,_(this,Te))===!1||!ad(_(this,Qr))||_(this,Qr)===0)&&ae(this,Io,Co.setInterval(()=>{(this.options.refetchIntervalInBackground||cp.isFocused())&&be(this,Le,js).call(this)},_(this,Qr)))},md=function(){be(this,Le,dd).call(this),be(this,Le,hd).call(this,be(this,Le,pd).call(this))},gd=function(){_(this,$o)&&(Co.clearTimeout(_(this,$o)),ae(this,$o,void 0))},yd=function(){_(this,Io)&&(Co.clearInterval(_(this,Io)),ae(this,Io,void 0))},vd=function(){const t=_(this,Gt).getQueryCache().build(_(this,Gt),this.options);if(t===_(this,Te))return;const o=_(this,Te);ae(this,Te,t),ae(this,Js,t.state),this.hasListeners()&&(o==null||o.removeObserver(this),t.addObserver(this))},D0=function(t){mt.batch(()=>{t.listeners&&this.listeners.forEach(o=>{o(_(this,Nt))}),_(this,Gt).getQueryCache().notify({query:_(this,Te),type:"observerResultsUpdated"})})},Vy);function v$(e,t){return vn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ay(e,t){return v$(e,t)||e.state.data!==void 0&&wd(e,t,t.refetchOnMount)}function wd(e,t,o){if(vn(t.enabled,e)!==!1&&Jr(t.staleTime,e)!=="static"){const i=typeof o=="function"?o(e):o;return i==="always"||i!==!1&&fp(e,t)}return!1}function My(e,t,o,i){return(e!==t||vn(i.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&fp(e,o)}function fp(e,t){return vn(t.enabled,e)!==!1&&e.isStaleByTime(Jr(t.staleTime,e))}function w$(e,t){return!ru(e.getCurrentResult(),t)}function iu(e){return{onFetch:(t,o)=>{var g,y,x,E,C;const i=t.options,a=(x=(y=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,u=((E=t.state.data)==null?void 0:E.pages)||[],c=((C=t.state.data)==null?void 0:C.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let w=!1;const b=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},I=I0(t.options,t.fetchOptions),L=async($,T,A)=>{if(w)return Promise.reject();if(T==null&&$.pages.length)return Promise.resolve($);const F=(()=>{const J={client:t.client,queryKey:t.queryKey,pageParam:T,direction:A?"backward":"forward",meta:t.options.meta};return b(J),J})(),U=await I(F),{maxPages:H}=t.options,V=A?f$:c$;return{pages:V($.pages,U,H),pageParams:V($.pageParams,T,H)}};if(a&&u.length){const $=a==="backward",T=$?F0:Sd,A={pages:u,pageParams:c},z=T(i,A);d=await L(A,z,$)}else{const $=e??u.length;do{const T=h===0?c[0]??i.initialPageParam:Sd(i,d);if(h>0&&T==null)break;d=await L(d,T),h++}while(h<$)}return d};t.options.persister?t.fetchFn=()=>{var w,b;return(b=(w=t.options).persister)==null?void 0:b.call(w,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o)}:t.fetchFn=m}}}function Sd(e,{pages:t,pageParams:o}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,o[i],o):void 0}function F0(e,{pages:t,pageParams:o}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,o[0],o):void 0}function S$(e,t){return t?Sd(e,t)!=null:!1}function x$(e,t){return!t||!e.getPreviousPageParam?!1:F0(e,t)!=null}var k$=class extends N0{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:iu()})}getOptimisticResult(e){return e.behavior=iu(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var C,w;const{state:o}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:u,isError:c,isRefetchError:d}=i,h=(w=(C=o.fetchMeta)==null?void 0:C.fetchMore)==null?void 0:w.direction,m=c&&h==="forward",g=a&&h==="forward",y=c&&h==="backward",x=a&&h==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:S$(t,o.data),hasPreviousPage:x$(t,o.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:y,isFetchingPreviousPage:x,isRefetchError:d&&!m&&!y,isRefetching:u&&!g&&!x}}},ta,Wn,Dt,Oo,Vn,Ur,Zy,C$=(Zy=class extends z0{constructor(t){super();ye(this,Vn);ye(this,ta);ye(this,Wn);ye(this,Dt);ye(this,Oo);ae(this,ta,t.client),this.mutationId=t.mutationId,ae(this,Dt,t.mutationCache),ae(this,Wn,[]),this.state=t.state||j0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,Wn).includes(t)||(_(this,Wn).push(t),this.clearGcTimeout(),_(this,Dt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,Wn,_(this,Wn).filter(o=>o!==t)),this.scheduleGc(),_(this,Dt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,Wn).length||(this.state.status==="pending"?this.scheduleGc():_(this,Dt).remove(this))}continue(){var t;return((t=_(this,Oo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,h,m,g,y,x,E,C,w,b,I,L,$,T,A,z,F,U,H;const o=()=>{be(this,Vn,Ur).call(this,{type:"continue"})},i={client:_(this,ta),meta:this.options.meta,mutationKey:this.options.mutationKey};ae(this,Oo,M0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(V,J)=>{be(this,Vn,Ur).call(this,{type:"failed",failureCount:V,error:J})},onPause:()=>{be(this,Vn,Ur).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Dt).canRun(this)}));const a=this.state.status==="pending",u=!_(this,Oo).canStart();try{if(a)o();else{be(this,Vn,Ur).call(this,{type:"pending",variables:t,isPaused:u}),await((d=(c=_(this,Dt).config).onMutate)==null?void 0:d.call(c,t,this,i));const J=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,t,i));J!==this.state.context&&be(this,Vn,Ur).call(this,{type:"pending",context:J,variables:t,isPaused:u})}const V=await _(this,Oo).start();return await((y=(g=_(this,Dt).config).onSuccess)==null?void 0:y.call(g,V,t,this.state.context,this,i)),await((E=(x=this.options).onSuccess)==null?void 0:E.call(x,V,t,this.state.context,i)),await((w=(C=_(this,Dt).config).onSettled)==null?void 0:w.call(C,V,null,this.state.variables,this.state.context,this,i)),await((I=(b=this.options).onSettled)==null?void 0:I.call(b,V,null,t,this.state.context,i)),be(this,Vn,Ur).call(this,{type:"success",data:V}),V}catch(V){try{throw await(($=(L=_(this,Dt).config).onError)==null?void 0:$.call(L,V,t,this.state.context,this,i)),await((A=(T=this.options).onError)==null?void 0:A.call(T,V,t,this.state.context,i)),await((F=(z=_(this,Dt).config).onSettled)==null?void 0:F.call(z,void 0,V,this.state.variables,this.state.context,this,i)),await((H=(U=this.options).onSettled)==null?void 0:H.call(U,void 0,V,t,this.state.context,i)),V}finally{be(this,Vn,Ur).call(this,{type:"error",error:V})}}finally{_(this,Dt).runNext(this)}}},ta=new WeakMap,Wn=new WeakMap,Dt=new WeakMap,Oo=new WeakMap,Vn=new WeakSet,Ur=function(t){const o=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=o(this.state),mt.batch(()=>{_(this,Wn).forEach(i=>{i.onMutationUpdate(t)}),_(this,Dt).notify({mutation:this,type:"updated",action:t})})},Zy);function j0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,An,na,Hy,E$=(Hy=class extends Wi{constructor(t={}){super();ye(this,pr);ye(this,An);ye(this,na);this.config=t,ae(this,pr,new Set),ae(this,An,new Map),ae(this,na,0)}build(t,o,i){const a=new C$({client:t,mutationCache:this,mutationId:++kl(this,na)._,options:t.defaultMutationOptions(o),state:i});return this.add(a),a}add(t){_(this,pr).add(t);const o=Dl(t);if(typeof o=="string"){const i=_(this,An).get(o);i?i.push(t):_(this,An).set(o,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,pr).delete(t)){const o=Dl(t);if(typeof o=="string"){const i=_(this,An).get(o);if(i)if(i.length>1){const a=i.indexOf(t);a!==-1&&i.splice(a,1)}else i[0]===t&&_(this,An).delete(o)}}this.notify({type:"removed",mutation:t})}canRun(t){const o=Dl(t);if(typeof o=="string"){const i=_(this,An).get(o),a=i==null?void 0:i.find(u=>u.state.status==="pending");return!a||a===t}else return!0}runNext(t){var i;const o=Dl(t);if(typeof o=="string"){const a=(i=_(this,An).get(o))==null?void 0:i.find(u=>u!==t&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){mt.batch(()=>{_(this,pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,pr).clear(),_(this,An).clear()})}getAll(){return Array.from(_(this,pr))}find(t){const o={exact:!0,...t};return this.getAll().find(i=>_y(o,i))}findAll(t={}){return this.getAll().filter(o=>_y(t,o))}notify(t){mt.batch(()=>{this.listeners.forEach(o=>{o(t)})})}resumePausedMutations(){const t=this.getAll().filter(o=>o.state.isPaused);return mt.batch(()=>Promise.all(t.map(o=>o.continue().catch(Ft))))}},pr=new WeakMap,An=new WeakMap,na=new WeakMap,Hy);function Dl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var hr,Kr,qt,mr,yr,Hl,xd,Qy,b$=(Qy=class extends Wi{constructor(t,o){super();ye(this,yr);ye(this,hr);ye(this,Kr);ye(this,qt);ye(this,mr);ae(this,hr,t),this.setOptions(o),this.bindMethods(),be(this,yr,Hl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const o=this.options;this.options=_(this,hr).defaultMutationOptions(t),ru(this.options,o)||_(this,hr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,qt),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Do(o.mutationKey)!==Do(this.options.mutationKey)?this.reset():((i=_(this,qt))==null?void 0:i.state.status)==="pending"&&_(this,qt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=_(this,qt))==null||t.removeObserver(this)}onMutationUpdate(t){be(this,yr,Hl).call(this),be(this,yr,xd).call(this,t)}getCurrentResult(){return _(this,Kr)}reset(){var t;(t=_(this,qt))==null||t.removeObserver(this),ae(this,qt,void 0),be(this,yr,Hl).call(this),be(this,yr,xd).call(this)}mutate(t,o){var i;return ae(this,mr,o),(i=_(this,qt))==null||i.removeObserver(this),ae(this,qt,_(this,hr).getMutationCache().build(_(this,hr),this.options)),_(this,qt).addObserver(this),_(this,qt).execute(t)}},hr=new WeakMap,Kr=new WeakMap,qt=new WeakMap,mr=new WeakMap,yr=new WeakSet,Hl=function(){var o;const t=((o=_(this,qt))==null?void 0:o.state)??j0();ae(this,Kr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},xd=function(t){mt.batch(()=>{var o,i,a,u,c,d,h,m;if(_(this,mr)&&this.hasListeners()){const g=_(this,Kr).variables,y=_(this,Kr).context,x={client:_(this,hr),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((i=(o=_(this,mr)).onSuccess)==null||i.call(o,t.data,g,y,x),(u=(a=_(this,mr)).onSettled)==null||u.call(a,t.data,null,g,y,x)):(t==null?void 0:t.type)==="error"&&((d=(c=_(this,mr)).onError)==null||d.call(c,t.error,g,y,x),(m=(h=_(this,mr)).onSettled)==null||m.call(h,void 0,t.error,g,y,x))}this.listeners.forEach(g=>{g(_(this,Kr))})})},Qy),Zn,Ky,R$=(Ky=class extends Wi{constructor(t={}){super();ye(this,Zn);this.config=t,ae(this,Zn,new Map)}build(t,o,i){const a=o.queryKey,u=o.queryHash??lp(a,o);let c=this.get(u);return c||(c=new y$({client:t,queryKey:a,queryHash:u,options:t.defaultQueryOptions(o),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(c)),c}add(t){_(this,Zn).has(t.queryHash)||(_(this,Zn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const o=_(this,Zn).get(t.queryHash);o&&(t.destroy(),o===t&&_(this,Zn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,Zn).get(t)}getAll(){return[..._(this,Zn).values()]}find(t){const o={exact:!0,...t};return this.getAll().find(i=>Ry(o,i))}findAll(t={}){const o=this.getAll();return Object.keys(t).length>0?o.filter(i=>Ry(t,i)):o}notify(t){mt.batch(()=>{this.listeners.forEach(o=>{o(t)})})}onFocus(){mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zn=new WeakMap,Ky),st,Gr,qr,Oi,Ai,Yr,Mi,zi,Gy,_$=(Gy=class{constructor(e={}){ye(this,st);ye(this,Gr);ye(this,qr);ye(this,Oi);ye(this,Ai);ye(this,Yr);ye(this,Mi);ye(this,zi);ae(this,st,e.queryCache||new R$),ae(this,Gr,e.mutationCache||new E$),ae(this,qr,e.defaultOptions||{}),ae(this,Oi,new Map),ae(this,Ai,new Map),ae(this,Yr,0)}mount(){kl(this,Yr)._++,_(this,Yr)===1&&(ae(this,Mi,cp.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,st).onFocus())})),ae(this,zi,ou.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,st).onOnline())})))}unmount(){var e,t;kl(this,Yr)._--,_(this,Yr)===0&&((e=_(this,Mi))==null||e.call(this),ae(this,Mi,void 0),(t=_(this,zi))==null||t.call(this),ae(this,zi,void 0))}isFetching(e){return _(this,st).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Gr).findAll({...e,status:"pending"}).length}getQueryData(e){var o;const t=this.defaultQueryOptions({queryKey:e});return(o=_(this,st).get(t.queryHash))==null?void 0:o.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),o=_(this,st).build(this,t),i=o.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(Jr(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return _(this,st).findAll(e).map(({queryKey:t,state:o})=>{const i=o.data;return[t,i]})}setQueryData(e,t,o){const i=this.defaultQueryOptions({queryKey:e}),a=_(this,st).get(i.queryHash),u=a==null?void 0:a.state.data,c=a$(t,u);if(c!==void 0)return _(this,st).build(this,i).setData(c,{...o,manual:!0})}setQueriesData(e,t,o){return mt.batch(()=>_(this,st).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,o)]))}getQueryState(e){var o;const t=this.defaultQueryOptions({queryKey:e});return(o=_(this,st).get(t.queryHash))==null?void 0:o.state}removeQueries(e){const t=_(this,st);mt.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){const o=_(this,st);return mt.batch(()=>(o.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const o={revert:!0,...t},i=mt.batch(()=>_(this,st).findAll(e).map(a=>a.cancel(o)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return mt.batch(()=>(_(this,st).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const o={...t,cancelRefetch:t.cancelRefetch??!0},i=mt.batch(()=>_(this,st).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,o);return o.throwOnError||(u=u.catch(Ft)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const o=_(this,st).build(this,t);return o.isStaleByTime(Jr(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=iu(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=iu(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ou.isOnline()?_(this,Gr).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,st)}getMutationCache(){return _(this,Gr)}getDefaultOptions(){return _(this,qr)}setDefaultOptions(e){ae(this,qr,e)}setQueryDefaults(e,t){_(this,Oi).set(Do(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Oi).values()],o={};return t.forEach(i=>{Ys(e,i.queryKey)&&Object.assign(o,i.defaultOptions)}),o}setMutationDefaults(e,t){_(this,Ai).set(Do(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Ai).values()],o={};return t.forEach(i=>{Ys(e,i.mutationKey)&&Object.assign(o,i.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,qr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===up&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,qr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,st).clear(),_(this,Gr).clear()}},st=new WeakMap,Gr=new WeakMap,qr=new WeakMap,Oi=new WeakMap,Ai=new WeakMap,Yr=new WeakMap,Mi=new WeakMap,zi=new WeakMap,Gy),P$=S.createContext(void 0),B0=e=>{const t=S.useContext(P$);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U0=S.createContext(!1),T$=()=>S.useContext(U0);U0.Provider;function $$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var I$=S.createContext($$()),O$=()=>S.useContext(I$),A$=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},M$=e=>{S.useEffect(()=>{e.clearReset()},[e])},z$=({result:e,errorResetBoundary:t,throwOnError:o,query:i,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||O0(o,[e.error,i])),L$=e=>{if(e.suspense){const o=a=>a==="static"?a:Math.max(a??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...a)=>o(i(...a)):o(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},N$=(e,t)=>e.isLoading&&e.isFetching&&!t,D$=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zy=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});function W0(e,t,o){var y,x,E,C,w;const i=T$(),a=O$(),u=B0(o),c=u.defaultQueryOptions(e);(x=(y=u.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||x.call(y,c),c._optimisticResults=i?"isRestoring":"optimistic",L$(c),A$(c,a),M$(a);const d=!u.getQueryCache().get(c.queryHash),[h]=S.useState(()=>new t(u,c)),m=h.getOptimisticResult(c),g=!i&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(b=>{const I=g?h.subscribe(mt.batchCalls(b)):Ft;return h.updateResult(),I},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(c)},[c,h]),D$(c,m))throw zy(c,h,a);if(z$({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((C=(E=u.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||C.call(E,c,m),c.experimental_prefetchInRender&&!No&&N$(m,i)){const b=d?zy(c,h,a):(w=u.getQueryCache().get(c.queryHash))==null?void 0:w.promise;b==null||b.catch(Ft).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?m:h.trackResult(m)}function F$(e,t){return W0(e,N0,t)}function j$(e,t){const o=B0(t),[i]=S.useState(()=>new b$(o,e));S.useEffect(()=>{i.setOptions(e)},[i,e]);const a=S.useSyncExternalStore(S.useCallback(c=>i.subscribe(mt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=S.useCallback((c,d)=>{i.mutate(c,d).catch(Ft)},[i]);if(a.error&&O0(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}function B$(e,t){return W0(e,k$,t)}var V0=class extends Error{constructor({res:e,url:t,body:{message:o}}){super(`[${e.status}] ${e.statusText}${o?` - ${o}`:""}`),this.name="HttpError",this.status=e.status,this.statusText=e.statusText,this.url=t,this.body={message:o},this.headers=e.headers?Object.fromEntries(e.headers.entries()):{}}},Z0=async e=>{const t={...e.headers??{}},o=typeof FormData<"u"&&e.body instanceof FormData;o||(t["Content-Type"]||(t["Content-Type"]="application/json"),t.Accept||(t.Accept="application/json"));const i=await fetch(e.url,{method:e.method,headers:t,body:o?e.body:e.body==null?void 0:JSON.stringify(e.body)}),a=await i.json();if(!i.ok)throw new V0({res:i,url:e.url,body:a});try{return{data:a,headers:i.headers?Object.fromEntries(i.headers.entries()):{},status:i.status}}catch{return{data:a,headers:i.headers?Object.fromEntries(i.headers.entries()):{},status:i.status}}},Ly=e=>e.toUpperCase();function H0(e){if(!e)return"";const t=new URLSearchParams;for(const[i,a]of Object.entries(e))if(a!=null){if(Array.isArray(a)){a.forEach(u=>{u!=null&&(typeof u=="object"?t.append(i,JSON.stringify(u)):t.append(i,String(u)))});continue}if(typeof a=="object"){t.set(i,JSON.stringify(a));continue}t.set(i,String(a))}const o=t.toString();return o?`?${o}`:""}function U$(e,t){if(!e)return e;const{[t]:o,...i}=e;return i}var W$=e=>{if(!e||typeof e!="object")return;const t=e;if("nextCursor"in t)return t.nextCursor;if("meta"in t){const o=t.meta;if(o&&typeof o=="object"&&"nextCursor"in o)return o.nextCursor}},zf=e=>{if(typeof console>"u")return;const t=console.debug??console.log;t==null||t.call(console,"[rrroutes-client]",e)},V$=["fetch","invalidate","setData","build","useEndpoint"],Ny=()=>{};function Z$(e,t){const o={emit:Ny,mode:"minimal"};if(t&&t.toLowerCase()==="production"||!e)return o;if(e===!0||e==="minimal")return{emit:(i,a)=>zf(a?{...i,name:a}:i),mode:"minimal"};if(e==="complete")return{emit:(i,a)=>zf(a?{...i,name:a}:i),mode:"complete"};if(typeof e=="function")return{emit:(i,a)=>e(a?{...i,name:a}:i),mode:"minimal"};if(typeof e=="object"){const i=e,a=!!i.verbose,u=V$.filter(g=>i[g]);if(u.length===0)return{emit:Ny,mode:a?"complete":"minimal"};const c=new Set(u),d=i.only&&i.only.length>0?new Set(i.only):void 0,h=i.logger??zf;return{emit:(g,y)=>{c.has(g.type)&&(d&&(!y||!d.has(y))||h(y?{...g,name:y}:g))},mode:a?"complete":"minimal"}}return o}function Dy(e){return e[0]}function Lf(e){return typeof e>"u"?[]:[e]}function Nf(e,t,o,i){const a=e.cfg.paramsSchema?nu(e.cfg.paramsSchema,o):{},u=e.cfg.querySchema?nu(e.cfg.querySchema,i):{},c=ap(e.path,a??{});return{url:`${t??""}${c}${H0(u)}`,normalizedQuery:u,normalizedParams:a}}function H$(e){const t=e.queryClient,o=e.fetcher??Z0,i=e.baseUrl,a=e.cursorParam??"pagination_cursor",u=e.getNextCursor??W$,c=e.environment??void 0,{emit:d,mode:h}=Z$(e.debug,c),m=h==="complete",g=(C,w)=>!m||!w?C:{...C,...w};async function y(C,w=!1){const b=C;await t.invalidateQueries({queryKey:b,exact:w}),d({type:"invalidate",key:b,exact:w})}function x(C,w,b){const I=C.method==="get",L=!!C.cfg.feed,$=C.cfg,T=e.validateResponses,A=Ly(C.method),z=!!($.paramsSchema||$.querySchema),F=`${C.method.toUpperCase()} ${String(C.path)}`,U=b==null?void 0:b.name,H=G=>d(G,U);H({type:"build",leaf:F});const V=(...G)=>{const K=Dy(G),P=K==null?void 0:K.params,j=K==null?void 0:K.query,se=I&&L?U$(j,a):j;return r$({leaf:C,params:P,query:se})},J=async(...G)=>{const K=V(...G);await t.invalidateQueries({queryKey:K,exact:!0}),H({type:"invalidate",key:K,exact:!0})},k=(...G)=>{const[K,...P]=G,j=V(...P);let se;return I&&L?se=t.setQueryData(j,le=>typeof K=="function"?K(le):K):se=t.setQueryData(j,le=>typeof K=="function"?K(le):K),H({type:"setData",key:j}),se},q=w==null?void 0:w.onReceive,W=async(G,K)=>{var kt;const P=Dy(G),j=P==null?void 0:P.params,se=(K==null?void 0:K.queryOverride)??(P==null?void 0:P.query),{url:le,normalizedQuery:de,normalizedParams:ge}=Nf({...C,cfg:$},i,j,se);let ve;const Ce=!!$.bodySchema,_e=(K==null?void 0:K.requireBody)??(!I&&Ce);if(typeof(K==null?void 0:K.body)<"u"){const Ve=$.bodySchema?nu($.bodySchema,K.body):void 0;Array.isArray($.bodyFiles)&&$.bodyFiles.length>0&&Ve&&typeof Ve=="object"?ve=Q$(Ve):ve=Ve}else if(_e)throw new Error("Body is required when invoking a mutation fetch.");const Pe=Date.now(),Ne=m?{params:ge,query:de}:void 0;H(g({type:"fetch",stage:"start",method:A,url:le,leaf:F,...ve!==void 0?{body:ve}:{}},Ne));try{const Ve=await o(ve===void 0?{url:le,method:A}:{url:le,method:A,body:ve});if(H(g({type:"fetch",stage:"fetched",method:A,url:le,leaf:F,durationMs:Date.now()-Pe},m?{params:ge,query:de,output:Ve}:void 0)),T){if(!$.outputSchema)throw new Error(`No output schema defined for leaf ${F}, cannot validate response.`);Ve.data=nu($.outputSchema,Ve.data),H(g({type:"fetch",stage:"parsed",method:A,url:le,leaf:F,durationMs:Date.now()-Pe},m?{params:ge,query:de,output:Ve}:void 0))}return(kt=K==null?void 0:K.onReceive)==null||kt.call(K,Ve.data),Ve.data}catch(Ve){throw H(g({type:"fetch",stage:"error",method:A,url:le,leaf:F,durationMs:Date.now()-Pe,...ve!==void 0?{body:ve}:{},error:Ve},Ne)),Ve}},te=(...G)=>{const K=!!$.bodySchema,P=G.length,se=K&&P>(z?1:0),le=se?G[P-1]:void 0,de=se?G.slice(0,P-1):G;return W(de,{body:le,onReceive:q,requireBody:!1})};if(I&&L)return{getQueryKeys:V,invalidate:J,setData:k,useEndpoint:(...K)=>{const P=K[0];H({type:"useEndpoint",leaf:F,variant:"infiniteGet"});const j=Lf(P),se=P==null?void 0:P.params,le=P==null?void 0:P.query,de=w??{},ge=S.useRef(new Set),ve=S.useCallback(Ne=>{var kt;(kt=de==null?void 0:de.onReceive)==null||kt.call(de,Ne),ge.current.forEach(Ve=>Ve(Ne))},[]),Ce=S.useCallback(Ne=>(ge.current.add(Ne),()=>{ge.current.delete(Ne)}),[]),{normalizedQuery:_e}=Nf({...C,cfg:$},i,se,le);return{...B$({...de,queryKey:V(...j),initialPageParam:void 0,getNextPageParam:Ne=>u(Ne),placeholderData:$y,queryFn:({pageParam:Ne})=>{const kt={..._e,...Ne?{[a]:Ne}:{}};return W(j,{queryOverride:kt,onReceive:ve})}},t),onReceive:Ce}},fetch:te};if(I)return{getQueryKeys:V,invalidate:J,setData:k,useEndpoint:(...K)=>{const P=K[0];H({type:"useEndpoint",leaf:F,variant:"get"});const j=Lf(P),se=P==null?void 0:P.params,le=P==null?void 0:P.query,de=w??{},ge=S.useRef(new Set),ve=S.useCallback(Pe=>{var Ne;(Ne=de==null?void 0:de.onReceive)==null||Ne.call(de,Pe),ge.current.forEach(kt=>kt(Pe))},[]),Ce=S.useCallback(Pe=>(ge.current.add(Pe),()=>{ge.current.delete(Pe)}),[]);return Nf({...C,cfg:$},i,se,le),{...F$({...de,queryKey:V(...j),placeholderData:$y,queryFn:()=>W(j,{onReceive:ve})},t),onReceive:Ce}},fetch:te};const re=w??{},fe=async(...G)=>{if(G.length===0)throw new Error("Body is required when invoking a mutation fetch.");const K=G.length-1,P=G.slice(0,K),j=G[K];return await W(P,{body:j,onReceive:le=>{var de;return(de=re==null?void 0:re.onReceive)==null?void 0:de.call(re,le)},requireBody:!0})};return{getQueryKeys:V,invalidate:J,setData:k,useEndpoint:(...G)=>{const K=G[0];H({type:"useEndpoint",leaf:F,variant:"mutation"});const P=Lf(K),j=S.useRef(new Set),se=S.useCallback(ge=>{j.current.forEach(ve=>ve(ge))},[]),le=S.useCallback(ge=>(j.current.add(ge),()=>{j.current.delete(ge)}),[]);return{...j$({...re,mutationKey:V(...P),mutationFn:async ge=>{const ve=await fe(...P,ge);return se(ve),ve}},t),onReceive:le}},fetch:fe}}return{queryClient:t,invalidate:y,fetch:async C=>{const{path:w,method:b,query:I,body:L,params:$}=C;if(!w||typeof w!="string")throw new Error("fetch(path, ...) requires a non-empty string path.");if(!b)throw new Error("fetch(path, method, ...) requires an HTTP method.");const T=String(b).toLowerCase(),A=Ly(T),z=G$(I),F=H0(z),U=q$(w,$),H=`${i??""}${U}${F}`,V=`${A} ${w}`,J=Date.now(),k=m?{params:$,query:z}:void 0;d(g({type:"fetch",stage:"start",method:A,url:H,leaf:V,...L!==void 0?{body:L}:{}},k));try{const q=await o(L===void 0?{url:H,method:A}:{url:H,method:A,body:L});return d(g({type:"fetch",stage:"fetched",method:A,url:H,leaf:V,durationMs:Date.now()-J},m?{params:$,query:z,output:q}:void 0)),q}catch(q){throw d(g({type:"fetch",stage:"error",method:A,url:H,leaf:V,durationMs:Date.now()-J,...L!==void 0?{body:L}:{},error:q},k)),q}},build:x}}function Q$(e){const t=new FormData;for(const[o,i]of Object.entries(e??{}))i!=null&&(Array.isArray(i)?i.forEach((a,u)=>t.append(`${o}[${u}]`,a)):t.append(o,i));return t}function K$(e){const t=new Set,o=/:([A-Za-z0-9_]+)/g;let i;for(;(i=o.exec(e))!==null;)t.add(i[1]);return t}function G$(e){if(e==null)return;if(typeof e!="object"||Array.isArray(e))throw new Error("Query must be a plain object (Record<string, string>).");const t={};for(const[o,i]of Object.entries(e))if(i!=null){if(typeof i!="string")throw new Error(`Query param "${o}" must be a string; received type "${typeof i}".`);t[o]=i}return Object.keys(t).length>0?t:void 0}function q$(e,t){const o=K$(e);if(!t||typeof t!="object"||Array.isArray(t)){if(o.size>0)throw new Error(`Missing path parameters for "${e}": ${[...o].join(", ")}`);return e}const i=t,a=new Set(Object.keys(i));for(const u of a){if(!o.has(u))throw new Error(`Unexpected path parameter "${u}" for template "${e}".`);const c=i[u];if(c!=null&&(typeof c=="object"||Array.isArray(c)))throw new Error(`Path parameter "${u}" must be a primitive; received "${typeof c}".`)}for(const u of o)if(!a.has(u))throw new Error(`Missing value for path parameter "${u}" in template "${e}".`);return o.size===0?e:ap(e,i)}P0([_0(xy()),xy()]);S.createContext(null);const Y$=S.createContext(null);function X$({children:e,initialBaseUrl:t}){const[o,i]=S.useState([]),[a,u]=S.useState(t),c=S.useMemo(()=>new _$({}),[]),d=S.useMemo(()=>H$({baseUrl:a,queryClient:c,debug:{build:!0,fetch:!0,invalidate:!0,logger:y=>{function x(E){const{type:C,...w}=E;return w}switch(y.type){case"build":console.log("[Build]",x(y));break;case"fetch":console.log("[Fetch]",x(y));break;case"invalidate":console.log("[Invalidate]",x(y));break;case"setData":console.log("[SetData]",x(y));break;case"useEndpoint":console.log("[UseEndpoint]",x(y));break;default:console.log("[Unknown]",x(y))}},setData:!0,useEndpoint:!0,verbose:!0},fetcher:async y=>Z0(y),validateResponses:!0}),[a,c]),h=S.useMemo(()=>({id:y,method:x,path:E})=>{console.log(y);const C=o.filter(w=>(console.log(w.id),w.log.method===x&&w.log.path===E&&(y?w.id===y:!0)));if(C.length>0)return C[C.length-1]},[o]),m=S.useMemo(()=>async(y,x,E,C)=>{const w=Date.now();let b,I,L=-1,$={};try{const z=await d.fetch({method:y,path:x,body:E.body&&E.body.trim().length>0?JSON.parse(E.body):void 0,query:E.query.reduce((F,U)=>(U.key.trim().length>0&&U.value&&U.enabled&&(F[U.key]=U.value),F),{}),params:E.params.reduce((F,U)=>(U.key.trim().length>0&&U.value&&U.enabled&&(F[U.key]=U.value),F),{})});b=z.data,L=z.status,$=z.headers}catch(z){z instanceof V0?(L=z.status,$=z.headers,I={message:z.body.message??z.message,stack:z.stack,name:z.name}):z instanceof Error?I={message:JSON.stringify(z.message),stack:z.stack,name:z.name}:I={message:"An unknown error occurred"}}const T=Date.now(),A={id:C,error:I,log:{durationMs:T-w,method:y,path:x,status:L,name:`${y.toUpperCase()} ${x}`,updatedAt:T,createdAt:w,id:`local-${Math.random().toString(36).substring(2,9)}`,body:E.body?JSON.parse(E.body):void 0,params:E.params.reduce((z,F)=>(F.key.trim().length>0&&F.value&&F.enabled&&(z[F.key]=F.value),z),{}),query:E.query.reduce((z,F)=>(F.key.trim().length>0&&F.value&&F.enabled&&(z[F.key]=F.value),z),{}),headers:$,error:I==null?void 0:I.message,output:b,groupId:void 0,tags:[],fullUrl:""}};return i(z=>[...z,A]),A},[]),g=S.useMemo(()=>({client:d,queryClient:c,baseUrl:a,headers:{},setBaseUrl:u,runs:o,getLastRun:h,fetch:m}),[d,o]);return Y.jsx(Y$.Provider,{value:g,children:e})}function J$(){const e=document.getElementById("docs-root");if(e)return e;const t=document.createElement("div");return t.id="docs-root",document.body.appendChild(t),t}function eI(){const e=document.getElementById("docs-config");if(!e)throw new Error("Docs config element not found");try{return JSON.parse(e.textContent||"{}")}catch(t){throw console.error("Failed to parse docs config",t),t}}const dp=eI(),tI=iv({key:"rrroutes-docs",nonce:dp.cspNonce}),nI=(dp.docsBasePath||"").replace(/\/+$/,"")||"/",rI=dp.baseUrl||window.location.origin,oI=J$();BS.createRoot(oI).render(Y.jsx(IS,{value:tI,children:Y.jsx(rk,{basename:nI,children:Y.jsx(X$,{initialBaseUrl:rI,children:Y.jsx(bR,{})})})}));
|