@hvgllc/hvgerp-mcp 3.0.2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Qh;function wb(){if(Qh)return he;Qh=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),k=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=k&&w[k]||w["@@iterator"],typeof w=="function"?w:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,B={};function V(w,U,fe){this.props=w,this.context=U,this.refs=B,this.updater=fe||P}V.prototype.isReactComponent={},V.prototype.setState=function(w,U){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,U,"setState")},V.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function q(){}q.prototype=V.prototype;function de(w,U,fe){this.props=w,this.context=U,this.refs=B,this.updater=fe||P}var le=de.prototype=new q;le.constructor=de,Z(le,V.prototype),le.isPureReactComponent=!0;var Y=Array.isArray,ge=Object.prototype.hasOwnProperty,Ye={current:null},rt={key:!0,ref:!0,__self:!0,__source:!0};function _t(w,U,fe){var ve,ke={},Se=null,Oe=null;if(U!=null)for(ve in U.ref!==void 0&&(Oe=U.ref),U.key!==void 0&&(Se=""+U.key),U)ge.call(U,ve)&&!rt.hasOwnProperty(ve)&&(ke[ve]=U[ve]);var Ie=arguments.length-2;if(Ie===1)ke.children=fe;else if(1<Ie){for(var Le=Array(Ie),Et=0;Et<Ie;Et++)Le[Et]=arguments[Et+2];ke.children=Le}if(w&&w.defaultProps)for(ve in Ie=w.defaultProps,Ie)ke[ve]===void 0&&(ke[ve]=Ie[ve]);return{$$typeof:n,type:w,key:Se,ref:Oe,props:ke,_owner:Ye.current}}function jn(w,U){return{$$typeof:n,type:w.type,key:U,ref:w.ref,props:w.props,_owner:w._owner}}function hn(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function Xn(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(fe){return U[fe]})}var ln=/\/+/g;function jt(w,U){return typeof w=="object"&&w!==null&&w.key!=null?Xn(""+w.key):U.toString(36)}function Gt(w,U,fe,ve,ke){var Se=typeof w;(Se==="undefined"||Se==="boolean")&&(w=null);var Oe=!1;if(w===null)Oe=!0;else switch(Se){case"string":case"number":Oe=!0;break;case"object":switch(w.$$typeof){case n:case r:Oe=!0}}if(Oe)return Oe=w,ke=ke(Oe),w=ve===""?"."+jt(Oe,0):ve,Y(ke)?(fe="",w!=null&&(fe=w.replace(ln,"$&/")+"/"),Gt(ke,U,fe,"",function(Et){return Et})):ke!=null&&(hn(ke)&&(ke=jn(ke,fe+(!ke.key||Oe&&Oe.key===ke.key?"":(""+ke.key).replace(ln,"$&/")+"/")+w)),U.push(ke)),1;if(Oe=0,ve=ve===""?".":ve+":",Y(w))for(var Ie=0;Ie<w.length;Ie++){Se=w[Ie];var Le=ve+jt(Se,Ie);Oe+=Gt(Se,U,fe,Le,ke)}else if(Le=T(w),typeof Le=="function")for(w=Le.call(w),Ie=0;!(Se=w.next()).done;)Se=Se.value,Le=ve+jt(Se,Ie++),Oe+=Gt(Se,U,fe,Le,ke);else if(Se==="object")throw U=String(w),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Oe}function sn(w,U,fe){if(w==null)return w;var ve=[],ke=0;return Gt(w,ve,"","",function(Se){return U.call(fe,Se,ke++)}),ve}function $t(w){if(w._status===-1){var U=w._result;U=U(),U.then(function(fe){(w._status===0||w._status===-1)&&(w._status=1,w._result=fe)},function(fe){(w._status===0||w._status===-1)&&(w._status=2,w._result=fe)}),w._status===-1&&(w._status=0,w._result=U)}if(w._status===1)return w._result.default;throw w._result}var qe={current:null},H={transition:null},oe={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:H,ReactCurrentOwner:Ye};function K(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:sn,forEach:function(w,U,fe){sn(w,function(){U.apply(this,arguments)},fe)},count:function(w){var U=0;return sn(w,function(){U++}),U},toArray:function(w){return sn(w,function(U){return U})||[]},only:function(w){if(!hn(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},he.Component=V,he.Fragment=o,he.Profiler=t,he.PureComponent=de,he.StrictMode=s,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,he.act=K,he.cloneElement=function(w,U,fe){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var ve=Z({},w.props),ke=w.key,Se=w.ref,Oe=w._owner;if(U!=null){if(U.ref!==void 0&&(Se=U.ref,Oe=Ye.current),U.key!==void 0&&(ke=""+U.key),w.type&&w.type.defaultProps)var Ie=w.type.defaultProps;for(Le in U)ge.call(U,Le)&&!rt.hasOwnProperty(Le)&&(ve[Le]=U[Le]===void 0&&Ie!==void 0?Ie[Le]:U[Le])}var Le=arguments.length-2;if(Le===1)ve.children=fe;else if(1<Le){Ie=Array(Le);for(var Et=0;Et<Le;Et++)Ie[Et]=arguments[Et+2];ve.children=Ie}return{$$typeof:n,type:w.type,key:ke,ref:Se,props:ve,_owner:Oe}},he.createContext=function(w){return w={$$typeof:c,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:a,_context:w},w.Consumer=w},he.createElement=_t,he.createFactory=function(w){var U=_t.bind(null,w);return U.type=w,U},he.createRef=function(){return{current:null}},he.forwardRef=function(w){return{$$typeof:m,render:w}},he.isValidElement=hn,he.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:$t}},he.memo=function(w,U){return{$$typeof:h,type:w,compare:U===void 0?null:U}},he.startTransition=function(w){var U=H.transition;H.transition={};try{w()}finally{H.transition=U}},he.unstable_act=K,he.useCallback=function(w,U){return qe.current.useCallback(w,U)},he.useContext=function(w){return qe.current.useContext(w)},he.useDebugValue=function(){},he.useDeferredValue=function(w){return qe.current.useDeferredValue(w)},he.useEffect=function(w,U){return qe.current.useEffect(w,U)},he.useId=function(){return qe.current.useId()},he.useImperativeHandle=function(w,U,fe){return qe.current.useImperativeHandle(w,U,fe)},he.useInsertionEffect=function(w,U){return qe.current.useInsertionEffect(w,U)},he.useLayoutEffect=function(w,U){return qe.current.useLayoutEffect(w,U)},he.useMemo=function(w,U){return qe.current.useMemo(w,U)},he.useReducer=function(w,U,fe){return qe.current.useReducer(w,U,fe)},he.useRef=function(w){return qe.current.useRef(w)},he.useState=function(w){return qe.current.useState(w)},he.useSyncExternalStore=function(w,U,fe){return qe.current.useSyncExternalStore(w,U,fe)},he.useTransition=function(){return qe.current.useTransition()},he.version="18.3.1",he}var Xh;function sd(){return Xh||(Xh=1,Gc.exports=wb()),Gc.exports}/**
15
+ */var Qh;function wb(){if(Qh)return he;Qh=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),k=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=k&&w[k]||w["@@iterator"],typeof w=="function"?w:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,B={};function V(w,U,fe){this.props=w,this.context=U,this.refs=B,this.updater=fe||P}V.prototype.isReactComponent={},V.prototype.setState=function(w,U){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,U,"setState")},V.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function q(){}q.prototype=V.prototype;function de(w,U,fe){this.props=w,this.context=U,this.refs=B,this.updater=fe||P}var le=de.prototype=new q;le.constructor=de,Z(le,V.prototype),le.isPureReactComponent=!0;var Y=Array.isArray,ge=Object.prototype.hasOwnProperty,Ye={current:null},rt={key:!0,ref:!0,__self:!0,__source:!0};function $t(w,U,fe){var ve,ke={},Se=null,Oe=null;if(U!=null)for(ve in U.ref!==void 0&&(Oe=U.ref),U.key!==void 0&&(Se=""+U.key),U)ge.call(U,ve)&&!rt.hasOwnProperty(ve)&&(ke[ve]=U[ve]);var Ie=arguments.length-2;if(Ie===1)ke.children=fe;else if(1<Ie){for(var Le=Array(Ie),Et=0;Et<Ie;Et++)Le[Et]=arguments[Et+2];ke.children=Le}if(w&&w.defaultProps)for(ve in Ie=w.defaultProps,Ie)ke[ve]===void 0&&(ke[ve]=Ie[ve]);return{$$typeof:n,type:w,key:Se,ref:Oe,props:ke,_owner:Ye.current}}function jn(w,U){return{$$typeof:n,type:w.type,key:U,ref:w.ref,props:w.props,_owner:w._owner}}function hn(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function Xn(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(fe){return U[fe]})}var ln=/\/+/g;function jt(w,U){return typeof w=="object"&&w!==null&&w.key!=null?Xn(""+w.key):U.toString(36)}function Gt(w,U,fe,ve,ke){var Se=typeof w;(Se==="undefined"||Se==="boolean")&&(w=null);var Oe=!1;if(w===null)Oe=!0;else switch(Se){case"string":case"number":Oe=!0;break;case"object":switch(w.$$typeof){case n:case r:Oe=!0}}if(Oe)return Oe=w,ke=ke(Oe),w=ve===""?"."+jt(Oe,0):ve,Y(ke)?(fe="",w!=null&&(fe=w.replace(ln,"$&/")+"/"),Gt(ke,U,fe,"",function(Et){return Et})):ke!=null&&(hn(ke)&&(ke=jn(ke,fe+(!ke.key||Oe&&Oe.key===ke.key?"":(""+ke.key).replace(ln,"$&/")+"/")+w)),U.push(ke)),1;if(Oe=0,ve=ve===""?".":ve+":",Y(w))for(var Ie=0;Ie<w.length;Ie++){Se=w[Ie];var Le=ve+jt(Se,Ie);Oe+=Gt(Se,U,fe,Le,ke)}else if(Le=T(w),typeof Le=="function")for(w=Le.call(w),Ie=0;!(Se=w.next()).done;)Se=Se.value,Le=ve+jt(Se,Ie++),Oe+=Gt(Se,U,fe,Le,ke);else if(Se==="object")throw U=String(w),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Oe}function sn(w,U,fe){if(w==null)return w;var ve=[],ke=0;return Gt(w,ve,"","",function(Se){return U.call(fe,Se,ke++)}),ve}function kt(w){if(w._status===-1){var U=w._result;U=U(),U.then(function(fe){(w._status===0||w._status===-1)&&(w._status=1,w._result=fe)},function(fe){(w._status===0||w._status===-1)&&(w._status=2,w._result=fe)}),w._status===-1&&(w._status=0,w._result=U)}if(w._status===1)return w._result.default;throw w._result}var qe={current:null},H={transition:null},oe={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:H,ReactCurrentOwner:Ye};function K(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:sn,forEach:function(w,U,fe){sn(w,function(){U.apply(this,arguments)},fe)},count:function(w){var U=0;return sn(w,function(){U++}),U},toArray:function(w){return sn(w,function(U){return U})||[]},only:function(w){if(!hn(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},he.Component=V,he.Fragment=o,he.Profiler=t,he.PureComponent=de,he.StrictMode=s,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,he.act=K,he.cloneElement=function(w,U,fe){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var ve=Z({},w.props),ke=w.key,Se=w.ref,Oe=w._owner;if(U!=null){if(U.ref!==void 0&&(Se=U.ref,Oe=Ye.current),U.key!==void 0&&(ke=""+U.key),w.type&&w.type.defaultProps)var Ie=w.type.defaultProps;for(Le in U)ge.call(U,Le)&&!rt.hasOwnProperty(Le)&&(ve[Le]=U[Le]===void 0&&Ie!==void 0?Ie[Le]:U[Le])}var Le=arguments.length-2;if(Le===1)ve.children=fe;else if(1<Le){Ie=Array(Le);for(var Et=0;Et<Le;Et++)Ie[Et]=arguments[Et+2];ve.children=Ie}return{$$typeof:n,type:w.type,key:ke,ref:Se,props:ve,_owner:Oe}},he.createContext=function(w){return w={$$typeof:c,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:a,_context:w},w.Consumer=w},he.createElement=$t,he.createFactory=function(w){var U=$t.bind(null,w);return U.type=w,U},he.createRef=function(){return{current:null}},he.forwardRef=function(w){return{$$typeof:m,render:w}},he.isValidElement=hn,he.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:kt}},he.memo=function(w,U){return{$$typeof:h,type:w,compare:U===void 0?null:U}},he.startTransition=function(w){var U=H.transition;H.transition={};try{w()}finally{H.transition=U}},he.unstable_act=K,he.useCallback=function(w,U){return qe.current.useCallback(w,U)},he.useContext=function(w){return qe.current.useContext(w)},he.useDebugValue=function(){},he.useDeferredValue=function(w){return qe.current.useDeferredValue(w)},he.useEffect=function(w,U){return qe.current.useEffect(w,U)},he.useId=function(){return qe.current.useId()},he.useImperativeHandle=function(w,U,fe){return qe.current.useImperativeHandle(w,U,fe)},he.useInsertionEffect=function(w,U){return qe.current.useInsertionEffect(w,U)},he.useLayoutEffect=function(w,U){return qe.current.useLayoutEffect(w,U)},he.useMemo=function(w,U){return qe.current.useMemo(w,U)},he.useReducer=function(w,U,fe){return qe.current.useReducer(w,U,fe)},he.useRef=function(w){return qe.current.useRef(w)},he.useState=function(w){return qe.current.useState(w)},he.useSyncExternalStore=function(w,U,fe){return qe.current.useSyncExternalStore(w,U,fe)},he.useTransition=function(){return qe.current.useTransition()},he.version="18.3.1",he}var Xh;function sd(){return Xh||(Xh=1,Gc.exports=wb()),Gc.exports}/**
16
16
  * @license React
17
17
  * react-jsx-runtime.production.min.js
18
18
  *
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var Yh;function bb(){if(Yh)return so;Yh=1;var n=sd(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(m,g,h){var y,k={},T=null,P=null;h!==void 0&&(T=""+h),g.key!==void 0&&(T=""+g.key),g.ref!==void 0&&(P=g.ref);for(y in g)s.call(g,y)&&!a.hasOwnProperty(y)&&(k[y]=g[y]);if(m&&m.defaultProps)for(y in g=m.defaultProps,g)k[y]===void 0&&(k[y]=g[y]);return{$$typeof:r,type:m,key:T,ref:P,props:k,_owner:t.current}}return so.Fragment=o,so.jsx=c,so.jsxs=c,so}var ev;function xb(){return ev||(ev=1,Kc.exports=bb()),Kc.exports}var C=xb(),jl={},Qc={exports:{}},It={},Xc={exports:{}},Yc={};/**
23
+ */var Yh;function bb(){if(Yh)return so;Yh=1;var n=sd(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(m,g,h){var y,k={},T=null,P=null;h!==void 0&&(T=""+h),g.key!==void 0&&(T=""+g.key),g.ref!==void 0&&(P=g.ref);for(y in g)s.call(g,y)&&!a.hasOwnProperty(y)&&(k[y]=g[y]);if(m&&m.defaultProps)for(y in g=m.defaultProps,g)k[y]===void 0&&(k[y]=g[y]);return{$$typeof:r,type:m,key:T,ref:P,props:k,_owner:t.current}}return so.Fragment=o,so.jsx=c,so.jsxs=c,so}var ev;function xb(){return ev||(ev=1,Kc.exports=bb()),Kc.exports}var C=xb(),jl={},Qc={exports:{}},zt={},Xc={exports:{}},Yc={};/**
24
24
  * @license React
25
25
  * scheduler.production.min.js
26
26
  *
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var tv;function Ib(){return tv||(tv=1,(function(n){function r(H,oe){var K=H.length;H.push(oe);e:for(;0<K;){var w=K-1>>>1,U=H[w];if(0<t(U,oe))H[w]=oe,H[K]=U,K=w;else break e}}function o(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var oe=H[0],K=H.pop();if(K!==oe){H[0]=K;e:for(var w=0,U=H.length,fe=U>>>1;w<fe;){var ve=2*(w+1)-1,ke=H[ve],Se=ve+1,Oe=H[Se];if(0>t(ke,K))Se<U&&0>t(Oe,ke)?(H[w]=Oe,H[Se]=K,w=Se):(H[w]=ke,H[ve]=K,w=ve);else if(Se<U&&0>t(Oe,K))H[w]=Oe,H[Se]=K,w=Se;else break e}}return oe}function t(H,oe){var K=H.sortIndex-oe.sortIndex;return K!==0?K:H.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var c=Date,m=c.now();n.unstable_now=function(){return c.now()-m}}var g=[],h=[],y=1,k=null,T=3,P=!1,Z=!1,B=!1,V=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function le(H){for(var oe=o(h);oe!==null;){if(oe.callback===null)s(h);else if(oe.startTime<=H)s(h),oe.sortIndex=oe.expirationTime,r(g,oe);else break;oe=o(h)}}function Y(H){if(B=!1,le(H),!Z)if(o(g)!==null)Z=!0,$t(ge);else{var oe=o(h);oe!==null&&qe(Y,oe.startTime-H)}}function ge(H,oe){Z=!1,B&&(B=!1,q(_t),_t=-1),P=!0;var K=T;try{for(le(oe),k=o(g);k!==null&&(!(k.expirationTime>oe)||H&&!Xn());){var w=k.callback;if(typeof w=="function"){k.callback=null,T=k.priorityLevel;var U=w(k.expirationTime<=oe);oe=n.unstable_now(),typeof U=="function"?k.callback=U:k===o(g)&&s(g),le(oe)}else s(g);k=o(g)}if(k!==null)var fe=!0;else{var ve=o(h);ve!==null&&qe(Y,ve.startTime-oe),fe=!1}return fe}finally{k=null,T=K,P=!1}}var Ye=!1,rt=null,_t=-1,jn=5,hn=-1;function Xn(){return!(n.unstable_now()-hn<jn)}function ln(){if(rt!==null){var H=n.unstable_now();hn=H;var oe=!0;try{oe=rt(!0,H)}finally{oe?jt():(Ye=!1,rt=null)}}else Ye=!1}var jt;if(typeof de=="function")jt=function(){de(ln)};else if(typeof MessageChannel<"u"){var Gt=new MessageChannel,sn=Gt.port2;Gt.port1.onmessage=ln,jt=function(){sn.postMessage(null)}}else jt=function(){V(ln,0)};function $t(H){rt=H,Ye||(Ye=!0,jt())}function qe(H,oe){_t=V(function(){H(n.unstable_now())},oe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_continueExecution=function(){Z||P||(Z=!0,$t(ge))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jn=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return o(g)},n.unstable_next=function(H){switch(T){case 1:case 2:case 3:var oe=3;break;default:oe=T}var K=T;T=oe;try{return H()}finally{T=K}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,oe){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var K=T;T=H;try{return oe()}finally{T=K}},n.unstable_scheduleCallback=function(H,oe,K){var w=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?w+K:w):K=w,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=K+U,H={id:y++,callback:oe,priorityLevel:H,startTime:K,expirationTime:U,sortIndex:-1},K>w?(H.sortIndex=K,r(h,H),o(g)===null&&H===o(h)&&(B?(q(_t),_t=-1):B=!0,qe(Y,K-w))):(H.sortIndex=U,r(g,H),Z||P||(Z=!0,$t(ge))),H},n.unstable_shouldYield=Xn,n.unstable_wrapCallback=function(H){var oe=T;return function(){var K=T;T=oe;try{return H.apply(this,arguments)}finally{T=K}}}})(Yc)),Yc}var nv;function zb(){return nv||(nv=1,Xc.exports=Ib()),Xc.exports}/**
31
+ */var tv;function Ib(){return tv||(tv=1,(function(n){function r(H,oe){var K=H.length;H.push(oe);e:for(;0<K;){var w=K-1>>>1,U=H[w];if(0<t(U,oe))H[w]=oe,H[K]=U,K=w;else break e}}function o(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var oe=H[0],K=H.pop();if(K!==oe){H[0]=K;e:for(var w=0,U=H.length,fe=U>>>1;w<fe;){var ve=2*(w+1)-1,ke=H[ve],Se=ve+1,Oe=H[Se];if(0>t(ke,K))Se<U&&0>t(Oe,ke)?(H[w]=Oe,H[Se]=K,w=Se):(H[w]=ke,H[ve]=K,w=ve);else if(Se<U&&0>t(Oe,K))H[w]=Oe,H[Se]=K,w=Se;else break e}}return oe}function t(H,oe){var K=H.sortIndex-oe.sortIndex;return K!==0?K:H.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var c=Date,m=c.now();n.unstable_now=function(){return c.now()-m}}var g=[],h=[],y=1,k=null,T=3,P=!1,Z=!1,B=!1,V=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function le(H){for(var oe=o(h);oe!==null;){if(oe.callback===null)s(h);else if(oe.startTime<=H)s(h),oe.sortIndex=oe.expirationTime,r(g,oe);else break;oe=o(h)}}function Y(H){if(B=!1,le(H),!Z)if(o(g)!==null)Z=!0,kt(ge);else{var oe=o(h);oe!==null&&qe(Y,oe.startTime-H)}}function ge(H,oe){Z=!1,B&&(B=!1,q($t),$t=-1),P=!0;var K=T;try{for(le(oe),k=o(g);k!==null&&(!(k.expirationTime>oe)||H&&!Xn());){var w=k.callback;if(typeof w=="function"){k.callback=null,T=k.priorityLevel;var U=w(k.expirationTime<=oe);oe=n.unstable_now(),typeof U=="function"?k.callback=U:k===o(g)&&s(g),le(oe)}else s(g);k=o(g)}if(k!==null)var fe=!0;else{var ve=o(h);ve!==null&&qe(Y,ve.startTime-oe),fe=!1}return fe}finally{k=null,T=K,P=!1}}var Ye=!1,rt=null,$t=-1,jn=5,hn=-1;function Xn(){return!(n.unstable_now()-hn<jn)}function ln(){if(rt!==null){var H=n.unstable_now();hn=H;var oe=!0;try{oe=rt(!0,H)}finally{oe?jt():(Ye=!1,rt=null)}}else Ye=!1}var jt;if(typeof de=="function")jt=function(){de(ln)};else if(typeof MessageChannel<"u"){var Gt=new MessageChannel,sn=Gt.port2;Gt.port1.onmessage=ln,jt=function(){sn.postMessage(null)}}else jt=function(){V(ln,0)};function kt(H){rt=H,Ye||(Ye=!0,jt())}function qe(H,oe){$t=V(function(){H(n.unstable_now())},oe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_continueExecution=function(){Z||P||(Z=!0,kt(ge))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jn=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return o(g)},n.unstable_next=function(H){switch(T){case 1:case 2:case 3:var oe=3;break;default:oe=T}var K=T;T=oe;try{return H()}finally{T=K}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,oe){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var K=T;T=H;try{return oe()}finally{T=K}},n.unstable_scheduleCallback=function(H,oe,K){var w=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?w+K:w):K=w,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=K+U,H={id:y++,callback:oe,priorityLevel:H,startTime:K,expirationTime:U,sortIndex:-1},K>w?(H.sortIndex=K,r(h,H),o(g)===null&&H===o(h)&&(B?(q($t),$t=-1):B=!0,qe(Y,K-w))):(H.sortIndex=U,r(g,H),Z||P||(Z=!0,kt(ge))),H},n.unstable_shouldYield=Xn,n.unstable_wrapCallback=function(H){var oe=T;return function(){var K=T;T=oe;try{return H.apply(this,arguments)}finally{T=K}}}})(Yc)),Yc}var nv;function zb(){return nv||(nv=1,Xc.exports=Ib()),Xc.exports}/**
32
32
  * @license React
33
33
  * react-dom.production.min.js
34
34
  *
@@ -36,17 +36,17 @@
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var rv;function Tb(){if(rv)return It;rv=1;var n=sd(),r=zb();function o(e){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,t={};function a(e,i){c(e,i),c(e+"Capture",i)}function c(e,i){for(t[e]=i,e=0;e<i.length;e++)s.add(i[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[: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]*$/,y={},k={};function T(e){return g.call(k,e)?!0:g.call(y,e)?!1:h.test(e)?k[e]=!0:(y[e]=!0,!1)}function P(e,i,l,u){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Z(e,i,l,u){if(i===null||typeof i>"u"||P(e,i,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function B(e,i,l,u,d,f,p){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=e,this.type=i,this.sanitizeURL=f,this.removeEmptyString=p}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){V[e]=new B(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var i=e[0];V[i]=new B(i,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new B(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new B(e,2,!1,e,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(e){V[e]=new B(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new B(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new B(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new B(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new B(e,5,!1,e.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function de(e){return e[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(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!1,!1)}),V.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!0,!0)});function le(e,i,l,u){var d=V.hasOwnProperty(i)?V[i]:null;(d!==null?d.type!==0:u||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(Z(i,l,d,u)&&(l=null),u||d===null?T(i)&&(l===null?e.removeAttribute(i):e.setAttribute(i,""+l)):d.mustUseProperty?e[d.propertyName]=l===null?d.type===3?!1:"":l:(i=d.attributeName,u=d.attributeNamespace,l===null?e.removeAttribute(i):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,u?e.setAttributeNS(u,i,l):e.setAttribute(i,l))))}var Y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ge=Symbol.for("react.element"),Ye=Symbol.for("react.portal"),rt=Symbol.for("react.fragment"),_t=Symbol.for("react.strict_mode"),jn=Symbol.for("react.profiler"),hn=Symbol.for("react.provider"),Xn=Symbol.for("react.context"),ln=Symbol.for("react.forward_ref"),jt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),sn=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),H=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,w;function U(e){if(w===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);w=i&&i[1]||""}return`
39
+ */var rv;function Tb(){if(rv)return zt;rv=1;var n=sd(),r=zb();function o(e){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,t={};function a(e,i){c(e,i),c(e+"Capture",i)}function c(e,i){for(t[e]=i,e=0;e<i.length;e++)s.add(i[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[: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]*$/,y={},k={};function T(e){return g.call(k,e)?!0:g.call(y,e)?!1:h.test(e)?k[e]=!0:(y[e]=!0,!1)}function P(e,i,l,u){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Z(e,i,l,u){if(i===null||typeof i>"u"||P(e,i,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function B(e,i,l,u,d,f,p){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=e,this.type=i,this.sanitizeURL=f,this.removeEmptyString=p}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){V[e]=new B(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var i=e[0];V[i]=new B(i,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new B(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new B(e,2,!1,e,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(e){V[e]=new B(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new B(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new B(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new B(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new B(e,5,!1,e.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function de(e){return e[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(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var i=e.replace(q,de);V[i]=new B(i,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!1,!1)}),V.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!0,!0)});function le(e,i,l,u){var d=V.hasOwnProperty(i)?V[i]:null;(d!==null?d.type!==0:u||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(Z(i,l,d,u)&&(l=null),u||d===null?T(i)&&(l===null?e.removeAttribute(i):e.setAttribute(i,""+l)):d.mustUseProperty?e[d.propertyName]=l===null?d.type===3?!1:"":l:(i=d.attributeName,u=d.attributeNamespace,l===null?e.removeAttribute(i):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,u?e.setAttributeNS(u,i,l):e.setAttribute(i,l))))}var Y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ge=Symbol.for("react.element"),Ye=Symbol.for("react.portal"),rt=Symbol.for("react.fragment"),$t=Symbol.for("react.strict_mode"),jn=Symbol.for("react.profiler"),hn=Symbol.for("react.provider"),Xn=Symbol.for("react.context"),ln=Symbol.for("react.forward_ref"),jt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),sn=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),H=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,w;function U(e){if(w===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);w=i&&i[1]||""}return`
40
40
  `+w+e}var fe=!1;function ve(e,i){if(!e||fe)return"";fe=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){var u=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){u=E}e.call(i.prototype)}else{try{throw Error()}catch(E){u=E}e()}}catch(E){if(E&&u&&typeof E.stack=="string"){for(var d=E.stack.split(`
41
41
  `),f=u.stack.split(`
42
42
  `),p=d.length-1,v=f.length-1;1<=p&&0<=v&&d[p]!==f[v];)v--;for(;1<=p&&0<=v;p--,v--)if(d[p]!==f[v]){if(p!==1||v!==1)do if(p--,v--,0>v||d[p]!==f[v]){var _=`
43
- `+d[p].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=p&&0<=v);break}}}finally{fe=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?U(e):""}function ke(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=ve(e.type,!1),e;case 11:return e=ve(e.type.render,!1),e;case 1:return e=ve(e.type,!0),e;default:return""}}function Se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rt:return"Fragment";case Ye:return"Portal";case jn:return"Profiler";case _t:return"StrictMode";case jt:return"Suspense";case Gt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xn:return(e.displayName||"Context")+".Consumer";case hn:return(e._context.displayName||"Context")+".Provider";case ln:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sn:return i=e.displayName||null,i!==null?i:Se(e.type)||"Memo";case $t:i=e._payload,e=e._init;try{return Se(e(i))}catch{}}return null}function Oe(e){var i=e.type;switch(e.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=i.render,e=e.displayName||e.name||"",i.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(i);case 8:return i===_t?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Le(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Et(e){var i=Le(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),u=""+e[i];if(!e.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,f=l.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return d.call(this)},set:function(p){u=""+p,f.call(this,p)}}),Object.defineProperty(e,i,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(p){u=""+p},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function _a(e){e._valueTracker||(e._valueTracker=Et(e))}function rp(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return e&&(u=Le(e)?e.checked?"true":"false":e.value),e=u,e!==l?(i.setValue(e),!0):!1}function $a(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nu(e,i){var l=i.checked;return K({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function ip(e,i){var l=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;l=Ie(i.value!=null?i.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function op(e,i){i=i.checked,i!=null&&le(e,"checked",i,!1)}function ru(e,i){op(e,i);var l=Ie(i.value),u=i.type;if(l!=null)u==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}i.hasOwnProperty("value")?iu(e,i.type,l):i.hasOwnProperty("defaultValue")&&iu(e,i.type,Ie(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(e.defaultChecked=!!i.defaultChecked)}function ap(e,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+e._wrapperState.initialValue,l||i===e.value||(e.value=i),e.defaultValue=i}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function iu(e,i,l){(i!=="number"||$a(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var wi=Array.isArray;function xr(e,i,l,u){if(e=e.options,i){i={};for(var d=0;d<l.length;d++)i["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=i.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Ie(l),i=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}i!==null||e[d].disabled||(i=e[d])}i!==null&&(i.selected=!0)}}function ou(e,i){if(i.dangerouslySetInnerHTML!=null)throw Error(o(91));return K({},i,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lp(e,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(o(92));if(wi(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),l=i}e._wrapperState={initialValue:Ie(l)}}function sp(e,i){var l=Ie(i.value),u=Ie(i.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),i.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function up(e){var i=e.textContent;i===e._wrapperState.initialValue&&i!==""&&i!==null&&(e.value=i)}function cp(e){switch(e){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 au(e,i){return e==null||e==="http://www.w3.org/1999/xhtml"?cp(i):e==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ka,dp=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,u,d){MSApp.execUnsafeLocalFunction(function(){return e(i,l,u,d)})}:e})(function(e,i){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=i;else{for(ka=ka||document.createElement("div"),ka.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild)}});function bi(e,i){if(i){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=i;return}}e.textContent=i}var xi={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},zS=["Webkit","ms","Moz","O"];Object.keys(xi).forEach(function(e){zS.forEach(function(i){i=i+e.charAt(0).toUpperCase()+e.substring(1),xi[i]=xi[e]})});function fp(e,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||xi.hasOwnProperty(e)&&xi[e]?(""+i).trim():i+"px"}function mp(e,i){e=e.style;for(var l in i)if(i.hasOwnProperty(l)){var u=l.indexOf("--")===0,d=fp(l,i[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,d):e[l]=d}}var TS=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 lu(e,i){if(i){if(TS[e]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(o(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(o(61))}if(i.style!=null&&typeof i.style!="object")throw Error(o(62))}}function su(e,i){if(e.indexOf("-")===-1)return typeof i.is=="string";switch(e){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 uu=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var du=null,Ir=null,zr=null;function pp(e){if(e=Wi(e)){if(typeof du!="function")throw Error(o(280));var i=e.stateNode;i&&(i=Ha(i),du(e.stateNode,e.type,i))}}function gp(e){Ir?zr?zr.push(e):zr=[e]:Ir=e}function hp(){if(Ir){var e=Ir,i=zr;if(zr=Ir=null,pp(e),i)for(e=0;e<i.length;e++)pp(i[e])}}function vp(e,i){return e(i)}function yp(){}var fu=!1;function _p(e,i,l){if(fu)return e(i,l);fu=!0;try{return vp(e,i,l)}finally{fu=!1,(Ir!==null||zr!==null)&&(yp(),hp())}}function Ii(e,i){var l=e.stateNode;if(l===null)return null;var u=Ha(l);if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,i,typeof l));return l}var mu=!1;if(m)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){mu=!0}}),window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{mu=!1}function jS(e,i,l,u,d,f,p,v,_){var E=Array.prototype.slice.call(arguments,3);try{i.apply(l,E)}catch(D){this.onError(D)}}var Ti=!1,Sa=null,wa=!1,pu=null,ES={onError:function(e){Ti=!0,Sa=e}};function PS(e,i,l,u,d,f,p,v,_){Ti=!1,Sa=null,jS.apply(ES,arguments)}function NS(e,i,l,u,d,f,p,v,_){if(PS.apply(this,arguments),Ti){if(Ti){var E=Sa;Ti=!1,Sa=null}else throw Error(o(198));wa||(wa=!0,pu=E)}}function Yn(e){var i=e,l=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(l=i.return),e=i.return;while(e)}return i.tag===3?l:null}function $p(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function kp(e){if(Yn(e)!==e)throw Error(o(188))}function OS(e){var i=e.alternate;if(!i){if(i=Yn(e),i===null)throw Error(o(188));return i!==e?null:e}for(var l=e,u=i;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(u=d.return,u!==null){l=u;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return kp(d),e;if(f===u)return kp(d),i;f=f.sibling}throw Error(o(188))}if(l.return!==u.return)l=d,u=f;else{for(var p=!1,v=d.child;v;){if(v===l){p=!0,l=d,u=f;break}if(v===u){p=!0,u=d,l=f;break}v=v.sibling}if(!p){for(v=f.child;v;){if(v===l){p=!0,l=f,u=d;break}if(v===u){p=!0,u=f,l=d;break}v=v.sibling}if(!p)throw Error(o(189))}}if(l.alternate!==u)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:i}function Sp(e){return e=OS(e),e!==null?wp(e):null}function wp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var i=wp(e);if(i!==null)return i;e=e.sibling}return null}var bp=r.unstable_scheduleCallback,xp=r.unstable_cancelCallback,US=r.unstable_shouldYield,DS=r.unstable_requestPaint,Je=r.unstable_now,CS=r.unstable_getCurrentPriorityLevel,gu=r.unstable_ImmediatePriority,Ip=r.unstable_UserBlockingPriority,ba=r.unstable_NormalPriority,RS=r.unstable_LowPriority,zp=r.unstable_IdlePriority,xa=null,un=null;function LS(e){if(un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(xa,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:MS,ZS=Math.log,AS=Math.LN2;function MS(e){return e>>>=0,e===0?32:31-(ZS(e)/AS|0)|0}var Ia=64,za=4194304;function ji(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ta(e,i){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,f=e.pingedLanes,p=l&268435455;if(p!==0){var v=p&~d;v!==0?u=ji(v):(f&=p,f!==0&&(u=ji(f)))}else p=l&~d,p!==0?u=ji(p):f!==0&&(u=ji(f));if(u===0)return 0;if(i!==0&&i!==u&&(i&d)===0&&(d=u&-u,f=i&-i,d>=f||d===16&&(f&4194240)!==0))return i;if((u&4)!==0&&(u|=l&16),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=u;0<i;)l=31-Qt(i),d=1<<l,u|=e[l],i&=~d;return u}function FS(e,i){switch(e){case 1:case 2:case 4:return i+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 i+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 qS(e,i){for(var l=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes;0<f;){var p=31-Qt(f),v=1<<p,_=d[p];_===-1?((v&l)===0||(v&u)!==0)&&(d[p]=FS(v,i)):_<=i&&(e.expiredLanes|=v),f&=~v}}function hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tp(){var e=Ia;return Ia<<=1,(Ia&4194240)===0&&(Ia=64),e}function vu(e){for(var i=[],l=0;31>l;l++)i.push(e);return i}function Ei(e,i,l){e.pendingLanes|=i,i!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,i=31-Qt(i),e[i]=l}function HS(e,i){var l=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<l;){var d=31-Qt(l),f=1<<d;i[d]=0,u[d]=-1,e[d]=-1,l&=~f}}function yu(e,i){var l=e.entangledLanes|=i;for(e=e.entanglements;l;){var u=31-Qt(l),d=1<<u;d&i|e[u]&i&&(e[u]|=i),l&=~d}}var ze=0;function jp(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ep,_u,Pp,Np,Op,$u=!1,ja=[],En=null,Pn=null,Nn=null,Pi=new Map,Ni=new Map,On=[],JS="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 Up(e,i){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Pi.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(i.pointerId)}}function Oi(e,i,l,u,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:f,targetContainers:[d]},i!==null&&(i=Wi(i),i!==null&&_u(i)),e):(e.eventSystemFlags|=u,i=e.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),e)}function VS(e,i,l,u,d){switch(i){case"focusin":return En=Oi(En,e,i,l,u,d),!0;case"dragenter":return Pn=Oi(Pn,e,i,l,u,d),!0;case"mouseover":return Nn=Oi(Nn,e,i,l,u,d),!0;case"pointerover":var f=d.pointerId;return Pi.set(f,Oi(Pi.get(f)||null,e,i,l,u,d)),!0;case"gotpointercapture":return f=d.pointerId,Ni.set(f,Oi(Ni.get(f)||null,e,i,l,u,d)),!0}return!1}function Dp(e){var i=er(e.target);if(i!==null){var l=Yn(i);if(l!==null){if(i=l.tag,i===13){if(i=$p(l),i!==null){e.blockedOn=i,Op(e.priority,function(){Pp(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ea(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var l=Su(e.domEventName,e.eventSystemFlags,i[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);uu=u,l.target.dispatchEvent(u),uu=null}else return i=Wi(l),i!==null&&_u(i),e.blockedOn=l,!1;i.shift()}return!0}function Cp(e,i,l){Ea(e)&&l.delete(i)}function WS(){$u=!1,En!==null&&Ea(En)&&(En=null),Pn!==null&&Ea(Pn)&&(Pn=null),Nn!==null&&Ea(Nn)&&(Nn=null),Pi.forEach(Cp),Ni.forEach(Cp)}function Ui(e,i){e.blockedOn===i&&(e.blockedOn=null,$u||($u=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,WS)))}function Di(e){function i(d){return Ui(d,e)}if(0<ja.length){Ui(ja[0],e);for(var l=1;l<ja.length;l++){var u=ja[l];u.blockedOn===e&&(u.blockedOn=null)}}for(En!==null&&Ui(En,e),Pn!==null&&Ui(Pn,e),Nn!==null&&Ui(Nn,e),Pi.forEach(i),Ni.forEach(i),l=0;l<On.length;l++)u=On[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<On.length&&(l=On[0],l.blockedOn===null);)Dp(l),l.blockedOn===null&&On.shift()}var Tr=Y.ReactCurrentBatchConfig,Pa=!0;function BS(e,i,l,u){var d=ze,f=Tr.transition;Tr.transition=null;try{ze=1,ku(e,i,l,u)}finally{ze=d,Tr.transition=f}}function KS(e,i,l,u){var d=ze,f=Tr.transition;Tr.transition=null;try{ze=4,ku(e,i,l,u)}finally{ze=d,Tr.transition=f}}function ku(e,i,l,u){if(Pa){var d=Su(e,i,l,u);if(d===null)Zu(e,i,u,Na,l),Up(e,u);else if(VS(d,e,i,l,u))u.stopPropagation();else if(Up(e,u),i&4&&-1<JS.indexOf(e)){for(;d!==null;){var f=Wi(d);if(f!==null&&Ep(f),f=Su(e,i,l,u),f===null&&Zu(e,i,u,Na,l),f===d)break;d=f}d!==null&&u.stopPropagation()}else Zu(e,i,u,null,l)}}var Na=null;function Su(e,i,l,u){if(Na=null,e=cu(u),e=er(e),e!==null)if(i=Yn(e),i===null)e=null;else if(l=i.tag,l===13){if(e=$p(i),e!==null)return e;e=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null);return Na=e,null}function Rp(e){switch(e){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(CS()){case gu:return 1;case Ip:return 4;case ba:case RS:return 16;case zp:return 536870912;default:return 16}default:return 16}}var Un=null,wu=null,Oa=null;function Lp(){if(Oa)return Oa;var e,i=wu,l=i.length,u,d="value"in Un?Un.value:Un.textContent,f=d.length;for(e=0;e<l&&i[e]===d[e];e++);var p=l-e;for(u=1;u<=p&&i[l-u]===d[f-u];u++);return Oa=d.slice(e,1<u?1-u:void 0)}function Ua(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function Da(){return!0}function Zp(){return!1}function Pt(e){function i(l,u,d,f,p){this._reactName=l,this._targetInst=d,this.type=u,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Da:Zp,this.isPropagationStopped=Zp,this}return K(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),i}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bu=Pt(jr),Ci=K({},jr,{view:0,detail:0}),GS=Pt(Ci),xu,Iu,Ri,Ca=K({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ri&&(Ri&&e.type==="mousemove"?(xu=e.screenX-Ri.screenX,Iu=e.screenY-Ri.screenY):Iu=xu=0,Ri=e),xu)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),Ap=Pt(Ca),QS=K({},Ca,{dataTransfer:0}),XS=Pt(QS),YS=K({},Ci,{relatedTarget:0}),zu=Pt(YS),ew=K({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),tw=Pt(ew),nw=K({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rw=Pt(nw),iw=K({},jr,{data:0}),Mp=Pt(iw),ow={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aw={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"},lw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sw(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=lw[e])?!!i[e]:!1}function Tu(){return sw}var uw=K({},Ci,{key:function(e){if(e.key){var i=ow[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=Ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?aw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(e){return e.type==="keypress"?Ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cw=Pt(uw),dw=K({},Ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fp=Pt(dw),fw=K({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),mw=Pt(fw),pw=K({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),gw=Pt(pw),hw=K({},Ca,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vw=Pt(hw),yw=[9,13,27,32],ju=m&&"CompositionEvent"in window,Li=null;m&&"documentMode"in document&&(Li=document.documentMode);var _w=m&&"TextEvent"in window&&!Li,qp=m&&(!ju||Li&&8<Li&&11>=Li),Hp=" ",Jp=!1;function Vp(e,i){switch(e){case"keyup":return yw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function $w(e,i){switch(e){case"compositionend":return Wp(i);case"keypress":return i.which!==32?null:(Jp=!0,Hp);case"textInput":return e=i.data,e===Hp&&Jp?null:e;default:return null}}function kw(e,i){if(Er)return e==="compositionend"||!ju&&Vp(e,i)?(e=Lp(),Oa=wu=Un=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return qp&&i.locale!=="ko"?null:i.data;default:return null}}var Sw={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 Bp(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!Sw[e.type]:i==="textarea"}function Kp(e,i,l,u){gp(u),i=Ma(i,"onChange"),0<i.length&&(l=new bu("onChange","change",null,l,u),e.push({event:l,listeners:i}))}var Zi=null,Ai=null;function ww(e){mg(e,0)}function Ra(e){var i=Dr(e);if(rp(i))return e}function bw(e,i){if(e==="change")return i}var Gp=!1;if(m){var Eu;if(m){var Pu="oninput"in document;if(!Pu){var Qp=document.createElement("div");Qp.setAttribute("oninput","return;"),Pu=typeof Qp.oninput=="function"}Eu=Pu}else Eu=!1;Gp=Eu&&(!document.documentMode||9<document.documentMode)}function Xp(){Zi&&(Zi.detachEvent("onpropertychange",Yp),Ai=Zi=null)}function Yp(e){if(e.propertyName==="value"&&Ra(Ai)){var i=[];Kp(i,Ai,e,cu(e)),_p(ww,i)}}function xw(e,i,l){e==="focusin"?(Xp(),Zi=i,Ai=l,Zi.attachEvent("onpropertychange",Yp)):e==="focusout"&&Xp()}function Iw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ra(Ai)}function zw(e,i){if(e==="click")return Ra(i)}function Tw(e,i){if(e==="input"||e==="change")return Ra(i)}function jw(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Xt=typeof Object.is=="function"?Object.is:jw;function Mi(e,i){if(Xt(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var l=Object.keys(e),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var d=l[u];if(!g.call(i,d)||!Xt(e[d],i[d]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,i){var l=eg(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=i&&u>=i)return{node:l,offset:i-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=eg(l)}}function ng(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?ng(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function rg(){for(var e=window,i=$a();i instanceof e.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)e=i.contentWindow;else break;i=$a(e.document)}return i}function Nu(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function Ew(e){var i=rg(),l=e.focusedElem,u=e.selectionRange;if(i!==l&&l&&l.ownerDocument&&ng(l.ownerDocument.documentElement,l)){if(u!==null&&Nu(l)){if(i=u.start,e=u.end,e===void 0&&(e=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(e,l.value.length);else if(e=(i=l.ownerDocument||document)&&i.defaultView||window,e.getSelection){e=e.getSelection();var d=l.textContent.length,f=Math.min(u.start,d);u=u.end===void 0?f:Math.min(u.end,d),!e.extend&&f>u&&(d=u,u=f,f=d),d=tg(l,f);var p=tg(l,u);d&&p&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(i=i.createRange(),i.setStart(d.node,d.offset),e.removeAllRanges(),f>u?(e.addRange(i),e.extend(p.node,p.offset)):(i.setEnd(p.node,p.offset),e.addRange(i)))}}for(i=[],e=l;e=e.parentNode;)e.nodeType===1&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)e=i[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pw=m&&"documentMode"in document&&11>=document.documentMode,Pr=null,Ou=null,Fi=null,Uu=!1;function ig(e,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uu||Pr==null||Pr!==$a(u)||(u=Pr,"selectionStart"in u&&Nu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Fi&&Mi(Fi,u)||(Fi=u,u=Ma(Ou,"onSelect"),0<u.length&&(i=new bu("onSelect","select",null,i,l),e.push({event:i,listeners:u}),i.target=Pr)))}function La(e,i){var l={};return l[e.toLowerCase()]=i.toLowerCase(),l["Webkit"+e]="webkit"+i,l["Moz"+e]="moz"+i,l}var Nr={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionend:La("Transition","TransitionEnd")},Du={},og={};m&&(og=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Za(e){if(Du[e])return Du[e];if(!Nr[e])return e;var i=Nr[e],l;for(l in i)if(i.hasOwnProperty(l)&&l in og)return Du[e]=i[l];return e}var ag=Za("animationend"),lg=Za("animationiteration"),sg=Za("animationstart"),ug=Za("transitionend"),cg=new Map,dg="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 Dn(e,i){cg.set(e,i),a(i,[e])}for(var Cu=0;Cu<dg.length;Cu++){var Ru=dg[Cu],Nw=Ru.toLowerCase(),Ow=Ru[0].toUpperCase()+Ru.slice(1);Dn(Nw,"on"+Ow)}Dn(ag,"onAnimationEnd"),Dn(lg,"onAnimationIteration"),Dn(sg,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(ug,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),Uw=new Set("cancel close invalid load scroll toggle".split(" ").concat(qi));function fg(e,i,l){var u=e.type||"unknown-event";e.currentTarget=l,NS(u,i,void 0,e),e.currentTarget=null}function mg(e,i){i=(i&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],d=u.event;u=u.listeners;e:{var f=void 0;if(i)for(var p=u.length-1;0<=p;p--){var v=u[p],_=v.instance,E=v.currentTarget;if(v=v.listener,_!==f&&d.isPropagationStopped())break e;fg(d,v,E),f=_}else for(p=0;p<u.length;p++){if(v=u[p],_=v.instance,E=v.currentTarget,v=v.listener,_!==f&&d.isPropagationStopped())break e;fg(d,v,E),f=_}}}if(wa)throw e=pu,wa=!1,pu=null,e}function De(e,i){var l=i[Ju];l===void 0&&(l=i[Ju]=new Set);var u=e+"__bubble";l.has(u)||(pg(i,e,2,!1),l.add(u))}function Lu(e,i,l){var u=0;i&&(u|=4),pg(l,e,u,i)}var Aa="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[Aa]){e[Aa]=!0,s.forEach(function(l){l!=="selectionchange"&&(Uw.has(l)||Lu(l,!1,e),Lu(l,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[Aa]||(i[Aa]=!0,Lu("selectionchange",!1,i))}}function pg(e,i,l,u){switch(Rp(i)){case 1:var d=BS;break;case 4:d=KS;break;default:d=ku}l=d.bind(null,i,l,e),d=void 0,!mu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(i,l,{capture:!0,passive:d}):e.addEventListener(i,l,!0):d!==void 0?e.addEventListener(i,l,{passive:d}):e.addEventListener(i,l,!1)}function Zu(e,i,l,u,d){var f=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var p=u.tag;if(p===3||p===4){var v=u.stateNode.containerInfo;if(v===d||v.nodeType===8&&v.parentNode===d)break;if(p===4)for(p=u.return;p!==null;){var _=p.tag;if((_===3||_===4)&&(_=p.stateNode.containerInfo,_===d||_.nodeType===8&&_.parentNode===d))return;p=p.return}for(;v!==null;){if(p=er(v),p===null)return;if(_=p.tag,_===5||_===6){u=f=p;continue e}v=v.parentNode}}u=u.return}_p(function(){var E=f,D=cu(l),L=[];e:{var O=cg.get(e);if(O!==void 0){var J=bu,G=e;switch(e){case"keypress":if(Ua(l)===0)break e;case"keydown":case"keyup":J=cw;break;case"focusin":G="focus",J=zu;break;case"focusout":G="blur",J=zu;break;case"beforeblur":case"afterblur":J=zu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=XS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=mw;break;case ag:case lg:case sg:J=tw;break;case ug:J=gw;break;case"scroll":J=GS;break;case"wheel":J=vw;break;case"copy":case"cut":case"paste":J=rw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Fp}var Q=(i&4)!==0,Ve=!Q&&e==="scroll",b=Q?O!==null?O+"Capture":null:O;Q=[];for(var $=E,z;$!==null;){z=$;var A=z.stateNode;if(z.tag===5&&A!==null&&(z=A,b!==null&&(A=Ii($,b),A!=null&&Q.push(Ji($,A,z)))),Ve)break;$=$.return}0<Q.length&&(O=new J(O,G,null,l,D),L.push({event:O,listeners:Q}))}}if((i&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",O&&l!==uu&&(G=l.relatedTarget||l.fromElement)&&(er(G)||G[vn]))break e;if((J||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,J?(G=l.relatedTarget||l.toElement,J=E,G=G?er(G):null,G!==null&&(Ve=Yn(G),G!==Ve||G.tag!==5&&G.tag!==6)&&(G=null)):(J=null,G=E),J!==G)){if(Q=Ap,A="onMouseLeave",b="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Fp,A="onPointerLeave",b="onPointerEnter",$="pointer"),Ve=J==null?O:Dr(J),z=G==null?O:Dr(G),O=new Q(A,$+"leave",J,l,D),O.target=Ve,O.relatedTarget=z,A=null,er(D)===E&&(Q=new Q(b,$+"enter",G,l,D),Q.target=z,Q.relatedTarget=Ve,A=Q),Ve=A,J&&G)t:{for(Q=J,b=G,$=0,z=Q;z;z=Or(z))$++;for(z=0,A=b;A;A=Or(A))z++;for(;0<$-z;)Q=Or(Q),$--;for(;0<z-$;)b=Or(b),z--;for(;$--;){if(Q===b||b!==null&&Q===b.alternate)break t;Q=Or(Q),b=Or(b)}Q=null}else Q=null;J!==null&&gg(L,O,J,Q,!1),G!==null&&Ve!==null&&gg(L,Ve,G,Q,!0)}}e:{if(O=E?Dr(E):window,J=O.nodeName&&O.nodeName.toLowerCase(),J==="select"||J==="input"&&O.type==="file")var X=bw;else if(Bp(O))if(Gp)X=Tw;else{X=Iw;var te=xw}else(J=O.nodeName)&&J.toLowerCase()==="input"&&(O.type==="checkbox"||O.type==="radio")&&(X=zw);if(X&&(X=X(e,E))){Kp(L,X,l,D);break e}te&&te(e,O,E),e==="focusout"&&(te=O._wrapperState)&&te.controlled&&O.type==="number"&&iu(O,"number",O.value)}switch(te=E?Dr(E):window,e){case"focusin":(Bp(te)||te.contentEditable==="true")&&(Pr=te,Ou=E,Fi=null);break;case"focusout":Fi=Ou=Pr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,ig(L,l,D);break;case"selectionchange":if(Pw)break;case"keydown":case"keyup":ig(L,l,D)}var ne;if(ju)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Er?Vp(e,l)&&(ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(qp&&l.locale!=="ko"&&(Er||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Er&&(ne=Lp()):(Un=D,wu="value"in Un?Un.value:Un.textContent,Er=!0)),te=Ma(E,ae),0<te.length&&(ae=new Mp(ae,e,null,l,D),L.push({event:ae,listeners:te}),ne?ae.data=ne:(ne=Wp(l),ne!==null&&(ae.data=ne)))),(ne=_w?$w(e,l):kw(e,l))&&(E=Ma(E,"onBeforeInput"),0<E.length&&(D=new Mp("onBeforeInput","beforeinput",null,l,D),L.push({event:D,listeners:E}),D.data=ne))}mg(L,i)})}function Ji(e,i,l){return{instance:e,listener:i,currentTarget:l}}function Ma(e,i){for(var l=i+"Capture",u=[];e!==null;){var d=e,f=d.stateNode;d.tag===5&&f!==null&&(d=f,f=Ii(e,l),f!=null&&u.unshift(Ji(e,f,d)),f=Ii(e,i),f!=null&&u.push(Ji(e,f,d))),e=e.return}return u}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gg(e,i,l,u,d){for(var f=i._reactName,p=[];l!==null&&l!==u;){var v=l,_=v.alternate,E=v.stateNode;if(_!==null&&_===u)break;v.tag===5&&E!==null&&(v=E,d?(_=Ii(l,f),_!=null&&p.unshift(Ji(l,_,v))):d||(_=Ii(l,f),_!=null&&p.push(Ji(l,_,v)))),l=l.return}p.length!==0&&e.push({event:i,listeners:p})}var Dw=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function hg(e){return(typeof e=="string"?e:""+e).replace(Dw,`
44
- `).replace(Cw,"")}function Fa(e,i,l){if(i=hg(i),hg(e)!==i&&l)throw Error(o(425))}function qa(){}var Au=null,Mu=null;function Fu(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var qu=typeof setTimeout=="function"?setTimeout:void 0,Rw=typeof clearTimeout=="function"?clearTimeout:void 0,vg=typeof Promise=="function"?Promise:void 0,Lw=typeof queueMicrotask=="function"?queueMicrotask:typeof vg<"u"?function(e){return vg.resolve(null).then(e).catch(Zw)}:qu;function Zw(e){setTimeout(function(){throw e})}function Hu(e,i){var l=i,u=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(u===0){e.removeChild(d),Di(i);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=d}while(l);Di(i)}function Cn(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return e}function yg(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return e;i--}else l==="/$"&&i++}e=e.previousSibling}return null}var Ur=Math.random().toString(36).slice(2),cn="__reactFiber$"+Ur,Vi="__reactProps$"+Ur,vn="__reactContainer$"+Ur,Ju="__reactEvents$"+Ur,Aw="__reactListeners$"+Ur,Mw="__reactHandles$"+Ur;function er(e){var i=e[cn];if(i)return i;for(var l=e.parentNode;l;){if(i=l[vn]||l[cn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(e=yg(e);e!==null;){if(l=e[cn])return l;e=yg(e)}return i}e=l,l=e.parentNode}return null}function Wi(e){return e=e[cn]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ha(e){return e[Vi]||null}var Vu=[],Cr=-1;function Rn(e){return{current:e}}function Ce(e){0>Cr||(e.current=Vu[Cr],Vu[Cr]=null,Cr--)}function Ue(e,i){Cr++,Vu[Cr]=e.current,e.current=i}var Ln={},ct=Rn(Ln),kt=Rn(!1),tr=Ln;function Rr(e,i){var l=e.type.contextTypes;if(!l)return Ln;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var d={},f;for(f in l)d[f]=i[f];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=d),d}function St(e){return e=e.childContextTypes,e!=null}function Ja(){Ce(kt),Ce(ct)}function _g(e,i,l){if(ct.current!==Ln)throw Error(o(168));Ue(ct,i),Ue(kt,l)}function $g(e,i,l){var u=e.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var d in u)if(!(d in i))throw Error(o(108,Oe(e)||"Unknown",d));return K({},l,u)}function Va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,tr=ct.current,Ue(ct,e),Ue(kt,kt.current),!0}function kg(e,i,l){var u=e.stateNode;if(!u)throw Error(o(169));l?(e=$g(e,i,tr),u.__reactInternalMemoizedMergedChildContext=e,Ce(kt),Ce(ct),Ue(ct,e)):Ce(kt),Ue(kt,l)}var yn=null,Wa=!1,Wu=!1;function Sg(e){yn===null?yn=[e]:yn.push(e)}function Fw(e){Wa=!0,Sg(e)}function Zn(){if(!Wu&&yn!==null){Wu=!0;var e=0,i=ze;try{var l=yn;for(ze=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}yn=null,Wa=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),bp(gu,Zn),d}finally{ze=i,Wu=!1}}return null}var Lr=[],Zr=0,Ba=null,Ka=0,Mt=[],Ft=0,nr=null,_n=1,$n="";function rr(e,i){Lr[Zr++]=Ka,Lr[Zr++]=Ba,Ba=e,Ka=i}function wg(e,i,l){Mt[Ft++]=_n,Mt[Ft++]=$n,Mt[Ft++]=nr,nr=e;var u=_n;e=$n;var d=32-Qt(u)-1;u&=~(1<<d),l+=1;var f=32-Qt(i)+d;if(30<f){var p=d-d%5;f=(u&(1<<p)-1).toString(32),u>>=p,d-=p,_n=1<<32-Qt(i)+d|l<<d|u,$n=f+e}else _n=1<<f|l<<d|u,$n=e}function Bu(e){e.return!==null&&(rr(e,1),wg(e,1,0))}function Ku(e){for(;e===Ba;)Ba=Lr[--Zr],Lr[Zr]=null,Ka=Lr[--Zr],Lr[Zr]=null;for(;e===nr;)nr=Mt[--Ft],Mt[Ft]=null,$n=Mt[--Ft],Mt[Ft]=null,_n=Mt[--Ft],Mt[Ft]=null}var Nt=null,Ot=null,Ze=!1,Yt=null;function bg(e,i){var l=Vt(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=e,i=e.deletions,i===null?(e.deletions=[l],e.flags|=16):i.push(l)}function xg(e,i){switch(e.tag){case 5:var l=e.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(e.stateNode=i,Nt=e,Ot=Cn(i.firstChild),!0):!1;case 6:return i=e.pendingProps===""||i.nodeType!==3?null:i,i!==null?(e.stateNode=i,Nt=e,Ot=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=nr!==null?{id:_n,overflow:$n}:null,e.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=Vt(18,null,null,0),l.stateNode=i,l.return=e,e.child=l,Nt=e,Ot=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qu(e){if(Ze){var i=Ot;if(i){var l=i;if(!xg(e,i)){if(Gu(e))throw Error(o(418));i=Cn(l.nextSibling);var u=Nt;i&&xg(e,i)?bg(u,l):(e.flags=e.flags&-4097|2,Ze=!1,Nt=e)}}else{if(Gu(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ze=!1,Nt=e}}}function Ig(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nt=e}function Ga(e){if(e!==Nt)return!1;if(!Ze)return Ig(e),Ze=!0,!1;var i;if((i=e.tag!==3)&&!(i=e.tag!==5)&&(i=e.type,i=i!=="head"&&i!=="body"&&!Fu(e.type,e.memoizedProps)),i&&(i=Ot)){if(Gu(e))throw zg(),Error(o(418));for(;i;)bg(e,i),i=Cn(i.nextSibling)}if(Ig(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(i===0){Ot=Cn(e.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}e=e.nextSibling}Ot=null}}else Ot=Nt?Cn(e.stateNode.nextSibling):null;return!0}function zg(){for(var e=Ot;e;)e=Cn(e.nextSibling)}function Ar(){Ot=Nt=null,Ze=!1}function Xu(e){Yt===null?Yt=[e]:Yt.push(e)}var qw=Y.ReactCurrentBatchConfig;function Bi(e,i,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(o(309));var u=l.stateNode}if(!u)throw Error(o(147,e));var d=u,f=""+e;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===f?i.ref:(i=function(p){var v=d.refs;p===null?delete v[f]:v[f]=p},i._stringRef=f,i)}if(typeof e!="string")throw Error(o(284));if(!l._owner)throw Error(o(290,e))}return e}function Qa(e,i){throw e=Object.prototype.toString.call(i),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e))}function Tg(e){var i=e._init;return i(e._payload)}function jg(e){function i(b,$){if(e){var z=b.deletions;z===null?(b.deletions=[$],b.flags|=16):z.push($)}}function l(b,$){if(!e)return null;for(;$!==null;)i(b,$),$=$.sibling;return null}function u(b,$){for(b=new Map;$!==null;)$.key!==null?b.set($.key,$):b.set($.index,$),$=$.sibling;return b}function d(b,$){return b=Wn(b,$),b.index=0,b.sibling=null,b}function f(b,$,z){return b.index=z,e?(z=b.alternate,z!==null?(z=z.index,z<$?(b.flags|=2,$):z):(b.flags|=2,$)):(b.flags|=1048576,$)}function p(b){return e&&b.alternate===null&&(b.flags|=2),b}function v(b,$,z,A){return $===null||$.tag!==6?($=qc(z,b.mode,A),$.return=b,$):($=d($,z),$.return=b,$)}function _(b,$,z,A){var X=z.type;return X===rt?D(b,$,z.props.children,A,z.key):$!==null&&($.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===$t&&Tg(X)===$.type)?(A=d($,z.props),A.ref=Bi(b,$,z),A.return=b,A):(A=kl(z.type,z.key,z.props,null,b.mode,A),A.ref=Bi(b,$,z),A.return=b,A)}function E(b,$,z,A){return $===null||$.tag!==4||$.stateNode.containerInfo!==z.containerInfo||$.stateNode.implementation!==z.implementation?($=Hc(z,b.mode,A),$.return=b,$):($=d($,z.children||[]),$.return=b,$)}function D(b,$,z,A,X){return $===null||$.tag!==7?($=dr(z,b.mode,A,X),$.return=b,$):($=d($,z),$.return=b,$)}function L(b,$,z){if(typeof $=="string"&&$!==""||typeof $=="number")return $=qc(""+$,b.mode,z),$.return=b,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case ge:return z=kl($.type,$.key,$.props,null,b.mode,z),z.ref=Bi(b,null,$),z.return=b,z;case Ye:return $=Hc($,b.mode,z),$.return=b,$;case $t:var A=$._init;return L(b,A($._payload),z)}if(wi($)||oe($))return $=dr($,b.mode,z,null),$.return=b,$;Qa(b,$)}return null}function O(b,$,z,A){var X=$!==null?$.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return X!==null?null:v(b,$,""+z,A);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ge:return z.key===X?_(b,$,z,A):null;case Ye:return z.key===X?E(b,$,z,A):null;case $t:return X=z._init,O(b,$,X(z._payload),A)}if(wi(z)||oe(z))return X!==null?null:D(b,$,z,A,null);Qa(b,z)}return null}function J(b,$,z,A,X){if(typeof A=="string"&&A!==""||typeof A=="number")return b=b.get(z)||null,v($,b,""+A,X);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case ge:return b=b.get(A.key===null?z:A.key)||null,_($,b,A,X);case Ye:return b=b.get(A.key===null?z:A.key)||null,E($,b,A,X);case $t:var te=A._init;return J(b,$,z,te(A._payload),X)}if(wi(A)||oe(A))return b=b.get(z)||null,D($,b,A,X,null);Qa($,A)}return null}function G(b,$,z,A){for(var X=null,te=null,ne=$,ae=$=0,nt=null;ne!==null&&ae<z.length;ae++){ne.index>ae?(nt=ne,ne=null):nt=ne.sibling;var we=O(b,ne,z[ae],A);if(we===null){ne===null&&(ne=nt);break}e&&ne&&we.alternate===null&&i(b,ne),$=f(we,$,ae),te===null?X=we:te.sibling=we,te=we,ne=nt}if(ae===z.length)return l(b,ne),Ze&&rr(b,ae),X;if(ne===null){for(;ae<z.length;ae++)ne=L(b,z[ae],A),ne!==null&&($=f(ne,$,ae),te===null?X=ne:te.sibling=ne,te=ne);return Ze&&rr(b,ae),X}for(ne=u(b,ne);ae<z.length;ae++)nt=J(ne,b,ae,z[ae],A),nt!==null&&(e&&nt.alternate!==null&&ne.delete(nt.key===null?ae:nt.key),$=f(nt,$,ae),te===null?X=nt:te.sibling=nt,te=nt);return e&&ne.forEach(function(Bn){return i(b,Bn)}),Ze&&rr(b,ae),X}function Q(b,$,z,A){var X=oe(z);if(typeof X!="function")throw Error(o(150));if(z=X.call(z),z==null)throw Error(o(151));for(var te=X=null,ne=$,ae=$=0,nt=null,we=z.next();ne!==null&&!we.done;ae++,we=z.next()){ne.index>ae?(nt=ne,ne=null):nt=ne.sibling;var Bn=O(b,ne,we.value,A);if(Bn===null){ne===null&&(ne=nt);break}e&&ne&&Bn.alternate===null&&i(b,ne),$=f(Bn,$,ae),te===null?X=Bn:te.sibling=Bn,te=Bn,ne=nt}if(we.done)return l(b,ne),Ze&&rr(b,ae),X;if(ne===null){for(;!we.done;ae++,we=z.next())we=L(b,we.value,A),we!==null&&($=f(we,$,ae),te===null?X=we:te.sibling=we,te=we);return Ze&&rr(b,ae),X}for(ne=u(b,ne);!we.done;ae++,we=z.next())we=J(ne,b,ae,we.value,A),we!==null&&(e&&we.alternate!==null&&ne.delete(we.key===null?ae:we.key),$=f(we,$,ae),te===null?X=we:te.sibling=we,te=we);return e&&ne.forEach(function(Sb){return i(b,Sb)}),Ze&&rr(b,ae),X}function Ve(b,$,z,A){if(typeof z=="object"&&z!==null&&z.type===rt&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case ge:e:{for(var X=z.key,te=$;te!==null;){if(te.key===X){if(X=z.type,X===rt){if(te.tag===7){l(b,te.sibling),$=d(te,z.props.children),$.return=b,b=$;break e}}else if(te.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===$t&&Tg(X)===te.type){l(b,te.sibling),$=d(te,z.props),$.ref=Bi(b,te,z),$.return=b,b=$;break e}l(b,te);break}else i(b,te);te=te.sibling}z.type===rt?($=dr(z.props.children,b.mode,A,z.key),$.return=b,b=$):(A=kl(z.type,z.key,z.props,null,b.mode,A),A.ref=Bi(b,$,z),A.return=b,b=A)}return p(b);case Ye:e:{for(te=z.key;$!==null;){if($.key===te)if($.tag===4&&$.stateNode.containerInfo===z.containerInfo&&$.stateNode.implementation===z.implementation){l(b,$.sibling),$=d($,z.children||[]),$.return=b,b=$;break e}else{l(b,$);break}else i(b,$);$=$.sibling}$=Hc(z,b.mode,A),$.return=b,b=$}return p(b);case $t:return te=z._init,Ve(b,$,te(z._payload),A)}if(wi(z))return G(b,$,z,A);if(oe(z))return Q(b,$,z,A);Qa(b,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,$!==null&&$.tag===6?(l(b,$.sibling),$=d($,z),$.return=b,b=$):(l(b,$),$=qc(z,b.mode,A),$.return=b,b=$),p(b)):l(b,$)}return Ve}var Mr=jg(!0),Eg=jg(!1),Xa=Rn(null),Ya=null,Fr=null,Yu=null;function ec(){Yu=Fr=Ya=null}function tc(e){var i=Xa.current;Ce(Xa),e._currentValue=i}function nc(e,i,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),e===l)break;e=e.return}}function qr(e,i){Ya=e,Yu=Fr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&i)!==0&&(wt=!0),e.firstContext=null)}function qt(e){var i=e._currentValue;if(Yu!==e)if(e={context:e,memoizedValue:i,next:null},Fr===null){if(Ya===null)throw Error(o(308));Fr=e,Ya.dependencies={lanes:0,firstContext:e}}else Fr=Fr.next=e;return i}var ir=null;function rc(e){ir===null?ir=[e]:ir.push(e)}function Pg(e,i,l,u){var d=i.interleaved;return d===null?(l.next=l,rc(i)):(l.next=d.next,d.next=l),i.interleaved=l,kn(e,u)}function kn(e,i){e.lanes|=i;var l=e.alternate;for(l!==null&&(l.lanes|=i),l=e,e=e.return;e!==null;)e.childLanes|=i,l=e.alternate,l!==null&&(l.childLanes|=i),l=e,e=e.return;return l.tag===3?l.stateNode:null}var An=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ng(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,i){return{eventTime:e,lane:i,tag:0,payload:null,callback:null,next:null}}function Mn(e,i,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(_e&2)!==0){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,kn(e,l)}return d=u.interleaved,d===null?(i.next=i,rc(u)):(i.next=d.next,d.next=i),u.interleaved=i,kn(e,l)}function el(e,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var u=i.lanes;u&=e.pendingLanes,l|=u,i.lanes=l,yu(e,l)}}function Og(e,i){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var p={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};f===null?d=f=p:f=f.next=p,l=l.next}while(l!==null);f===null?d=f=i:f=f.next=i}else d=f=i;l={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=i:e.next=i,l.lastBaseUpdate=i}function tl(e,i,l,u){var d=e.updateQueue;An=!1;var f=d.firstBaseUpdate,p=d.lastBaseUpdate,v=d.shared.pending;if(v!==null){d.shared.pending=null;var _=v,E=_.next;_.next=null,p===null?f=E:p.next=E,p=_;var D=e.alternate;D!==null&&(D=D.updateQueue,v=D.lastBaseUpdate,v!==p&&(v===null?D.firstBaseUpdate=E:v.next=E,D.lastBaseUpdate=_))}if(f!==null){var L=d.baseState;p=0,D=E=_=null,v=f;do{var O=v.lane,J=v.eventTime;if((u&O)===O){D!==null&&(D=D.next={eventTime:J,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var G=e,Q=v;switch(O=i,J=l,Q.tag){case 1:if(G=Q.payload,typeof G=="function"){L=G.call(J,L,O);break e}L=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Q.payload,O=typeof G=="function"?G.call(J,L,O):G,O==null)break e;L=K({},L,O);break e;case 2:An=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,O=d.effects,O===null?d.effects=[v]:O.push(v))}else J={eventTime:J,lane:O,tag:v.tag,payload:v.payload,callback:v.callback,next:null},D===null?(E=D=J,_=L):D=D.next=J,p|=O;if(v=v.next,v===null){if(v=d.shared.pending,v===null)break;O=v,v=O.next,O.next=null,d.lastBaseUpdate=O,d.shared.pending=null}}while(!0);if(D===null&&(_=L),d.baseState=_,d.firstBaseUpdate=E,d.lastBaseUpdate=D,i=d.shared.interleaved,i!==null){d=i;do p|=d.lane,d=d.next;while(d!==i)}else f===null&&(d.shared.lanes=0);lr|=p,e.lanes=p,e.memoizedState=L}}function Ug(e,i,l){if(e=i.effects,i.effects=null,e!==null)for(i=0;i<e.length;i++){var u=e[i],d=u.callback;if(d!==null){if(u.callback=null,u=l,typeof d!="function")throw Error(o(191,d));d.call(u)}}}var Ki={},dn=Rn(Ki),Gi=Rn(Ki),Qi=Rn(Ki);function or(e){if(e===Ki)throw Error(o(174));return e}function oc(e,i){switch(Ue(Qi,i),Ue(Gi,e),Ue(dn,Ki),e=i.nodeType,e){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:au(null,"");break;default:e=e===8?i.parentNode:i,i=e.namespaceURI||null,e=e.tagName,i=au(i,e)}Ce(dn),Ue(dn,i)}function Hr(){Ce(dn),Ce(Gi),Ce(Qi)}function Dg(e){or(Qi.current);var i=or(dn.current),l=au(i,e.type);i!==l&&(Ue(Gi,e),Ue(dn,l))}function ac(e){Gi.current===e&&(Ce(dn),Ce(Gi))}var Me=Rn(0);function nl(e){for(var i=e;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var lc=[];function sc(){for(var e=0;e<lc.length;e++)lc[e]._workInProgressVersionPrimary=null;lc.length=0}var rl=Y.ReactCurrentDispatcher,uc=Y.ReactCurrentBatchConfig,ar=0,Fe=null,Ke=null,et=null,il=!1,Xi=!1,Yi=0,Hw=0;function dt(){throw Error(o(321))}function cc(e,i){if(i===null)return!1;for(var l=0;l<i.length&&l<e.length;l++)if(!Xt(e[l],i[l]))return!1;return!0}function dc(e,i,l,u,d,f){if(ar=f,Fe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,rl.current=e===null||e.memoizedState===null?Bw:Kw,e=l(u,d),Xi){f=0;do{if(Xi=!1,Yi=0,25<=f)throw Error(o(301));f+=1,et=Ke=null,i.updateQueue=null,rl.current=Gw,e=l(u,d)}while(Xi)}if(rl.current=ll,i=Ke!==null&&Ke.next!==null,ar=0,et=Ke=Fe=null,il=!1,i)throw Error(o(300));return e}function fc(){var e=Yi!==0;return Yi=0,e}function fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Fe.memoizedState=et=e:et=et.next=e,et}function Ht(){if(Ke===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var i=et===null?Fe.memoizedState:et.next;if(i!==null)et=i,Ke=e;else{if(e===null)throw Error(o(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},et===null?Fe.memoizedState=et=e:et=et.next=e}return et}function eo(e,i){return typeof i=="function"?i(e):i}function mc(e){var i=Ht(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var u=Ke,d=u.baseQueue,f=l.pending;if(f!==null){if(d!==null){var p=d.next;d.next=f.next,f.next=p}u.baseQueue=d=f,l.pending=null}if(d!==null){f=d.next,u=u.baseState;var v=p=null,_=null,E=f;do{var D=E.lane;if((ar&D)===D)_!==null&&(_=_.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),u=E.hasEagerState?E.eagerState:e(u,E.action);else{var L={lane:D,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};_===null?(v=_=L,p=u):_=_.next=L,Fe.lanes|=D,lr|=D}E=E.next}while(E!==null&&E!==f);_===null?p=u:_.next=v,Xt(u,i.memoizedState)||(wt=!0),i.memoizedState=u,i.baseState=p,i.baseQueue=_,l.lastRenderedState=u}if(e=l.interleaved,e!==null){d=e;do f=d.lane,Fe.lanes|=f,lr|=f,d=d.next;while(d!==e)}else d===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function pc(e){var i=Ht(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var u=l.dispatch,d=l.pending,f=i.memoizedState;if(d!==null){l.pending=null;var p=d=d.next;do f=e(f,p.action),p=p.next;while(p!==d);Xt(f,i.memoizedState)||(wt=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),l.lastRenderedState=f}return[f,u]}function Cg(){}function Rg(e,i){var l=Fe,u=Ht(),d=i(),f=!Xt(u.memoizedState,d);if(f&&(u.memoizedState=d,wt=!0),u=u.queue,gc(Ag.bind(null,l,u,e),[e]),u.getSnapshot!==i||f||et!==null&&et.memoizedState.tag&1){if(l.flags|=2048,to(9,Zg.bind(null,l,u,d,i),void 0,null),tt===null)throw Error(o(349));(ar&30)!==0||Lg(l,i,d)}return d}function Lg(e,i,l){e.flags|=16384,e={getSnapshot:i,value:l},i=Fe.updateQueue,i===null?(i={lastEffect:null,stores:null},Fe.updateQueue=i,i.stores=[e]):(l=i.stores,l===null?i.stores=[e]:l.push(e))}function Zg(e,i,l,u){i.value=l,i.getSnapshot=u,Mg(i)&&Fg(e)}function Ag(e,i,l){return l(function(){Mg(i)&&Fg(e)})}function Mg(e){var i=e.getSnapshot;e=e.value;try{var l=i();return!Xt(e,l)}catch{return!0}}function Fg(e){var i=kn(e,1);i!==null&&rn(i,e,1,-1)}function qg(e){var i=fn();return typeof e=="function"&&(e=e()),i.memoizedState=i.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},i.queue=e,e=e.dispatch=Ww.bind(null,Fe,e),[i.memoizedState,e]}function to(e,i,l,u){return e={tag:e,create:i,destroy:l,deps:u,next:null},i=Fe.updateQueue,i===null?(i={lastEffect:null,stores:null},Fe.updateQueue=i,i.lastEffect=e.next=e):(l=i.lastEffect,l===null?i.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,i.lastEffect=e)),e}function Hg(){return Ht().memoizedState}function ol(e,i,l,u){var d=fn();Fe.flags|=e,d.memoizedState=to(1|i,l,void 0,u===void 0?null:u)}function al(e,i,l,u){var d=Ht();u=u===void 0?null:u;var f=void 0;if(Ke!==null){var p=Ke.memoizedState;if(f=p.destroy,u!==null&&cc(u,p.deps)){d.memoizedState=to(i,l,f,u);return}}Fe.flags|=e,d.memoizedState=to(1|i,l,f,u)}function Jg(e,i){return ol(8390656,8,e,i)}function gc(e,i){return al(2048,8,e,i)}function Vg(e,i){return al(4,2,e,i)}function Wg(e,i){return al(4,4,e,i)}function Bg(e,i){if(typeof i=="function")return e=e(),i(e),function(){i(null)};if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function Kg(e,i,l){return l=l!=null?l.concat([e]):null,al(4,4,Bg.bind(null,i,e),l)}function hc(){}function Gg(e,i){var l=Ht();i=i===void 0?null:i;var u=l.memoizedState;return u!==null&&i!==null&&cc(i,u[1])?u[0]:(l.memoizedState=[e,i],e)}function Qg(e,i){var l=Ht();i=i===void 0?null:i;var u=l.memoizedState;return u!==null&&i!==null&&cc(i,u[1])?u[0]:(e=e(),l.memoizedState=[e,i],e)}function Xg(e,i,l){return(ar&21)===0?(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=l):(Xt(l,i)||(l=Tp(),Fe.lanes|=l,lr|=l,e.baseState=!0),i)}function Jw(e,i){var l=ze;ze=l!==0&&4>l?l:4,e(!0);var u=uc.transition;uc.transition={};try{e(!1),i()}finally{ze=l,uc.transition=u}}function Yg(){return Ht().memoizedState}function Vw(e,i,l){var u=Jn(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},eh(e))th(i,l);else if(l=Pg(e,i,l,u),l!==null){var d=ht();rn(l,e,u,d),nh(l,i,u)}}function Ww(e,i,l){var u=Jn(e),d={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(eh(e))th(i,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var p=i.lastRenderedState,v=f(p,l);if(d.hasEagerState=!0,d.eagerState=v,Xt(v,p)){var _=i.interleaved;_===null?(d.next=d,rc(i)):(d.next=_.next,_.next=d),i.interleaved=d;return}}catch{}finally{}l=Pg(e,i,d,u),l!==null&&(d=ht(),rn(l,e,u,d),nh(l,i,u))}}function eh(e){var i=e.alternate;return e===Fe||i!==null&&i===Fe}function th(e,i){Xi=il=!0;var l=e.pending;l===null?i.next=i:(i.next=l.next,l.next=i),e.pending=i}function nh(e,i,l){if((l&4194240)!==0){var u=i.lanes;u&=e.pendingLanes,l|=u,i.lanes=l,yu(e,l)}}var ll={readContext:qt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},Bw={readContext:qt,useCallback:function(e,i){return fn().memoizedState=[e,i===void 0?null:i],e},useContext:qt,useEffect:Jg,useImperativeHandle:function(e,i,l){return l=l!=null?l.concat([e]):null,ol(4194308,4,Bg.bind(null,i,e),l)},useLayoutEffect:function(e,i){return ol(4194308,4,e,i)},useInsertionEffect:function(e,i){return ol(4,2,e,i)},useMemo:function(e,i){var l=fn();return i=i===void 0?null:i,e=e(),l.memoizedState=[e,i],e},useReducer:function(e,i,l){var u=fn();return i=l!==void 0?l(i):i,u.memoizedState=u.baseState=i,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},u.queue=e,e=e.dispatch=Vw.bind(null,Fe,e),[u.memoizedState,e]},useRef:function(e){var i=fn();return e={current:e},i.memoizedState=e},useState:qg,useDebugValue:hc,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=qg(!1),i=e[0];return e=Jw.bind(null,e[1]),fn().memoizedState=e,[i,e]},useMutableSource:function(){},useSyncExternalStore:function(e,i,l){var u=Fe,d=fn();if(Ze){if(l===void 0)throw Error(o(407));l=l()}else{if(l=i(),tt===null)throw Error(o(349));(ar&30)!==0||Lg(u,i,l)}d.memoizedState=l;var f={value:l,getSnapshot:i};return d.queue=f,Jg(Ag.bind(null,u,f,e),[e]),u.flags|=2048,to(9,Zg.bind(null,u,f,l,i),void 0,null),l},useId:function(){var e=fn(),i=tt.identifierPrefix;if(Ze){var l=$n,u=_n;l=(u&~(1<<32-Qt(u)-1)).toString(32)+l,i=":"+i+"R"+l,l=Yi++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=Hw++,i=":"+i+"r"+l.toString(32)+":";return e.memoizedState=i},unstable_isNewReconciler:!1},Kw={readContext:qt,useCallback:Gg,useContext:qt,useEffect:gc,useImperativeHandle:Kg,useInsertionEffect:Vg,useLayoutEffect:Wg,useMemo:Qg,useReducer:mc,useRef:Hg,useState:function(){return mc(eo)},useDebugValue:hc,useDeferredValue:function(e){var i=Ht();return Xg(i,Ke.memoizedState,e)},useTransition:function(){var e=mc(eo)[0],i=Ht().memoizedState;return[e,i]},useMutableSource:Cg,useSyncExternalStore:Rg,useId:Yg,unstable_isNewReconciler:!1},Gw={readContext:qt,useCallback:Gg,useContext:qt,useEffect:gc,useImperativeHandle:Kg,useInsertionEffect:Vg,useLayoutEffect:Wg,useMemo:Qg,useReducer:pc,useRef:Hg,useState:function(){return pc(eo)},useDebugValue:hc,useDeferredValue:function(e){var i=Ht();return Ke===null?i.memoizedState=e:Xg(i,Ke.memoizedState,e)},useTransition:function(){var e=pc(eo)[0],i=Ht().memoizedState;return[e,i]},useMutableSource:Cg,useSyncExternalStore:Rg,useId:Yg,unstable_isNewReconciler:!1};function en(e,i){if(e&&e.defaultProps){i=K({},i),e=e.defaultProps;for(var l in e)i[l]===void 0&&(i[l]=e[l]);return i}return i}function vc(e,i,l,u){i=e.memoizedState,l=l(u,i),l=l==null?i:K({},i,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var sl={isMounted:function(e){return(e=e._reactInternals)?Yn(e)===e:!1},enqueueSetState:function(e,i,l){e=e._reactInternals;var u=ht(),d=Jn(e),f=Sn(u,d);f.payload=i,l!=null&&(f.callback=l),i=Mn(e,f,d),i!==null&&(rn(i,e,d,u),el(i,e,d))},enqueueReplaceState:function(e,i,l){e=e._reactInternals;var u=ht(),d=Jn(e),f=Sn(u,d);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=Mn(e,f,d),i!==null&&(rn(i,e,d,u),el(i,e,d))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var l=ht(),u=Jn(e),d=Sn(l,u);d.tag=2,i!=null&&(d.callback=i),i=Mn(e,d,u),i!==null&&(rn(i,e,u,l),el(i,e,u))}};function rh(e,i,l,u,d,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,f,p):i.prototype&&i.prototype.isPureReactComponent?!Mi(l,u)||!Mi(d,f):!0}function ih(e,i,l){var u=!1,d=Ln,f=i.contextType;return typeof f=="object"&&f!==null?f=qt(f):(d=St(i)?tr:ct.current,u=i.contextTypes,f=(u=u!=null)?Rr(e,d):Ln),i=new i(l,f),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=sl,e.stateNode=i,i._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=f),i}function oh(e,i,l,u){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==e&&sl.enqueueReplaceState(i,i.state,null)}function yc(e,i,l,u){var d=e.stateNode;d.props=l,d.state=e.memoizedState,d.refs={},ic(e);var f=i.contextType;typeof f=="object"&&f!==null?d.context=qt(f):(f=St(i)?tr:ct.current,d.context=Rr(e,f)),d.state=e.memoizedState,f=i.getDerivedStateFromProps,typeof f=="function"&&(vc(e,i,f,l),d.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(i=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),i!==d.state&&sl.enqueueReplaceState(d,d.state,null),tl(e,l,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Jr(e,i){try{var l="",u=i;do l+=ke(u),u=u.return;while(u);var d=l}catch(f){d=`
43
+ `+d[p].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=p&&0<=v);break}}}finally{fe=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?U(e):""}function ke(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=ve(e.type,!1),e;case 11:return e=ve(e.type.render,!1),e;case 1:return e=ve(e.type,!0),e;default:return""}}function Se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rt:return"Fragment";case Ye:return"Portal";case jn:return"Profiler";case $t:return"StrictMode";case jt:return"Suspense";case Gt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xn:return(e.displayName||"Context")+".Consumer";case hn:return(e._context.displayName||"Context")+".Provider";case ln:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sn:return i=e.displayName||null,i!==null?i:Se(e.type)||"Memo";case kt:i=e._payload,e=e._init;try{return Se(e(i))}catch{}}return null}function Oe(e){var i=e.type;switch(e.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=i.render,e=e.displayName||e.name||"",i.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(i);case 8:return i===$t?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Le(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Et(e){var i=Le(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),u=""+e[i];if(!e.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,f=l.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return d.call(this)},set:function(p){u=""+p,f.call(this,p)}}),Object.defineProperty(e,i,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(p){u=""+p},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function _a(e){e._valueTracker||(e._valueTracker=Et(e))}function rp(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return e&&(u=Le(e)?e.checked?"true":"false":e.value),e=u,e!==l?(i.setValue(e),!0):!1}function $a(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nu(e,i){var l=i.checked;return K({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function ip(e,i){var l=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;l=Ie(i.value!=null?i.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function op(e,i){i=i.checked,i!=null&&le(e,"checked",i,!1)}function ru(e,i){op(e,i);var l=Ie(i.value),u=i.type;if(l!=null)u==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}i.hasOwnProperty("value")?iu(e,i.type,l):i.hasOwnProperty("defaultValue")&&iu(e,i.type,Ie(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(e.defaultChecked=!!i.defaultChecked)}function ap(e,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+e._wrapperState.initialValue,l||i===e.value||(e.value=i),e.defaultValue=i}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function iu(e,i,l){(i!=="number"||$a(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var wi=Array.isArray;function xr(e,i,l,u){if(e=e.options,i){i={};for(var d=0;d<l.length;d++)i["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=i.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Ie(l),i=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}i!==null||e[d].disabled||(i=e[d])}i!==null&&(i.selected=!0)}}function ou(e,i){if(i.dangerouslySetInnerHTML!=null)throw Error(o(91));return K({},i,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lp(e,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(o(92));if(wi(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),l=i}e._wrapperState={initialValue:Ie(l)}}function sp(e,i){var l=Ie(i.value),u=Ie(i.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),i.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function up(e){var i=e.textContent;i===e._wrapperState.initialValue&&i!==""&&i!==null&&(e.value=i)}function cp(e){switch(e){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 au(e,i){return e==null||e==="http://www.w3.org/1999/xhtml"?cp(i):e==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ka,dp=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,u,d){MSApp.execUnsafeLocalFunction(function(){return e(i,l,u,d)})}:e})(function(e,i){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=i;else{for(ka=ka||document.createElement("div"),ka.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild)}});function bi(e,i){if(i){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=i;return}}e.textContent=i}var xi={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},zS=["Webkit","ms","Moz","O"];Object.keys(xi).forEach(function(e){zS.forEach(function(i){i=i+e.charAt(0).toUpperCase()+e.substring(1),xi[i]=xi[e]})});function fp(e,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||xi.hasOwnProperty(e)&&xi[e]?(""+i).trim():i+"px"}function mp(e,i){e=e.style;for(var l in i)if(i.hasOwnProperty(l)){var u=l.indexOf("--")===0,d=fp(l,i[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,d):e[l]=d}}var TS=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 lu(e,i){if(i){if(TS[e]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(o(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(o(61))}if(i.style!=null&&typeof i.style!="object")throw Error(o(62))}}function su(e,i){if(e.indexOf("-")===-1)return typeof i.is=="string";switch(e){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 uu=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var du=null,Ir=null,zr=null;function pp(e){if(e=Wi(e)){if(typeof du!="function")throw Error(o(280));var i=e.stateNode;i&&(i=Ha(i),du(e.stateNode,e.type,i))}}function gp(e){Ir?zr?zr.push(e):zr=[e]:Ir=e}function hp(){if(Ir){var e=Ir,i=zr;if(zr=Ir=null,pp(e),i)for(e=0;e<i.length;e++)pp(i[e])}}function vp(e,i){return e(i)}function yp(){}var fu=!1;function _p(e,i,l){if(fu)return e(i,l);fu=!0;try{return vp(e,i,l)}finally{fu=!1,(Ir!==null||zr!==null)&&(yp(),hp())}}function Ii(e,i){var l=e.stateNode;if(l===null)return null;var u=Ha(l);if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,i,typeof l));return l}var mu=!1;if(m)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){mu=!0}}),window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{mu=!1}function jS(e,i,l,u,d,f,p,v,_){var E=Array.prototype.slice.call(arguments,3);try{i.apply(l,E)}catch(D){this.onError(D)}}var Ti=!1,Sa=null,wa=!1,pu=null,ES={onError:function(e){Ti=!0,Sa=e}};function PS(e,i,l,u,d,f,p,v,_){Ti=!1,Sa=null,jS.apply(ES,arguments)}function NS(e,i,l,u,d,f,p,v,_){if(PS.apply(this,arguments),Ti){if(Ti){var E=Sa;Ti=!1,Sa=null}else throw Error(o(198));wa||(wa=!0,pu=E)}}function Yn(e){var i=e,l=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(l=i.return),e=i.return;while(e)}return i.tag===3?l:null}function $p(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function kp(e){if(Yn(e)!==e)throw Error(o(188))}function OS(e){var i=e.alternate;if(!i){if(i=Yn(e),i===null)throw Error(o(188));return i!==e?null:e}for(var l=e,u=i;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(u=d.return,u!==null){l=u;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return kp(d),e;if(f===u)return kp(d),i;f=f.sibling}throw Error(o(188))}if(l.return!==u.return)l=d,u=f;else{for(var p=!1,v=d.child;v;){if(v===l){p=!0,l=d,u=f;break}if(v===u){p=!0,u=d,l=f;break}v=v.sibling}if(!p){for(v=f.child;v;){if(v===l){p=!0,l=f,u=d;break}if(v===u){p=!0,u=f,l=d;break}v=v.sibling}if(!p)throw Error(o(189))}}if(l.alternate!==u)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:i}function Sp(e){return e=OS(e),e!==null?wp(e):null}function wp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var i=wp(e);if(i!==null)return i;e=e.sibling}return null}var bp=r.unstable_scheduleCallback,xp=r.unstable_cancelCallback,US=r.unstable_shouldYield,DS=r.unstable_requestPaint,Je=r.unstable_now,CS=r.unstable_getCurrentPriorityLevel,gu=r.unstable_ImmediatePriority,Ip=r.unstable_UserBlockingPriority,ba=r.unstable_NormalPriority,RS=r.unstable_LowPriority,zp=r.unstable_IdlePriority,xa=null,un=null;function LS(e){if(un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(xa,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:MS,ZS=Math.log,AS=Math.LN2;function MS(e){return e>>>=0,e===0?32:31-(ZS(e)/AS|0)|0}var Ia=64,za=4194304;function ji(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ta(e,i){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,f=e.pingedLanes,p=l&268435455;if(p!==0){var v=p&~d;v!==0?u=ji(v):(f&=p,f!==0&&(u=ji(f)))}else p=l&~d,p!==0?u=ji(p):f!==0&&(u=ji(f));if(u===0)return 0;if(i!==0&&i!==u&&(i&d)===0&&(d=u&-u,f=i&-i,d>=f||d===16&&(f&4194240)!==0))return i;if((u&4)!==0&&(u|=l&16),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=u;0<i;)l=31-Qt(i),d=1<<l,u|=e[l],i&=~d;return u}function FS(e,i){switch(e){case 1:case 2:case 4:return i+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 i+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 qS(e,i){for(var l=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes;0<f;){var p=31-Qt(f),v=1<<p,_=d[p];_===-1?((v&l)===0||(v&u)!==0)&&(d[p]=FS(v,i)):_<=i&&(e.expiredLanes|=v),f&=~v}}function hu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tp(){var e=Ia;return Ia<<=1,(Ia&4194240)===0&&(Ia=64),e}function vu(e){for(var i=[],l=0;31>l;l++)i.push(e);return i}function Ei(e,i,l){e.pendingLanes|=i,i!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,i=31-Qt(i),e[i]=l}function HS(e,i){var l=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<l;){var d=31-Qt(l),f=1<<d;i[d]=0,u[d]=-1,e[d]=-1,l&=~f}}function yu(e,i){var l=e.entangledLanes|=i;for(e=e.entanglements;l;){var u=31-Qt(l),d=1<<u;d&i|e[u]&i&&(e[u]|=i),l&=~d}}var ze=0;function jp(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ep,_u,Pp,Np,Op,$u=!1,ja=[],En=null,Pn=null,Nn=null,Pi=new Map,Ni=new Map,On=[],JS="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 Up(e,i){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Pi.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(i.pointerId)}}function Oi(e,i,l,u,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:f,targetContainers:[d]},i!==null&&(i=Wi(i),i!==null&&_u(i)),e):(e.eventSystemFlags|=u,i=e.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),e)}function VS(e,i,l,u,d){switch(i){case"focusin":return En=Oi(En,e,i,l,u,d),!0;case"dragenter":return Pn=Oi(Pn,e,i,l,u,d),!0;case"mouseover":return Nn=Oi(Nn,e,i,l,u,d),!0;case"pointerover":var f=d.pointerId;return Pi.set(f,Oi(Pi.get(f)||null,e,i,l,u,d)),!0;case"gotpointercapture":return f=d.pointerId,Ni.set(f,Oi(Ni.get(f)||null,e,i,l,u,d)),!0}return!1}function Dp(e){var i=er(e.target);if(i!==null){var l=Yn(i);if(l!==null){if(i=l.tag,i===13){if(i=$p(l),i!==null){e.blockedOn=i,Op(e.priority,function(){Pp(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ea(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var l=Su(e.domEventName,e.eventSystemFlags,i[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);uu=u,l.target.dispatchEvent(u),uu=null}else return i=Wi(l),i!==null&&_u(i),e.blockedOn=l,!1;i.shift()}return!0}function Cp(e,i,l){Ea(e)&&l.delete(i)}function WS(){$u=!1,En!==null&&Ea(En)&&(En=null),Pn!==null&&Ea(Pn)&&(Pn=null),Nn!==null&&Ea(Nn)&&(Nn=null),Pi.forEach(Cp),Ni.forEach(Cp)}function Ui(e,i){e.blockedOn===i&&(e.blockedOn=null,$u||($u=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,WS)))}function Di(e){function i(d){return Ui(d,e)}if(0<ja.length){Ui(ja[0],e);for(var l=1;l<ja.length;l++){var u=ja[l];u.blockedOn===e&&(u.blockedOn=null)}}for(En!==null&&Ui(En,e),Pn!==null&&Ui(Pn,e),Nn!==null&&Ui(Nn,e),Pi.forEach(i),Ni.forEach(i),l=0;l<On.length;l++)u=On[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<On.length&&(l=On[0],l.blockedOn===null);)Dp(l),l.blockedOn===null&&On.shift()}var Tr=Y.ReactCurrentBatchConfig,Pa=!0;function BS(e,i,l,u){var d=ze,f=Tr.transition;Tr.transition=null;try{ze=1,ku(e,i,l,u)}finally{ze=d,Tr.transition=f}}function KS(e,i,l,u){var d=ze,f=Tr.transition;Tr.transition=null;try{ze=4,ku(e,i,l,u)}finally{ze=d,Tr.transition=f}}function ku(e,i,l,u){if(Pa){var d=Su(e,i,l,u);if(d===null)Zu(e,i,u,Na,l),Up(e,u);else if(VS(d,e,i,l,u))u.stopPropagation();else if(Up(e,u),i&4&&-1<JS.indexOf(e)){for(;d!==null;){var f=Wi(d);if(f!==null&&Ep(f),f=Su(e,i,l,u),f===null&&Zu(e,i,u,Na,l),f===d)break;d=f}d!==null&&u.stopPropagation()}else Zu(e,i,u,null,l)}}var Na=null;function Su(e,i,l,u){if(Na=null,e=cu(u),e=er(e),e!==null)if(i=Yn(e),i===null)e=null;else if(l=i.tag,l===13){if(e=$p(i),e!==null)return e;e=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null);return Na=e,null}function Rp(e){switch(e){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(CS()){case gu:return 1;case Ip:return 4;case ba:case RS:return 16;case zp:return 536870912;default:return 16}default:return 16}}var Un=null,wu=null,Oa=null;function Lp(){if(Oa)return Oa;var e,i=wu,l=i.length,u,d="value"in Un?Un.value:Un.textContent,f=d.length;for(e=0;e<l&&i[e]===d[e];e++);var p=l-e;for(u=1;u<=p&&i[l-u]===d[f-u];u++);return Oa=d.slice(e,1<u?1-u:void 0)}function Ua(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function Da(){return!0}function Zp(){return!1}function Pt(e){function i(l,u,d,f,p){this._reactName=l,this._targetInst=d,this.type=u,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Da:Zp,this.isPropagationStopped=Zp,this}return K(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),i}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bu=Pt(jr),Ci=K({},jr,{view:0,detail:0}),GS=Pt(Ci),xu,Iu,Ri,Ca=K({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ri&&(Ri&&e.type==="mousemove"?(xu=e.screenX-Ri.screenX,Iu=e.screenY-Ri.screenY):Iu=xu=0,Ri=e),xu)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),Ap=Pt(Ca),QS=K({},Ca,{dataTransfer:0}),XS=Pt(QS),YS=K({},Ci,{relatedTarget:0}),zu=Pt(YS),ew=K({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),tw=Pt(ew),nw=K({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rw=Pt(nw),iw=K({},jr,{data:0}),Mp=Pt(iw),ow={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aw={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"},lw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sw(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=lw[e])?!!i[e]:!1}function Tu(){return sw}var uw=K({},Ci,{key:function(e){if(e.key){var i=ow[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=Ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?aw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(e){return e.type==="keypress"?Ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cw=Pt(uw),dw=K({},Ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fp=Pt(dw),fw=K({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),mw=Pt(fw),pw=K({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),gw=Pt(pw),hw=K({},Ca,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vw=Pt(hw),yw=[9,13,27,32],ju=m&&"CompositionEvent"in window,Li=null;m&&"documentMode"in document&&(Li=document.documentMode);var _w=m&&"TextEvent"in window&&!Li,qp=m&&(!ju||Li&&8<Li&&11>=Li),Hp=" ",Jp=!1;function Vp(e,i){switch(e){case"keyup":return yw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function $w(e,i){switch(e){case"compositionend":return Wp(i);case"keypress":return i.which!==32?null:(Jp=!0,Hp);case"textInput":return e=i.data,e===Hp&&Jp?null:e;default:return null}}function kw(e,i){if(Er)return e==="compositionend"||!ju&&Vp(e,i)?(e=Lp(),Oa=wu=Un=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return qp&&i.locale!=="ko"?null:i.data;default:return null}}var Sw={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 Bp(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!Sw[e.type]:i==="textarea"}function Kp(e,i,l,u){gp(u),i=Ma(i,"onChange"),0<i.length&&(l=new bu("onChange","change",null,l,u),e.push({event:l,listeners:i}))}var Zi=null,Ai=null;function ww(e){mg(e,0)}function Ra(e){var i=Dr(e);if(rp(i))return e}function bw(e,i){if(e==="change")return i}var Gp=!1;if(m){var Eu;if(m){var Pu="oninput"in document;if(!Pu){var Qp=document.createElement("div");Qp.setAttribute("oninput","return;"),Pu=typeof Qp.oninput=="function"}Eu=Pu}else Eu=!1;Gp=Eu&&(!document.documentMode||9<document.documentMode)}function Xp(){Zi&&(Zi.detachEvent("onpropertychange",Yp),Ai=Zi=null)}function Yp(e){if(e.propertyName==="value"&&Ra(Ai)){var i=[];Kp(i,Ai,e,cu(e)),_p(ww,i)}}function xw(e,i,l){e==="focusin"?(Xp(),Zi=i,Ai=l,Zi.attachEvent("onpropertychange",Yp)):e==="focusout"&&Xp()}function Iw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ra(Ai)}function zw(e,i){if(e==="click")return Ra(i)}function Tw(e,i){if(e==="input"||e==="change")return Ra(i)}function jw(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Xt=typeof Object.is=="function"?Object.is:jw;function Mi(e,i){if(Xt(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var l=Object.keys(e),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var d=l[u];if(!g.call(i,d)||!Xt(e[d],i[d]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,i){var l=eg(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=i&&u>=i)return{node:l,offset:i-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=eg(l)}}function ng(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?ng(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function rg(){for(var e=window,i=$a();i instanceof e.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)e=i.contentWindow;else break;i=$a(e.document)}return i}function Nu(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function Ew(e){var i=rg(),l=e.focusedElem,u=e.selectionRange;if(i!==l&&l&&l.ownerDocument&&ng(l.ownerDocument.documentElement,l)){if(u!==null&&Nu(l)){if(i=u.start,e=u.end,e===void 0&&(e=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(e,l.value.length);else if(e=(i=l.ownerDocument||document)&&i.defaultView||window,e.getSelection){e=e.getSelection();var d=l.textContent.length,f=Math.min(u.start,d);u=u.end===void 0?f:Math.min(u.end,d),!e.extend&&f>u&&(d=u,u=f,f=d),d=tg(l,f);var p=tg(l,u);d&&p&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(i=i.createRange(),i.setStart(d.node,d.offset),e.removeAllRanges(),f>u?(e.addRange(i),e.extend(p.node,p.offset)):(i.setEnd(p.node,p.offset),e.addRange(i)))}}for(i=[],e=l;e=e.parentNode;)e.nodeType===1&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)e=i[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pw=m&&"documentMode"in document&&11>=document.documentMode,Pr=null,Ou=null,Fi=null,Uu=!1;function ig(e,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uu||Pr==null||Pr!==$a(u)||(u=Pr,"selectionStart"in u&&Nu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Fi&&Mi(Fi,u)||(Fi=u,u=Ma(Ou,"onSelect"),0<u.length&&(i=new bu("onSelect","select",null,i,l),e.push({event:i,listeners:u}),i.target=Pr)))}function La(e,i){var l={};return l[e.toLowerCase()]=i.toLowerCase(),l["Webkit"+e]="webkit"+i,l["Moz"+e]="moz"+i,l}var Nr={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionend:La("Transition","TransitionEnd")},Du={},og={};m&&(og=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Za(e){if(Du[e])return Du[e];if(!Nr[e])return e;var i=Nr[e],l;for(l in i)if(i.hasOwnProperty(l)&&l in og)return Du[e]=i[l];return e}var ag=Za("animationend"),lg=Za("animationiteration"),sg=Za("animationstart"),ug=Za("transitionend"),cg=new Map,dg="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 Dn(e,i){cg.set(e,i),a(i,[e])}for(var Cu=0;Cu<dg.length;Cu++){var Ru=dg[Cu],Nw=Ru.toLowerCase(),Ow=Ru[0].toUpperCase()+Ru.slice(1);Dn(Nw,"on"+Ow)}Dn(ag,"onAnimationEnd"),Dn(lg,"onAnimationIteration"),Dn(sg,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(ug,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),Uw=new Set("cancel close invalid load scroll toggle".split(" ").concat(qi));function fg(e,i,l){var u=e.type||"unknown-event";e.currentTarget=l,NS(u,i,void 0,e),e.currentTarget=null}function mg(e,i){i=(i&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],d=u.event;u=u.listeners;e:{var f=void 0;if(i)for(var p=u.length-1;0<=p;p--){var v=u[p],_=v.instance,E=v.currentTarget;if(v=v.listener,_!==f&&d.isPropagationStopped())break e;fg(d,v,E),f=_}else for(p=0;p<u.length;p++){if(v=u[p],_=v.instance,E=v.currentTarget,v=v.listener,_!==f&&d.isPropagationStopped())break e;fg(d,v,E),f=_}}}if(wa)throw e=pu,wa=!1,pu=null,e}function De(e,i){var l=i[Ju];l===void 0&&(l=i[Ju]=new Set);var u=e+"__bubble";l.has(u)||(pg(i,e,2,!1),l.add(u))}function Lu(e,i,l){var u=0;i&&(u|=4),pg(l,e,u,i)}var Aa="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[Aa]){e[Aa]=!0,s.forEach(function(l){l!=="selectionchange"&&(Uw.has(l)||Lu(l,!1,e),Lu(l,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[Aa]||(i[Aa]=!0,Lu("selectionchange",!1,i))}}function pg(e,i,l,u){switch(Rp(i)){case 1:var d=BS;break;case 4:d=KS;break;default:d=ku}l=d.bind(null,i,l,e),d=void 0,!mu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(i,l,{capture:!0,passive:d}):e.addEventListener(i,l,!0):d!==void 0?e.addEventListener(i,l,{passive:d}):e.addEventListener(i,l,!1)}function Zu(e,i,l,u,d){var f=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var p=u.tag;if(p===3||p===4){var v=u.stateNode.containerInfo;if(v===d||v.nodeType===8&&v.parentNode===d)break;if(p===4)for(p=u.return;p!==null;){var _=p.tag;if((_===3||_===4)&&(_=p.stateNode.containerInfo,_===d||_.nodeType===8&&_.parentNode===d))return;p=p.return}for(;v!==null;){if(p=er(v),p===null)return;if(_=p.tag,_===5||_===6){u=f=p;continue e}v=v.parentNode}}u=u.return}_p(function(){var E=f,D=cu(l),L=[];e:{var O=cg.get(e);if(O!==void 0){var J=bu,G=e;switch(e){case"keypress":if(Ua(l)===0)break e;case"keydown":case"keyup":J=cw;break;case"focusin":G="focus",J=zu;break;case"focusout":G="blur",J=zu;break;case"beforeblur":case"afterblur":J=zu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=XS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=mw;break;case ag:case lg:case sg:J=tw;break;case ug:J=gw;break;case"scroll":J=GS;break;case"wheel":J=vw;break;case"copy":case"cut":case"paste":J=rw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Fp}var Q=(i&4)!==0,Ve=!Q&&e==="scroll",b=Q?O!==null?O+"Capture":null:O;Q=[];for(var $=E,z;$!==null;){z=$;var A=z.stateNode;if(z.tag===5&&A!==null&&(z=A,b!==null&&(A=Ii($,b),A!=null&&Q.push(Ji($,A,z)))),Ve)break;$=$.return}0<Q.length&&(O=new J(O,G,null,l,D),L.push({event:O,listeners:Q}))}}if((i&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",O&&l!==uu&&(G=l.relatedTarget||l.fromElement)&&(er(G)||G[vn]))break e;if((J||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,J?(G=l.relatedTarget||l.toElement,J=E,G=G?er(G):null,G!==null&&(Ve=Yn(G),G!==Ve||G.tag!==5&&G.tag!==6)&&(G=null)):(J=null,G=E),J!==G)){if(Q=Ap,A="onMouseLeave",b="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Fp,A="onPointerLeave",b="onPointerEnter",$="pointer"),Ve=J==null?O:Dr(J),z=G==null?O:Dr(G),O=new Q(A,$+"leave",J,l,D),O.target=Ve,O.relatedTarget=z,A=null,er(D)===E&&(Q=new Q(b,$+"enter",G,l,D),Q.target=z,Q.relatedTarget=Ve,A=Q),Ve=A,J&&G)t:{for(Q=J,b=G,$=0,z=Q;z;z=Or(z))$++;for(z=0,A=b;A;A=Or(A))z++;for(;0<$-z;)Q=Or(Q),$--;for(;0<z-$;)b=Or(b),z--;for(;$--;){if(Q===b||b!==null&&Q===b.alternate)break t;Q=Or(Q),b=Or(b)}Q=null}else Q=null;J!==null&&gg(L,O,J,Q,!1),G!==null&&Ve!==null&&gg(L,Ve,G,Q,!0)}}e:{if(O=E?Dr(E):window,J=O.nodeName&&O.nodeName.toLowerCase(),J==="select"||J==="input"&&O.type==="file")var X=bw;else if(Bp(O))if(Gp)X=Tw;else{X=Iw;var te=xw}else(J=O.nodeName)&&J.toLowerCase()==="input"&&(O.type==="checkbox"||O.type==="radio")&&(X=zw);if(X&&(X=X(e,E))){Kp(L,X,l,D);break e}te&&te(e,O,E),e==="focusout"&&(te=O._wrapperState)&&te.controlled&&O.type==="number"&&iu(O,"number",O.value)}switch(te=E?Dr(E):window,e){case"focusin":(Bp(te)||te.contentEditable==="true")&&(Pr=te,Ou=E,Fi=null);break;case"focusout":Fi=Ou=Pr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,ig(L,l,D);break;case"selectionchange":if(Pw)break;case"keydown":case"keyup":ig(L,l,D)}var ne;if(ju)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Er?Vp(e,l)&&(ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(qp&&l.locale!=="ko"&&(Er||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Er&&(ne=Lp()):(Un=D,wu="value"in Un?Un.value:Un.textContent,Er=!0)),te=Ma(E,ae),0<te.length&&(ae=new Mp(ae,e,null,l,D),L.push({event:ae,listeners:te}),ne?ae.data=ne:(ne=Wp(l),ne!==null&&(ae.data=ne)))),(ne=_w?$w(e,l):kw(e,l))&&(E=Ma(E,"onBeforeInput"),0<E.length&&(D=new Mp("onBeforeInput","beforeinput",null,l,D),L.push({event:D,listeners:E}),D.data=ne))}mg(L,i)})}function Ji(e,i,l){return{instance:e,listener:i,currentTarget:l}}function Ma(e,i){for(var l=i+"Capture",u=[];e!==null;){var d=e,f=d.stateNode;d.tag===5&&f!==null&&(d=f,f=Ii(e,l),f!=null&&u.unshift(Ji(e,f,d)),f=Ii(e,i),f!=null&&u.push(Ji(e,f,d))),e=e.return}return u}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gg(e,i,l,u,d){for(var f=i._reactName,p=[];l!==null&&l!==u;){var v=l,_=v.alternate,E=v.stateNode;if(_!==null&&_===u)break;v.tag===5&&E!==null&&(v=E,d?(_=Ii(l,f),_!=null&&p.unshift(Ji(l,_,v))):d||(_=Ii(l,f),_!=null&&p.push(Ji(l,_,v)))),l=l.return}p.length!==0&&e.push({event:i,listeners:p})}var Dw=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function hg(e){return(typeof e=="string"?e:""+e).replace(Dw,`
44
+ `).replace(Cw,"")}function Fa(e,i,l){if(i=hg(i),hg(e)!==i&&l)throw Error(o(425))}function qa(){}var Au=null,Mu=null;function Fu(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var qu=typeof setTimeout=="function"?setTimeout:void 0,Rw=typeof clearTimeout=="function"?clearTimeout:void 0,vg=typeof Promise=="function"?Promise:void 0,Lw=typeof queueMicrotask=="function"?queueMicrotask:typeof vg<"u"?function(e){return vg.resolve(null).then(e).catch(Zw)}:qu;function Zw(e){setTimeout(function(){throw e})}function Hu(e,i){var l=i,u=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(u===0){e.removeChild(d),Di(i);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=d}while(l);Di(i)}function Cn(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return e}function yg(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return e;i--}else l==="/$"&&i++}e=e.previousSibling}return null}var Ur=Math.random().toString(36).slice(2),cn="__reactFiber$"+Ur,Vi="__reactProps$"+Ur,vn="__reactContainer$"+Ur,Ju="__reactEvents$"+Ur,Aw="__reactListeners$"+Ur,Mw="__reactHandles$"+Ur;function er(e){var i=e[cn];if(i)return i;for(var l=e.parentNode;l;){if(i=l[vn]||l[cn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(e=yg(e);e!==null;){if(l=e[cn])return l;e=yg(e)}return i}e=l,l=e.parentNode}return null}function Wi(e){return e=e[cn]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ha(e){return e[Vi]||null}var Vu=[],Cr=-1;function Rn(e){return{current:e}}function Ce(e){0>Cr||(e.current=Vu[Cr],Vu[Cr]=null,Cr--)}function Ue(e,i){Cr++,Vu[Cr]=e.current,e.current=i}var Ln={},ct=Rn(Ln),St=Rn(!1),tr=Ln;function Rr(e,i){var l=e.type.contextTypes;if(!l)return Ln;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var d={},f;for(f in l)d[f]=i[f];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=d),d}function wt(e){return e=e.childContextTypes,e!=null}function Ja(){Ce(St),Ce(ct)}function _g(e,i,l){if(ct.current!==Ln)throw Error(o(168));Ue(ct,i),Ue(St,l)}function $g(e,i,l){var u=e.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var d in u)if(!(d in i))throw Error(o(108,Oe(e)||"Unknown",d));return K({},l,u)}function Va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,tr=ct.current,Ue(ct,e),Ue(St,St.current),!0}function kg(e,i,l){var u=e.stateNode;if(!u)throw Error(o(169));l?(e=$g(e,i,tr),u.__reactInternalMemoizedMergedChildContext=e,Ce(St),Ce(ct),Ue(ct,e)):Ce(St),Ue(St,l)}var yn=null,Wa=!1,Wu=!1;function Sg(e){yn===null?yn=[e]:yn.push(e)}function Fw(e){Wa=!0,Sg(e)}function Zn(){if(!Wu&&yn!==null){Wu=!0;var e=0,i=ze;try{var l=yn;for(ze=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}yn=null,Wa=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),bp(gu,Zn),d}finally{ze=i,Wu=!1}}return null}var Lr=[],Zr=0,Ba=null,Ka=0,Mt=[],Ft=0,nr=null,_n=1,$n="";function rr(e,i){Lr[Zr++]=Ka,Lr[Zr++]=Ba,Ba=e,Ka=i}function wg(e,i,l){Mt[Ft++]=_n,Mt[Ft++]=$n,Mt[Ft++]=nr,nr=e;var u=_n;e=$n;var d=32-Qt(u)-1;u&=~(1<<d),l+=1;var f=32-Qt(i)+d;if(30<f){var p=d-d%5;f=(u&(1<<p)-1).toString(32),u>>=p,d-=p,_n=1<<32-Qt(i)+d|l<<d|u,$n=f+e}else _n=1<<f|l<<d|u,$n=e}function Bu(e){e.return!==null&&(rr(e,1),wg(e,1,0))}function Ku(e){for(;e===Ba;)Ba=Lr[--Zr],Lr[Zr]=null,Ka=Lr[--Zr],Lr[Zr]=null;for(;e===nr;)nr=Mt[--Ft],Mt[Ft]=null,$n=Mt[--Ft],Mt[Ft]=null,_n=Mt[--Ft],Mt[Ft]=null}var Nt=null,Ot=null,Ze=!1,Yt=null;function bg(e,i){var l=Vt(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=e,i=e.deletions,i===null?(e.deletions=[l],e.flags|=16):i.push(l)}function xg(e,i){switch(e.tag){case 5:var l=e.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(e.stateNode=i,Nt=e,Ot=Cn(i.firstChild),!0):!1;case 6:return i=e.pendingProps===""||i.nodeType!==3?null:i,i!==null?(e.stateNode=i,Nt=e,Ot=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=nr!==null?{id:_n,overflow:$n}:null,e.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=Vt(18,null,null,0),l.stateNode=i,l.return=e,e.child=l,Nt=e,Ot=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qu(e){if(Ze){var i=Ot;if(i){var l=i;if(!xg(e,i)){if(Gu(e))throw Error(o(418));i=Cn(l.nextSibling);var u=Nt;i&&xg(e,i)?bg(u,l):(e.flags=e.flags&-4097|2,Ze=!1,Nt=e)}}else{if(Gu(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ze=!1,Nt=e}}}function Ig(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nt=e}function Ga(e){if(e!==Nt)return!1;if(!Ze)return Ig(e),Ze=!0,!1;var i;if((i=e.tag!==3)&&!(i=e.tag!==5)&&(i=e.type,i=i!=="head"&&i!=="body"&&!Fu(e.type,e.memoizedProps)),i&&(i=Ot)){if(Gu(e))throw zg(),Error(o(418));for(;i;)bg(e,i),i=Cn(i.nextSibling)}if(Ig(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(i===0){Ot=Cn(e.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}e=e.nextSibling}Ot=null}}else Ot=Nt?Cn(e.stateNode.nextSibling):null;return!0}function zg(){for(var e=Ot;e;)e=Cn(e.nextSibling)}function Ar(){Ot=Nt=null,Ze=!1}function Xu(e){Yt===null?Yt=[e]:Yt.push(e)}var qw=Y.ReactCurrentBatchConfig;function Bi(e,i,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(o(309));var u=l.stateNode}if(!u)throw Error(o(147,e));var d=u,f=""+e;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===f?i.ref:(i=function(p){var v=d.refs;p===null?delete v[f]:v[f]=p},i._stringRef=f,i)}if(typeof e!="string")throw Error(o(284));if(!l._owner)throw Error(o(290,e))}return e}function Qa(e,i){throw e=Object.prototype.toString.call(i),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e))}function Tg(e){var i=e._init;return i(e._payload)}function jg(e){function i(b,$){if(e){var z=b.deletions;z===null?(b.deletions=[$],b.flags|=16):z.push($)}}function l(b,$){if(!e)return null;for(;$!==null;)i(b,$),$=$.sibling;return null}function u(b,$){for(b=new Map;$!==null;)$.key!==null?b.set($.key,$):b.set($.index,$),$=$.sibling;return b}function d(b,$){return b=Wn(b,$),b.index=0,b.sibling=null,b}function f(b,$,z){return b.index=z,e?(z=b.alternate,z!==null?(z=z.index,z<$?(b.flags|=2,$):z):(b.flags|=2,$)):(b.flags|=1048576,$)}function p(b){return e&&b.alternate===null&&(b.flags|=2),b}function v(b,$,z,A){return $===null||$.tag!==6?($=qc(z,b.mode,A),$.return=b,$):($=d($,z),$.return=b,$)}function _(b,$,z,A){var X=z.type;return X===rt?D(b,$,z.props.children,A,z.key):$!==null&&($.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===kt&&Tg(X)===$.type)?(A=d($,z.props),A.ref=Bi(b,$,z),A.return=b,A):(A=kl(z.type,z.key,z.props,null,b.mode,A),A.ref=Bi(b,$,z),A.return=b,A)}function E(b,$,z,A){return $===null||$.tag!==4||$.stateNode.containerInfo!==z.containerInfo||$.stateNode.implementation!==z.implementation?($=Hc(z,b.mode,A),$.return=b,$):($=d($,z.children||[]),$.return=b,$)}function D(b,$,z,A,X){return $===null||$.tag!==7?($=dr(z,b.mode,A,X),$.return=b,$):($=d($,z),$.return=b,$)}function L(b,$,z){if(typeof $=="string"&&$!==""||typeof $=="number")return $=qc(""+$,b.mode,z),$.return=b,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case ge:return z=kl($.type,$.key,$.props,null,b.mode,z),z.ref=Bi(b,null,$),z.return=b,z;case Ye:return $=Hc($,b.mode,z),$.return=b,$;case kt:var A=$._init;return L(b,A($._payload),z)}if(wi($)||oe($))return $=dr($,b.mode,z,null),$.return=b,$;Qa(b,$)}return null}function O(b,$,z,A){var X=$!==null?$.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return X!==null?null:v(b,$,""+z,A);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ge:return z.key===X?_(b,$,z,A):null;case Ye:return z.key===X?E(b,$,z,A):null;case kt:return X=z._init,O(b,$,X(z._payload),A)}if(wi(z)||oe(z))return X!==null?null:D(b,$,z,A,null);Qa(b,z)}return null}function J(b,$,z,A,X){if(typeof A=="string"&&A!==""||typeof A=="number")return b=b.get(z)||null,v($,b,""+A,X);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case ge:return b=b.get(A.key===null?z:A.key)||null,_($,b,A,X);case Ye:return b=b.get(A.key===null?z:A.key)||null,E($,b,A,X);case kt:var te=A._init;return J(b,$,z,te(A._payload),X)}if(wi(A)||oe(A))return b=b.get(z)||null,D($,b,A,X,null);Qa($,A)}return null}function G(b,$,z,A){for(var X=null,te=null,ne=$,ae=$=0,nt=null;ne!==null&&ae<z.length;ae++){ne.index>ae?(nt=ne,ne=null):nt=ne.sibling;var we=O(b,ne,z[ae],A);if(we===null){ne===null&&(ne=nt);break}e&&ne&&we.alternate===null&&i(b,ne),$=f(we,$,ae),te===null?X=we:te.sibling=we,te=we,ne=nt}if(ae===z.length)return l(b,ne),Ze&&rr(b,ae),X;if(ne===null){for(;ae<z.length;ae++)ne=L(b,z[ae],A),ne!==null&&($=f(ne,$,ae),te===null?X=ne:te.sibling=ne,te=ne);return Ze&&rr(b,ae),X}for(ne=u(b,ne);ae<z.length;ae++)nt=J(ne,b,ae,z[ae],A),nt!==null&&(e&&nt.alternate!==null&&ne.delete(nt.key===null?ae:nt.key),$=f(nt,$,ae),te===null?X=nt:te.sibling=nt,te=nt);return e&&ne.forEach(function(Bn){return i(b,Bn)}),Ze&&rr(b,ae),X}function Q(b,$,z,A){var X=oe(z);if(typeof X!="function")throw Error(o(150));if(z=X.call(z),z==null)throw Error(o(151));for(var te=X=null,ne=$,ae=$=0,nt=null,we=z.next();ne!==null&&!we.done;ae++,we=z.next()){ne.index>ae?(nt=ne,ne=null):nt=ne.sibling;var Bn=O(b,ne,we.value,A);if(Bn===null){ne===null&&(ne=nt);break}e&&ne&&Bn.alternate===null&&i(b,ne),$=f(Bn,$,ae),te===null?X=Bn:te.sibling=Bn,te=Bn,ne=nt}if(we.done)return l(b,ne),Ze&&rr(b,ae),X;if(ne===null){for(;!we.done;ae++,we=z.next())we=L(b,we.value,A),we!==null&&($=f(we,$,ae),te===null?X=we:te.sibling=we,te=we);return Ze&&rr(b,ae),X}for(ne=u(b,ne);!we.done;ae++,we=z.next())we=J(ne,b,ae,we.value,A),we!==null&&(e&&we.alternate!==null&&ne.delete(we.key===null?ae:we.key),$=f(we,$,ae),te===null?X=we:te.sibling=we,te=we);return e&&ne.forEach(function(Sb){return i(b,Sb)}),Ze&&rr(b,ae),X}function Ve(b,$,z,A){if(typeof z=="object"&&z!==null&&z.type===rt&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case ge:e:{for(var X=z.key,te=$;te!==null;){if(te.key===X){if(X=z.type,X===rt){if(te.tag===7){l(b,te.sibling),$=d(te,z.props.children),$.return=b,b=$;break e}}else if(te.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===kt&&Tg(X)===te.type){l(b,te.sibling),$=d(te,z.props),$.ref=Bi(b,te,z),$.return=b,b=$;break e}l(b,te);break}else i(b,te);te=te.sibling}z.type===rt?($=dr(z.props.children,b.mode,A,z.key),$.return=b,b=$):(A=kl(z.type,z.key,z.props,null,b.mode,A),A.ref=Bi(b,$,z),A.return=b,b=A)}return p(b);case Ye:e:{for(te=z.key;$!==null;){if($.key===te)if($.tag===4&&$.stateNode.containerInfo===z.containerInfo&&$.stateNode.implementation===z.implementation){l(b,$.sibling),$=d($,z.children||[]),$.return=b,b=$;break e}else{l(b,$);break}else i(b,$);$=$.sibling}$=Hc(z,b.mode,A),$.return=b,b=$}return p(b);case kt:return te=z._init,Ve(b,$,te(z._payload),A)}if(wi(z))return G(b,$,z,A);if(oe(z))return Q(b,$,z,A);Qa(b,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,$!==null&&$.tag===6?(l(b,$.sibling),$=d($,z),$.return=b,b=$):(l(b,$),$=qc(z,b.mode,A),$.return=b,b=$),p(b)):l(b,$)}return Ve}var Mr=jg(!0),Eg=jg(!1),Xa=Rn(null),Ya=null,Fr=null,Yu=null;function ec(){Yu=Fr=Ya=null}function tc(e){var i=Xa.current;Ce(Xa),e._currentValue=i}function nc(e,i,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),e===l)break;e=e.return}}function qr(e,i){Ya=e,Yu=Fr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&i)!==0&&(bt=!0),e.firstContext=null)}function qt(e){var i=e._currentValue;if(Yu!==e)if(e={context:e,memoizedValue:i,next:null},Fr===null){if(Ya===null)throw Error(o(308));Fr=e,Ya.dependencies={lanes:0,firstContext:e}}else Fr=Fr.next=e;return i}var ir=null;function rc(e){ir===null?ir=[e]:ir.push(e)}function Pg(e,i,l,u){var d=i.interleaved;return d===null?(l.next=l,rc(i)):(l.next=d.next,d.next=l),i.interleaved=l,kn(e,u)}function kn(e,i){e.lanes|=i;var l=e.alternate;for(l!==null&&(l.lanes|=i),l=e,e=e.return;e!==null;)e.childLanes|=i,l=e.alternate,l!==null&&(l.childLanes|=i),l=e,e=e.return;return l.tag===3?l.stateNode:null}var An=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ng(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,i){return{eventTime:e,lane:i,tag:0,payload:null,callback:null,next:null}}function Mn(e,i,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(_e&2)!==0){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,kn(e,l)}return d=u.interleaved,d===null?(i.next=i,rc(u)):(i.next=d.next,d.next=i),u.interleaved=i,kn(e,l)}function el(e,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var u=i.lanes;u&=e.pendingLanes,l|=u,i.lanes=l,yu(e,l)}}function Og(e,i){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var p={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};f===null?d=f=p:f=f.next=p,l=l.next}while(l!==null);f===null?d=f=i:f=f.next=i}else d=f=i;l={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=i:e.next=i,l.lastBaseUpdate=i}function tl(e,i,l,u){var d=e.updateQueue;An=!1;var f=d.firstBaseUpdate,p=d.lastBaseUpdate,v=d.shared.pending;if(v!==null){d.shared.pending=null;var _=v,E=_.next;_.next=null,p===null?f=E:p.next=E,p=_;var D=e.alternate;D!==null&&(D=D.updateQueue,v=D.lastBaseUpdate,v!==p&&(v===null?D.firstBaseUpdate=E:v.next=E,D.lastBaseUpdate=_))}if(f!==null){var L=d.baseState;p=0,D=E=_=null,v=f;do{var O=v.lane,J=v.eventTime;if((u&O)===O){D!==null&&(D=D.next={eventTime:J,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var G=e,Q=v;switch(O=i,J=l,Q.tag){case 1:if(G=Q.payload,typeof G=="function"){L=G.call(J,L,O);break e}L=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Q.payload,O=typeof G=="function"?G.call(J,L,O):G,O==null)break e;L=K({},L,O);break e;case 2:An=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,O=d.effects,O===null?d.effects=[v]:O.push(v))}else J={eventTime:J,lane:O,tag:v.tag,payload:v.payload,callback:v.callback,next:null},D===null?(E=D=J,_=L):D=D.next=J,p|=O;if(v=v.next,v===null){if(v=d.shared.pending,v===null)break;O=v,v=O.next,O.next=null,d.lastBaseUpdate=O,d.shared.pending=null}}while(!0);if(D===null&&(_=L),d.baseState=_,d.firstBaseUpdate=E,d.lastBaseUpdate=D,i=d.shared.interleaved,i!==null){d=i;do p|=d.lane,d=d.next;while(d!==i)}else f===null&&(d.shared.lanes=0);lr|=p,e.lanes=p,e.memoizedState=L}}function Ug(e,i,l){if(e=i.effects,i.effects=null,e!==null)for(i=0;i<e.length;i++){var u=e[i],d=u.callback;if(d!==null){if(u.callback=null,u=l,typeof d!="function")throw Error(o(191,d));d.call(u)}}}var Ki={},dn=Rn(Ki),Gi=Rn(Ki),Qi=Rn(Ki);function or(e){if(e===Ki)throw Error(o(174));return e}function oc(e,i){switch(Ue(Qi,i),Ue(Gi,e),Ue(dn,Ki),e=i.nodeType,e){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:au(null,"");break;default:e=e===8?i.parentNode:i,i=e.namespaceURI||null,e=e.tagName,i=au(i,e)}Ce(dn),Ue(dn,i)}function Hr(){Ce(dn),Ce(Gi),Ce(Qi)}function Dg(e){or(Qi.current);var i=or(dn.current),l=au(i,e.type);i!==l&&(Ue(Gi,e),Ue(dn,l))}function ac(e){Gi.current===e&&(Ce(dn),Ce(Gi))}var Me=Rn(0);function nl(e){for(var i=e;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var lc=[];function sc(){for(var e=0;e<lc.length;e++)lc[e]._workInProgressVersionPrimary=null;lc.length=0}var rl=Y.ReactCurrentDispatcher,uc=Y.ReactCurrentBatchConfig,ar=0,Fe=null,Ke=null,et=null,il=!1,Xi=!1,Yi=0,Hw=0;function dt(){throw Error(o(321))}function cc(e,i){if(i===null)return!1;for(var l=0;l<i.length&&l<e.length;l++)if(!Xt(e[l],i[l]))return!1;return!0}function dc(e,i,l,u,d,f){if(ar=f,Fe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,rl.current=e===null||e.memoizedState===null?Bw:Kw,e=l(u,d),Xi){f=0;do{if(Xi=!1,Yi=0,25<=f)throw Error(o(301));f+=1,et=Ke=null,i.updateQueue=null,rl.current=Gw,e=l(u,d)}while(Xi)}if(rl.current=ll,i=Ke!==null&&Ke.next!==null,ar=0,et=Ke=Fe=null,il=!1,i)throw Error(o(300));return e}function fc(){var e=Yi!==0;return Yi=0,e}function fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Fe.memoizedState=et=e:et=et.next=e,et}function Ht(){if(Ke===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var i=et===null?Fe.memoizedState:et.next;if(i!==null)et=i,Ke=e;else{if(e===null)throw Error(o(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},et===null?Fe.memoizedState=et=e:et=et.next=e}return et}function eo(e,i){return typeof i=="function"?i(e):i}function mc(e){var i=Ht(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var u=Ke,d=u.baseQueue,f=l.pending;if(f!==null){if(d!==null){var p=d.next;d.next=f.next,f.next=p}u.baseQueue=d=f,l.pending=null}if(d!==null){f=d.next,u=u.baseState;var v=p=null,_=null,E=f;do{var D=E.lane;if((ar&D)===D)_!==null&&(_=_.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),u=E.hasEagerState?E.eagerState:e(u,E.action);else{var L={lane:D,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};_===null?(v=_=L,p=u):_=_.next=L,Fe.lanes|=D,lr|=D}E=E.next}while(E!==null&&E!==f);_===null?p=u:_.next=v,Xt(u,i.memoizedState)||(bt=!0),i.memoizedState=u,i.baseState=p,i.baseQueue=_,l.lastRenderedState=u}if(e=l.interleaved,e!==null){d=e;do f=d.lane,Fe.lanes|=f,lr|=f,d=d.next;while(d!==e)}else d===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function pc(e){var i=Ht(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var u=l.dispatch,d=l.pending,f=i.memoizedState;if(d!==null){l.pending=null;var p=d=d.next;do f=e(f,p.action),p=p.next;while(p!==d);Xt(f,i.memoizedState)||(bt=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),l.lastRenderedState=f}return[f,u]}function Cg(){}function Rg(e,i){var l=Fe,u=Ht(),d=i(),f=!Xt(u.memoizedState,d);if(f&&(u.memoizedState=d,bt=!0),u=u.queue,gc(Ag.bind(null,l,u,e),[e]),u.getSnapshot!==i||f||et!==null&&et.memoizedState.tag&1){if(l.flags|=2048,to(9,Zg.bind(null,l,u,d,i),void 0,null),tt===null)throw Error(o(349));(ar&30)!==0||Lg(l,i,d)}return d}function Lg(e,i,l){e.flags|=16384,e={getSnapshot:i,value:l},i=Fe.updateQueue,i===null?(i={lastEffect:null,stores:null},Fe.updateQueue=i,i.stores=[e]):(l=i.stores,l===null?i.stores=[e]:l.push(e))}function Zg(e,i,l,u){i.value=l,i.getSnapshot=u,Mg(i)&&Fg(e)}function Ag(e,i,l){return l(function(){Mg(i)&&Fg(e)})}function Mg(e){var i=e.getSnapshot;e=e.value;try{var l=i();return!Xt(e,l)}catch{return!0}}function Fg(e){var i=kn(e,1);i!==null&&rn(i,e,1,-1)}function qg(e){var i=fn();return typeof e=="function"&&(e=e()),i.memoizedState=i.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},i.queue=e,e=e.dispatch=Ww.bind(null,Fe,e),[i.memoizedState,e]}function to(e,i,l,u){return e={tag:e,create:i,destroy:l,deps:u,next:null},i=Fe.updateQueue,i===null?(i={lastEffect:null,stores:null},Fe.updateQueue=i,i.lastEffect=e.next=e):(l=i.lastEffect,l===null?i.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,i.lastEffect=e)),e}function Hg(){return Ht().memoizedState}function ol(e,i,l,u){var d=fn();Fe.flags|=e,d.memoizedState=to(1|i,l,void 0,u===void 0?null:u)}function al(e,i,l,u){var d=Ht();u=u===void 0?null:u;var f=void 0;if(Ke!==null){var p=Ke.memoizedState;if(f=p.destroy,u!==null&&cc(u,p.deps)){d.memoizedState=to(i,l,f,u);return}}Fe.flags|=e,d.memoizedState=to(1|i,l,f,u)}function Jg(e,i){return ol(8390656,8,e,i)}function gc(e,i){return al(2048,8,e,i)}function Vg(e,i){return al(4,2,e,i)}function Wg(e,i){return al(4,4,e,i)}function Bg(e,i){if(typeof i=="function")return e=e(),i(e),function(){i(null)};if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function Kg(e,i,l){return l=l!=null?l.concat([e]):null,al(4,4,Bg.bind(null,i,e),l)}function hc(){}function Gg(e,i){var l=Ht();i=i===void 0?null:i;var u=l.memoizedState;return u!==null&&i!==null&&cc(i,u[1])?u[0]:(l.memoizedState=[e,i],e)}function Qg(e,i){var l=Ht();i=i===void 0?null:i;var u=l.memoizedState;return u!==null&&i!==null&&cc(i,u[1])?u[0]:(e=e(),l.memoizedState=[e,i],e)}function Xg(e,i,l){return(ar&21)===0?(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=l):(Xt(l,i)||(l=Tp(),Fe.lanes|=l,lr|=l,e.baseState=!0),i)}function Jw(e,i){var l=ze;ze=l!==0&&4>l?l:4,e(!0);var u=uc.transition;uc.transition={};try{e(!1),i()}finally{ze=l,uc.transition=u}}function Yg(){return Ht().memoizedState}function Vw(e,i,l){var u=Jn(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},eh(e))th(i,l);else if(l=Pg(e,i,l,u),l!==null){var d=ht();rn(l,e,u,d),nh(l,i,u)}}function Ww(e,i,l){var u=Jn(e),d={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(eh(e))th(i,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var p=i.lastRenderedState,v=f(p,l);if(d.hasEagerState=!0,d.eagerState=v,Xt(v,p)){var _=i.interleaved;_===null?(d.next=d,rc(i)):(d.next=_.next,_.next=d),i.interleaved=d;return}}catch{}finally{}l=Pg(e,i,d,u),l!==null&&(d=ht(),rn(l,e,u,d),nh(l,i,u))}}function eh(e){var i=e.alternate;return e===Fe||i!==null&&i===Fe}function th(e,i){Xi=il=!0;var l=e.pending;l===null?i.next=i:(i.next=l.next,l.next=i),e.pending=i}function nh(e,i,l){if((l&4194240)!==0){var u=i.lanes;u&=e.pendingLanes,l|=u,i.lanes=l,yu(e,l)}}var ll={readContext:qt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},Bw={readContext:qt,useCallback:function(e,i){return fn().memoizedState=[e,i===void 0?null:i],e},useContext:qt,useEffect:Jg,useImperativeHandle:function(e,i,l){return l=l!=null?l.concat([e]):null,ol(4194308,4,Bg.bind(null,i,e),l)},useLayoutEffect:function(e,i){return ol(4194308,4,e,i)},useInsertionEffect:function(e,i){return ol(4,2,e,i)},useMemo:function(e,i){var l=fn();return i=i===void 0?null:i,e=e(),l.memoizedState=[e,i],e},useReducer:function(e,i,l){var u=fn();return i=l!==void 0?l(i):i,u.memoizedState=u.baseState=i,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},u.queue=e,e=e.dispatch=Vw.bind(null,Fe,e),[u.memoizedState,e]},useRef:function(e){var i=fn();return e={current:e},i.memoizedState=e},useState:qg,useDebugValue:hc,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=qg(!1),i=e[0];return e=Jw.bind(null,e[1]),fn().memoizedState=e,[i,e]},useMutableSource:function(){},useSyncExternalStore:function(e,i,l){var u=Fe,d=fn();if(Ze){if(l===void 0)throw Error(o(407));l=l()}else{if(l=i(),tt===null)throw Error(o(349));(ar&30)!==0||Lg(u,i,l)}d.memoizedState=l;var f={value:l,getSnapshot:i};return d.queue=f,Jg(Ag.bind(null,u,f,e),[e]),u.flags|=2048,to(9,Zg.bind(null,u,f,l,i),void 0,null),l},useId:function(){var e=fn(),i=tt.identifierPrefix;if(Ze){var l=$n,u=_n;l=(u&~(1<<32-Qt(u)-1)).toString(32)+l,i=":"+i+"R"+l,l=Yi++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=Hw++,i=":"+i+"r"+l.toString(32)+":";return e.memoizedState=i},unstable_isNewReconciler:!1},Kw={readContext:qt,useCallback:Gg,useContext:qt,useEffect:gc,useImperativeHandle:Kg,useInsertionEffect:Vg,useLayoutEffect:Wg,useMemo:Qg,useReducer:mc,useRef:Hg,useState:function(){return mc(eo)},useDebugValue:hc,useDeferredValue:function(e){var i=Ht();return Xg(i,Ke.memoizedState,e)},useTransition:function(){var e=mc(eo)[0],i=Ht().memoizedState;return[e,i]},useMutableSource:Cg,useSyncExternalStore:Rg,useId:Yg,unstable_isNewReconciler:!1},Gw={readContext:qt,useCallback:Gg,useContext:qt,useEffect:gc,useImperativeHandle:Kg,useInsertionEffect:Vg,useLayoutEffect:Wg,useMemo:Qg,useReducer:pc,useRef:Hg,useState:function(){return pc(eo)},useDebugValue:hc,useDeferredValue:function(e){var i=Ht();return Ke===null?i.memoizedState=e:Xg(i,Ke.memoizedState,e)},useTransition:function(){var e=pc(eo)[0],i=Ht().memoizedState;return[e,i]},useMutableSource:Cg,useSyncExternalStore:Rg,useId:Yg,unstable_isNewReconciler:!1};function en(e,i){if(e&&e.defaultProps){i=K({},i),e=e.defaultProps;for(var l in e)i[l]===void 0&&(i[l]=e[l]);return i}return i}function vc(e,i,l,u){i=e.memoizedState,l=l(u,i),l=l==null?i:K({},i,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var sl={isMounted:function(e){return(e=e._reactInternals)?Yn(e)===e:!1},enqueueSetState:function(e,i,l){e=e._reactInternals;var u=ht(),d=Jn(e),f=Sn(u,d);f.payload=i,l!=null&&(f.callback=l),i=Mn(e,f,d),i!==null&&(rn(i,e,d,u),el(i,e,d))},enqueueReplaceState:function(e,i,l){e=e._reactInternals;var u=ht(),d=Jn(e),f=Sn(u,d);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=Mn(e,f,d),i!==null&&(rn(i,e,d,u),el(i,e,d))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var l=ht(),u=Jn(e),d=Sn(l,u);d.tag=2,i!=null&&(d.callback=i),i=Mn(e,d,u),i!==null&&(rn(i,e,u,l),el(i,e,u))}};function rh(e,i,l,u,d,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,f,p):i.prototype&&i.prototype.isPureReactComponent?!Mi(l,u)||!Mi(d,f):!0}function ih(e,i,l){var u=!1,d=Ln,f=i.contextType;return typeof f=="object"&&f!==null?f=qt(f):(d=wt(i)?tr:ct.current,u=i.contextTypes,f=(u=u!=null)?Rr(e,d):Ln),i=new i(l,f),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=sl,e.stateNode=i,i._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=f),i}function oh(e,i,l,u){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==e&&sl.enqueueReplaceState(i,i.state,null)}function yc(e,i,l,u){var d=e.stateNode;d.props=l,d.state=e.memoizedState,d.refs={},ic(e);var f=i.contextType;typeof f=="object"&&f!==null?d.context=qt(f):(f=wt(i)?tr:ct.current,d.context=Rr(e,f)),d.state=e.memoizedState,f=i.getDerivedStateFromProps,typeof f=="function"&&(vc(e,i,f,l),d.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(i=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),i!==d.state&&sl.enqueueReplaceState(d,d.state,null),tl(e,l,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Jr(e,i){try{var l="",u=i;do l+=ke(u),u=u.return;while(u);var d=l}catch(f){d=`
45
45
  Error generating stack: `+f.message+`
46
- `+f.stack}return{value:e,source:i,stack:d,digest:null}}function _c(e,i,l){return{value:e,source:null,stack:l??null,digest:i??null}}function $c(e,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var Qw=typeof WeakMap=="function"?WeakMap:Map;function ah(e,i,l){l=Sn(-1,l),l.tag=3,l.payload={element:null};var u=i.value;return l.callback=function(){gl||(gl=!0,Dc=u),$c(e,i)},l}function lh(e,i,l){l=Sn(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;l.payload=function(){return u(d)},l.callback=function(){$c(e,i)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){$c(e,i),typeof u!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var p=i.stack;this.componentDidCatch(i.value,{componentStack:p!==null?p:""})}),l}function sh(e,i,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Qw;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(l)||(d.add(l),e=db.bind(null,e,i,l),i.then(e,e))}function uh(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function ch(e,i,l,u,d){return(e.mode&1)===0?(e===i?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=Sn(-1,1),i.tag=2,Mn(l,i,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var Xw=Y.ReactCurrentOwner,wt=!1;function gt(e,i,l,u){i.child=e===null?Eg(i,null,l,u):Mr(i,e.child,l,u)}function dh(e,i,l,u,d){l=l.render;var f=i.ref;return qr(i,d),u=dc(e,i,l,u,f,d),l=fc(),e!==null&&!wt?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,wn(e,i,d)):(Ze&&l&&Bu(i),i.flags|=1,gt(e,i,u,d),i.child)}function fh(e,i,l,u,d){if(e===null){var f=l.type;return typeof f=="function"&&!Fc(f)&&f.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=f,mh(e,i,f,u,d)):(e=kl(l.type,null,u,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(f=e.child,(e.lanes&d)===0){var p=f.memoizedProps;if(l=l.compare,l=l!==null?l:Mi,l(p,u)&&e.ref===i.ref)return wn(e,i,d)}return i.flags|=1,e=Wn(f,u),e.ref=i.ref,e.return=i,i.child=e}function mh(e,i,l,u,d){if(e!==null){var f=e.memoizedProps;if(Mi(f,u)&&e.ref===i.ref)if(wt=!1,i.pendingProps=u=f,(e.lanes&d)!==0)(e.flags&131072)!==0&&(wt=!0);else return i.lanes=e.lanes,wn(e,i,d)}return kc(e,i,l,u,d)}function ph(e,i,l){var u=i.pendingProps,d=u.children,f=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(Wr,Ut),Ut|=l;else{if((l&1073741824)===0)return e=f!==null?f.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,Ue(Wr,Ut),Ut|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=f!==null?f.baseLanes:l,Ue(Wr,Ut),Ut|=u}else f!==null?(u=f.baseLanes|l,i.memoizedState=null):u=l,Ue(Wr,Ut),Ut|=u;return gt(e,i,d,l),i.child}function gh(e,i){var l=i.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function kc(e,i,l,u,d){var f=St(l)?tr:ct.current;return f=Rr(i,f),qr(i,d),l=dc(e,i,l,u,f,d),u=fc(),e!==null&&!wt?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,wn(e,i,d)):(Ze&&u&&Bu(i),i.flags|=1,gt(e,i,l,d),i.child)}function hh(e,i,l,u,d){if(St(l)){var f=!0;Va(i)}else f=!1;if(qr(i,d),i.stateNode===null)cl(e,i),ih(i,l,u),yc(i,l,u,d),u=!0;else if(e===null){var p=i.stateNode,v=i.memoizedProps;p.props=v;var _=p.context,E=l.contextType;typeof E=="object"&&E!==null?E=qt(E):(E=St(l)?tr:ct.current,E=Rr(i,E));var D=l.getDerivedStateFromProps,L=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function";L||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==u||_!==E)&&oh(i,p,u,E),An=!1;var O=i.memoizedState;p.state=O,tl(i,u,p,d),_=i.memoizedState,v!==u||O!==_||kt.current||An?(typeof D=="function"&&(vc(i,l,D,u),_=i.memoizedState),(v=An||rh(i,l,v,u,O,_,E))?(L||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=_),p.props=u,p.state=_,p.context=E,u=v):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{p=i.stateNode,Ng(e,i),v=i.memoizedProps,E=i.type===i.elementType?v:en(i.type,v),p.props=E,L=i.pendingProps,O=p.context,_=l.contextType,typeof _=="object"&&_!==null?_=qt(_):(_=St(l)?tr:ct.current,_=Rr(i,_));var J=l.getDerivedStateFromProps;(D=typeof J=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==L||O!==_)&&oh(i,p,u,_),An=!1,O=i.memoizedState,p.state=O,tl(i,u,p,d);var G=i.memoizedState;v!==L||O!==G||kt.current||An?(typeof J=="function"&&(vc(i,l,J,u),G=i.memoizedState),(E=An||rh(i,l,E,u,O,G,_)||!1)?(D||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,G,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,G,_)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=G),p.props=u,p.state=G,p.context=_,u=E):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),u=!1)}return Sc(e,i,l,u,f,d)}function Sc(e,i,l,u,d,f){gh(e,i);var p=(i.flags&128)!==0;if(!u&&!p)return d&&kg(i,l,!1),wn(e,i,f);u=i.stateNode,Xw.current=i;var v=p&&typeof l.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,e!==null&&p?(i.child=Mr(i,e.child,null,f),i.child=Mr(i,null,v,f)):gt(e,i,v,f),i.memoizedState=u.state,d&&kg(i,l,!0),i.child}function vh(e){var i=e.stateNode;i.pendingContext?_g(e,i.pendingContext,i.pendingContext!==i.context):i.context&&_g(e,i.context,!1),oc(e,i.containerInfo)}function yh(e,i,l,u,d){return Ar(),Xu(d),i.flags|=256,gt(e,i,l,u),i.child}var wc={dehydrated:null,treeContext:null,retryLane:0};function bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function _h(e,i,l){var u=i.pendingProps,d=Me.current,f=!1,p=(i.flags&128)!==0,v;if((v=p)||(v=e!==null&&e.memoizedState===null?!1:(d&2)!==0),v?(f=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Ue(Me,d&1),e===null)return Qu(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((i.mode&1)===0?i.lanes=1:e.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(p=u.children,e=u.fallback,f?(u=i.mode,f=i.child,p={mode:"hidden",children:p},(u&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=p):f=Sl(p,u,0,null),e=dr(e,u,l,null),f.return=i,e.return=i,f.sibling=e,i.child=f,i.child.memoizedState=bc(l),i.memoizedState=wc,e):xc(i,p));if(d=e.memoizedState,d!==null&&(v=d.dehydrated,v!==null))return Yw(e,i,p,u,v,d,l);if(f){f=u.fallback,p=i.mode,d=e.child,v=d.sibling;var _={mode:"hidden",children:u.children};return(p&1)===0&&i.child!==d?(u=i.child,u.childLanes=0,u.pendingProps=_,i.deletions=null):(u=Wn(d,_),u.subtreeFlags=d.subtreeFlags&14680064),v!==null?f=Wn(v,f):(f=dr(f,p,l,null),f.flags|=2),f.return=i,u.return=i,u.sibling=f,i.child=u,u=f,f=i.child,p=e.child.memoizedState,p=p===null?bc(l):{baseLanes:p.baseLanes|l,cachePool:null,transitions:p.transitions},f.memoizedState=p,f.childLanes=e.childLanes&~l,i.memoizedState=wc,u}return f=e.child,e=f.sibling,u=Wn(f,{mode:"visible",children:u.children}),(i.mode&1)===0&&(u.lanes=l),u.return=i,u.sibling=null,e!==null&&(l=i.deletions,l===null?(i.deletions=[e],i.flags|=16):l.push(e)),i.child=u,i.memoizedState=null,u}function xc(e,i){return i=Sl({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function ul(e,i,l,u){return u!==null&&Xu(u),Mr(i,e.child,null,l),e=xc(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function Yw(e,i,l,u,d,f,p){if(l)return i.flags&256?(i.flags&=-257,u=_c(Error(o(422))),ul(e,i,p,u)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(f=u.fallback,d=i.mode,u=Sl({mode:"visible",children:u.children},d,0,null),f=dr(f,d,p,null),f.flags|=2,u.return=i,f.return=i,u.sibling=f,i.child=u,(i.mode&1)!==0&&Mr(i,e.child,null,p),i.child.memoizedState=bc(p),i.memoizedState=wc,f);if((i.mode&1)===0)return ul(e,i,p,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var v=u.dgst;return u=v,f=Error(o(419)),u=_c(f,u,void 0),ul(e,i,p,u)}if(v=(p&e.childLanes)!==0,wt||v){if(u=tt,u!==null){switch(p&-p){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(u.suspendedLanes|p))!==0?0:d,d!==0&&d!==f.retryLane&&(f.retryLane=d,kn(e,d),rn(u,e,d,-1))}return Mc(),u=_c(Error(o(421))),ul(e,i,p,u)}return d.data==="$?"?(i.flags|=128,i.child=e.child,i=fb.bind(null,e),d._reactRetry=i,null):(e=f.treeContext,Ot=Cn(d.nextSibling),Nt=i,Ze=!0,Yt=null,e!==null&&(Mt[Ft++]=_n,Mt[Ft++]=$n,Mt[Ft++]=nr,_n=e.id,$n=e.overflow,nr=i),i=xc(i,u.children),i.flags|=4096,i)}function $h(e,i,l){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i),nc(e.return,i,l)}function Ic(e,i,l,u,d){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:d}:(f.isBackwards=i,f.rendering=null,f.renderingStartTime=0,f.last=u,f.tail=l,f.tailMode=d)}function kh(e,i,l){var u=i.pendingProps,d=u.revealOrder,f=u.tail;if(gt(e,i,u.children,l),u=Me.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,l,i);else if(e.tag===19)$h(e,l,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Ue(Me,u),(i.mode&1)===0)i.memoizedState=null;else switch(d){case"forwards":for(l=i.child,d=null;l!==null;)e=l.alternate,e!==null&&nl(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=i.child,i.child=null):(d=l.sibling,l.sibling=null),Ic(i,!1,d,l,f);break;case"backwards":for(l=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&nl(e)===null){i.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Ic(i,!0,l,null,f);break;case"together":Ic(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function cl(e,i){(i.mode&1)===0&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function wn(e,i,l){if(e!==null&&(i.dependencies=e.dependencies),lr|=i.lanes,(l&i.childLanes)===0)return null;if(e!==null&&i.child!==e.child)throw Error(o(153));if(i.child!==null){for(e=i.child,l=Wn(e,e.pendingProps),i.child=l,l.return=i;e.sibling!==null;)e=e.sibling,l=l.sibling=Wn(e,e.pendingProps),l.return=i;l.sibling=null}return i.child}function eb(e,i,l){switch(i.tag){case 3:vh(i),Ar();break;case 5:Dg(i);break;case 1:St(i.type)&&Va(i);break;case 4:oc(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,d=i.memoizedProps.value;Ue(Xa,u._currentValue),u._currentValue=d;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(Ue(Me,Me.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?_h(e,i,l):(Ue(Me,Me.current&1),e=wn(e,i,l),e!==null?e.sibling:null);Ue(Me,Me.current&1);break;case 19:if(u=(l&i.childLanes)!==0,(e.flags&128)!==0){if(u)return kh(e,i,l);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Ue(Me,Me.current),u)break;return null;case 22:case 23:return i.lanes=0,ph(e,i,l)}return wn(e,i,l)}var Sh,zc,wh,bh;Sh=function(e,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},zc=function(){},wh=function(e,i,l,u){var d=e.memoizedProps;if(d!==u){e=i.stateNode,or(dn.current);var f=null;switch(l){case"input":d=nu(e,d),u=nu(e,u),f=[];break;case"select":d=K({},d,{value:void 0}),u=K({},u,{value:void 0}),f=[];break;case"textarea":d=ou(e,d),u=ou(e,u),f=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=qa)}lu(l,u);var p;l=null;for(E in d)if(!u.hasOwnProperty(E)&&d.hasOwnProperty(E)&&d[E]!=null)if(E==="style"){var v=d[E];for(p in v)v.hasOwnProperty(p)&&(l||(l={}),l[p]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(t.hasOwnProperty(E)?f||(f=[]):(f=f||[]).push(E,null));for(E in u){var _=u[E];if(v=d?.[E],u.hasOwnProperty(E)&&_!==v&&(_!=null||v!=null))if(E==="style")if(v){for(p in v)!v.hasOwnProperty(p)||_&&_.hasOwnProperty(p)||(l||(l={}),l[p]="");for(p in _)_.hasOwnProperty(p)&&v[p]!==_[p]&&(l||(l={}),l[p]=_[p])}else l||(f||(f=[]),f.push(E,l)),l=_;else E==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,v=v?v.__html:void 0,_!=null&&v!==_&&(f=f||[]).push(E,_)):E==="children"?typeof _!="string"&&typeof _!="number"||(f=f||[]).push(E,""+_):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(t.hasOwnProperty(E)?(_!=null&&E==="onScroll"&&De("scroll",e),f||v===_||(f=[])):(f=f||[]).push(E,_))}l&&(f=f||[]).push("style",l);var E=f;(i.updateQueue=E)&&(i.flags|=4)}},bh=function(e,i,l,u){l!==u&&(i.flags|=4)};function no(e,i){if(!Ze)switch(e.tailMode){case"hidden":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function ft(e){var i=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(i)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=l,i}function tb(e,i,l){var u=i.pendingProps;switch(Ku(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(i),null;case 1:return St(i.type)&&Ja(),ft(i),null;case 3:return u=i.stateNode,Hr(),Ce(kt),Ce(ct),sc(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Ga(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Yt!==null&&(Lc(Yt),Yt=null))),zc(e,i),ft(i),null;case 5:ac(i);var d=or(Qi.current);if(l=i.type,e!==null&&i.stateNode!=null)wh(e,i,l,u,d),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(o(166));return ft(i),null}if(e=or(dn.current),Ga(i)){u=i.stateNode,l=i.type;var f=i.memoizedProps;switch(u[cn]=i,u[Vi]=f,e=(i.mode&1)!==0,l){case"dialog":De("cancel",u),De("close",u);break;case"iframe":case"object":case"embed":De("load",u);break;case"video":case"audio":for(d=0;d<qi.length;d++)De(qi[d],u);break;case"source":De("error",u);break;case"img":case"image":case"link":De("error",u),De("load",u);break;case"details":De("toggle",u);break;case"input":ip(u,f),De("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!f.multiple},De("invalid",u);break;case"textarea":lp(u,f),De("invalid",u)}lu(l,f),d=null;for(var p in f)if(f.hasOwnProperty(p)){var v=f[p];p==="children"?typeof v=="string"?u.textContent!==v&&(f.suppressHydrationWarning!==!0&&Fa(u.textContent,v,e),d=["children",v]):typeof v=="number"&&u.textContent!==""+v&&(f.suppressHydrationWarning!==!0&&Fa(u.textContent,v,e),d=["children",""+v]):t.hasOwnProperty(p)&&v!=null&&p==="onScroll"&&De("scroll",u)}switch(l){case"input":_a(u),ap(u,f,!0);break;case"textarea":_a(u),up(u);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(u.onclick=qa)}u=d,i.updateQueue=u,u!==null&&(i.flags|=4)}else{p=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cp(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=p.createElement(l,{is:u.is}):(e=p.createElement(l),l==="select"&&(p=e,u.multiple?p.multiple=!0:u.size&&(p.size=u.size))):e=p.createElementNS(e,l),e[cn]=i,e[Vi]=u,Sh(e,i,!1,!1),i.stateNode=e;e:{switch(p=su(l,u),l){case"dialog":De("cancel",e),De("close",e),d=u;break;case"iframe":case"object":case"embed":De("load",e),d=u;break;case"video":case"audio":for(d=0;d<qi.length;d++)De(qi[d],e);d=u;break;case"source":De("error",e),d=u;break;case"img":case"image":case"link":De("error",e),De("load",e),d=u;break;case"details":De("toggle",e),d=u;break;case"input":ip(e,u),d=nu(e,u),De("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=K({},u,{value:void 0}),De("invalid",e);break;case"textarea":lp(e,u),d=ou(e,u),De("invalid",e);break;default:d=u}lu(l,d),v=d;for(f in v)if(v.hasOwnProperty(f)){var _=v[f];f==="style"?mp(e,_):f==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&dp(e,_)):f==="children"?typeof _=="string"?(l!=="textarea"||_!=="")&&bi(e,_):typeof _=="number"&&bi(e,""+_):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(t.hasOwnProperty(f)?_!=null&&f==="onScroll"&&De("scroll",e):_!=null&&le(e,f,_,p))}switch(l){case"input":_a(e),ap(e,u,!1);break;case"textarea":_a(e),up(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Ie(u.value));break;case"select":e.multiple=!!u.multiple,f=u.value,f!=null?xr(e,!!u.multiple,f,!1):u.defaultValue!=null&&xr(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=qa)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return ft(i),null;case 6:if(e&&i.stateNode!=null)bh(e,i,e.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(o(166));if(l=or(Qi.current),or(dn.current),Ga(i)){if(u=i.stateNode,l=i.memoizedProps,u[cn]=i,(f=u.nodeValue!==l)&&(e=Nt,e!==null))switch(e.tag){case 3:Fa(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fa(u.nodeValue,l,(e.mode&1)!==0)}f&&(i.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[cn]=i,i.stateNode=u}return ft(i),null;case 13:if(Ce(Me),u=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ze&&Ot!==null&&(i.mode&1)!==0&&(i.flags&128)===0)zg(),Ar(),i.flags|=98560,f=!1;else if(f=Ga(i),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[cn]=i}else Ar(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ft(i),f=!1}else Yt!==null&&(Lc(Yt),Yt=null),f=!0;if(!f)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(i.child.flags|=8192,(i.mode&1)!==0&&(e===null||(Me.current&1)!==0?Ge===0&&(Ge=3):Mc())),i.updateQueue!==null&&(i.flags|=4),ft(i),null);case 4:return Hr(),zc(e,i),e===null&&Hi(i.stateNode.containerInfo),ft(i),null;case 10:return tc(i.type._context),ft(i),null;case 17:return St(i.type)&&Ja(),ft(i),null;case 19:if(Ce(Me),f=i.memoizedState,f===null)return ft(i),null;if(u=(i.flags&128)!==0,p=f.rendering,p===null)if(u)no(f,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(p=nl(e),p!==null){for(i.flags|=128,no(f,!1),u=p.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=l,l=i.child;l!==null;)f=l,e=u,f.flags&=14680066,p=f.alternate,p===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=p.childLanes,f.lanes=p.lanes,f.child=p.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=p.memoizedProps,f.memoizedState=p.memoizedState,f.updateQueue=p.updateQueue,f.type=p.type,e=p.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Ue(Me,Me.current&1|2),i.child}e=e.sibling}f.tail!==null&&Je()>Br&&(i.flags|=128,u=!0,no(f,!1),i.lanes=4194304)}else{if(!u)if(e=nl(p),e!==null){if(i.flags|=128,u=!0,l=e.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),no(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Ze)return ft(i),null}else 2*Je()-f.renderingStartTime>Br&&l!==1073741824&&(i.flags|=128,u=!0,no(f,!1),i.lanes=4194304);f.isBackwards?(p.sibling=i.child,i.child=p):(l=f.last,l!==null?l.sibling=p:i.child=p,f.last=p)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Je(),i.sibling=null,l=Me.current,Ue(Me,u?l&1|2:l&1),i):(ft(i),null);case 22:case 23:return Ac(),u=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(i.flags|=8192),u&&(i.mode&1)!==0?(Ut&1073741824)!==0&&(ft(i),i.subtreeFlags&6&&(i.flags|=8192)):ft(i),null;case 24:return null;case 25:return null}throw Error(o(156,i.tag))}function nb(e,i){switch(Ku(i),i.tag){case 1:return St(i.type)&&Ja(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Hr(),Ce(kt),Ce(ct),sc(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 5:return ac(i),null;case 13:if(Ce(Me),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ar()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return Ce(Me),null;case 4:return Hr(),null;case 10:return tc(i.type._context),null;case 22:case 23:return Ac(),null;case 24:return null;default:return null}}var dl=!1,mt=!1,rb=typeof WeakSet=="function"?WeakSet:Set,W=null;function Vr(e,i){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){He(e,i,u)}else l.current=null}function Tc(e,i,l){try{l()}catch(u){He(e,i,u)}}var xh=!1;function ib(e,i){if(Au=Pa,e=rg(),Nu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var d=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var p=0,v=-1,_=-1,E=0,D=0,L=e,O=null;t:for(;;){for(var J;L!==l||d!==0&&L.nodeType!==3||(v=p+d),L!==f||u!==0&&L.nodeType!==3||(_=p+u),L.nodeType===3&&(p+=L.nodeValue.length),(J=L.firstChild)!==null;)O=L,L=J;for(;;){if(L===e)break t;if(O===l&&++E===d&&(v=p),O===f&&++D===u&&(_=p),(J=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=J}l=v===-1||_===-1?null:{start:v,end:_}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mu={focusedElem:e,selectionRange:l},Pa=!1,W=i;W!==null;)if(i=W,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,W=e;else for(;W!==null;){i=W;try{var G=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Q=G.memoizedProps,Ve=G.memoizedState,b=i.stateNode,$=b.getSnapshotBeforeUpdate(i.elementType===i.type?Q:en(i.type,Q),Ve);b.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var z=i.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(A){He(i,i.return,A)}if(e=i.sibling,e!==null){e.return=i.return,W=e;break}W=i.return}return G=xh,xh=!1,G}function ro(e,i,l){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var f=d.destroy;d.destroy=void 0,f!==void 0&&Tc(i,l,f)}d=d.next}while(d!==u)}}function fl(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==i)}}function jc(e){var i=e.ref;if(i!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof i=="function"?i(e):i.current=e}}function Ih(e){var i=e.alternate;i!==null&&(e.alternate=null,Ih(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[cn],delete i[Vi],delete i[Ju],delete i[Aw],delete i[Mw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zh(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ec(e,i,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(e,i):l.insertBefore(e,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(e,l)):(i=l,i.appendChild(e)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=qa));else if(u!==4&&(e=e.child,e!==null))for(Ec(e,i,l),e=e.sibling;e!==null;)Ec(e,i,l),e=e.sibling}function Pc(e,i,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?l.insertBefore(e,i):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Pc(e,i,l),e=e.sibling;e!==null;)Pc(e,i,l),e=e.sibling}var it=null,tn=!1;function Fn(e,i,l){for(l=l.child;l!==null;)jh(e,i,l),l=l.sibling}function jh(e,i,l){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(xa,l)}catch{}switch(l.tag){case 5:mt||Vr(l,i);case 6:var u=it,d=tn;it=null,Fn(e,i,l),it=u,tn=d,it!==null&&(tn?(e=it,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):it.removeChild(l.stateNode));break;case 18:it!==null&&(tn?(e=it,l=l.stateNode,e.nodeType===8?Hu(e.parentNode,l):e.nodeType===1&&Hu(e,l),Di(e)):Hu(it,l.stateNode));break;case 4:u=it,d=tn,it=l.stateNode.containerInfo,tn=!0,Fn(e,i,l),it=u,tn=d;break;case 0:case 11:case 14:case 15:if(!mt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var f=d,p=f.destroy;f=f.tag,p!==void 0&&((f&2)!==0||(f&4)!==0)&&Tc(l,i,p),d=d.next}while(d!==u)}Fn(e,i,l);break;case 1:if(!mt&&(Vr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(v){He(l,i,v)}Fn(e,i,l);break;case 21:Fn(e,i,l);break;case 22:l.mode&1?(mt=(u=mt)||l.memoizedState!==null,Fn(e,i,l),mt=u):Fn(e,i,l);break;default:Fn(e,i,l)}}function Eh(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new rb),i.forEach(function(u){var d=mb.bind(null,e,u);l.has(u)||(l.add(u),u.then(d,d))})}}function nn(e,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var d=l[u];try{var f=e,p=i,v=p;e:for(;v!==null;){switch(v.tag){case 5:it=v.stateNode,tn=!1;break e;case 3:it=v.stateNode.containerInfo,tn=!0;break e;case 4:it=v.stateNode.containerInfo,tn=!0;break e}v=v.return}if(it===null)throw Error(o(160));jh(f,p,d),it=null,tn=!1;var _=d.alternate;_!==null&&(_.return=null),d.return=null}catch(E){He(d,i,E)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ph(i,e),i=i.sibling}function Ph(e,i){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nn(i,e),mn(e),u&4){try{ro(3,e,e.return),fl(3,e)}catch(Q){He(e,e.return,Q)}try{ro(5,e,e.return)}catch(Q){He(e,e.return,Q)}}break;case 1:nn(i,e),mn(e),u&512&&l!==null&&Vr(l,l.return);break;case 5:if(nn(i,e),mn(e),u&512&&l!==null&&Vr(l,l.return),e.flags&32){var d=e.stateNode;try{bi(d,"")}catch(Q){He(e,e.return,Q)}}if(u&4&&(d=e.stateNode,d!=null)){var f=e.memoizedProps,p=l!==null?l.memoizedProps:f,v=e.type,_=e.updateQueue;if(e.updateQueue=null,_!==null)try{v==="input"&&f.type==="radio"&&f.name!=null&&op(d,f),su(v,p);var E=su(v,f);for(p=0;p<_.length;p+=2){var D=_[p],L=_[p+1];D==="style"?mp(d,L):D==="dangerouslySetInnerHTML"?dp(d,L):D==="children"?bi(d,L):le(d,D,L,E)}switch(v){case"input":ru(d,f);break;case"textarea":sp(d,f);break;case"select":var O=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!f.multiple;var J=f.value;J!=null?xr(d,!!f.multiple,J,!1):O!==!!f.multiple&&(f.defaultValue!=null?xr(d,!!f.multiple,f.defaultValue,!0):xr(d,!!f.multiple,f.multiple?[]:"",!1))}d[Vi]=f}catch(Q){He(e,e.return,Q)}}break;case 6:if(nn(i,e),mn(e),u&4){if(e.stateNode===null)throw Error(o(162));d=e.stateNode,f=e.memoizedProps;try{d.nodeValue=f}catch(Q){He(e,e.return,Q)}}break;case 3:if(nn(i,e),mn(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Di(i.containerInfo)}catch(Q){He(e,e.return,Q)}break;case 4:nn(i,e),mn(e);break;case 13:nn(i,e),mn(e),d=e.child,d.flags&8192&&(f=d.memoizedState!==null,d.stateNode.isHidden=f,!f||d.alternate!==null&&d.alternate.memoizedState!==null||(Uc=Je())),u&4&&Eh(e);break;case 22:if(D=l!==null&&l.memoizedState!==null,e.mode&1?(mt=(E=mt)||D,nn(i,e),mt=E):nn(i,e),mn(e),u&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!D&&(e.mode&1)!==0)for(W=e,D=e.child;D!==null;){for(L=W=D;W!==null;){switch(O=W,J=O.child,O.tag){case 0:case 11:case 14:case 15:ro(4,O,O.return);break;case 1:Vr(O,O.return);var G=O.stateNode;if(typeof G.componentWillUnmount=="function"){u=O,l=O.return;try{i=u,G.props=i.memoizedProps,G.state=i.memoizedState,G.componentWillUnmount()}catch(Q){He(u,l,Q)}}break;case 5:Vr(O,O.return);break;case 22:if(O.memoizedState!==null){Uh(L);continue}}J!==null?(J.return=O,W=J):Uh(L)}D=D.sibling}e:for(D=null,L=e;;){if(L.tag===5){if(D===null){D=L;try{d=L.stateNode,E?(f=d.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(v=L.stateNode,_=L.memoizedProps.style,p=_!=null&&_.hasOwnProperty("display")?_.display:null,v.style.display=fp("display",p))}catch(Q){He(e,e.return,Q)}}}else if(L.tag===6){if(D===null)try{L.stateNode.nodeValue=E?"":L.memoizedProps}catch(Q){He(e,e.return,Q)}}else if((L.tag!==22&&L.tag!==23||L.memoizedState===null||L===e)&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===e)break e;for(;L.sibling===null;){if(L.return===null||L.return===e)break e;D===L&&(D=null),L=L.return}D===L&&(D=null),L.sibling.return=L.return,L=L.sibling}}break;case 19:nn(i,e),mn(e),u&4&&Eh(e);break;case 21:break;default:nn(i,e),mn(e)}}function mn(e){var i=e.flags;if(i&2){try{e:{for(var l=e.return;l!==null;){if(zh(l)){var u=l;break e}l=l.return}throw Error(o(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(bi(d,""),u.flags&=-33);var f=Th(e);Pc(e,f,d);break;case 3:case 4:var p=u.stateNode.containerInfo,v=Th(e);Ec(e,v,p);break;default:throw Error(o(161))}}catch(_){He(e,e.return,_)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function ob(e,i,l){W=e,Nh(e)}function Nh(e,i,l){for(var u=(e.mode&1)!==0;W!==null;){var d=W,f=d.child;if(d.tag===22&&u){var p=d.memoizedState!==null||dl;if(!p){var v=d.alternate,_=v!==null&&v.memoizedState!==null||mt;v=dl;var E=mt;if(dl=p,(mt=_)&&!E)for(W=d;W!==null;)p=W,_=p.child,p.tag===22&&p.memoizedState!==null?Dh(d):_!==null?(_.return=p,W=_):Dh(d);for(;f!==null;)W=f,Nh(f),f=f.sibling;W=d,dl=v,mt=E}Oh(e)}else(d.subtreeFlags&8772)!==0&&f!==null?(f.return=d,W=f):Oh(e)}}function Oh(e){for(;W!==null;){var i=W;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:mt||fl(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!mt)if(l===null)u.componentDidMount();else{var d=i.elementType===i.type?l.memoizedProps:en(i.type,l.memoizedProps);u.componentDidUpdate(d,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var f=i.updateQueue;f!==null&&Ug(i,f,u);break;case 3:var p=i.updateQueue;if(p!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Ug(i,p,l)}break;case 5:var v=i.stateNode;if(l===null&&i.flags&4){l=v;var _=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&l.focus();break;case"img":_.src&&(l.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var E=i.alternate;if(E!==null){var D=E.memoizedState;if(D!==null){var L=D.dehydrated;L!==null&&Di(L)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}mt||i.flags&512&&jc(i)}catch(O){He(i,i.return,O)}}if(i===e){W=null;break}if(l=i.sibling,l!==null){l.return=i.return,W=l;break}W=i.return}}function Uh(e){for(;W!==null;){var i=W;if(i===e){W=null;break}var l=i.sibling;if(l!==null){l.return=i.return,W=l;break}W=i.return}}function Dh(e){for(;W!==null;){var i=W;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{fl(4,i)}catch(_){He(i,l,_)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var d=i.return;try{u.componentDidMount()}catch(_){He(i,d,_)}}var f=i.return;try{jc(i)}catch(_){He(i,f,_)}break;case 5:var p=i.return;try{jc(i)}catch(_){He(i,p,_)}}}catch(_){He(i,i.return,_)}if(i===e){W=null;break}var v=i.sibling;if(v!==null){v.return=i.return,W=v;break}W=i.return}}var ab=Math.ceil,ml=Y.ReactCurrentDispatcher,Nc=Y.ReactCurrentOwner,Jt=Y.ReactCurrentBatchConfig,_e=0,tt=null,Be=null,ot=0,Ut=0,Wr=Rn(0),Ge=0,io=null,lr=0,pl=0,Oc=0,oo=null,bt=null,Uc=0,Br=1/0,bn=null,gl=!1,Dc=null,qn=null,hl=!1,Hn=null,vl=0,ao=0,Cc=null,yl=-1,_l=0;function ht(){return(_e&6)!==0?Je():yl!==-1?yl:yl=Je()}function Jn(e){return(e.mode&1)===0?1:(_e&2)!==0&&ot!==0?ot&-ot:qw.transition!==null?(_l===0&&(_l=Tp()),_l):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Rp(e.type)),e)}function rn(e,i,l,u){if(50<ao)throw ao=0,Cc=null,Error(o(185));Ei(e,l,u),((_e&2)===0||e!==tt)&&(e===tt&&((_e&2)===0&&(pl|=l),Ge===4&&Vn(e,ot)),xt(e,u),l===1&&_e===0&&(i.mode&1)===0&&(Br=Je()+500,Wa&&Zn()))}function xt(e,i){var l=e.callbackNode;qS(e,i);var u=Ta(e,e===tt?ot:0);if(u===0)l!==null&&xp(l),e.callbackNode=null,e.callbackPriority=0;else if(i=u&-u,e.callbackPriority!==i){if(l!=null&&xp(l),i===1)e.tag===0?Fw(Rh.bind(null,e)):Sg(Rh.bind(null,e)),Lw(function(){(_e&6)===0&&Zn()}),l=null;else{switch(jp(u)){case 1:l=gu;break;case 4:l=Ip;break;case 16:l=ba;break;case 536870912:l=zp;break;default:l=ba}l=Jh(l,Ch.bind(null,e))}e.callbackPriority=i,e.callbackNode=l}}function Ch(e,i){if(yl=-1,_l=0,(_e&6)!==0)throw Error(o(327));var l=e.callbackNode;if(Kr()&&e.callbackNode!==l)return null;var u=Ta(e,e===tt?ot:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||i)i=$l(e,u);else{i=u;var d=_e;_e|=2;var f=Zh();(tt!==e||ot!==i)&&(bn=null,Br=Je()+500,ur(e,i));do try{ub();break}catch(v){Lh(e,v)}while(!0);ec(),ml.current=f,_e=d,Be!==null?i=0:(tt=null,ot=0,i=Ge)}if(i!==0){if(i===2&&(d=hu(e),d!==0&&(u=d,i=Rc(e,d))),i===1)throw l=io,ur(e,0),Vn(e,u),xt(e,Je()),l;if(i===6)Vn(e,u);else{if(d=e.current.alternate,(u&30)===0&&!lb(d)&&(i=$l(e,u),i===2&&(f=hu(e),f!==0&&(u=f,i=Rc(e,f))),i===1))throw l=io,ur(e,0),Vn(e,u),xt(e,Je()),l;switch(e.finishedWork=d,e.finishedLanes=u,i){case 0:case 1:throw Error(o(345));case 2:cr(e,bt,bn);break;case 3:if(Vn(e,u),(u&130023424)===u&&(i=Uc+500-Je(),10<i)){if(Ta(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){ht(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=qu(cr.bind(null,e,bt,bn),i);break}cr(e,bt,bn);break;case 4:if(Vn(e,u),(u&4194240)===u)break;for(i=e.eventTimes,d=-1;0<u;){var p=31-Qt(u);f=1<<p,p=i[p],p>d&&(d=p),u&=~f}if(u=d,u=Je()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*ab(u/1960))-u,10<u){e.timeoutHandle=qu(cr.bind(null,e,bt,bn),u);break}cr(e,bt,bn);break;case 5:cr(e,bt,bn);break;default:throw Error(o(329))}}}return xt(e,Je()),e.callbackNode===l?Ch.bind(null,e):null}function Rc(e,i){var l=oo;return e.current.memoizedState.isDehydrated&&(ur(e,i).flags|=256),e=$l(e,i),e!==2&&(i=bt,bt=l,i!==null&&Lc(i)),e}function Lc(e){bt===null?bt=e:bt.push.apply(bt,e)}function lb(e){for(var i=e;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var d=l[u],f=d.getSnapshot;d=d.value;try{if(!Xt(f(),d))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Vn(e,i){for(i&=~Oc,i&=~pl,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var l=31-Qt(i),u=1<<l;e[l]=-1,i&=~u}}function Rh(e){if((_e&6)!==0)throw Error(o(327));Kr();var i=Ta(e,0);if((i&1)===0)return xt(e,Je()),null;var l=$l(e,i);if(e.tag!==0&&l===2){var u=hu(e);u!==0&&(i=u,l=Rc(e,u))}if(l===1)throw l=io,ur(e,0),Vn(e,i),xt(e,Je()),l;if(l===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,cr(e,bt,bn),xt(e,Je()),null}function Zc(e,i){var l=_e;_e|=1;try{return e(i)}finally{_e=l,_e===0&&(Br=Je()+500,Wa&&Zn())}}function sr(e){Hn!==null&&Hn.tag===0&&(_e&6)===0&&Kr();var i=_e;_e|=1;var l=Jt.transition,u=ze;try{if(Jt.transition=null,ze=1,e)return e()}finally{ze=u,Jt.transition=l,_e=i,(_e&6)===0&&Zn()}}function Ac(){Ut=Wr.current,Ce(Wr)}function ur(e,i){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Rw(l)),Be!==null)for(l=Be.return;l!==null;){var u=l;switch(Ku(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ja();break;case 3:Hr(),Ce(kt),Ce(ct),sc();break;case 5:ac(u);break;case 4:Hr();break;case 13:Ce(Me);break;case 19:Ce(Me);break;case 10:tc(u.type._context);break;case 22:case 23:Ac()}l=l.return}if(tt=e,Be=e=Wn(e.current,null),ot=Ut=i,Ge=0,io=null,Oc=pl=lr=0,bt=oo=null,ir!==null){for(i=0;i<ir.length;i++)if(l=ir[i],u=l.interleaved,u!==null){l.interleaved=null;var d=u.next,f=l.pending;if(f!==null){var p=f.next;f.next=d,u.next=p}l.pending=u}ir=null}return e}function Lh(e,i){do{var l=Be;try{if(ec(),rl.current=ll,il){for(var u=Fe.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}il=!1}if(ar=0,et=Ke=Fe=null,Xi=!1,Yi=0,Nc.current=null,l===null||l.return===null){Ge=1,io=i,Be=null;break}e:{var f=e,p=l.return,v=l,_=i;if(i=ot,v.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var E=_,D=v,L=D.tag;if((D.mode&1)===0&&(L===0||L===11||L===15)){var O=D.alternate;O?(D.updateQueue=O.updateQueue,D.memoizedState=O.memoizedState,D.lanes=O.lanes):(D.updateQueue=null,D.memoizedState=null)}var J=uh(p);if(J!==null){J.flags&=-257,ch(J,p,v,f,i),J.mode&1&&sh(f,E,i),i=J,_=E;var G=i.updateQueue;if(G===null){var Q=new Set;Q.add(_),i.updateQueue=Q}else G.add(_);break e}else{if((i&1)===0){sh(f,E,i),Mc();break e}_=Error(o(426))}}else if(Ze&&v.mode&1){var Ve=uh(p);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),ch(Ve,p,v,f,i),Xu(Jr(_,v));break e}}f=_=Jr(_,v),Ge!==4&&(Ge=2),oo===null?oo=[f]:oo.push(f),f=p;do{switch(f.tag){case 3:f.flags|=65536,i&=-i,f.lanes|=i;var b=ah(f,_,i);Og(f,b);break e;case 1:v=_;var $=f.type,z=f.stateNode;if((f.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(qn===null||!qn.has(z)))){f.flags|=65536,i&=-i,f.lanes|=i;var A=lh(f,v,i);Og(f,A);break e}}f=f.return}while(f!==null)}Mh(l)}catch(X){i=X,Be===l&&l!==null&&(Be=l=l.return);continue}break}while(!0)}function Zh(){var e=ml.current;return ml.current=ll,e===null?ll:e}function Mc(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),tt===null||(lr&268435455)===0&&(pl&268435455)===0||Vn(tt,ot)}function $l(e,i){var l=_e;_e|=2;var u=Zh();(tt!==e||ot!==i)&&(bn=null,ur(e,i));do try{sb();break}catch(d){Lh(e,d)}while(!0);if(ec(),_e=l,ml.current=u,Be!==null)throw Error(o(261));return tt=null,ot=0,Ge}function sb(){for(;Be!==null;)Ah(Be)}function ub(){for(;Be!==null&&!US();)Ah(Be)}function Ah(e){var i=Hh(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,i===null?Mh(e):Be=i,Nc.current=null}function Mh(e){var i=e;do{var l=i.alternate;if(e=i.return,(i.flags&32768)===0){if(l=tb(l,i,Ut),l!==null){Be=l;return}}else{if(l=nb(l,i),l!==null){l.flags&=32767,Be=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Be=null;return}}if(i=i.sibling,i!==null){Be=i;return}Be=i=e}while(i!==null);Ge===0&&(Ge=5)}function cr(e,i,l){var u=ze,d=Jt.transition;try{Jt.transition=null,ze=1,cb(e,i,l,u)}finally{Jt.transition=d,ze=u}return null}function cb(e,i,l,u){do Kr();while(Hn!==null);if((_e&6)!==0)throw Error(o(327));l=e.finishedWork;var d=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=l.lanes|l.childLanes;if(HS(e,f),e===tt&&(Be=tt=null,ot=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||hl||(hl=!0,Jh(ba,function(){return Kr(),null})),f=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||f){f=Jt.transition,Jt.transition=null;var p=ze;ze=1;var v=_e;_e|=4,Nc.current=null,ib(e,l),Ph(l,e),Ew(Mu),Pa=!!Au,Mu=Au=null,e.current=l,ob(l),DS(),_e=v,ze=p,Jt.transition=f}else e.current=l;if(hl&&(hl=!1,Hn=e,vl=d),f=e.pendingLanes,f===0&&(qn=null),LS(l.stateNode),xt(e,Je()),i!==null)for(u=e.onRecoverableError,l=0;l<i.length;l++)d=i[l],u(d.value,{componentStack:d.stack,digest:d.digest});if(gl)throw gl=!1,e=Dc,Dc=null,e;return(vl&1)!==0&&e.tag!==0&&Kr(),f=e.pendingLanes,(f&1)!==0?e===Cc?ao++:(ao=0,Cc=e):ao=0,Zn(),null}function Kr(){if(Hn!==null){var e=jp(vl),i=Jt.transition,l=ze;try{if(Jt.transition=null,ze=16>e?16:e,Hn===null)var u=!1;else{if(e=Hn,Hn=null,vl=0,(_e&6)!==0)throw Error(o(331));var d=_e;for(_e|=4,W=e.current;W!==null;){var f=W,p=f.child;if((W.flags&16)!==0){var v=f.deletions;if(v!==null){for(var _=0;_<v.length;_++){var E=v[_];for(W=E;W!==null;){var D=W;switch(D.tag){case 0:case 11:case 15:ro(8,D,f)}var L=D.child;if(L!==null)L.return=D,W=L;else for(;W!==null;){D=W;var O=D.sibling,J=D.return;if(Ih(D),D===E){W=null;break}if(O!==null){O.return=J,W=O;break}W=J}}}var G=f.alternate;if(G!==null){var Q=G.child;if(Q!==null){G.child=null;do{var Ve=Q.sibling;Q.sibling=null,Q=Ve}while(Q!==null)}}W=f}}if((f.subtreeFlags&2064)!==0&&p!==null)p.return=f,W=p;else e:for(;W!==null;){if(f=W,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:ro(9,f,f.return)}var b=f.sibling;if(b!==null){b.return=f.return,W=b;break e}W=f.return}}var $=e.current;for(W=$;W!==null;){p=W;var z=p.child;if((p.subtreeFlags&2064)!==0&&z!==null)z.return=p,W=z;else e:for(p=$;W!==null;){if(v=W,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:fl(9,v)}}catch(X){He(v,v.return,X)}if(v===p){W=null;break e}var A=v.sibling;if(A!==null){A.return=v.return,W=A;break e}W=v.return}}if(_e=d,Zn(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(xa,e)}catch{}u=!0}return u}finally{ze=l,Jt.transition=i}}return!1}function Fh(e,i,l){i=Jr(l,i),i=ah(e,i,1),e=Mn(e,i,1),i=ht(),e!==null&&(Ei(e,1,i),xt(e,i))}function He(e,i,l){if(e.tag===3)Fh(e,e,l);else for(;i!==null;){if(i.tag===3){Fh(i,e,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qn===null||!qn.has(u))){e=Jr(l,e),e=lh(i,e,1),i=Mn(i,e,1),e=ht(),i!==null&&(Ei(i,1,e),xt(i,e));break}}i=i.return}}function db(e,i,l){var u=e.pingCache;u!==null&&u.delete(i),i=ht(),e.pingedLanes|=e.suspendedLanes&l,tt===e&&(ot&l)===l&&(Ge===4||Ge===3&&(ot&130023424)===ot&&500>Je()-Uc?ur(e,0):Oc|=l),xt(e,i)}function qh(e,i){i===0&&((e.mode&1)===0?i=1:(i=za,za<<=1,(za&130023424)===0&&(za=4194304)));var l=ht();e=kn(e,i),e!==null&&(Ei(e,i,l),xt(e,l))}function fb(e){var i=e.memoizedState,l=0;i!==null&&(l=i.retryLane),qh(e,l)}function mb(e,i){var l=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(o(314))}u!==null&&u.delete(i),qh(e,l)}var Hh;Hh=function(e,i,l){if(e!==null)if(e.memoizedProps!==i.pendingProps||kt.current)wt=!0;else{if((e.lanes&l)===0&&(i.flags&128)===0)return wt=!1,eb(e,i,l);wt=(e.flags&131072)!==0}else wt=!1,Ze&&(i.flags&1048576)!==0&&wg(i,Ka,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;cl(e,i),e=i.pendingProps;var d=Rr(i,ct.current);qr(i,l),d=dc(null,i,u,e,d,l);var f=fc();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,St(u)?(f=!0,Va(i)):f=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,ic(i),d.updater=sl,i.stateNode=d,d._reactInternals=i,yc(i,u,e,l),i=Sc(null,i,u,!0,f,l)):(i.tag=0,Ze&&f&&Bu(i),gt(null,i,d,l),i=i.child),i;case 16:u=i.elementType;e:{switch(cl(e,i),e=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=gb(u),e=en(u,e),d){case 0:i=kc(null,i,u,e,l);break e;case 1:i=hh(null,i,u,e,l);break e;case 11:i=dh(null,i,u,e,l);break e;case 14:i=fh(null,i,u,en(u.type,e),l);break e}throw Error(o(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),kc(e,i,u,d,l);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),hh(e,i,u,d,l);case 3:e:{if(vh(i),e===null)throw Error(o(387));u=i.pendingProps,f=i.memoizedState,d=f.element,Ng(e,i),tl(i,u,null,l);var p=i.memoizedState;if(u=p.element,f.isDehydrated)if(f={element:u,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){d=Jr(Error(o(423)),i),i=yh(e,i,u,l,d);break e}else if(u!==d){d=Jr(Error(o(424)),i),i=yh(e,i,u,l,d);break e}else for(Ot=Cn(i.stateNode.containerInfo.firstChild),Nt=i,Ze=!0,Yt=null,l=Eg(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ar(),u===d){i=wn(e,i,l);break e}gt(e,i,u,l)}i=i.child}return i;case 5:return Dg(i),e===null&&Qu(i),u=i.type,d=i.pendingProps,f=e!==null?e.memoizedProps:null,p=d.children,Fu(u,d)?p=null:f!==null&&Fu(u,f)&&(i.flags|=32),gh(e,i),gt(e,i,p,l),i.child;case 6:return e===null&&Qu(i),null;case 13:return _h(e,i,l);case 4:return oc(i,i.stateNode.containerInfo),u=i.pendingProps,e===null?i.child=Mr(i,null,u,l):gt(e,i,u,l),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),dh(e,i,u,d,l);case 7:return gt(e,i,i.pendingProps,l),i.child;case 8:return gt(e,i,i.pendingProps.children,l),i.child;case 12:return gt(e,i,i.pendingProps.children,l),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,f=i.memoizedProps,p=d.value,Ue(Xa,u._currentValue),u._currentValue=p,f!==null)if(Xt(f.value,p)){if(f.children===d.children&&!kt.current){i=wn(e,i,l);break e}}else for(f=i.child,f!==null&&(f.return=i);f!==null;){var v=f.dependencies;if(v!==null){p=f.child;for(var _=v.firstContext;_!==null;){if(_.context===u){if(f.tag===1){_=Sn(-1,l&-l),_.tag=2;var E=f.updateQueue;if(E!==null){E=E.shared;var D=E.pending;D===null?_.next=_:(_.next=D.next,D.next=_),E.pending=_}}f.lanes|=l,_=f.alternate,_!==null&&(_.lanes|=l),nc(f.return,l,i),v.lanes|=l;break}_=_.next}}else if(f.tag===10)p=f.type===i.type?null:f.child;else if(f.tag===18){if(p=f.return,p===null)throw Error(o(341));p.lanes|=l,v=p.alternate,v!==null&&(v.lanes|=l),nc(p,l,i),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===i){p=null;break}if(f=p.sibling,f!==null){f.return=p.return,p=f;break}p=p.return}f=p}gt(e,i,d.children,l),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,qr(i,l),d=qt(d),u=u(d),i.flags|=1,gt(e,i,u,l),i.child;case 14:return u=i.type,d=en(u,i.pendingProps),d=en(u.type,d),fh(e,i,u,d,l);case 15:return mh(e,i,i.type,i.pendingProps,l);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),cl(e,i),i.tag=1,St(u)?(e=!0,Va(i)):e=!1,qr(i,l),ih(i,u,d),yc(i,u,d,l),Sc(null,i,u,!0,e,l);case 19:return kh(e,i,l);case 22:return ph(e,i,l)}throw Error(o(156,i.tag))};function Jh(e,i){return bp(e,i)}function pb(e,i,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,i,l,u){return new pb(e,i,l,u)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gb(e){if(typeof e=="function")return Fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ln)return 11;if(e===sn)return 14}return 2}function Wn(e,i){var l=e.alternate;return l===null?(l=Vt(e.tag,i,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=i,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,i=e.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function kl(e,i,l,u,d,f){var p=2;if(u=e,typeof e=="function")Fc(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case rt:return dr(l.children,d,f,i);case _t:p=8,d|=8;break;case jn:return e=Vt(12,l,i,d|2),e.elementType=jn,e.lanes=f,e;case jt:return e=Vt(13,l,i,d),e.elementType=jt,e.lanes=f,e;case Gt:return e=Vt(19,l,i,d),e.elementType=Gt,e.lanes=f,e;case qe:return Sl(l,d,f,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hn:p=10;break e;case Xn:p=9;break e;case ln:p=11;break e;case sn:p=14;break e;case $t:p=16,u=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return i=Vt(p,l,i,d),i.elementType=e,i.type=u,i.lanes=f,i}function dr(e,i,l,u){return e=Vt(7,e,u,i),e.lanes=l,e}function Sl(e,i,l,u){return e=Vt(22,e,u,i),e.elementType=qe,e.lanes=l,e.stateNode={isHidden:!1},e}function qc(e,i,l){return e=Vt(6,e,null,i),e.lanes=l,e}function Hc(e,i,l){return i=Vt(4,e.children!==null?e.children:[],e.key,i),i.lanes=l,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function hb(e,i,l,u,d){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vu(0),this.expirationTimes=vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Jc(e,i,l,u,d,f,p,v,_){return e=new hb(e,i,l,v,_),i===1?(i=1,f===!0&&(i|=8)):i=0,f=Vt(3,null,null,i),e.current=f,f.stateNode=e,f.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ic(f),e}function vb(e,i,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ye,key:u==null?null:""+u,children:e,containerInfo:i,implementation:l}}function Vh(e){if(!e)return Ln;e=e._reactInternals;e:{if(Yn(e)!==e||e.tag!==1)throw Error(o(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(St(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(o(171))}if(e.tag===1){var l=e.type;if(St(l))return $g(e,l,i)}return i}function Wh(e,i,l,u,d,f,p,v,_){return e=Jc(l,u,!0,e,d,f,p,v,_),e.context=Vh(null),l=e.current,u=ht(),d=Jn(l),f=Sn(u,d),f.callback=i??null,Mn(l,f,d),e.current.lanes=d,Ei(e,d,u),xt(e,u),e}function wl(e,i,l,u){var d=i.current,f=ht(),p=Jn(d);return l=Vh(l),i.context===null?i.context=l:i.pendingContext=l,i=Sn(f,p),i.payload={element:e},u=u===void 0?null:u,u!==null&&(i.callback=u),e=Mn(d,i,p),e!==null&&(rn(e,d,p,f),el(e,d,p)),p}function bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Bh(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<i?l:i}}function Vc(e,i){Bh(e,i),(e=e.alternate)&&Bh(e,i)}function yb(){return null}var Kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}xl.prototype.render=Wc.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(o(409));wl(e,i,null,null)},xl.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;sr(function(){wl(null,e,null,null)}),i[vn]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var i=Np();e={blockedOn:null,target:e,priority:i};for(var l=0;l<On.length&&i!==0&&i<On[l].priority;l++);On.splice(l,0,e),l===0&&Dp(e)}};function Bc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Il(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function _b(e,i,l,u,d){if(d){if(typeof u=="function"){var f=u;u=function(){var E=bl(p);f.call(E)}}var p=Wh(i,u,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=p,e[vn]=p.current,Hi(e.nodeType===8?e.parentNode:e),sr(),p}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var v=u;u=function(){var E=bl(_);v.call(E)}}var _=Jc(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=_,e[vn]=_.current,Hi(e.nodeType===8?e.parentNode:e),sr(function(){wl(i,_,l,u)}),_}function zl(e,i,l,u,d){var f=l._reactRootContainer;if(f){var p=f;if(typeof d=="function"){var v=d;d=function(){var _=bl(p);v.call(_)}}wl(i,p,e,d)}else p=_b(l,i,e,d,u);return bl(p)}Ep=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var l=ji(i.pendingLanes);l!==0&&(yu(i,l|1),xt(i,Je()),(_e&6)===0&&(Br=Je()+500,Zn()))}break;case 13:sr(function(){var u=kn(e,1);if(u!==null){var d=ht();rn(u,e,1,d)}}),Vc(e,1)}},_u=function(e){if(e.tag===13){var i=kn(e,134217728);if(i!==null){var l=ht();rn(i,e,134217728,l)}Vc(e,134217728)}},Pp=function(e){if(e.tag===13){var i=Jn(e),l=kn(e,i);if(l!==null){var u=ht();rn(l,e,i,u)}Vc(e,i)}},Np=function(){return ze},Op=function(e,i){var l=ze;try{return ze=e,i()}finally{ze=l}},du=function(e,i,l){switch(i){case"input":if(ru(e,l),i=l.name,l.type==="radio"&&i!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==e&&u.form===e.form){var d=Ha(u);if(!d)throw Error(o(90));rp(u),ru(u,d)}}}break;case"textarea":sp(e,l);break;case"select":i=l.value,i!=null&&xr(e,!!l.multiple,i,!1)}},vp=Zc,yp=sr;var $b={usingClientEntryPoint:!1,Events:[Wi,Dr,Ha,gp,hp,Zc]},lo={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kb={bundleType:lo.bundleType,version:lo.version,rendererPackageName:lo.rendererPackageName,rendererConfig:lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sp(e),e===null?null:e.stateNode},findFiberByHostInstance:lo.findFiberByHostInstance||yb,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 Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{xa=Tl.inject(kb),un=Tl}catch{}}return It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$b,It.createPortal=function(e,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bc(i))throw Error(o(200));return vb(e,i,null,l)},It.createRoot=function(e,i){if(!Bc(e))throw Error(o(299));var l=!1,u="",d=Kh;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),i=Jc(e,1,!1,null,null,l,!1,u,d),e[vn]=i.current,Hi(e.nodeType===8?e.parentNode:e),new Wc(i)},It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Sp(i),e=e===null?null:e.stateNode,e},It.flushSync=function(e){return sr(e)},It.hydrate=function(e,i,l){if(!Il(i))throw Error(o(200));return zl(null,e,i,!0,l)},It.hydrateRoot=function(e,i,l){if(!Bc(e))throw Error(o(405));var u=l!=null&&l.hydratedSources||null,d=!1,f="",p=Kh;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onRecoverableError!==void 0&&(p=l.onRecoverableError)),i=Wh(i,null,e,1,l??null,d,!1,f,p),e[vn]=i.current,Hi(e),u)for(e=0;e<u.length;e++)l=u[e],d=l._getVersion,d=d(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,d]:i.mutableSourceEagerHydrationData.push(l,d);return new xl(i)},It.render=function(e,i,l){if(!Il(i))throw Error(o(200));return zl(null,e,i,!1,l)},It.unmountComponentAtNode=function(e){if(!Il(e))throw Error(o(40));return e._reactRootContainer?(sr(function(){zl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1},It.unstable_batchedUpdates=Zc,It.unstable_renderSubtreeIntoContainer=function(e,i,l,u){if(!Il(l))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return zl(e,i,l,!1,u)},It.version="18.3.1-next-f1338f8080-20240426",It}var iv;function jb(){if(iv)return Qc.exports;iv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Qc.exports=Tb(),Qc.exports}var ov;function Eb(){if(ov)return jl;ov=1;var n=jb();return jl.createRoot=n.createRoot,jl.hydrateRoot=n.hydrateRoot,jl}var Pb=Eb(),Re=sd();const Nb="modulepreload",Ob=function(n,r){return new URL(n,r).href},av={},Ub=function(r,o,s){let t=Promise.resolve();if(o&&o.length>0){let c=function(y){return Promise.all(y.map(k=>Promise.resolve(k).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};const m=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),h=g?.nonce||g?.getAttribute("nonce");t=c(o.map(y=>{if(y=Ob(y,s),y in av)return;av[y]=!0;const k=y.endsWith(".css"),T=k?'[rel="stylesheet"]':"";if(!!s)for(let B=m.length-1;B>=0;B--){const V=m[B];if(V.href===y&&(!k||V.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${T}`))return;const Z=document.createElement("link");if(Z.rel=k?"stylesheet":Nb,k||(Z.as="script"),Z.crossOrigin="",Z.href=y,h&&Z.setAttribute("nonce",h),document.head.appendChild(Z),k)return new Promise((B,V)=>{Z.addEventListener("load",B),Z.addEventListener("error",()=>V(new Error(`Unable to preload CSS for ${y}`)))})}))}function a(c){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=c,window.dispatchEvent(m),!m.defaultPrevented)throw c}return t.then(c=>{for(const m of c||[])m.status==="rejected"&&a(m.reason);return r().catch(a)})};var lv;const ud=Object.freeze({status:"aborted"});function S(n,r,o){function s(m,g){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:g,constr:c,traits:new Set},enumerable:!1}),m._zod.traits.has(n))return;m._zod.traits.add(n),r(m,g);const h=c.prototype,y=Object.keys(h);for(let k=0;k<y.length;k++){const T=y[k];T in m||(m[T]=h[T].bind(m))}}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:n});function c(m){var g;const h=o?.Parent?new a:this;s(h,m),(g=h._zod).deferred??(g.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:m=>o?.Parent&&m instanceof o.Parent?!0:m?._zod?.traits?.has(n)}),Object.defineProperty(c,"name",{value:n}),c}const cd=Symbol("zod_brand");class hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Hl extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}(lv=globalThis).__zod_globalConfig??(lv.__zod_globalConfig={});const fo=globalThis.__zod_globalConfig;function Xe(n){return n&&Object.assign(fo,n),fo}function Db(n){return n}function Cb(n){return n}function Rb(n){}function Lb(n){throw new Error("Unexpected value in exhaustive check")}function Zb(n){}function dd(n){const r=Object.values(n).filter(s=>typeof s=="number");return Object.entries(n).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function R(n,r="|"){return n.map(o=>ee(o)).join(r)}function Rl(n,r){return typeof r=="bigint"?r.toString():r}function vo(n){return{get value(){{const r=n();return Object.defineProperty(this,"value",{value:r}),r}}}}function Sr(n){return n==null}function Jl(n){const r=n.startsWith("^")?1:0,o=n.endsWith("$")?n.length-1:n.length;return n.slice(r,o)}function qv(n,r){const o=n/r,s=Math.round(o),t=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-s)<t?0:o-s}const sv=Symbol("evaluating");function me(n,r,o){let s;Object.defineProperty(n,r,{get(){if(s!==sv)return s===void 0&&(s=sv,s=o()),s},set(t){Object.defineProperty(n,r,{value:t})},configurable:!0})}function Ab(n){return Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n))}function Gn(n,r,o){Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function pn(...n){const r={};for(const o of n){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Mb(n){return pn(n._zod.def)}function Fb(n,r){return r?r.reduce((o,s)=>o?.[s],n):n}function qb(n){const r=Object.keys(n),o=r.map(s=>n[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function Hb(n=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<n;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function nd(n){return JSON.stringify(n)}function Hv(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const fd="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Qr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const Jv=vo(()=>{if(fo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function vr(n){if(Qr(n)===!1)return!1;const r=n.constructor;if(r===void 0||typeof r!="function")return!0;const o=r.prototype;return!(Qr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Vl(n){return vr(n)?{...n}:Array.isArray(n)?[...n]:n instanceof Map?new Map(n):n instanceof Set?new Set(n):n}function Jb(n){let r=0;for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&r++;return r}const Vb=n=>{const r=typeof n;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(n)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(n)?"array":n===null?"null":n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?"promise":typeof Map<"u"&&n instanceof Map?"map":typeof Set<"u"&&n instanceof Set?"set":typeof Date<"u"&&n instanceof Date?"date":typeof File<"u"&&n instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Ll=new Set(["string","number","symbol"]),Vv=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xn(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Lt(n,r,o){const s=new n._zod.constr(r??n._zod.def);return(!r||o?.parent)&&(s._zod.parent=n),s}function N(n){const r=n;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Wb(n){let r;return new Proxy({},{get(o,s,t){return r??(r=n()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=n()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=n()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=n()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=n()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=n()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=n()),Reflect.defineProperty(r,s,t)}})}function ee(n){return typeof n=="bigint"?n.toString()+"n":typeof n=="string"?`"${n}"`:`${n}`}function Wv(n){return Object.keys(n).filter(r=>n[r]._zod.optin==="optional"&&n[r]._zod.optout==="optional")}const Bv={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]},Kv={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Gv(n,r){const o=n._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=pn(n._zod.def,{get shape(){const c={};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&(c[m]=o.shape[m])}return Gn(this,"shape",c),c},checks:[]});return Lt(n,a)}function Qv(n,r){const o=n._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=pn(n._zod.def,{get shape(){const c={...n._zod.def.shape};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&delete c[m]}return Gn(this,"shape",c),c},checks:[]});return Lt(n,a)}function Xv(n,r){if(!vr(r))throw new Error("Invalid input to extend: expected a plain object");const o=n._zod.def.checks;if(o&&o.length>0){const a=n._zod.def.shape;for(const c in r)if(Object.getOwnPropertyDescriptor(a,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const t=pn(n._zod.def,{get shape(){const a={...n._zod.def.shape,...r};return Gn(this,"shape",a),a}});return Lt(n,t)}function Yv(n,r){if(!vr(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o=pn(n._zod.def,{get shape(){const s={...n._zod.def.shape,...r};return Gn(this,"shape",s),s}});return Lt(n,o)}function ey(n,r){if(n._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=pn(n._zod.def,{get shape(){const s={...n._zod.def.shape,...r._zod.def.shape};return Gn(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return Lt(n,o)}function ty(n,r,o){const t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=pn(r._zod.def,{get shape(){const m=r._zod.def.shape,g={...m};if(o)for(const h in o){if(!(h in m))throw new Error(`Unrecognized key: "${h}"`);o[h]&&(g[h]=n?new n({type:"optional",innerType:m[h]}):m[h])}else for(const h in m)g[h]=n?new n({type:"optional",innerType:m[h]}):m[h];return Gn(this,"shape",g),g},checks:[]});return Lt(r,c)}function ny(n,r,o){const s=pn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const c in o){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);o[c]&&(a[c]=new n({type:"nonoptional",innerType:t[c]}))}else for(const c in t)a[c]=new n({type:"nonoptional",innerType:t[c]});return Gn(this,"shape",a),a}});return Lt(r,s)}function gr(n,r=0){if(n.aborted===!0)return!0;for(let o=r;o<n.issues.length;o++)if(n.issues[o]?.continue!==!0)return!0;return!1}function ry(n,r=0){if(n.aborted===!0)return!0;for(let o=r;o<n.issues.length;o++)if(n.issues[o]?.continue===!1)return!0;return!1}function Wt(n,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(n),o})}function co(n){return typeof n=="string"?n:n?.message}function Rt(n,r,o){const s=n.message?n.message:co(n.inst?._zod.def?.error?.(n))??co(r?.error?.(n))??co(o.customError?.(n))??co(o.localeError?.(n))??"Invalid input",{inst:t,continue:a,input:c,...m}=n;return m.path??(m.path=[]),m.message=s,r?.reportInput&&(m.input=c),m}function Wl(n){return n instanceof Set?"set":n instanceof Map?"map":n instanceof File?"file":"unknown"}function Bl(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function re(n){const r=typeof n;switch(r){case"number":return Number.isNaN(n)?"nan":"number";case"object":{if(n===null)return"null";if(Array.isArray(n))return"array";const o=n;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function Xr(...n){const[r,o,s]=n;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function Bb(n){return Object.entries(n).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function iy(n){const r=atob(n),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function oy(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}function Kb(n){const r=n.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return iy(r+o)}function Gb(n){return oy(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Qb(n){const r=n.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function Xb(n){return Array.from(n).map(r=>r.toString(16).padStart(2,"0")).join("")}class Yb{constructor(...r){}}const md=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Kv,Class:Yb,NUMBER_FORMAT_RANGES:Bv,aborted:gr,allowsEval:Jv,assert:Zb,assertEqual:Db,assertIs:Rb,assertNever:Lb,assertNotEqual:Cb,assignProp:Gn,base64ToUint8Array:iy,base64urlToUint8Array:Kb,cached:vo,captureStackTrace:fd,cleanEnum:Bb,cleanRegex:Jl,clone:Lt,cloneDef:Mb,createTransparentProxy:Wb,defineLazy:me,esc:nd,escapeRegex:xn,explicitlyAborted:ry,extend:Xv,finalizeIssue:Rt,floatSafeRemainder:qv,getElementAtPath:Fb,getEnumValues:dd,getLengthableOrigin:Bl,getParsedType:Vb,getSizableOrigin:Wl,hexToUint8Array:Qb,isObject:Qr,isPlainObject:vr,issue:Xr,joinValues:R,jsonStringifyReplacer:Rl,merge:ey,mergeDefs:pn,normalizeParams:N,nullish:Sr,numKeys:Jb,objectClone:Ab,omit:Qv,optionalKeys:Wv,parsedType:re,partial:ty,pick:Gv,prefixIssues:Wt,primitiveTypes:Vv,promiseAllObject:qb,propertyKeyTypes:Ll,randomString:Hb,required:ny,safeExtend:Yv,shallowClone:Vl,slugify:Hv,stringifyPrimitive:ee,uint8ArrayToBase64:oy,uint8ArrayToBase64url:Gb,uint8ArrayToHex:Xb,unwrapMessage:co},Symbol.toStringTag,{value:"Module"})),ay=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),n.message=JSON.stringify(r,Rl,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},pd=S("$ZodError",ay),Zt=S("$ZodError",ay,{Parent:Error});function Kl(n,r=o=>o.message){const o={},s=[];for(const t of n.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function Gl(n,r=o=>o.message){const o={_errors:[]},s=(t,a=[])=>{for(const c of t.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(m=>s({issues:m},[...a,...c.path]));else if(c.code==="invalid_key")s({issues:c.issues},[...a,...c.path]);else if(c.code==="invalid_element")s({issues:c.issues},[...a,...c.path]);else{const m=[...a,...c.path];if(m.length===0)o._errors.push(r(c));else{let g=o,h=0;for(;h<m.length;){const y=m[h];h===m.length-1?(g[y]=g[y]||{_errors:[]},g[y]._errors.push(r(c))):g[y]=g[y]||{_errors:[]},g=g[y],h++}}}};return s(n),o}function gd(n,r=o=>o.message){const o={errors:[]},s=(t,a=[])=>{var c,m;for(const g of t.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(h=>s({issues:h},[...a,...g.path]));else if(g.code==="invalid_key")s({issues:g.issues},[...a,...g.path]);else if(g.code==="invalid_element")s({issues:g.issues},[...a,...g.path]);else{const h=[...a,...g.path];if(h.length===0){o.errors.push(r(g));continue}let y=o,k=0;for(;k<h.length;){const T=h[k],P=k===h.length-1;typeof T=="string"?(y.properties??(y.properties={}),(c=y.properties)[T]??(c[T]={errors:[]}),y=y.properties[T]):(y.items??(y.items=[]),(m=y.items)[T]??(m[T]={errors:[]}),y=y.items[T]),P&&y.errors.push(r(g)),k++}}};return s(n),o}function ly(n){const r=[],o=n.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function hd(n){const r=[],o=[...n.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${ly(s.path)}`);return r.join(`
46
+ `+f.stack}return{value:e,source:i,stack:d,digest:null}}function _c(e,i,l){return{value:e,source:null,stack:l??null,digest:i??null}}function $c(e,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var Qw=typeof WeakMap=="function"?WeakMap:Map;function ah(e,i,l){l=Sn(-1,l),l.tag=3,l.payload={element:null};var u=i.value;return l.callback=function(){gl||(gl=!0,Dc=u),$c(e,i)},l}function lh(e,i,l){l=Sn(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;l.payload=function(){return u(d)},l.callback=function(){$c(e,i)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){$c(e,i),typeof u!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var p=i.stack;this.componentDidCatch(i.value,{componentStack:p!==null?p:""})}),l}function sh(e,i,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Qw;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(l)||(d.add(l),e=db.bind(null,e,i,l),i.then(e,e))}function uh(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function ch(e,i,l,u,d){return(e.mode&1)===0?(e===i?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=Sn(-1,1),i.tag=2,Mn(l,i,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var Xw=Y.ReactCurrentOwner,bt=!1;function gt(e,i,l,u){i.child=e===null?Eg(i,null,l,u):Mr(i,e.child,l,u)}function dh(e,i,l,u,d){l=l.render;var f=i.ref;return qr(i,d),u=dc(e,i,l,u,f,d),l=fc(),e!==null&&!bt?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,wn(e,i,d)):(Ze&&l&&Bu(i),i.flags|=1,gt(e,i,u,d),i.child)}function fh(e,i,l,u,d){if(e===null){var f=l.type;return typeof f=="function"&&!Fc(f)&&f.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=f,mh(e,i,f,u,d)):(e=kl(l.type,null,u,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(f=e.child,(e.lanes&d)===0){var p=f.memoizedProps;if(l=l.compare,l=l!==null?l:Mi,l(p,u)&&e.ref===i.ref)return wn(e,i,d)}return i.flags|=1,e=Wn(f,u),e.ref=i.ref,e.return=i,i.child=e}function mh(e,i,l,u,d){if(e!==null){var f=e.memoizedProps;if(Mi(f,u)&&e.ref===i.ref)if(bt=!1,i.pendingProps=u=f,(e.lanes&d)!==0)(e.flags&131072)!==0&&(bt=!0);else return i.lanes=e.lanes,wn(e,i,d)}return kc(e,i,l,u,d)}function ph(e,i,l){var u=i.pendingProps,d=u.children,f=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(Wr,Ut),Ut|=l;else{if((l&1073741824)===0)return e=f!==null?f.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,Ue(Wr,Ut),Ut|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=f!==null?f.baseLanes:l,Ue(Wr,Ut),Ut|=u}else f!==null?(u=f.baseLanes|l,i.memoizedState=null):u=l,Ue(Wr,Ut),Ut|=u;return gt(e,i,d,l),i.child}function gh(e,i){var l=i.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function kc(e,i,l,u,d){var f=wt(l)?tr:ct.current;return f=Rr(i,f),qr(i,d),l=dc(e,i,l,u,f,d),u=fc(),e!==null&&!bt?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,wn(e,i,d)):(Ze&&u&&Bu(i),i.flags|=1,gt(e,i,l,d),i.child)}function hh(e,i,l,u,d){if(wt(l)){var f=!0;Va(i)}else f=!1;if(qr(i,d),i.stateNode===null)cl(e,i),ih(i,l,u),yc(i,l,u,d),u=!0;else if(e===null){var p=i.stateNode,v=i.memoizedProps;p.props=v;var _=p.context,E=l.contextType;typeof E=="object"&&E!==null?E=qt(E):(E=wt(l)?tr:ct.current,E=Rr(i,E));var D=l.getDerivedStateFromProps,L=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function";L||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==u||_!==E)&&oh(i,p,u,E),An=!1;var O=i.memoizedState;p.state=O,tl(i,u,p,d),_=i.memoizedState,v!==u||O!==_||St.current||An?(typeof D=="function"&&(vc(i,l,D,u),_=i.memoizedState),(v=An||rh(i,l,v,u,O,_,E))?(L||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=_),p.props=u,p.state=_,p.context=E,u=v):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{p=i.stateNode,Ng(e,i),v=i.memoizedProps,E=i.type===i.elementType?v:en(i.type,v),p.props=E,L=i.pendingProps,O=p.context,_=l.contextType,typeof _=="object"&&_!==null?_=qt(_):(_=wt(l)?tr:ct.current,_=Rr(i,_));var J=l.getDerivedStateFromProps;(D=typeof J=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==L||O!==_)&&oh(i,p,u,_),An=!1,O=i.memoizedState,p.state=O,tl(i,u,p,d);var G=i.memoizedState;v!==L||O!==G||St.current||An?(typeof J=="function"&&(vc(i,l,J,u),G=i.memoizedState),(E=An||rh(i,l,E,u,O,G,_)||!1)?(D||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,G,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,G,_)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=G),p.props=u,p.state=G,p.context=_,u=E):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(i.flags|=1024),u=!1)}return Sc(e,i,l,u,f,d)}function Sc(e,i,l,u,d,f){gh(e,i);var p=(i.flags&128)!==0;if(!u&&!p)return d&&kg(i,l,!1),wn(e,i,f);u=i.stateNode,Xw.current=i;var v=p&&typeof l.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,e!==null&&p?(i.child=Mr(i,e.child,null,f),i.child=Mr(i,null,v,f)):gt(e,i,v,f),i.memoizedState=u.state,d&&kg(i,l,!0),i.child}function vh(e){var i=e.stateNode;i.pendingContext?_g(e,i.pendingContext,i.pendingContext!==i.context):i.context&&_g(e,i.context,!1),oc(e,i.containerInfo)}function yh(e,i,l,u,d){return Ar(),Xu(d),i.flags|=256,gt(e,i,l,u),i.child}var wc={dehydrated:null,treeContext:null,retryLane:0};function bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function _h(e,i,l){var u=i.pendingProps,d=Me.current,f=!1,p=(i.flags&128)!==0,v;if((v=p)||(v=e!==null&&e.memoizedState===null?!1:(d&2)!==0),v?(f=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Ue(Me,d&1),e===null)return Qu(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((i.mode&1)===0?i.lanes=1:e.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(p=u.children,e=u.fallback,f?(u=i.mode,f=i.child,p={mode:"hidden",children:p},(u&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=p):f=Sl(p,u,0,null),e=dr(e,u,l,null),f.return=i,e.return=i,f.sibling=e,i.child=f,i.child.memoizedState=bc(l),i.memoizedState=wc,e):xc(i,p));if(d=e.memoizedState,d!==null&&(v=d.dehydrated,v!==null))return Yw(e,i,p,u,v,d,l);if(f){f=u.fallback,p=i.mode,d=e.child,v=d.sibling;var _={mode:"hidden",children:u.children};return(p&1)===0&&i.child!==d?(u=i.child,u.childLanes=0,u.pendingProps=_,i.deletions=null):(u=Wn(d,_),u.subtreeFlags=d.subtreeFlags&14680064),v!==null?f=Wn(v,f):(f=dr(f,p,l,null),f.flags|=2),f.return=i,u.return=i,u.sibling=f,i.child=u,u=f,f=i.child,p=e.child.memoizedState,p=p===null?bc(l):{baseLanes:p.baseLanes|l,cachePool:null,transitions:p.transitions},f.memoizedState=p,f.childLanes=e.childLanes&~l,i.memoizedState=wc,u}return f=e.child,e=f.sibling,u=Wn(f,{mode:"visible",children:u.children}),(i.mode&1)===0&&(u.lanes=l),u.return=i,u.sibling=null,e!==null&&(l=i.deletions,l===null?(i.deletions=[e],i.flags|=16):l.push(e)),i.child=u,i.memoizedState=null,u}function xc(e,i){return i=Sl({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function ul(e,i,l,u){return u!==null&&Xu(u),Mr(i,e.child,null,l),e=xc(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function Yw(e,i,l,u,d,f,p){if(l)return i.flags&256?(i.flags&=-257,u=_c(Error(o(422))),ul(e,i,p,u)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(f=u.fallback,d=i.mode,u=Sl({mode:"visible",children:u.children},d,0,null),f=dr(f,d,p,null),f.flags|=2,u.return=i,f.return=i,u.sibling=f,i.child=u,(i.mode&1)!==0&&Mr(i,e.child,null,p),i.child.memoizedState=bc(p),i.memoizedState=wc,f);if((i.mode&1)===0)return ul(e,i,p,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var v=u.dgst;return u=v,f=Error(o(419)),u=_c(f,u,void 0),ul(e,i,p,u)}if(v=(p&e.childLanes)!==0,bt||v){if(u=tt,u!==null){switch(p&-p){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(u.suspendedLanes|p))!==0?0:d,d!==0&&d!==f.retryLane&&(f.retryLane=d,kn(e,d),rn(u,e,d,-1))}return Mc(),u=_c(Error(o(421))),ul(e,i,p,u)}return d.data==="$?"?(i.flags|=128,i.child=e.child,i=fb.bind(null,e),d._reactRetry=i,null):(e=f.treeContext,Ot=Cn(d.nextSibling),Nt=i,Ze=!0,Yt=null,e!==null&&(Mt[Ft++]=_n,Mt[Ft++]=$n,Mt[Ft++]=nr,_n=e.id,$n=e.overflow,nr=i),i=xc(i,u.children),i.flags|=4096,i)}function $h(e,i,l){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i),nc(e.return,i,l)}function Ic(e,i,l,u,d){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:d}:(f.isBackwards=i,f.rendering=null,f.renderingStartTime=0,f.last=u,f.tail=l,f.tailMode=d)}function kh(e,i,l){var u=i.pendingProps,d=u.revealOrder,f=u.tail;if(gt(e,i,u.children,l),u=Me.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,l,i);else if(e.tag===19)$h(e,l,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Ue(Me,u),(i.mode&1)===0)i.memoizedState=null;else switch(d){case"forwards":for(l=i.child,d=null;l!==null;)e=l.alternate,e!==null&&nl(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=i.child,i.child=null):(d=l.sibling,l.sibling=null),Ic(i,!1,d,l,f);break;case"backwards":for(l=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&nl(e)===null){i.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Ic(i,!0,l,null,f);break;case"together":Ic(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function cl(e,i){(i.mode&1)===0&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function wn(e,i,l){if(e!==null&&(i.dependencies=e.dependencies),lr|=i.lanes,(l&i.childLanes)===0)return null;if(e!==null&&i.child!==e.child)throw Error(o(153));if(i.child!==null){for(e=i.child,l=Wn(e,e.pendingProps),i.child=l,l.return=i;e.sibling!==null;)e=e.sibling,l=l.sibling=Wn(e,e.pendingProps),l.return=i;l.sibling=null}return i.child}function eb(e,i,l){switch(i.tag){case 3:vh(i),Ar();break;case 5:Dg(i);break;case 1:wt(i.type)&&Va(i);break;case 4:oc(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,d=i.memoizedProps.value;Ue(Xa,u._currentValue),u._currentValue=d;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(Ue(Me,Me.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?_h(e,i,l):(Ue(Me,Me.current&1),e=wn(e,i,l),e!==null?e.sibling:null);Ue(Me,Me.current&1);break;case 19:if(u=(l&i.childLanes)!==0,(e.flags&128)!==0){if(u)return kh(e,i,l);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Ue(Me,Me.current),u)break;return null;case 22:case 23:return i.lanes=0,ph(e,i,l)}return wn(e,i,l)}var Sh,zc,wh,bh;Sh=function(e,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},zc=function(){},wh=function(e,i,l,u){var d=e.memoizedProps;if(d!==u){e=i.stateNode,or(dn.current);var f=null;switch(l){case"input":d=nu(e,d),u=nu(e,u),f=[];break;case"select":d=K({},d,{value:void 0}),u=K({},u,{value:void 0}),f=[];break;case"textarea":d=ou(e,d),u=ou(e,u),f=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=qa)}lu(l,u);var p;l=null;for(E in d)if(!u.hasOwnProperty(E)&&d.hasOwnProperty(E)&&d[E]!=null)if(E==="style"){var v=d[E];for(p in v)v.hasOwnProperty(p)&&(l||(l={}),l[p]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(t.hasOwnProperty(E)?f||(f=[]):(f=f||[]).push(E,null));for(E in u){var _=u[E];if(v=d?.[E],u.hasOwnProperty(E)&&_!==v&&(_!=null||v!=null))if(E==="style")if(v){for(p in v)!v.hasOwnProperty(p)||_&&_.hasOwnProperty(p)||(l||(l={}),l[p]="");for(p in _)_.hasOwnProperty(p)&&v[p]!==_[p]&&(l||(l={}),l[p]=_[p])}else l||(f||(f=[]),f.push(E,l)),l=_;else E==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,v=v?v.__html:void 0,_!=null&&v!==_&&(f=f||[]).push(E,_)):E==="children"?typeof _!="string"&&typeof _!="number"||(f=f||[]).push(E,""+_):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(t.hasOwnProperty(E)?(_!=null&&E==="onScroll"&&De("scroll",e),f||v===_||(f=[])):(f=f||[]).push(E,_))}l&&(f=f||[]).push("style",l);var E=f;(i.updateQueue=E)&&(i.flags|=4)}},bh=function(e,i,l,u){l!==u&&(i.flags|=4)};function no(e,i){if(!Ze)switch(e.tailMode){case"hidden":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function ft(e){var i=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(i)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=l,i}function tb(e,i,l){var u=i.pendingProps;switch(Ku(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(i),null;case 1:return wt(i.type)&&Ja(),ft(i),null;case 3:return u=i.stateNode,Hr(),Ce(St),Ce(ct),sc(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Ga(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Yt!==null&&(Lc(Yt),Yt=null))),zc(e,i),ft(i),null;case 5:ac(i);var d=or(Qi.current);if(l=i.type,e!==null&&i.stateNode!=null)wh(e,i,l,u,d),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(o(166));return ft(i),null}if(e=or(dn.current),Ga(i)){u=i.stateNode,l=i.type;var f=i.memoizedProps;switch(u[cn]=i,u[Vi]=f,e=(i.mode&1)!==0,l){case"dialog":De("cancel",u),De("close",u);break;case"iframe":case"object":case"embed":De("load",u);break;case"video":case"audio":for(d=0;d<qi.length;d++)De(qi[d],u);break;case"source":De("error",u);break;case"img":case"image":case"link":De("error",u),De("load",u);break;case"details":De("toggle",u);break;case"input":ip(u,f),De("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!f.multiple},De("invalid",u);break;case"textarea":lp(u,f),De("invalid",u)}lu(l,f),d=null;for(var p in f)if(f.hasOwnProperty(p)){var v=f[p];p==="children"?typeof v=="string"?u.textContent!==v&&(f.suppressHydrationWarning!==!0&&Fa(u.textContent,v,e),d=["children",v]):typeof v=="number"&&u.textContent!==""+v&&(f.suppressHydrationWarning!==!0&&Fa(u.textContent,v,e),d=["children",""+v]):t.hasOwnProperty(p)&&v!=null&&p==="onScroll"&&De("scroll",u)}switch(l){case"input":_a(u),ap(u,f,!0);break;case"textarea":_a(u),up(u);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(u.onclick=qa)}u=d,i.updateQueue=u,u!==null&&(i.flags|=4)}else{p=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cp(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=p.createElement(l,{is:u.is}):(e=p.createElement(l),l==="select"&&(p=e,u.multiple?p.multiple=!0:u.size&&(p.size=u.size))):e=p.createElementNS(e,l),e[cn]=i,e[Vi]=u,Sh(e,i,!1,!1),i.stateNode=e;e:{switch(p=su(l,u),l){case"dialog":De("cancel",e),De("close",e),d=u;break;case"iframe":case"object":case"embed":De("load",e),d=u;break;case"video":case"audio":for(d=0;d<qi.length;d++)De(qi[d],e);d=u;break;case"source":De("error",e),d=u;break;case"img":case"image":case"link":De("error",e),De("load",e),d=u;break;case"details":De("toggle",e),d=u;break;case"input":ip(e,u),d=nu(e,u),De("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=K({},u,{value:void 0}),De("invalid",e);break;case"textarea":lp(e,u),d=ou(e,u),De("invalid",e);break;default:d=u}lu(l,d),v=d;for(f in v)if(v.hasOwnProperty(f)){var _=v[f];f==="style"?mp(e,_):f==="dangerouslySetInnerHTML"?(_=_?_.__html:void 0,_!=null&&dp(e,_)):f==="children"?typeof _=="string"?(l!=="textarea"||_!=="")&&bi(e,_):typeof _=="number"&&bi(e,""+_):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(t.hasOwnProperty(f)?_!=null&&f==="onScroll"&&De("scroll",e):_!=null&&le(e,f,_,p))}switch(l){case"input":_a(e),ap(e,u,!1);break;case"textarea":_a(e),up(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Ie(u.value));break;case"select":e.multiple=!!u.multiple,f=u.value,f!=null?xr(e,!!u.multiple,f,!1):u.defaultValue!=null&&xr(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=qa)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return ft(i),null;case 6:if(e&&i.stateNode!=null)bh(e,i,e.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(o(166));if(l=or(Qi.current),or(dn.current),Ga(i)){if(u=i.stateNode,l=i.memoizedProps,u[cn]=i,(f=u.nodeValue!==l)&&(e=Nt,e!==null))switch(e.tag){case 3:Fa(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fa(u.nodeValue,l,(e.mode&1)!==0)}f&&(i.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[cn]=i,i.stateNode=u}return ft(i),null;case 13:if(Ce(Me),u=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ze&&Ot!==null&&(i.mode&1)!==0&&(i.flags&128)===0)zg(),Ar(),i.flags|=98560,f=!1;else if(f=Ga(i),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[cn]=i}else Ar(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ft(i),f=!1}else Yt!==null&&(Lc(Yt),Yt=null),f=!0;if(!f)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(i.child.flags|=8192,(i.mode&1)!==0&&(e===null||(Me.current&1)!==0?Ge===0&&(Ge=3):Mc())),i.updateQueue!==null&&(i.flags|=4),ft(i),null);case 4:return Hr(),zc(e,i),e===null&&Hi(i.stateNode.containerInfo),ft(i),null;case 10:return tc(i.type._context),ft(i),null;case 17:return wt(i.type)&&Ja(),ft(i),null;case 19:if(Ce(Me),f=i.memoizedState,f===null)return ft(i),null;if(u=(i.flags&128)!==0,p=f.rendering,p===null)if(u)no(f,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(p=nl(e),p!==null){for(i.flags|=128,no(f,!1),u=p.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=l,l=i.child;l!==null;)f=l,e=u,f.flags&=14680066,p=f.alternate,p===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=p.childLanes,f.lanes=p.lanes,f.child=p.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=p.memoizedProps,f.memoizedState=p.memoizedState,f.updateQueue=p.updateQueue,f.type=p.type,e=p.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Ue(Me,Me.current&1|2),i.child}e=e.sibling}f.tail!==null&&Je()>Br&&(i.flags|=128,u=!0,no(f,!1),i.lanes=4194304)}else{if(!u)if(e=nl(p),e!==null){if(i.flags|=128,u=!0,l=e.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),no(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Ze)return ft(i),null}else 2*Je()-f.renderingStartTime>Br&&l!==1073741824&&(i.flags|=128,u=!0,no(f,!1),i.lanes=4194304);f.isBackwards?(p.sibling=i.child,i.child=p):(l=f.last,l!==null?l.sibling=p:i.child=p,f.last=p)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Je(),i.sibling=null,l=Me.current,Ue(Me,u?l&1|2:l&1),i):(ft(i),null);case 22:case 23:return Ac(),u=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(i.flags|=8192),u&&(i.mode&1)!==0?(Ut&1073741824)!==0&&(ft(i),i.subtreeFlags&6&&(i.flags|=8192)):ft(i),null;case 24:return null;case 25:return null}throw Error(o(156,i.tag))}function nb(e,i){switch(Ku(i),i.tag){case 1:return wt(i.type)&&Ja(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Hr(),Ce(St),Ce(ct),sc(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 5:return ac(i),null;case 13:if(Ce(Me),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ar()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return Ce(Me),null;case 4:return Hr(),null;case 10:return tc(i.type._context),null;case 22:case 23:return Ac(),null;case 24:return null;default:return null}}var dl=!1,mt=!1,rb=typeof WeakSet=="function"?WeakSet:Set,W=null;function Vr(e,i){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){He(e,i,u)}else l.current=null}function Tc(e,i,l){try{l()}catch(u){He(e,i,u)}}var xh=!1;function ib(e,i){if(Au=Pa,e=rg(),Nu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var d=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var p=0,v=-1,_=-1,E=0,D=0,L=e,O=null;t:for(;;){for(var J;L!==l||d!==0&&L.nodeType!==3||(v=p+d),L!==f||u!==0&&L.nodeType!==3||(_=p+u),L.nodeType===3&&(p+=L.nodeValue.length),(J=L.firstChild)!==null;)O=L,L=J;for(;;){if(L===e)break t;if(O===l&&++E===d&&(v=p),O===f&&++D===u&&(_=p),(J=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=J}l=v===-1||_===-1?null:{start:v,end:_}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mu={focusedElem:e,selectionRange:l},Pa=!1,W=i;W!==null;)if(i=W,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,W=e;else for(;W!==null;){i=W;try{var G=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Q=G.memoizedProps,Ve=G.memoizedState,b=i.stateNode,$=b.getSnapshotBeforeUpdate(i.elementType===i.type?Q:en(i.type,Q),Ve);b.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var z=i.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(A){He(i,i.return,A)}if(e=i.sibling,e!==null){e.return=i.return,W=e;break}W=i.return}return G=xh,xh=!1,G}function ro(e,i,l){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var f=d.destroy;d.destroy=void 0,f!==void 0&&Tc(i,l,f)}d=d.next}while(d!==u)}}function fl(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==i)}}function jc(e){var i=e.ref;if(i!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof i=="function"?i(e):i.current=e}}function Ih(e){var i=e.alternate;i!==null&&(e.alternate=null,Ih(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[cn],delete i[Vi],delete i[Ju],delete i[Aw],delete i[Mw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zh(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ec(e,i,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(e,i):l.insertBefore(e,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(e,l)):(i=l,i.appendChild(e)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=qa));else if(u!==4&&(e=e.child,e!==null))for(Ec(e,i,l),e=e.sibling;e!==null;)Ec(e,i,l),e=e.sibling}function Pc(e,i,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?l.insertBefore(e,i):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Pc(e,i,l),e=e.sibling;e!==null;)Pc(e,i,l),e=e.sibling}var it=null,tn=!1;function Fn(e,i,l){for(l=l.child;l!==null;)jh(e,i,l),l=l.sibling}function jh(e,i,l){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(xa,l)}catch{}switch(l.tag){case 5:mt||Vr(l,i);case 6:var u=it,d=tn;it=null,Fn(e,i,l),it=u,tn=d,it!==null&&(tn?(e=it,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):it.removeChild(l.stateNode));break;case 18:it!==null&&(tn?(e=it,l=l.stateNode,e.nodeType===8?Hu(e.parentNode,l):e.nodeType===1&&Hu(e,l),Di(e)):Hu(it,l.stateNode));break;case 4:u=it,d=tn,it=l.stateNode.containerInfo,tn=!0,Fn(e,i,l),it=u,tn=d;break;case 0:case 11:case 14:case 15:if(!mt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var f=d,p=f.destroy;f=f.tag,p!==void 0&&((f&2)!==0||(f&4)!==0)&&Tc(l,i,p),d=d.next}while(d!==u)}Fn(e,i,l);break;case 1:if(!mt&&(Vr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(v){He(l,i,v)}Fn(e,i,l);break;case 21:Fn(e,i,l);break;case 22:l.mode&1?(mt=(u=mt)||l.memoizedState!==null,Fn(e,i,l),mt=u):Fn(e,i,l);break;default:Fn(e,i,l)}}function Eh(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new rb),i.forEach(function(u){var d=mb.bind(null,e,u);l.has(u)||(l.add(u),u.then(d,d))})}}function nn(e,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var d=l[u];try{var f=e,p=i,v=p;e:for(;v!==null;){switch(v.tag){case 5:it=v.stateNode,tn=!1;break e;case 3:it=v.stateNode.containerInfo,tn=!0;break e;case 4:it=v.stateNode.containerInfo,tn=!0;break e}v=v.return}if(it===null)throw Error(o(160));jh(f,p,d),it=null,tn=!1;var _=d.alternate;_!==null&&(_.return=null),d.return=null}catch(E){He(d,i,E)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ph(i,e),i=i.sibling}function Ph(e,i){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nn(i,e),mn(e),u&4){try{ro(3,e,e.return),fl(3,e)}catch(Q){He(e,e.return,Q)}try{ro(5,e,e.return)}catch(Q){He(e,e.return,Q)}}break;case 1:nn(i,e),mn(e),u&512&&l!==null&&Vr(l,l.return);break;case 5:if(nn(i,e),mn(e),u&512&&l!==null&&Vr(l,l.return),e.flags&32){var d=e.stateNode;try{bi(d,"")}catch(Q){He(e,e.return,Q)}}if(u&4&&(d=e.stateNode,d!=null)){var f=e.memoizedProps,p=l!==null?l.memoizedProps:f,v=e.type,_=e.updateQueue;if(e.updateQueue=null,_!==null)try{v==="input"&&f.type==="radio"&&f.name!=null&&op(d,f),su(v,p);var E=su(v,f);for(p=0;p<_.length;p+=2){var D=_[p],L=_[p+1];D==="style"?mp(d,L):D==="dangerouslySetInnerHTML"?dp(d,L):D==="children"?bi(d,L):le(d,D,L,E)}switch(v){case"input":ru(d,f);break;case"textarea":sp(d,f);break;case"select":var O=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!f.multiple;var J=f.value;J!=null?xr(d,!!f.multiple,J,!1):O!==!!f.multiple&&(f.defaultValue!=null?xr(d,!!f.multiple,f.defaultValue,!0):xr(d,!!f.multiple,f.multiple?[]:"",!1))}d[Vi]=f}catch(Q){He(e,e.return,Q)}}break;case 6:if(nn(i,e),mn(e),u&4){if(e.stateNode===null)throw Error(o(162));d=e.stateNode,f=e.memoizedProps;try{d.nodeValue=f}catch(Q){He(e,e.return,Q)}}break;case 3:if(nn(i,e),mn(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Di(i.containerInfo)}catch(Q){He(e,e.return,Q)}break;case 4:nn(i,e),mn(e);break;case 13:nn(i,e),mn(e),d=e.child,d.flags&8192&&(f=d.memoizedState!==null,d.stateNode.isHidden=f,!f||d.alternate!==null&&d.alternate.memoizedState!==null||(Uc=Je())),u&4&&Eh(e);break;case 22:if(D=l!==null&&l.memoizedState!==null,e.mode&1?(mt=(E=mt)||D,nn(i,e),mt=E):nn(i,e),mn(e),u&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!D&&(e.mode&1)!==0)for(W=e,D=e.child;D!==null;){for(L=W=D;W!==null;){switch(O=W,J=O.child,O.tag){case 0:case 11:case 14:case 15:ro(4,O,O.return);break;case 1:Vr(O,O.return);var G=O.stateNode;if(typeof G.componentWillUnmount=="function"){u=O,l=O.return;try{i=u,G.props=i.memoizedProps,G.state=i.memoizedState,G.componentWillUnmount()}catch(Q){He(u,l,Q)}}break;case 5:Vr(O,O.return);break;case 22:if(O.memoizedState!==null){Uh(L);continue}}J!==null?(J.return=O,W=J):Uh(L)}D=D.sibling}e:for(D=null,L=e;;){if(L.tag===5){if(D===null){D=L;try{d=L.stateNode,E?(f=d.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(v=L.stateNode,_=L.memoizedProps.style,p=_!=null&&_.hasOwnProperty("display")?_.display:null,v.style.display=fp("display",p))}catch(Q){He(e,e.return,Q)}}}else if(L.tag===6){if(D===null)try{L.stateNode.nodeValue=E?"":L.memoizedProps}catch(Q){He(e,e.return,Q)}}else if((L.tag!==22&&L.tag!==23||L.memoizedState===null||L===e)&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===e)break e;for(;L.sibling===null;){if(L.return===null||L.return===e)break e;D===L&&(D=null),L=L.return}D===L&&(D=null),L.sibling.return=L.return,L=L.sibling}}break;case 19:nn(i,e),mn(e),u&4&&Eh(e);break;case 21:break;default:nn(i,e),mn(e)}}function mn(e){var i=e.flags;if(i&2){try{e:{for(var l=e.return;l!==null;){if(zh(l)){var u=l;break e}l=l.return}throw Error(o(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(bi(d,""),u.flags&=-33);var f=Th(e);Pc(e,f,d);break;case 3:case 4:var p=u.stateNode.containerInfo,v=Th(e);Ec(e,v,p);break;default:throw Error(o(161))}}catch(_){He(e,e.return,_)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function ob(e,i,l){W=e,Nh(e)}function Nh(e,i,l){for(var u=(e.mode&1)!==0;W!==null;){var d=W,f=d.child;if(d.tag===22&&u){var p=d.memoizedState!==null||dl;if(!p){var v=d.alternate,_=v!==null&&v.memoizedState!==null||mt;v=dl;var E=mt;if(dl=p,(mt=_)&&!E)for(W=d;W!==null;)p=W,_=p.child,p.tag===22&&p.memoizedState!==null?Dh(d):_!==null?(_.return=p,W=_):Dh(d);for(;f!==null;)W=f,Nh(f),f=f.sibling;W=d,dl=v,mt=E}Oh(e)}else(d.subtreeFlags&8772)!==0&&f!==null?(f.return=d,W=f):Oh(e)}}function Oh(e){for(;W!==null;){var i=W;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:mt||fl(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!mt)if(l===null)u.componentDidMount();else{var d=i.elementType===i.type?l.memoizedProps:en(i.type,l.memoizedProps);u.componentDidUpdate(d,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var f=i.updateQueue;f!==null&&Ug(i,f,u);break;case 3:var p=i.updateQueue;if(p!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Ug(i,p,l)}break;case 5:var v=i.stateNode;if(l===null&&i.flags&4){l=v;var _=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":_.autoFocus&&l.focus();break;case"img":_.src&&(l.src=_.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var E=i.alternate;if(E!==null){var D=E.memoizedState;if(D!==null){var L=D.dehydrated;L!==null&&Di(L)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}mt||i.flags&512&&jc(i)}catch(O){He(i,i.return,O)}}if(i===e){W=null;break}if(l=i.sibling,l!==null){l.return=i.return,W=l;break}W=i.return}}function Uh(e){for(;W!==null;){var i=W;if(i===e){W=null;break}var l=i.sibling;if(l!==null){l.return=i.return,W=l;break}W=i.return}}function Dh(e){for(;W!==null;){var i=W;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{fl(4,i)}catch(_){He(i,l,_)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var d=i.return;try{u.componentDidMount()}catch(_){He(i,d,_)}}var f=i.return;try{jc(i)}catch(_){He(i,f,_)}break;case 5:var p=i.return;try{jc(i)}catch(_){He(i,p,_)}}}catch(_){He(i,i.return,_)}if(i===e){W=null;break}var v=i.sibling;if(v!==null){v.return=i.return,W=v;break}W=i.return}}var ab=Math.ceil,ml=Y.ReactCurrentDispatcher,Nc=Y.ReactCurrentOwner,Jt=Y.ReactCurrentBatchConfig,_e=0,tt=null,Be=null,ot=0,Ut=0,Wr=Rn(0),Ge=0,io=null,lr=0,pl=0,Oc=0,oo=null,xt=null,Uc=0,Br=1/0,bn=null,gl=!1,Dc=null,qn=null,hl=!1,Hn=null,vl=0,ao=0,Cc=null,yl=-1,_l=0;function ht(){return(_e&6)!==0?Je():yl!==-1?yl:yl=Je()}function Jn(e){return(e.mode&1)===0?1:(_e&2)!==0&&ot!==0?ot&-ot:qw.transition!==null?(_l===0&&(_l=Tp()),_l):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Rp(e.type)),e)}function rn(e,i,l,u){if(50<ao)throw ao=0,Cc=null,Error(o(185));Ei(e,l,u),((_e&2)===0||e!==tt)&&(e===tt&&((_e&2)===0&&(pl|=l),Ge===4&&Vn(e,ot)),It(e,u),l===1&&_e===0&&(i.mode&1)===0&&(Br=Je()+500,Wa&&Zn()))}function It(e,i){var l=e.callbackNode;qS(e,i);var u=Ta(e,e===tt?ot:0);if(u===0)l!==null&&xp(l),e.callbackNode=null,e.callbackPriority=0;else if(i=u&-u,e.callbackPriority!==i){if(l!=null&&xp(l),i===1)e.tag===0?Fw(Rh.bind(null,e)):Sg(Rh.bind(null,e)),Lw(function(){(_e&6)===0&&Zn()}),l=null;else{switch(jp(u)){case 1:l=gu;break;case 4:l=Ip;break;case 16:l=ba;break;case 536870912:l=zp;break;default:l=ba}l=Jh(l,Ch.bind(null,e))}e.callbackPriority=i,e.callbackNode=l}}function Ch(e,i){if(yl=-1,_l=0,(_e&6)!==0)throw Error(o(327));var l=e.callbackNode;if(Kr()&&e.callbackNode!==l)return null;var u=Ta(e,e===tt?ot:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||i)i=$l(e,u);else{i=u;var d=_e;_e|=2;var f=Zh();(tt!==e||ot!==i)&&(bn=null,Br=Je()+500,ur(e,i));do try{ub();break}catch(v){Lh(e,v)}while(!0);ec(),ml.current=f,_e=d,Be!==null?i=0:(tt=null,ot=0,i=Ge)}if(i!==0){if(i===2&&(d=hu(e),d!==0&&(u=d,i=Rc(e,d))),i===1)throw l=io,ur(e,0),Vn(e,u),It(e,Je()),l;if(i===6)Vn(e,u);else{if(d=e.current.alternate,(u&30)===0&&!lb(d)&&(i=$l(e,u),i===2&&(f=hu(e),f!==0&&(u=f,i=Rc(e,f))),i===1))throw l=io,ur(e,0),Vn(e,u),It(e,Je()),l;switch(e.finishedWork=d,e.finishedLanes=u,i){case 0:case 1:throw Error(o(345));case 2:cr(e,xt,bn);break;case 3:if(Vn(e,u),(u&130023424)===u&&(i=Uc+500-Je(),10<i)){if(Ta(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){ht(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=qu(cr.bind(null,e,xt,bn),i);break}cr(e,xt,bn);break;case 4:if(Vn(e,u),(u&4194240)===u)break;for(i=e.eventTimes,d=-1;0<u;){var p=31-Qt(u);f=1<<p,p=i[p],p>d&&(d=p),u&=~f}if(u=d,u=Je()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*ab(u/1960))-u,10<u){e.timeoutHandle=qu(cr.bind(null,e,xt,bn),u);break}cr(e,xt,bn);break;case 5:cr(e,xt,bn);break;default:throw Error(o(329))}}}return It(e,Je()),e.callbackNode===l?Ch.bind(null,e):null}function Rc(e,i){var l=oo;return e.current.memoizedState.isDehydrated&&(ur(e,i).flags|=256),e=$l(e,i),e!==2&&(i=xt,xt=l,i!==null&&Lc(i)),e}function Lc(e){xt===null?xt=e:xt.push.apply(xt,e)}function lb(e){for(var i=e;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var d=l[u],f=d.getSnapshot;d=d.value;try{if(!Xt(f(),d))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Vn(e,i){for(i&=~Oc,i&=~pl,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var l=31-Qt(i),u=1<<l;e[l]=-1,i&=~u}}function Rh(e){if((_e&6)!==0)throw Error(o(327));Kr();var i=Ta(e,0);if((i&1)===0)return It(e,Je()),null;var l=$l(e,i);if(e.tag!==0&&l===2){var u=hu(e);u!==0&&(i=u,l=Rc(e,u))}if(l===1)throw l=io,ur(e,0),Vn(e,i),It(e,Je()),l;if(l===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,cr(e,xt,bn),It(e,Je()),null}function Zc(e,i){var l=_e;_e|=1;try{return e(i)}finally{_e=l,_e===0&&(Br=Je()+500,Wa&&Zn())}}function sr(e){Hn!==null&&Hn.tag===0&&(_e&6)===0&&Kr();var i=_e;_e|=1;var l=Jt.transition,u=ze;try{if(Jt.transition=null,ze=1,e)return e()}finally{ze=u,Jt.transition=l,_e=i,(_e&6)===0&&Zn()}}function Ac(){Ut=Wr.current,Ce(Wr)}function ur(e,i){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Rw(l)),Be!==null)for(l=Be.return;l!==null;){var u=l;switch(Ku(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ja();break;case 3:Hr(),Ce(St),Ce(ct),sc();break;case 5:ac(u);break;case 4:Hr();break;case 13:Ce(Me);break;case 19:Ce(Me);break;case 10:tc(u.type._context);break;case 22:case 23:Ac()}l=l.return}if(tt=e,Be=e=Wn(e.current,null),ot=Ut=i,Ge=0,io=null,Oc=pl=lr=0,xt=oo=null,ir!==null){for(i=0;i<ir.length;i++)if(l=ir[i],u=l.interleaved,u!==null){l.interleaved=null;var d=u.next,f=l.pending;if(f!==null){var p=f.next;f.next=d,u.next=p}l.pending=u}ir=null}return e}function Lh(e,i){do{var l=Be;try{if(ec(),rl.current=ll,il){for(var u=Fe.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}il=!1}if(ar=0,et=Ke=Fe=null,Xi=!1,Yi=0,Nc.current=null,l===null||l.return===null){Ge=1,io=i,Be=null;break}e:{var f=e,p=l.return,v=l,_=i;if(i=ot,v.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var E=_,D=v,L=D.tag;if((D.mode&1)===0&&(L===0||L===11||L===15)){var O=D.alternate;O?(D.updateQueue=O.updateQueue,D.memoizedState=O.memoizedState,D.lanes=O.lanes):(D.updateQueue=null,D.memoizedState=null)}var J=uh(p);if(J!==null){J.flags&=-257,ch(J,p,v,f,i),J.mode&1&&sh(f,E,i),i=J,_=E;var G=i.updateQueue;if(G===null){var Q=new Set;Q.add(_),i.updateQueue=Q}else G.add(_);break e}else{if((i&1)===0){sh(f,E,i),Mc();break e}_=Error(o(426))}}else if(Ze&&v.mode&1){var Ve=uh(p);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),ch(Ve,p,v,f,i),Xu(Jr(_,v));break e}}f=_=Jr(_,v),Ge!==4&&(Ge=2),oo===null?oo=[f]:oo.push(f),f=p;do{switch(f.tag){case 3:f.flags|=65536,i&=-i,f.lanes|=i;var b=ah(f,_,i);Og(f,b);break e;case 1:v=_;var $=f.type,z=f.stateNode;if((f.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(qn===null||!qn.has(z)))){f.flags|=65536,i&=-i,f.lanes|=i;var A=lh(f,v,i);Og(f,A);break e}}f=f.return}while(f!==null)}Mh(l)}catch(X){i=X,Be===l&&l!==null&&(Be=l=l.return);continue}break}while(!0)}function Zh(){var e=ml.current;return ml.current=ll,e===null?ll:e}function Mc(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),tt===null||(lr&268435455)===0&&(pl&268435455)===0||Vn(tt,ot)}function $l(e,i){var l=_e;_e|=2;var u=Zh();(tt!==e||ot!==i)&&(bn=null,ur(e,i));do try{sb();break}catch(d){Lh(e,d)}while(!0);if(ec(),_e=l,ml.current=u,Be!==null)throw Error(o(261));return tt=null,ot=0,Ge}function sb(){for(;Be!==null;)Ah(Be)}function ub(){for(;Be!==null&&!US();)Ah(Be)}function Ah(e){var i=Hh(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,i===null?Mh(e):Be=i,Nc.current=null}function Mh(e){var i=e;do{var l=i.alternate;if(e=i.return,(i.flags&32768)===0){if(l=tb(l,i,Ut),l!==null){Be=l;return}}else{if(l=nb(l,i),l!==null){l.flags&=32767,Be=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Be=null;return}}if(i=i.sibling,i!==null){Be=i;return}Be=i=e}while(i!==null);Ge===0&&(Ge=5)}function cr(e,i,l){var u=ze,d=Jt.transition;try{Jt.transition=null,ze=1,cb(e,i,l,u)}finally{Jt.transition=d,ze=u}return null}function cb(e,i,l,u){do Kr();while(Hn!==null);if((_e&6)!==0)throw Error(o(327));l=e.finishedWork;var d=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=l.lanes|l.childLanes;if(HS(e,f),e===tt&&(Be=tt=null,ot=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||hl||(hl=!0,Jh(ba,function(){return Kr(),null})),f=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||f){f=Jt.transition,Jt.transition=null;var p=ze;ze=1;var v=_e;_e|=4,Nc.current=null,ib(e,l),Ph(l,e),Ew(Mu),Pa=!!Au,Mu=Au=null,e.current=l,ob(l),DS(),_e=v,ze=p,Jt.transition=f}else e.current=l;if(hl&&(hl=!1,Hn=e,vl=d),f=e.pendingLanes,f===0&&(qn=null),LS(l.stateNode),It(e,Je()),i!==null)for(u=e.onRecoverableError,l=0;l<i.length;l++)d=i[l],u(d.value,{componentStack:d.stack,digest:d.digest});if(gl)throw gl=!1,e=Dc,Dc=null,e;return(vl&1)!==0&&e.tag!==0&&Kr(),f=e.pendingLanes,(f&1)!==0?e===Cc?ao++:(ao=0,Cc=e):ao=0,Zn(),null}function Kr(){if(Hn!==null){var e=jp(vl),i=Jt.transition,l=ze;try{if(Jt.transition=null,ze=16>e?16:e,Hn===null)var u=!1;else{if(e=Hn,Hn=null,vl=0,(_e&6)!==0)throw Error(o(331));var d=_e;for(_e|=4,W=e.current;W!==null;){var f=W,p=f.child;if((W.flags&16)!==0){var v=f.deletions;if(v!==null){for(var _=0;_<v.length;_++){var E=v[_];for(W=E;W!==null;){var D=W;switch(D.tag){case 0:case 11:case 15:ro(8,D,f)}var L=D.child;if(L!==null)L.return=D,W=L;else for(;W!==null;){D=W;var O=D.sibling,J=D.return;if(Ih(D),D===E){W=null;break}if(O!==null){O.return=J,W=O;break}W=J}}}var G=f.alternate;if(G!==null){var Q=G.child;if(Q!==null){G.child=null;do{var Ve=Q.sibling;Q.sibling=null,Q=Ve}while(Q!==null)}}W=f}}if((f.subtreeFlags&2064)!==0&&p!==null)p.return=f,W=p;else e:for(;W!==null;){if(f=W,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:ro(9,f,f.return)}var b=f.sibling;if(b!==null){b.return=f.return,W=b;break e}W=f.return}}var $=e.current;for(W=$;W!==null;){p=W;var z=p.child;if((p.subtreeFlags&2064)!==0&&z!==null)z.return=p,W=z;else e:for(p=$;W!==null;){if(v=W,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:fl(9,v)}}catch(X){He(v,v.return,X)}if(v===p){W=null;break e}var A=v.sibling;if(A!==null){A.return=v.return,W=A;break e}W=v.return}}if(_e=d,Zn(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(xa,e)}catch{}u=!0}return u}finally{ze=l,Jt.transition=i}}return!1}function Fh(e,i,l){i=Jr(l,i),i=ah(e,i,1),e=Mn(e,i,1),i=ht(),e!==null&&(Ei(e,1,i),It(e,i))}function He(e,i,l){if(e.tag===3)Fh(e,e,l);else for(;i!==null;){if(i.tag===3){Fh(i,e,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qn===null||!qn.has(u))){e=Jr(l,e),e=lh(i,e,1),i=Mn(i,e,1),e=ht(),i!==null&&(Ei(i,1,e),It(i,e));break}}i=i.return}}function db(e,i,l){var u=e.pingCache;u!==null&&u.delete(i),i=ht(),e.pingedLanes|=e.suspendedLanes&l,tt===e&&(ot&l)===l&&(Ge===4||Ge===3&&(ot&130023424)===ot&&500>Je()-Uc?ur(e,0):Oc|=l),It(e,i)}function qh(e,i){i===0&&((e.mode&1)===0?i=1:(i=za,za<<=1,(za&130023424)===0&&(za=4194304)));var l=ht();e=kn(e,i),e!==null&&(Ei(e,i,l),It(e,l))}function fb(e){var i=e.memoizedState,l=0;i!==null&&(l=i.retryLane),qh(e,l)}function mb(e,i){var l=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(o(314))}u!==null&&u.delete(i),qh(e,l)}var Hh;Hh=function(e,i,l){if(e!==null)if(e.memoizedProps!==i.pendingProps||St.current)bt=!0;else{if((e.lanes&l)===0&&(i.flags&128)===0)return bt=!1,eb(e,i,l);bt=(e.flags&131072)!==0}else bt=!1,Ze&&(i.flags&1048576)!==0&&wg(i,Ka,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;cl(e,i),e=i.pendingProps;var d=Rr(i,ct.current);qr(i,l),d=dc(null,i,u,e,d,l);var f=fc();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,wt(u)?(f=!0,Va(i)):f=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,ic(i),d.updater=sl,i.stateNode=d,d._reactInternals=i,yc(i,u,e,l),i=Sc(null,i,u,!0,f,l)):(i.tag=0,Ze&&f&&Bu(i),gt(null,i,d,l),i=i.child),i;case 16:u=i.elementType;e:{switch(cl(e,i),e=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=gb(u),e=en(u,e),d){case 0:i=kc(null,i,u,e,l);break e;case 1:i=hh(null,i,u,e,l);break e;case 11:i=dh(null,i,u,e,l);break e;case 14:i=fh(null,i,u,en(u.type,e),l);break e}throw Error(o(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),kc(e,i,u,d,l);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),hh(e,i,u,d,l);case 3:e:{if(vh(i),e===null)throw Error(o(387));u=i.pendingProps,f=i.memoizedState,d=f.element,Ng(e,i),tl(i,u,null,l);var p=i.memoizedState;if(u=p.element,f.isDehydrated)if(f={element:u,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){d=Jr(Error(o(423)),i),i=yh(e,i,u,l,d);break e}else if(u!==d){d=Jr(Error(o(424)),i),i=yh(e,i,u,l,d);break e}else for(Ot=Cn(i.stateNode.containerInfo.firstChild),Nt=i,Ze=!0,Yt=null,l=Eg(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ar(),u===d){i=wn(e,i,l);break e}gt(e,i,u,l)}i=i.child}return i;case 5:return Dg(i),e===null&&Qu(i),u=i.type,d=i.pendingProps,f=e!==null?e.memoizedProps:null,p=d.children,Fu(u,d)?p=null:f!==null&&Fu(u,f)&&(i.flags|=32),gh(e,i),gt(e,i,p,l),i.child;case 6:return e===null&&Qu(i),null;case 13:return _h(e,i,l);case 4:return oc(i,i.stateNode.containerInfo),u=i.pendingProps,e===null?i.child=Mr(i,null,u,l):gt(e,i,u,l),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),dh(e,i,u,d,l);case 7:return gt(e,i,i.pendingProps,l),i.child;case 8:return gt(e,i,i.pendingProps.children,l),i.child;case 12:return gt(e,i,i.pendingProps.children,l),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,f=i.memoizedProps,p=d.value,Ue(Xa,u._currentValue),u._currentValue=p,f!==null)if(Xt(f.value,p)){if(f.children===d.children&&!St.current){i=wn(e,i,l);break e}}else for(f=i.child,f!==null&&(f.return=i);f!==null;){var v=f.dependencies;if(v!==null){p=f.child;for(var _=v.firstContext;_!==null;){if(_.context===u){if(f.tag===1){_=Sn(-1,l&-l),_.tag=2;var E=f.updateQueue;if(E!==null){E=E.shared;var D=E.pending;D===null?_.next=_:(_.next=D.next,D.next=_),E.pending=_}}f.lanes|=l,_=f.alternate,_!==null&&(_.lanes|=l),nc(f.return,l,i),v.lanes|=l;break}_=_.next}}else if(f.tag===10)p=f.type===i.type?null:f.child;else if(f.tag===18){if(p=f.return,p===null)throw Error(o(341));p.lanes|=l,v=p.alternate,v!==null&&(v.lanes|=l),nc(p,l,i),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===i){p=null;break}if(f=p.sibling,f!==null){f.return=p.return,p=f;break}p=p.return}f=p}gt(e,i,d.children,l),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,qr(i,l),d=qt(d),u=u(d),i.flags|=1,gt(e,i,u,l),i.child;case 14:return u=i.type,d=en(u,i.pendingProps),d=en(u.type,d),fh(e,i,u,d,l);case 15:return mh(e,i,i.type,i.pendingProps,l);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:en(u,d),cl(e,i),i.tag=1,wt(u)?(e=!0,Va(i)):e=!1,qr(i,l),ih(i,u,d),yc(i,u,d,l),Sc(null,i,u,!0,e,l);case 19:return kh(e,i,l);case 22:return ph(e,i,l)}throw Error(o(156,i.tag))};function Jh(e,i){return bp(e,i)}function pb(e,i,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,i,l,u){return new pb(e,i,l,u)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gb(e){if(typeof e=="function")return Fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ln)return 11;if(e===sn)return 14}return 2}function Wn(e,i){var l=e.alternate;return l===null?(l=Vt(e.tag,i,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=i,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,i=e.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function kl(e,i,l,u,d,f){var p=2;if(u=e,typeof e=="function")Fc(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case rt:return dr(l.children,d,f,i);case $t:p=8,d|=8;break;case jn:return e=Vt(12,l,i,d|2),e.elementType=jn,e.lanes=f,e;case jt:return e=Vt(13,l,i,d),e.elementType=jt,e.lanes=f,e;case Gt:return e=Vt(19,l,i,d),e.elementType=Gt,e.lanes=f,e;case qe:return Sl(l,d,f,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hn:p=10;break e;case Xn:p=9;break e;case ln:p=11;break e;case sn:p=14;break e;case kt:p=16,u=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return i=Vt(p,l,i,d),i.elementType=e,i.type=u,i.lanes=f,i}function dr(e,i,l,u){return e=Vt(7,e,u,i),e.lanes=l,e}function Sl(e,i,l,u){return e=Vt(22,e,u,i),e.elementType=qe,e.lanes=l,e.stateNode={isHidden:!1},e}function qc(e,i,l){return e=Vt(6,e,null,i),e.lanes=l,e}function Hc(e,i,l){return i=Vt(4,e.children!==null?e.children:[],e.key,i),i.lanes=l,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function hb(e,i,l,u,d){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vu(0),this.expirationTimes=vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Jc(e,i,l,u,d,f,p,v,_){return e=new hb(e,i,l,v,_),i===1?(i=1,f===!0&&(i|=8)):i=0,f=Vt(3,null,null,i),e.current=f,f.stateNode=e,f.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ic(f),e}function vb(e,i,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ye,key:u==null?null:""+u,children:e,containerInfo:i,implementation:l}}function Vh(e){if(!e)return Ln;e=e._reactInternals;e:{if(Yn(e)!==e||e.tag!==1)throw Error(o(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(wt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(o(171))}if(e.tag===1){var l=e.type;if(wt(l))return $g(e,l,i)}return i}function Wh(e,i,l,u,d,f,p,v,_){return e=Jc(l,u,!0,e,d,f,p,v,_),e.context=Vh(null),l=e.current,u=ht(),d=Jn(l),f=Sn(u,d),f.callback=i??null,Mn(l,f,d),e.current.lanes=d,Ei(e,d,u),It(e,u),e}function wl(e,i,l,u){var d=i.current,f=ht(),p=Jn(d);return l=Vh(l),i.context===null?i.context=l:i.pendingContext=l,i=Sn(f,p),i.payload={element:e},u=u===void 0?null:u,u!==null&&(i.callback=u),e=Mn(d,i,p),e!==null&&(rn(e,d,p,f),el(e,d,p)),p}function bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Bh(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<i?l:i}}function Vc(e,i){Bh(e,i),(e=e.alternate)&&Bh(e,i)}function yb(){return null}var Kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}xl.prototype.render=Wc.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(o(409));wl(e,i,null,null)},xl.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;sr(function(){wl(null,e,null,null)}),i[vn]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var i=Np();e={blockedOn:null,target:e,priority:i};for(var l=0;l<On.length&&i!==0&&i<On[l].priority;l++);On.splice(l,0,e),l===0&&Dp(e)}};function Bc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Il(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function _b(e,i,l,u,d){if(d){if(typeof u=="function"){var f=u;u=function(){var E=bl(p);f.call(E)}}var p=Wh(i,u,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=p,e[vn]=p.current,Hi(e.nodeType===8?e.parentNode:e),sr(),p}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var v=u;u=function(){var E=bl(_);v.call(E)}}var _=Jc(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=_,e[vn]=_.current,Hi(e.nodeType===8?e.parentNode:e),sr(function(){wl(i,_,l,u)}),_}function zl(e,i,l,u,d){var f=l._reactRootContainer;if(f){var p=f;if(typeof d=="function"){var v=d;d=function(){var _=bl(p);v.call(_)}}wl(i,p,e,d)}else p=_b(l,i,e,d,u);return bl(p)}Ep=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var l=ji(i.pendingLanes);l!==0&&(yu(i,l|1),It(i,Je()),(_e&6)===0&&(Br=Je()+500,Zn()))}break;case 13:sr(function(){var u=kn(e,1);if(u!==null){var d=ht();rn(u,e,1,d)}}),Vc(e,1)}},_u=function(e){if(e.tag===13){var i=kn(e,134217728);if(i!==null){var l=ht();rn(i,e,134217728,l)}Vc(e,134217728)}},Pp=function(e){if(e.tag===13){var i=Jn(e),l=kn(e,i);if(l!==null){var u=ht();rn(l,e,i,u)}Vc(e,i)}},Np=function(){return ze},Op=function(e,i){var l=ze;try{return ze=e,i()}finally{ze=l}},du=function(e,i,l){switch(i){case"input":if(ru(e,l),i=l.name,l.type==="radio"&&i!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==e&&u.form===e.form){var d=Ha(u);if(!d)throw Error(o(90));rp(u),ru(u,d)}}}break;case"textarea":sp(e,l);break;case"select":i=l.value,i!=null&&xr(e,!!l.multiple,i,!1)}},vp=Zc,yp=sr;var $b={usingClientEntryPoint:!1,Events:[Wi,Dr,Ha,gp,hp,Zc]},lo={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kb={bundleType:lo.bundleType,version:lo.version,rendererPackageName:lo.rendererPackageName,rendererConfig:lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sp(e),e===null?null:e.stateNode},findFiberByHostInstance:lo.findFiberByHostInstance||yb,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 Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{xa=Tl.inject(kb),un=Tl}catch{}}return zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$b,zt.createPortal=function(e,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bc(i))throw Error(o(200));return vb(e,i,null,l)},zt.createRoot=function(e,i){if(!Bc(e))throw Error(o(299));var l=!1,u="",d=Kh;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),i=Jc(e,1,!1,null,null,l,!1,u,d),e[vn]=i.current,Hi(e.nodeType===8?e.parentNode:e),new Wc(i)},zt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Sp(i),e=e===null?null:e.stateNode,e},zt.flushSync=function(e){return sr(e)},zt.hydrate=function(e,i,l){if(!Il(i))throw Error(o(200));return zl(null,e,i,!0,l)},zt.hydrateRoot=function(e,i,l){if(!Bc(e))throw Error(o(405));var u=l!=null&&l.hydratedSources||null,d=!1,f="",p=Kh;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onRecoverableError!==void 0&&(p=l.onRecoverableError)),i=Wh(i,null,e,1,l??null,d,!1,f,p),e[vn]=i.current,Hi(e),u)for(e=0;e<u.length;e++)l=u[e],d=l._getVersion,d=d(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,d]:i.mutableSourceEagerHydrationData.push(l,d);return new xl(i)},zt.render=function(e,i,l){if(!Il(i))throw Error(o(200));return zl(null,e,i,!1,l)},zt.unmountComponentAtNode=function(e){if(!Il(e))throw Error(o(40));return e._reactRootContainer?(sr(function(){zl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1},zt.unstable_batchedUpdates=Zc,zt.unstable_renderSubtreeIntoContainer=function(e,i,l,u){if(!Il(l))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return zl(e,i,l,!1,u)},zt.version="18.3.1-next-f1338f8080-20240426",zt}var iv;function jb(){if(iv)return Qc.exports;iv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Qc.exports=Tb(),Qc.exports}var ov;function Eb(){if(ov)return jl;ov=1;var n=jb();return jl.createRoot=n.createRoot,jl.hydrateRoot=n.hydrateRoot,jl}var Pb=Eb(),Re=sd();const Nb="modulepreload",Ob=function(n,r){return new URL(n,r).href},av={},Ub=function(r,o,s){let t=Promise.resolve();if(o&&o.length>0){let c=function(y){return Promise.all(y.map(k=>Promise.resolve(k).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};const m=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),h=g?.nonce||g?.getAttribute("nonce");t=c(o.map(y=>{if(y=Ob(y,s),y in av)return;av[y]=!0;const k=y.endsWith(".css"),T=k?'[rel="stylesheet"]':"";if(!!s)for(let B=m.length-1;B>=0;B--){const V=m[B];if(V.href===y&&(!k||V.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${T}`))return;const Z=document.createElement("link");if(Z.rel=k?"stylesheet":Nb,k||(Z.as="script"),Z.crossOrigin="",Z.href=y,h&&Z.setAttribute("nonce",h),document.head.appendChild(Z),k)return new Promise((B,V)=>{Z.addEventListener("load",B),Z.addEventListener("error",()=>V(new Error(`Unable to preload CSS for ${y}`)))})}))}function a(c){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=c,window.dispatchEvent(m),!m.defaultPrevented)throw c}return t.then(c=>{for(const m of c||[])m.status==="rejected"&&a(m.reason);return r().catch(a)})};var lv;const ud=Object.freeze({status:"aborted"});function S(n,r,o){function s(m,g){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:g,constr:c,traits:new Set},enumerable:!1}),m._zod.traits.has(n))return;m._zod.traits.add(n),r(m,g);const h=c.prototype,y=Object.keys(h);for(let k=0;k<y.length;k++){const T=y[k];T in m||(m[T]=h[T].bind(m))}}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:n});function c(m){var g;const h=o?.Parent?new a:this;s(h,m),(g=h._zod).deferred??(g.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:m=>o?.Parent&&m instanceof o.Parent?!0:m?._zod?.traits?.has(n)}),Object.defineProperty(c,"name",{value:n}),c}const cd=Symbol("zod_brand");class hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Hl extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}(lv=globalThis).__zod_globalConfig??(lv.__zod_globalConfig={});const fo=globalThis.__zod_globalConfig;function Xe(n){return n&&Object.assign(fo,n),fo}function Db(n){return n}function Cb(n){return n}function Rb(n){}function Lb(n){throw new Error("Unexpected value in exhaustive check")}function Zb(n){}function dd(n){const r=Object.values(n).filter(s=>typeof s=="number");return Object.entries(n).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function R(n,r="|"){return n.map(o=>ee(o)).join(r)}function Rl(n,r){return typeof r=="bigint"?r.toString():r}function vo(n){return{get value(){{const r=n();return Object.defineProperty(this,"value",{value:r}),r}}}}function Sr(n){return n==null}function Jl(n){const r=n.startsWith("^")?1:0,o=n.endsWith("$")?n.length-1:n.length;return n.slice(r,o)}function qv(n,r){const o=n/r,s=Math.round(o),t=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-s)<t?0:o-s}const sv=Symbol("evaluating");function me(n,r,o){let s;Object.defineProperty(n,r,{get(){if(s!==sv)return s===void 0&&(s=sv,s=o()),s},set(t){Object.defineProperty(n,r,{value:t})},configurable:!0})}function Ab(n){return Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n))}function Gn(n,r,o){Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function pn(...n){const r={};for(const o of n){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Mb(n){return pn(n._zod.def)}function Fb(n,r){return r?r.reduce((o,s)=>o?.[s],n):n}function qb(n){const r=Object.keys(n),o=r.map(s=>n[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function Hb(n=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<n;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function nd(n){return JSON.stringify(n)}function Hv(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const fd="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Qr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const Jv=vo(()=>{if(fo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function vr(n){if(Qr(n)===!1)return!1;const r=n.constructor;if(r===void 0||typeof r!="function")return!0;const o=r.prototype;return!(Qr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Vl(n){return vr(n)?{...n}:Array.isArray(n)?[...n]:n instanceof Map?new Map(n):n instanceof Set?new Set(n):n}function Jb(n){let r=0;for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&r++;return r}const Vb=n=>{const r=typeof n;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(n)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(n)?"array":n===null?"null":n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?"promise":typeof Map<"u"&&n instanceof Map?"map":typeof Set<"u"&&n instanceof Set?"set":typeof Date<"u"&&n instanceof Date?"date":typeof File<"u"&&n instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Ll=new Set(["string","number","symbol"]),Vv=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xn(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Lt(n,r,o){const s=new n._zod.constr(r??n._zod.def);return(!r||o?.parent)&&(s._zod.parent=n),s}function N(n){const r=n;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Wb(n){let r;return new Proxy({},{get(o,s,t){return r??(r=n()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=n()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=n()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=n()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=n()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=n()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=n()),Reflect.defineProperty(r,s,t)}})}function ee(n){return typeof n=="bigint"?n.toString()+"n":typeof n=="string"?`"${n}"`:`${n}`}function Wv(n){return Object.keys(n).filter(r=>n[r]._zod.optin==="optional"&&n[r]._zod.optout==="optional")}const Bv={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]},Kv={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Gv(n,r){const o=n._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=pn(n._zod.def,{get shape(){const c={};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&(c[m]=o.shape[m])}return Gn(this,"shape",c),c},checks:[]});return Lt(n,a)}function Qv(n,r){const o=n._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=pn(n._zod.def,{get shape(){const c={...n._zod.def.shape};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&delete c[m]}return Gn(this,"shape",c),c},checks:[]});return Lt(n,a)}function Xv(n,r){if(!vr(r))throw new Error("Invalid input to extend: expected a plain object");const o=n._zod.def.checks;if(o&&o.length>0){const a=n._zod.def.shape;for(const c in r)if(Object.getOwnPropertyDescriptor(a,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const t=pn(n._zod.def,{get shape(){const a={...n._zod.def.shape,...r};return Gn(this,"shape",a),a}});return Lt(n,t)}function Yv(n,r){if(!vr(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o=pn(n._zod.def,{get shape(){const s={...n._zod.def.shape,...r};return Gn(this,"shape",s),s}});return Lt(n,o)}function ey(n,r){if(n._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=pn(n._zod.def,{get shape(){const s={...n._zod.def.shape,...r._zod.def.shape};return Gn(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return Lt(n,o)}function ty(n,r,o){const t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=pn(r._zod.def,{get shape(){const m=r._zod.def.shape,g={...m};if(o)for(const h in o){if(!(h in m))throw new Error(`Unrecognized key: "${h}"`);o[h]&&(g[h]=n?new n({type:"optional",innerType:m[h]}):m[h])}else for(const h in m)g[h]=n?new n({type:"optional",innerType:m[h]}):m[h];return Gn(this,"shape",g),g},checks:[]});return Lt(r,c)}function ny(n,r,o){const s=pn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const c in o){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);o[c]&&(a[c]=new n({type:"nonoptional",innerType:t[c]}))}else for(const c in t)a[c]=new n({type:"nonoptional",innerType:t[c]});return Gn(this,"shape",a),a}});return Lt(r,s)}function gr(n,r=0){if(n.aborted===!0)return!0;for(let o=r;o<n.issues.length;o++)if(n.issues[o]?.continue!==!0)return!0;return!1}function ry(n,r=0){if(n.aborted===!0)return!0;for(let o=r;o<n.issues.length;o++)if(n.issues[o]?.continue===!1)return!0;return!1}function Wt(n,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(n),o})}function co(n){return typeof n=="string"?n:n?.message}function Rt(n,r,o){const s=n.message?n.message:co(n.inst?._zod.def?.error?.(n))??co(r?.error?.(n))??co(o.customError?.(n))??co(o.localeError?.(n))??"Invalid input",{inst:t,continue:a,input:c,...m}=n;return m.path??(m.path=[]),m.message=s,r?.reportInput&&(m.input=c),m}function Wl(n){return n instanceof Set?"set":n instanceof Map?"map":n instanceof File?"file":"unknown"}function Bl(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function re(n){const r=typeof n;switch(r){case"number":return Number.isNaN(n)?"nan":"number";case"object":{if(n===null)return"null";if(Array.isArray(n))return"array";const o=n;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function Xr(...n){const[r,o,s]=n;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function Bb(n){return Object.entries(n).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function iy(n){const r=atob(n),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function oy(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}function Kb(n){const r=n.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return iy(r+o)}function Gb(n){return oy(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Qb(n){const r=n.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function Xb(n){return Array.from(n).map(r=>r.toString(16).padStart(2,"0")).join("")}class Yb{constructor(...r){}}const md=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Kv,Class:Yb,NUMBER_FORMAT_RANGES:Bv,aborted:gr,allowsEval:Jv,assert:Zb,assertEqual:Db,assertIs:Rb,assertNever:Lb,assertNotEqual:Cb,assignProp:Gn,base64ToUint8Array:iy,base64urlToUint8Array:Kb,cached:vo,captureStackTrace:fd,cleanEnum:Bb,cleanRegex:Jl,clone:Lt,cloneDef:Mb,createTransparentProxy:Wb,defineLazy:me,esc:nd,escapeRegex:xn,explicitlyAborted:ry,extend:Xv,finalizeIssue:Rt,floatSafeRemainder:qv,getElementAtPath:Fb,getEnumValues:dd,getLengthableOrigin:Bl,getParsedType:Vb,getSizableOrigin:Wl,hexToUint8Array:Qb,isObject:Qr,isPlainObject:vr,issue:Xr,joinValues:R,jsonStringifyReplacer:Rl,merge:ey,mergeDefs:pn,normalizeParams:N,nullish:Sr,numKeys:Jb,objectClone:Ab,omit:Qv,optionalKeys:Wv,parsedType:re,partial:ty,pick:Gv,prefixIssues:Wt,primitiveTypes:Vv,promiseAllObject:qb,propertyKeyTypes:Ll,randomString:Hb,required:ny,safeExtend:Yv,shallowClone:Vl,slugify:Hv,stringifyPrimitive:ee,uint8ArrayToBase64:oy,uint8ArrayToBase64url:Gb,uint8ArrayToHex:Xb,unwrapMessage:co},Symbol.toStringTag,{value:"Module"})),ay=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),n.message=JSON.stringify(r,Rl,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},pd=S("$ZodError",ay),Zt=S("$ZodError",ay,{Parent:Error});function Kl(n,r=o=>o.message){const o={},s=[];for(const t of n.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function Gl(n,r=o=>o.message){const o={_errors:[]},s=(t,a=[])=>{for(const c of t.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(m=>s({issues:m},[...a,...c.path]));else if(c.code==="invalid_key")s({issues:c.issues},[...a,...c.path]);else if(c.code==="invalid_element")s({issues:c.issues},[...a,...c.path]);else{const m=[...a,...c.path];if(m.length===0)o._errors.push(r(c));else{let g=o,h=0;for(;h<m.length;){const y=m[h];h===m.length-1?(g[y]=g[y]||{_errors:[]},g[y]._errors.push(r(c))):g[y]=g[y]||{_errors:[]},g=g[y],h++}}}};return s(n),o}function gd(n,r=o=>o.message){const o={errors:[]},s=(t,a=[])=>{var c,m;for(const g of t.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(h=>s({issues:h},[...a,...g.path]));else if(g.code==="invalid_key")s({issues:g.issues},[...a,...g.path]);else if(g.code==="invalid_element")s({issues:g.issues},[...a,...g.path]);else{const h=[...a,...g.path];if(h.length===0){o.errors.push(r(g));continue}let y=o,k=0;for(;k<h.length;){const T=h[k],P=k===h.length-1;typeof T=="string"?(y.properties??(y.properties={}),(c=y.properties)[T]??(c[T]={errors:[]}),y=y.properties[T]):(y.items??(y.items=[]),(m=y.items)[T]??(m[T]={errors:[]}),y=y.items[T]),P&&y.errors.push(r(g)),k++}}};return s(n),o}function ly(n){const r=[],o=n.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function hd(n){const r=[],o=[...n.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${ly(s.path)}`);return r.join(`
47
47
  `)}const yo=n=>(r,o,s,t)=>{const a=s?{...s,async:!1}:{async:!1},c=r._zod.run({value:o,issues:[]},a);if(c instanceof Promise)throw new hr;if(c.issues.length){const m=new(t?.Err??n)(c.issues.map(g=>Rt(g,a,Xe())));throw fd(m,t?.callee),m}return c.value},rd=yo(Zt),_o=n=>async(r,o,s,t)=>{const a=s?{...s,async:!0}:{async:!0};let c=r._zod.run({value:o,issues:[]},a);if(c instanceof Promise&&(c=await c),c.issues.length){const m=new(t?.Err??n)(c.issues.map(g=>Rt(g,a,Xe())));throw fd(m,t?.callee),m}return c.value},id=_o(Zt),$o=n=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new hr;return a.issues.length?{success:!1,error:new(n??pd)(a.issues.map(c=>Rt(c,t,Xe())))}:{success:!0,data:a.value}},vd=$o(Zt),ko=n=>async(r,o,s)=>{const t=s?{...s,async:!0}:{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new n(a.issues.map(c=>Rt(c,t,Xe())))}:{success:!0,data:a.value}},sy=ko(Zt),yd=n=>(r,o,s)=>{const t=s?{...s,direction:"backward"}:{direction:"backward"};return yo(n)(r,o,t)},ex=yd(Zt),_d=n=>(r,o,s)=>yo(n)(r,o,s),tx=_d(Zt),$d=n=>async(r,o,s)=>{const t=s?{...s,direction:"backward"}:{direction:"backward"};return _o(n)(r,o,t)},nx=$d(Zt),kd=n=>async(r,o,s)=>_o(n)(r,o,s),rx=kd(Zt),Sd=n=>(r,o,s)=>{const t=s?{...s,direction:"backward"}:{direction:"backward"};return $o(n)(r,o,t)},ix=Sd(Zt),wd=n=>(r,o,s)=>$o(n)(r,o,s),ox=wd(Zt),bd=n=>async(r,o,s)=>{const t=s?{...s,direction:"backward"}:{direction:"backward"};return ko(n)(r,o,t)},ax=bd(Zt),xd=n=>async(r,o,s)=>ko(n)(r,o,s),lx=xd(Zt),uy=/^[cC][0-9a-z]{6,}$/,cy=/^[0-9a-z]+$/,dy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fy=/^[0-9a-vA-V]{20}$/,my=/^[A-Za-z0-9]{27}$/,py=/^[a-zA-Z0-9_-]{21}$/,gy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sx=/^[-+]?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)?)??$/,hy=/^([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})$/,Yr=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[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)$/,ux=Yr(4),cx=Yr(6),dx=Yr(7),vy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fx=/^[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])?)*$/,mx=/^(([^<>()\[\]\\.,;:\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,}))$/,yy=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,px=yy,gx=/^[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])?)*$/,hx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _y(){return new RegExp(hx,"u")}const $y=/^(?:(?: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])$/,ky=/^(([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}|:))$/,Sy=n=>{const r=xn(n??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},wy=/^((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])$/,by=/^(([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])$/,xy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Id=/^[A-Za-z0-9_-]*$/,Iy=/^(?=.{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])?)*\.?$/,zy=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,zd=/^https?$/,Ty=/^\+[1-9]\d{6,14}$/,jy="(?:(?:\\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])))",Ey=new RegExp(`^${jy}$`);function Py(n){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${r}`:n.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${n.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ny(n){return new RegExp(`^${Py(n)}$`)}function Oy(n){const r=Py({precision:n.precision}),o=["Z"];n.local&&o.push(""),n.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${jy}T(?:${s})$`)}const Uy=n=>{const r=n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Dy=/^-?\d+n?$/,Cy=/^-?\d+$/,Td=/^-?\d+(?:\.\d+)?$/,Ry=/^(?:true|false)$/i,Ly=/^null$/i,Zy=/^undefined$/i,Ay=/^[^A-Z]*$/,My=/^[^a-z]*$/,Fy=/^[0-9a-fA-F]*$/;function So(n,r){return new RegExp(`^[A-Za-z0-9+/]{${n}}${r}$`)}function wo(n){return new RegExp(`^[A-Za-z0-9_-]{${n}}$`)}const vx=/^[0-9a-fA-F]{32}$/,yx=So(22,"=="),_x=wo(22),$x=/^[0-9a-fA-F]{40}$/,kx=So(27,"="),Sx=wo(27),wx=/^[0-9a-fA-F]{64}$/,bx=So(43,"="),xx=wo(43),Ix=/^[0-9a-fA-F]{96}$/,zx=So(64,""),Tx=wo(64),jx=/^[0-9a-fA-F]{128}$/,Ex=So(86,"=="),Px=wo(86),Ql=Object.freeze(Object.defineProperty({__proto__:null,base64:xy,base64url:Id,bigint:Dy,boolean:Ry,browserEmail:gx,cidrv4:wy,cidrv6:by,cuid:uy,cuid2:cy,date:Ey,datetime:Oy,domain:zy,duration:gy,e164:Ty,email:vy,emoji:_y,extendedDuration:sx,guid:hy,hex:Fy,hostname:Iy,html5Email:fx,httpProtocol:zd,idnEmail:px,integer:Cy,ipv4:$y,ipv6:ky,ksuid:my,lowercase:Ay,mac:Sy,md5_base64:yx,md5_base64url:_x,md5_hex:vx,nanoid:py,null:Ly,number:Td,rfc5322Email:mx,sha1_base64:kx,sha1_base64url:Sx,sha1_hex:$x,sha256_base64:bx,sha256_base64url:xx,sha256_hex:wx,sha384_base64:zx,sha384_base64url:Tx,sha384_hex:Ix,sha512_base64:Ex,sha512_base64url:Px,sha512_hex:jx,string:Uy,time:Ny,ulid:dy,undefined:Zy,unicodeEmail:yy,uppercase:My,uuid:Yr,uuid4:ux,uuid6:cx,uuid7:dx,xid:fy},Symbol.toStringTag,{value:"Module"})),Ae=S("$ZodCheck",(n,r)=>{var o;n._zod??(n._zod={}),n._zod.def=r,(o=n._zod).onattach??(o.onattach=[])}),qy={number:"number",bigint:"bigint",object:"date"},jd=S("$ZodCheckLessThan",(n,r)=>{Ae.init(n,r);const o=qy[typeof r.value];n._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),n._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:s.value,inclusive:r.inclusive,inst:n,continue:!r.abort})}}),Ed=S("$ZodCheckGreaterThan",(n,r)=>{Ae.init(n,r);const o=qy[typeof r.value];n._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),n._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:s.value,inclusive:r.inclusive,inst:n,continue:!r.abort})}}),Hy=S("$ZodCheckMultipleOf",(n,r)=>{Ae.init(n,r),n._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),n._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):qv(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:n,continue:!r.abort})}}),Jy=S("$ZodCheckNumberFormat",(n,r)=>{Ae.init(n,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=Bv[r.format];n._zod.onattach.push(c=>{const m=c._zod.bag;m.format=r.format,m.minimum=t,m.maximum=a,o&&(m.pattern=Cy)}),n._zod.check=c=>{const m=c.value;if(o){if(!Number.isInteger(m)){c.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:m,inst:n});return}if(!Number.isSafeInteger(m)){m>0?c.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:s,inclusive:!0,continue:!r.abort}):c.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:s,inclusive:!0,continue:!r.abort});return}}m<t&&c.issues.push({origin:"number",input:m,code:"too_small",minimum:t,inclusive:!0,inst:n,continue:!r.abort}),m>a&&c.issues.push({origin:"number",input:m,code:"too_big",maximum:a,inclusive:!0,inst:n,continue:!r.abort})}}),Vy=S("$ZodCheckBigIntFormat",(n,r)=>{Ae.init(n,r);const[o,s]=Kv[r.format];n._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),n._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:n,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inclusive:!0,inst:n,continue:!r.abort})}}),Wy=S("$ZodCheckMaxSize",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.size!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),n._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Wl(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),By=S("$ZodCheckMinSize",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.size!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),n._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Wl(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),Ky=S("$ZodCheckSizeEquals",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.size!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),n._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const c=a>r.size;s.issues.push({origin:Wl(t),...c?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:n,continue:!r.abort})}}),Gy=S("$ZodCheckMaxLength",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.length!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),n._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const c=Bl(t);s.issues.push({origin:c,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),Qy=S("$ZodCheckMinLength",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.length!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),n._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const c=Bl(t);s.issues.push({origin:c,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),Xy=S("$ZodCheckLengthEquals",(n,r)=>{var o;Ae.init(n,r),(o=n._zod.def).when??(o.when=s=>{const t=s.value;return!Sr(t)&&t.length!==void 0}),n._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),n._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const c=Bl(t),m=a>r.length;s.issues.push({origin:c,...m?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:n,continue:!r.abort})}}),bo=S("$ZodCheckStringFormat",(n,r)=>{var o,s;Ae.init(n,r),n._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=n._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:n,continue:!r.abort})}):(s=n._zod).check??(s.check=()=>{})}),Yy=S("$ZodCheckRegex",(n,r)=>{bo.init(n,r),n._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:n,continue:!r.abort})}}),e_=S("$ZodCheckLowerCase",(n,r)=>{r.pattern??(r.pattern=Ay),bo.init(n,r)}),t_=S("$ZodCheckUpperCase",(n,r)=>{r.pattern??(r.pattern=My),bo.init(n,r)}),n_=S("$ZodCheckIncludes",(n,r)=>{Ae.init(n,r);const o=xn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,n._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),n._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:n,continue:!r.abort})}}),r_=S("$ZodCheckStartsWith",(n,r)=>{Ae.init(n,r);const o=new RegExp(`^${xn(r.prefix)}.*`);r.pattern??(r.pattern=o),n._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),n._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:n,continue:!r.abort})}}),i_=S("$ZodCheckEndsWith",(n,r)=>{Ae.init(n,r);const o=new RegExp(`.*${xn(r.suffix)}$`);r.pattern??(r.pattern=o),n._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),n._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:n,continue:!r.abort})}});function uv(n,r,o){n.issues.length&&r.issues.push(...Wt(o,n.issues))}const o_=S("$ZodCheckProperty",(n,r)=>{Ae.init(n,r),n._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>uv(t,o,r.property));uv(s,o,r.property)}}),a_=S("$ZodCheckMimeType",(n,r)=>{Ae.init(n,r);const o=new Set(r.mime);n._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),n._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:n,continue:!r.abort})}}),l_=S("$ZodCheckOverwrite",(n,r)=>{Ae.init(n,r),n._zod.check=o=>{o.value=r.tx(o.value)}});class s_{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
48
48
  `).filter(c=>c),t=Math.min(...s.map(c=>c.length-c.trimStart().length)),a=s.map(c=>c.slice(t)).map(c=>" ".repeat(this.indent*2)+c);for(const c of a)this.content.push(c)}compile(){const r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(`
49
- `))}}const u_={major:4,minor:4,patch:3},se=S("$ZodType",(n,r)=>{var o;n??(n={}),n._zod.def=r,n._zod.bag=n._zod.bag||{},n._zod.version=u_;const s=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&s.unshift(n);for(const t of s)for(const a of t._zod.onattach)a(n);if(s.length===0)(o=n._zod).deferred??(o.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const t=(c,m,g)=>{let h=gr(c),y;for(const k of m){if(k._zod.def.when){if(ry(c)||!k._zod.def.when(c))continue}else if(h)continue;const T=c.issues.length,P=k._zod.check(c);if(P instanceof Promise&&g?.async===!1)throw new hr;if(y||P instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await P,c.issues.length!==T&&(h||(h=gr(c,T)))});else{if(c.issues.length===T)continue;h||(h=gr(c,T))}}return y?y.then(()=>c):c},a=(c,m,g)=>{if(gr(c))return c.aborted=!0,c;const h=t(m,s,g);if(h instanceof Promise){if(g.async===!1)throw new hr;return h.then(y=>n._zod.parse(y,g))}return n._zod.parse(h,g)};n._zod.run=(c,m)=>{if(m.skipChecks)return n._zod.parse(c,m);if(m.direction==="backward"){const h=n._zod.parse({value:c.value,issues:[]},{...m,skipChecks:!0});return h instanceof Promise?h.then(y=>a(y,c,m)):a(h,c,m)}const g=n._zod.parse(c,m);if(g instanceof Promise){if(m.async===!1)throw new hr;return g.then(h=>t(h,s,m))}return t(g,s,m)}}me(n,"~standard",()=>({validate:t=>{try{const a=vd(n,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return sy(n,t).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),xo=S("$ZodString",(n,r)=>{se.init(n,r),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??Uy(n._zod.bag),n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:n}),o}}),Ne=S("$ZodStringFormat",(n,r)=>{bo.init(n,r),xo.init(n,r)}),c_=S("$ZodGUID",(n,r)=>{r.pattern??(r.pattern=hy),Ne.init(n,r)}),d_=S("$ZodUUID",(n,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Yr(s))}else r.pattern??(r.pattern=Yr());Ne.init(n,r)}),f_=S("$ZodEmail",(n,r)=>{r.pattern??(r.pattern=vy),Ne.init(n,r)}),m_=S("$ZodURL",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{try{const s=o.value.trim();if(!r.normalize&&r.protocol?.source===zd.source&&!/^https?:\/\//i.test(s)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:n,continue:!r.abort});return}const t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:n,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:n,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:n,continue:!r.abort})}}}),p_=S("$ZodEmoji",(n,r)=>{r.pattern??(r.pattern=_y()),Ne.init(n,r)}),g_=S("$ZodNanoID",(n,r)=>{r.pattern??(r.pattern=py),Ne.init(n,r)}),h_=S("$ZodCUID",(n,r)=>{r.pattern??(r.pattern=uy),Ne.init(n,r)}),v_=S("$ZodCUID2",(n,r)=>{r.pattern??(r.pattern=cy),Ne.init(n,r)}),y_=S("$ZodULID",(n,r)=>{r.pattern??(r.pattern=dy),Ne.init(n,r)}),__=S("$ZodXID",(n,r)=>{r.pattern??(r.pattern=fy),Ne.init(n,r)}),$_=S("$ZodKSUID",(n,r)=>{r.pattern??(r.pattern=my),Ne.init(n,r)}),k_=S("$ZodISODateTime",(n,r)=>{r.pattern??(r.pattern=Oy(r)),Ne.init(n,r)}),S_=S("$ZodISODate",(n,r)=>{r.pattern??(r.pattern=Ey),Ne.init(n,r)}),w_=S("$ZodISOTime",(n,r)=>{r.pattern??(r.pattern=Ny(r)),Ne.init(n,r)}),b_=S("$ZodISODuration",(n,r)=>{r.pattern??(r.pattern=gy),Ne.init(n,r)}),x_=S("$ZodIPv4",(n,r)=>{r.pattern??(r.pattern=$y),Ne.init(n,r),n._zod.bag.format="ipv4"}),I_=S("$ZodIPv6",(n,r)=>{r.pattern??(r.pattern=ky),Ne.init(n,r),n._zod.bag.format="ipv6",n._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:n,continue:!r.abort})}}}),z_=S("$ZodMAC",(n,r)=>{r.pattern??(r.pattern=Sy(r.delimiter)),Ne.init(n,r),n._zod.bag.format="mac"}),T_=S("$ZodCIDRv4",(n,r)=>{r.pattern??(r.pattern=wy),Ne.init(n,r)}),j_=S("$ZodCIDRv6",(n,r)=>{r.pattern??(r.pattern=by),Ne.init(n,r),n._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const c=Number(a);if(`${c}`!==a)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:n,continue:!r.abort})}}});function Pd(n){if(n==="")return!0;if(/\s/.test(n)||n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const E_=S("$ZodBase64",(n,r)=>{r.pattern??(r.pattern=xy),Ne.init(n,r),n._zod.bag.contentEncoding="base64",n._zod.check=o=>{Pd(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:n,continue:!r.abort})}});function P_(n){if(!Id.test(n))return!1;const r=n.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Pd(o)}const N_=S("$ZodBase64URL",(n,r)=>{r.pattern??(r.pattern=Id),Ne.init(n,r),n._zod.bag.contentEncoding="base64url",n._zod.check=o=>{P_(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:n,continue:!r.abort})}}),O_=S("$ZodE164",(n,r)=>{r.pattern??(r.pattern=Ty),Ne.init(n,r)});function U_(n,r=null){try{const o=n.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const D_=S("$ZodJWT",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{U_(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:n,continue:!r.abort})}}),C_=S("$ZodCustomStringFormat",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:n,continue:!r.abort})}}),Nd=S("$ZodNumber",(n,r)=>{se.init(n,r),n._zod.pattern=n._zod.bag.pattern??Td,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:n,...a?{received:a}:{}}),o}}),R_=S("$ZodNumberFormat",(n,r)=>{Jy.init(n,r),Nd.init(n,r)}),Od=S("$ZodBoolean",(n,r)=>{se.init(n,r),n._zod.pattern=Ry,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:n}),o}}),Ud=S("$ZodBigInt",(n,r)=>{se.init(n,r),n._zod.pattern=Dy,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:n}),o}}),L_=S("$ZodBigIntFormat",(n,r)=>{Vy.init(n,r),Ud.init(n,r)}),Z_=S("$ZodSymbol",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:n}),o}}),A_=S("$ZodUndefined",(n,r)=>{se.init(n,r),n._zod.pattern=Zy,n._zod.values=new Set([void 0]),n._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:n}),o}}),M_=S("$ZodNull",(n,r)=>{se.init(n,r),n._zod.pattern=Ly,n._zod.values=new Set([null]),n._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:n}),o}}),F_=S("$ZodAny",(n,r)=>{se.init(n,r),n._zod.parse=o=>o}),q_=S("$ZodUnknown",(n,r)=>{se.init(n,r),n._zod.parse=o=>o}),H_=S("$ZodNever",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:n}),o)}),J_=S("$ZodVoid",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:n}),o}}),V_=S("$ZodDate",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:n}),o}});function cv(n,r,o){n.issues.length&&r.issues.push(...Wt(o,n.issues)),r.value[o]=n.value}const W_=S("$ZodArray",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:n}),o;o.value=Array(t.length);const a=[];for(let c=0;c<t.length;c++){const m=t[c],g=r.element._zod.run({value:m,issues:[]},s);g instanceof Promise?a.push(g.then(h=>cv(h,o,c))):cv(g,o,c)}return a.length?Promise.all(a).then(()=>o):o}});function Zl(n,r,o,s,t,a){const c=o in s;if(n.issues.length){if(t&&a&&!c)return;r.issues.push(...Wt(o,n.issues))}if(!c&&!t){n.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}n.value===void 0?c&&(r.value[o]=void 0):r.value[o]=n.value}function B_(n){const r=Object.keys(n.shape);for(const s of r)if(!n.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=Wv(n.shape);return{...n,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function K_(n,r,o,s,t,a){const c=[],m=t.keySet,g=t.catchall._zod,h=g.def.type,y=g.optin==="optional",k=g.optout==="optional";for(const T in r){if(T==="__proto__"||m.has(T))continue;if(h==="never"){c.push(T);continue}const P=g.run({value:r[T],issues:[]},s);P instanceof Promise?n.push(P.then(Z=>Zl(Z,o,T,r,y,k))):Zl(P,o,T,r,y,k)}return c.length&&o.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:a}),n.length?Promise.all(n).then(()=>o):o}const G_=S("$ZodObject",(n,r)=>{if(se.init(n,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const m=r.shape;Object.defineProperty(r,"shape",{get:()=>{const g={...m};return Object.defineProperty(r,"shape",{value:g}),g}})}const s=vo(()=>B_(r));me(n._zod,"propValues",()=>{const m=r.shape,g={};for(const h in m){const y=m[h]._zod;if(y.values){g[h]??(g[h]=new Set);for(const k of y.values)g[h].add(k)}}return g});const t=Qr,a=r.catchall;let c;n._zod.parse=(m,g)=>{c??(c=s.value);const h=m.value;if(!t(h))return m.issues.push({expected:"object",code:"invalid_type",input:h,inst:n}),m;m.value={};const y=[],k=c.shape;for(const T of c.keys){const P=k[T],Z=P._zod.optin==="optional",B=P._zod.optout==="optional",V=P._zod.run({value:h[T],issues:[]},g);V instanceof Promise?y.push(V.then(q=>Zl(q,m,T,h,Z,B))):Zl(V,m,T,h,Z,B)}return a?K_(y,h,m,g,s.value,n):y.length?Promise.all(y).then(()=>m):m}}),Q_=S("$ZodObjectJIT",(n,r)=>{G_.init(n,r);const o=n._zod.parse,s=vo(()=>B_(r)),t=T=>{const P=new s_(["shape","payload","ctx"]),Z=s.value,B=le=>{const Y=nd(le);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`};P.write("const input = payload.value;");const V=Object.create(null);let q=0;for(const le of Z.keys)V[le]=`key_${q++}`;P.write("const newResult = {};");for(const le of Z.keys){const Y=V[le],ge=nd(le),Ye=T[le],rt=Ye?._zod?.optin==="optional",_t=Ye?._zod?.optout==="optional";P.write(`const ${Y} = ${B(le)};`),rt&&_t?P.write(`
49
+ `))}}const u_={major:4,minor:4,patch:3},se=S("$ZodType",(n,r)=>{var o;n??(n={}),n._zod.def=r,n._zod.bag=n._zod.bag||{},n._zod.version=u_;const s=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&s.unshift(n);for(const t of s)for(const a of t._zod.onattach)a(n);if(s.length===0)(o=n._zod).deferred??(o.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const t=(c,m,g)=>{let h=gr(c),y;for(const k of m){if(k._zod.def.when){if(ry(c)||!k._zod.def.when(c))continue}else if(h)continue;const T=c.issues.length,P=k._zod.check(c);if(P instanceof Promise&&g?.async===!1)throw new hr;if(y||P instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await P,c.issues.length!==T&&(h||(h=gr(c,T)))});else{if(c.issues.length===T)continue;h||(h=gr(c,T))}}return y?y.then(()=>c):c},a=(c,m,g)=>{if(gr(c))return c.aborted=!0,c;const h=t(m,s,g);if(h instanceof Promise){if(g.async===!1)throw new hr;return h.then(y=>n._zod.parse(y,g))}return n._zod.parse(h,g)};n._zod.run=(c,m)=>{if(m.skipChecks)return n._zod.parse(c,m);if(m.direction==="backward"){const h=n._zod.parse({value:c.value,issues:[]},{...m,skipChecks:!0});return h instanceof Promise?h.then(y=>a(y,c,m)):a(h,c,m)}const g=n._zod.parse(c,m);if(g instanceof Promise){if(m.async===!1)throw new hr;return g.then(h=>t(h,s,m))}return t(g,s,m)}}me(n,"~standard",()=>({validate:t=>{try{const a=vd(n,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return sy(n,t).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),xo=S("$ZodString",(n,r)=>{se.init(n,r),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??Uy(n._zod.bag),n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:n}),o}}),Ne=S("$ZodStringFormat",(n,r)=>{bo.init(n,r),xo.init(n,r)}),c_=S("$ZodGUID",(n,r)=>{r.pattern??(r.pattern=hy),Ne.init(n,r)}),d_=S("$ZodUUID",(n,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Yr(s))}else r.pattern??(r.pattern=Yr());Ne.init(n,r)}),f_=S("$ZodEmail",(n,r)=>{r.pattern??(r.pattern=vy),Ne.init(n,r)}),m_=S("$ZodURL",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{try{const s=o.value.trim();if(!r.normalize&&r.protocol?.source===zd.source&&!/^https?:\/\//i.test(s)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:n,continue:!r.abort});return}const t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:n,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:n,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:n,continue:!r.abort})}}}),p_=S("$ZodEmoji",(n,r)=>{r.pattern??(r.pattern=_y()),Ne.init(n,r)}),g_=S("$ZodNanoID",(n,r)=>{r.pattern??(r.pattern=py),Ne.init(n,r)}),h_=S("$ZodCUID",(n,r)=>{r.pattern??(r.pattern=uy),Ne.init(n,r)}),v_=S("$ZodCUID2",(n,r)=>{r.pattern??(r.pattern=cy),Ne.init(n,r)}),y_=S("$ZodULID",(n,r)=>{r.pattern??(r.pattern=dy),Ne.init(n,r)}),__=S("$ZodXID",(n,r)=>{r.pattern??(r.pattern=fy),Ne.init(n,r)}),$_=S("$ZodKSUID",(n,r)=>{r.pattern??(r.pattern=my),Ne.init(n,r)}),k_=S("$ZodISODateTime",(n,r)=>{r.pattern??(r.pattern=Oy(r)),Ne.init(n,r)}),S_=S("$ZodISODate",(n,r)=>{r.pattern??(r.pattern=Ey),Ne.init(n,r)}),w_=S("$ZodISOTime",(n,r)=>{r.pattern??(r.pattern=Ny(r)),Ne.init(n,r)}),b_=S("$ZodISODuration",(n,r)=>{r.pattern??(r.pattern=gy),Ne.init(n,r)}),x_=S("$ZodIPv4",(n,r)=>{r.pattern??(r.pattern=$y),Ne.init(n,r),n._zod.bag.format="ipv4"}),I_=S("$ZodIPv6",(n,r)=>{r.pattern??(r.pattern=ky),Ne.init(n,r),n._zod.bag.format="ipv6",n._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:n,continue:!r.abort})}}}),z_=S("$ZodMAC",(n,r)=>{r.pattern??(r.pattern=Sy(r.delimiter)),Ne.init(n,r),n._zod.bag.format="mac"}),T_=S("$ZodCIDRv4",(n,r)=>{r.pattern??(r.pattern=wy),Ne.init(n,r)}),j_=S("$ZodCIDRv6",(n,r)=>{r.pattern??(r.pattern=by),Ne.init(n,r),n._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const c=Number(a);if(`${c}`!==a)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:n,continue:!r.abort})}}});function Pd(n){if(n==="")return!0;if(/\s/.test(n)||n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const E_=S("$ZodBase64",(n,r)=>{r.pattern??(r.pattern=xy),Ne.init(n,r),n._zod.bag.contentEncoding="base64",n._zod.check=o=>{Pd(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:n,continue:!r.abort})}});function P_(n){if(!Id.test(n))return!1;const r=n.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Pd(o)}const N_=S("$ZodBase64URL",(n,r)=>{r.pattern??(r.pattern=Id),Ne.init(n,r),n._zod.bag.contentEncoding="base64url",n._zod.check=o=>{P_(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:n,continue:!r.abort})}}),O_=S("$ZodE164",(n,r)=>{r.pattern??(r.pattern=Ty),Ne.init(n,r)});function U_(n,r=null){try{const o=n.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const D_=S("$ZodJWT",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{U_(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:n,continue:!r.abort})}}),C_=S("$ZodCustomStringFormat",(n,r)=>{Ne.init(n,r),n._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:n,continue:!r.abort})}}),Nd=S("$ZodNumber",(n,r)=>{se.init(n,r),n._zod.pattern=n._zod.bag.pattern??Td,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:n,...a?{received:a}:{}}),o}}),R_=S("$ZodNumberFormat",(n,r)=>{Jy.init(n,r),Nd.init(n,r)}),Od=S("$ZodBoolean",(n,r)=>{se.init(n,r),n._zod.pattern=Ry,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:n}),o}}),Ud=S("$ZodBigInt",(n,r)=>{se.init(n,r),n._zod.pattern=Dy,n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:n}),o}}),L_=S("$ZodBigIntFormat",(n,r)=>{Vy.init(n,r),Ud.init(n,r)}),Z_=S("$ZodSymbol",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:n}),o}}),A_=S("$ZodUndefined",(n,r)=>{se.init(n,r),n._zod.pattern=Zy,n._zod.values=new Set([void 0]),n._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:n}),o}}),M_=S("$ZodNull",(n,r)=>{se.init(n,r),n._zod.pattern=Ly,n._zod.values=new Set([null]),n._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:n}),o}}),F_=S("$ZodAny",(n,r)=>{se.init(n,r),n._zod.parse=o=>o}),q_=S("$ZodUnknown",(n,r)=>{se.init(n,r),n._zod.parse=o=>o}),H_=S("$ZodNever",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:n}),o)}),J_=S("$ZodVoid",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:n}),o}}),V_=S("$ZodDate",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:n}),o}});function cv(n,r,o){n.issues.length&&r.issues.push(...Wt(o,n.issues)),r.value[o]=n.value}const W_=S("$ZodArray",(n,r)=>{se.init(n,r),n._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:n}),o;o.value=Array(t.length);const a=[];for(let c=0;c<t.length;c++){const m=t[c],g=r.element._zod.run({value:m,issues:[]},s);g instanceof Promise?a.push(g.then(h=>cv(h,o,c))):cv(g,o,c)}return a.length?Promise.all(a).then(()=>o):o}});function Zl(n,r,o,s,t,a){const c=o in s;if(n.issues.length){if(t&&a&&!c)return;r.issues.push(...Wt(o,n.issues))}if(!c&&!t){n.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}n.value===void 0?c&&(r.value[o]=void 0):r.value[o]=n.value}function B_(n){const r=Object.keys(n.shape);for(const s of r)if(!n.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=Wv(n.shape);return{...n,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function K_(n,r,o,s,t,a){const c=[],m=t.keySet,g=t.catchall._zod,h=g.def.type,y=g.optin==="optional",k=g.optout==="optional";for(const T in r){if(T==="__proto__"||m.has(T))continue;if(h==="never"){c.push(T);continue}const P=g.run({value:r[T],issues:[]},s);P instanceof Promise?n.push(P.then(Z=>Zl(Z,o,T,r,y,k))):Zl(P,o,T,r,y,k)}return c.length&&o.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:a}),n.length?Promise.all(n).then(()=>o):o}const G_=S("$ZodObject",(n,r)=>{if(se.init(n,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const m=r.shape;Object.defineProperty(r,"shape",{get:()=>{const g={...m};return Object.defineProperty(r,"shape",{value:g}),g}})}const s=vo(()=>B_(r));me(n._zod,"propValues",()=>{const m=r.shape,g={};for(const h in m){const y=m[h]._zod;if(y.values){g[h]??(g[h]=new Set);for(const k of y.values)g[h].add(k)}}return g});const t=Qr,a=r.catchall;let c;n._zod.parse=(m,g)=>{c??(c=s.value);const h=m.value;if(!t(h))return m.issues.push({expected:"object",code:"invalid_type",input:h,inst:n}),m;m.value={};const y=[],k=c.shape;for(const T of c.keys){const P=k[T],Z=P._zod.optin==="optional",B=P._zod.optout==="optional",V=P._zod.run({value:h[T],issues:[]},g);V instanceof Promise?y.push(V.then(q=>Zl(q,m,T,h,Z,B))):Zl(V,m,T,h,Z,B)}return a?K_(y,h,m,g,s.value,n):y.length?Promise.all(y).then(()=>m):m}}),Q_=S("$ZodObjectJIT",(n,r)=>{G_.init(n,r);const o=n._zod.parse,s=vo(()=>B_(r)),t=T=>{const P=new s_(["shape","payload","ctx"]),Z=s.value,B=le=>{const Y=nd(le);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`};P.write("const input = payload.value;");const V=Object.create(null);let q=0;for(const le of Z.keys)V[le]=`key_${q++}`;P.write("const newResult = {};");for(const le of Z.keys){const Y=V[le],ge=nd(le),Ye=T[le],rt=Ye?._zod?.optin==="optional",$t=Ye?._zod?.optout==="optional";P.write(`const ${Y} = ${B(le)};`),rt&&$t?P.write(`
50
50
  if (${Y}.issues.length) {
51
51
  if (${ge} in input) {
52
52
  payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
@@ -145,8 +145,8 @@ Boolean requesting whether a visible border and background is provided by the ho
145
145
  - omitted: host decides border`)});j({method:x("ui/request-display-mode"),params:j({mode:ho.describe("The display mode being requested.")})});var p4=j({mode:ho.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),g4=pe([x("model"),x("app")]).describe("Tool visibility scope - who can access the tool.");j({resourceUri:I().optional(),visibility:ie(g4).optional().describe(`Who can access this tool. Default: ["model", "app"]
146
146
  - "model": Tool visible to and callable by the agent
147
147
  - "app": Tool callable by the app from this server only`),csp:_r().optional(),permissions:_r().optional()});j({mimeTypes:ie(I()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});j({method:x("ui/download-file"),params:j({contents:ie(pe([_S,$S])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});j({method:x("ui/message"),params:j({role:x("user").describe('Message role, currently only "user" is supported.'),content:ie(ya).describe("Message content blocks (text, image, etc.).")})});j({method:x("ui/notifications/sandbox-resource-ready"),params:j({html:I().describe("HTML content to load into the inner iframe."),sandbox:I().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:ep.optional().describe("CSP configuration from resource metadata."),permissions:tp.optional().describe("Sandbox permissions from resource metadata.")})});var h4=j({method:x("ui/notifications/tool-result"),params:tu.describe("Standard MCP tool execution result.")}),IS=j({toolInfo:j({id:fa.optional().describe("JSON-RPC id of the tools/call request."),tool:Ym.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:e4.optional().describe("Current color theme preference."),styles:c4.optional().describe("Style configuration for theming the app."),displayMode:ho.optional().describe("How the UI is currently displayed."),availableDisplayModes:ie(ho).optional().describe("Display modes the host supports."),containerDimensions:pe([j({height:ue().describe("Fixed container height in pixels.")}),j({maxHeight:pe([ue(),ii()]).optional().describe("Maximum container height in pixels.")})]).and(pe([j({width:ue().describe("Fixed container width in pixels.")}),j({maxWidth:pe([ue(),ii()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
148
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:I().optional().describe("User's language and region preference in BCP 47 format."),timeZone:I().optional().describe("User's timezone in IANA format."),userAgent:I().optional().describe("Host application identifier."),platform:pe([x("web"),x("desktop"),x("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:j({touch:xe().optional().describe("Whether the device supports touch input."),hover:xe().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:j({top:ue().describe("Top safe area inset in pixels."),right:ue().describe("Right safe area inset in pixels."),bottom:ue().describe("Bottom safe area inset in pixels."),left:ue().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),v4=j({method:x("ui/notifications/host-context-changed"),params:IS.describe("Partial context update containing only changed fields.")});j({method:x("ui/update-model-context"),params:j({content:ie(ya).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ye(I(),be().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});j({method:x("ui/initialize"),params:j({appInfo:Ys.describe("App identification (name and version)."),appCapabilities:m4.describe("Features and capabilities this app provides."),protocolVersion:I().describe("Protocol version this app supports.")})});var y4=j({protocolVersion:I().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Ys.describe("Host application identification and version."),hostCapabilities:f4.describe("Features and capabilities provided by the host."),hostContext:IS.describe("Rich context about the host environment.")}).passthrough(),_4={target:"draft-2020-12"};async function Cv(n,r){let o=n["~standard"];if(o.jsonSchema)return o.jsonSchema[r](_4);if(o.vendor==="zod"){let{z:s}=await Ub(()=>Promise.resolve().then(()=>lz),void 0,import.meta.url);return s.toJSONSchema(n,{io:r})}throw Error(`Schema (vendor: ${o.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Rv(n,r,o=""){let s=await n["~standard"].validate(r);if(s.issues){let t=s.issues.map(a=>{let c=a.path?.map(m=>typeof m=="object"?m.key:m).join(".");return c?`${c}: ${a.message}`:a.message}).join("; ");throw Error(o+t)}return s.value}class np extends G1{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(r){if(this._initializedSent)return;let o=`[ext-apps] App.${r}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(o);console.warn(`${o}. This will throw in a future release.`)}eventSchemas={toolinput:a4,toolinputpartial:l4,toolresult:h4,toolcancelled:s4,hostcontextchanged:v4};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(r){if(!np.ONE_SHOT_EVENTS.has(r)||this._everHadListener.has(r)||(this._everHadListener.add(r),!this._initializedSent))return;let o=`[ext-apps] "${String(r)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(o);console.warn(o)}setEventHandler(r,o){o&&this._assertHandlerTiming(r),super.setEventHandler(r,o)}addEventListener(r,o){this._assertHandlerTiming(r),super.addEventListener(r,o)}onEventDispatch(r,o){r==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...o})}constructor(r,o={},s={autoResize:!0}){super(s),this._appInfo=r,this._capabilities=o,this.options=s,s.allowUnsafeEval||Xe({jitless:!0}),this.setRequestHandler(eu,t=>(console.log("Received ping:",t.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(r){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=K1(this._capabilities,r)}registerTool(r,o,s){if(this._registeredTools[r])throw Error(`Tool ${r} is already registered`);let t=this,a=()=>{t._initializedSent&&t._capabilities.tools?.listChanged&&t.sendToolListChanged()},c=o.inputSchema!==void 0,m={title:o.title,description:o.description,inputSchema:o.inputSchema,outputSchema:o.outputSchema,annotations:o.annotations,_meta:o._meta,enabled:!0,enable(){this.enabled=!0,a()},disable(){this.enabled=!1,a()},update(g){Object.assign(this,g),a()},remove(){t._registeredTools[r]===m&&(delete t._registeredTools[r],a())},handler:async(g,h)=>{if(!m.enabled)throw Error(`Tool ${r} is disabled`);let y;if(c){let k=m.inputSchema,T=k?await Rv(k,g??{},`Invalid input for tool ${r}: `):g??{};y=await s(T,h)}else y=await s(h);return m.outputSchema&&!y.isError&&(y.structuredContent=await Rv(m.outputSchema,y.structuredContent,`Invalid output for tool ${r}: `)),y}};return this._registeredTools[r]=m,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),a(),m}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(r,o)=>{let s=this._registeredTools[r.name];if(!s)throw Error(`Tool ${r.name} not found`);return s.handler(r.arguments,o)},this.onlisttools=async(r,o)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([s,t])=>t.enabled).map(async([s,t])=>{let a={name:s,title:t.title,description:t.description,inputSchema:t.inputSchema?await Cv(t.inputSchema,"input"):{type:"object",properties:{}}};return t.outputSchema&&(a.outputSchema=await Cv(t.outputSchema,"output")),t.annotations&&(a.annotations=t.annotations),t._meta&&(a._meta=t._meta),a}))}))}async sendToolListChanged(r={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:r})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(r){this.setEventHandler("toolinput",r)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(r){this.setEventHandler("toolinputpartial",r)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(r){this.setEventHandler("toolresult",r)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(r){this.setEventHandler("toolcancelled",r)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(r){this.setEventHandler("hostcontextchanged",r)}_onteardown;get onteardown(){return this._onteardown}set onteardown(r){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,r),this._onteardown=r,this.replaceRequestHandler(d4,(o,s)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(o.params,s)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(r){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,r),this._oncalltool=r,this.replaceRequestHandler(SS,(o,s)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(o.params,s)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(r){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,r),this._onlisttools=r,this.replaceRequestHandler(kS,(o,s)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(o.params,s)})}assertCapabilityForMethod(r){switch(r){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${r})`);break}}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,o){if(this._assertInitialized("callServerTool"),typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},tu,{onprogress:()=>{},resetTimeoutOnProgress:!0,...o})}async readServerResource(r,o){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:r},yS,o)}async listServerResources(r,o){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:r},vS,o)}async createSamplingMessage(r,o){this._assertInitialized("createSamplingMessage");let s=r.tools?xS:bS;return await this.request({method:"sampling/createMessage",params:r},s,o)}sendMessage(r,o){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:r},o4,o)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,o){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:r},Lm,o)}openLink(r,o){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:r},r4,o)}sendOpenLink=this.openLink;downloadFile(r,o){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:r},i4,o)}requestTeardown(r={}){return this.notification({method:"ui/notifications/request-teardown",params:r})}requestDisplayMode(r,o){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:r},p4,o)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,o=0,s=0,t=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let c=document.documentElement,m=c.style.height;c.style.height="max-content";let g=Math.ceil(c.getBoundingClientRect().height);c.style.height=m;let h=Math.ceil(window.innerWidth);(h!==o||g!==s)&&(o=h,s=g,this.sendSizeChanged({width:h,height:g}))}))};t();let a=new ResizeObserver(t);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(r=new Y1(window.parent,window.parent),o){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(r);try{let s=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Q1}},y4,o);if(s===void 0)throw Error(`Server sent invalid initialize result: ${s}`);this._hostCapabilities=s.hostCapabilities,this._hostInfo=s.hostInfo,this._hostContext=s.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(s){throw this.close(),s}}}function We(n){return`var(${n})`}const F={bg:{surface:We("--bg-surface"),elevated:We("--bg-elevated"),hover:We("--bg-hover")},text:{primary:We("--text-primary"),secondary:We("--text-secondary"),muted:We("--text-muted"),faint:We("--text-faint")},accent:We("--accent"),accentDim:We("--accent-dim"),border:We("--border"),borderSubtle:We("--border-subtle"),success:We("--success"),successDim:We("--success-dim"),error:We("--error"),errorDim:We("--error-dim"),warning:We("--warning"),warningDim:We("--warning-dim"),info:We("--info"),infoDim:We("--info-dim")},zt={sans:We("--font-sans"),mono:We("--font-mono")},on={card:{background:F.bg.surface,border:`1px solid ${F.border}`,borderRadius:"8px",padding:"16px"},badge:(n,r)=>({display:"inline-flex",alignItems:"center",padding:"2px 8px",fontSize:"11px",fontWeight:600,borderRadius:"4px",color:n,background:r,letterSpacing:"0.02em"}),input:{background:F.bg.elevated,border:`1px solid ${F.border}`,borderRadius:"6px",padding:"6px 12px",fontSize:"13px",color:F.text.primary,outline:"none",transition:"border-color 0.15s",width:"100%",fontFamily:zt.sans},button:{background:F.bg.elevated,border:`1px solid ${F.border}`,borderRadius:"6px",padding:"6px 14px",fontSize:"12px",color:F.text.secondary,cursor:"pointer",transition:"all 0.15s",fontFamily:zt.sans,whiteSpace:"nowrap"},buttonActive:{background:F.accentDim,borderColor:F.accent,color:F.accent},tableHeader:{padding:"8px 12px",textAlign:"left",fontSize:"11px",fontWeight:600,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:`1px solid ${F.border}`,cursor:"pointer",userSelect:"none",whiteSpace:"nowrap",transition:"color 0.15s"},tableCell:{padding:"8px 12px",fontSize:"13px",borderBottom:`1px solid ${F.borderSubtle}`,color:F.text.primary},mono:{fontFamily:zt.mono,fontSize:"12px"}};function Cl(n,r=2){return n.toLocaleString("en-US",{minimumFractionDigits:r,maximumFractionDigits:r})}function Lv(n,r="USD"){return n.toLocaleString("en-US",{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2})}function $4(){return C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[C.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1.5",fill:"currentColor",opacity:"0.9"}),C.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1.5",fill:"currentColor",opacity:"0.6"}),C.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1.5",fill:"currentColor",opacity:"0.6"}),C.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1.5",fill:"currentColor",opacity:"0.35"})]})}function k4(){const n={display:"flex",alignItems:"center",gap:7,padding:"0 14px",height:30,background:F.bg.surface,borderBottom:`1px solid ${F.border}`,flexShrink:0},r={fontFamily:zt.sans,fontSize:11,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",color:F.accent},o={width:3,height:3,borderRadius:"50%",background:F.text.faint,marginLeft:2,marginRight:2,flexShrink:0},s={fontFamily:zt.sans,fontSize:10,color:F.text.muted,letterSpacing:"0.03em"};return C.jsxs("div",{style:n,children:[C.jsx("div",{style:{color:F.accent},children:C.jsx($4,{})}),C.jsx("span",{style:r,children:"ERPNext"}),C.jsx("div",{style:o}),C.jsx("span",{style:s,children:"gestion ERP"})]})}function S4(){const n={display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"6px 16px 8px",borderTop:`1px solid ${F.borderSubtle}`,marginTop:8},r={fontFamily:zt.sans,fontSize:10,color:F.text.faint,letterSpacing:"0.04em"};return C.jsx("div",{style:n,children:C.jsx("span",{style:r,children:"Casys AI"})})}function w4(n,r={}){return!n.request||n.visibilityState!=="visible"||n.refreshInFlight?!1:r.ignoreInterval?!0:n.now-n.lastRefreshStartedAt>=n.minIntervalMs}function Zv(n,r){return n?.refreshRequest??r}function b4(n){return n instanceof Error&&/timed? out/i.test(n.message)?"Refresh timed out":"Refresh failed"}function ld(n){return n.structuredContent?JSON.stringify(n.structuredContent):n.content?.find(r=>r.type==="text")?.text??null}function Ul({label:n,value:r,bold:o}){return C.jsxs("div",{style:{padding:"4px 0"},children:[C.jsx("div",{style:{fontSize:10,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.04em",marginBottom:2},children:n}),C.jsx("div",{style:{fontSize:o?15:13,fontWeight:o?600:500,color:F.text.primary,fontFamily:o?zt.mono:zt.sans},children:r??"—"})]})}const Av={success:{color:F.success,bg:F.successDim},error:{color:F.error,bg:F.errorDim},info:{color:F.info,bg:F.infoDim},default:{color:F.text.secondary,bg:F.bg.elevated}};function ed({label:n,variant:r="default",disabled:o,loading:s,confirm:t,onClick:a}){const[c,m]=Re.useState(!1),g=Re.useRef();Re.useEffect(()=>()=>clearTimeout(g.current),[]);const h=Av[r]??Av.default;return C.jsx("button",{onClick:()=>{if(t&&!c){m(!0),clearTimeout(g.current),g.current=setTimeout(()=>m(!1),4e3);return}m(!1),a()},disabled:o||s,style:{...on.button,background:h.bg,color:h.color,borderColor:h.color,opacity:o||s?.5:1,fontSize:11,padding:"4px 10px"},children:s?"…":c?"Confirm?":n})}const Mv=1e4;function x4({app:n,itemCode:r,warehouse:o,onClose:s}){const[t,a]=Re.useState(null),[c,m]=Re.useState(null),[g,h]=Re.useState(!0);return Re.useEffect(()=>{let y=!1;return(async()=>{try{const[k,T]=await Promise.all([n.callServerTool({name:"erpnext_item_get",arguments:{name:r}},{timeout:Mv}),n.callServerTool({name:"erpnext_stock_entry_list",arguments:{limit:5,item_code:r}},{timeout:Mv})]);if(y)return;if(!k.isError){const P=ld(k);if(P){const Z=JSON.parse(P);a(Z.data??Z)}}if(!T.isError){const P=ld(T);if(P){const Z=JSON.parse(P);m(Z.data??[])}}}catch{}y||h(!1)})(),()=>{y=!0}},[r]),g?C.jsx("div",{style:{padding:16,background:F.bg.surface,borderTop:`2px solid ${F.accent}`},children:[1,2].map(y=>C.jsx("div",{className:"skeleton",style:{height:14,width:`${30+y*15}%`,marginBottom:8}},y))}):C.jsxs("div",{style:{padding:16,background:F.bg.surface,borderTop:`2px solid ${F.accent}`},children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[C.jsx("span",{style:{fontSize:14,fontWeight:600,color:F.text.primary,fontFamily:zt.mono},children:r}),C.jsx("span",{style:{fontSize:11,color:F.text.muted},children:o})]}),C.jsx("button",{onClick:s,style:{...on.button,padding:"2px 8px",fontSize:11},children:"✕"})]}),t&&C.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:6,marginBottom:10},children:[t.item_name&&C.jsx(Ul,{label:"Name",value:String(t.item_name)}),t.item_group&&C.jsx(Ul,{label:"Group",value:String(t.item_group)}),t.stock_uom&&C.jsx(Ul,{label:"UOM",value:String(t.stock_uom)}),t.standard_rate!=null&&C.jsx(Ul,{label:"Std Rate",value:String(t.standard_rate),bold:!0})]}),c&&c.length>0&&C.jsxs("div",{style:{marginBottom:10},children:[C.jsx("div",{style:{fontSize:10,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.04em",marginBottom:6},children:"Recent Movements"}),c.slice(0,4).map((y,k)=>C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"4px 0",borderBottom:`1px solid ${F.borderSubtle}`,fontSize:12},children:[C.jsx("span",{style:{color:F.text.secondary},children:String(y.stock_entry_type??y.name??"—")}),C.jsx("span",{style:{fontFamily:zt.mono,color:F.text.primary},children:String(y.posting_date??"—")})]},k))]}),C.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",paddingTop:8,borderTop:`1px solid ${F.border}`},children:[C.jsx(ed,{label:"Stock chart",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show stock chart for item ${r}`}]})}catch{}}}),C.jsx(ed,{label:"Item details",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show me the full details of Item ${r}`}]})}catch{}}}),C.jsx(ed,{label:"Stock entries",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show stock entries for item ${r}`}]})}catch{}}})]})]})}const pr=new np({name:"Stock Viewer",version:"2.0.0"}),I4=15e3,z4=1e4;function T4(){return C.jsx("div",{style:{padding:24},children:C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[[1,2,3,4].map(n=>C.jsx("div",{className:"skeleton",style:{height:n===1?32:20,width:n===1?"40%":`${60+n*8}%`}},n)),C.jsx("div",{style:{marginTop:8},children:[1,2,3,4,5].map(n=>C.jsx("div",{className:"skeleton",style:{height:36,marginBottom:2}},n))})]})})}function j4(){return C.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"48px 24px",color:F.text.muted,gap:16},children:[C.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",style:{opacity:.35},children:[C.jsx("rect",{x:"8",y:"20",width:"16",height:"24",rx:"2",stroke:"currentColor",strokeWidth:"2"}),C.jsx("rect",{x:"28",y:"14",width:"16",height:"30",rx:"2",stroke:"currentColor",strokeWidth:"2"}),C.jsx("rect",{x:"18",y:"28",width:"16",height:"16",rx:"2",stroke:"currentColor",strokeWidth:"2",fill:"#08080a"}),C.jsx("path",{d:"M14 32h4M34 26h4M24 34h4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]}),C.jsxs("div",{style:{fontSize:13,textAlign:"center"},children:["No stock data",C.jsx("div",{style:{fontSize:11,color:F.text.faint,marginTop:4},children:"Run a stock balance query to see inventory levels"})]})]})}function E4({qty:n}){let r,o;return n<=0?(r=F.error,o=F.errorDim):n<10?(r=F.warning,o=F.warningDim):(r=F.success,o=F.successDim),C.jsx("span",{style:{...on.badge(r,o),fontFamily:zt.mono,minWidth:48,justifyContent:"center"},children:Cl(n,0)})}function Fv(n){return ld(n)}function P4(){const[n,r]=Re.useState(null),[o,s]=Re.useState(!0),[t,a]=Re.useState(!1),[c,m]=Re.useState(null),g=Re.useRef(null),h=Re.useRef(null),y=Re.useRef(!1),k=Re.useRef(0);function T(B){g.current=B,h.current=Zv(B,h.current),r(B)}function P(B){if(B.isError){const q=Fv(B);return m(q??"Tool returned an error"),s(!1),!1}const V=Fv(B);if(!V)return!1;try{const q=JSON.parse(V);return T(q),m(null),s(!1),!0}catch{return m("Failed to parse stock payload"),s(!1),!1}}async function Z(B={}){const V=Zv(g.current,h.current);if(!w4({request:V,visibilityState:typeof document>"u"?"visible":document.visibilityState,refreshInFlight:y.current,now:Date.now(),lastRefreshStartedAt:k.current,minIntervalMs:I4},B)||!V||!pr.getHostCapabilities()?.serverTools)return!1;y.current=!0,k.current=Date.now(),a(!0);try{const q=await pr.callServerTool({name:V.toolName,arguments:V.arguments},{timeout:z4});return q.isError?(m("Refresh failed"),!1):P(q)?!0:(m("Refresh returned no data"),!1)}catch(q){return m(b4(q)),!1}finally{y.current=!1,a(!1)}}return Re.useEffect(()=>{pr.ontoolresult=B=>{P(B)},pr.ontoolinputpartial=()=>{g.current||s(!0)},pr.connect().catch(()=>{})},[]),Re.useEffect(()=>{function B(){Z({ignoreInterval:!0})}function V(){document.visibilityState==="visible"&&Z({ignoreInterval:!0})}return window.addEventListener("focus",B),document.addEventListener("visibilitychange",V),()=>{window.removeEventListener("focus",B),document.removeEventListener("visibilitychange",V)}},[]),C.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},"aria-busy":t,children:[C.jsx(k4,{}),C.jsx("div",{style:{flex:1},children:o?C.jsx(T4,{}):n?C.jsx(N4,{data:n,error:c,refreshing:t,onRefresh:()=>void Z({ignoreInterval:!0})}):C.jsx(j4,{})}),C.jsx(S4,{})]})}const td=[{key:"item_code",label:"Item Code",align:"left",width:"22%"},{key:"warehouse",label:"Warehouse",align:"left",width:"22%"},{key:"actual_qty",label:"Actual Qty",align:"right",width:"12%"},{key:"reserved_qty",label:"Reserved",align:"right",width:"11%"},{key:"projected_qty",label:"Projected",align:"right",width:"11%"},{key:"valuation_rate",label:"Rate",align:"right",width:"11%"},{key:"stock_value",label:"Value",align:"right",width:"11%"}];function N4({data:n,error:r,refreshing:o,onRefresh:s}){const[t,a]=Re.useState("item_code"),[c,m]=Re.useState("asc"),[g,h]=Re.useState(""),[y,k]=Re.useState(null),T=pr.getHostCapabilities()?.serverTools,P=Re.useMemo(()=>{if(!g)return n.data;const q=g.toLowerCase();return n.data.filter(de=>de.item_code.toLowerCase().includes(q)||de.warehouse.toLowerCase().includes(q))},[n.data,g]),Z=Re.useMemo(()=>[...P].sort((q,de)=>{const le=q[t],Y=de[t];if(le==null&&Y==null)return 0;if(le==null)return 1;if(Y==null)return-1;let ge;return typeof le=="number"&&typeof Y=="number"?ge=le-Y:ge=String(le).localeCompare(String(Y)),c==="asc"?ge:-ge}),[P,t,c]),B=Re.useMemo(()=>Z.reduce((q,de)=>q+(de.stock_value??0),0),[Z]);function V(q){t===q?m(de=>de==="asc"?"desc":"asc"):(a(q),m("asc"))}return C.jsxs("div",{style:{padding:16,fontFamily:zt.sans},children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,flexWrap:"wrap",gap:8},children:[C.jsxs("div",{children:[C.jsx("div",{style:{fontSize:16,fontWeight:700,color:F.text.primary},children:"Stock Balance"}),C.jsxs("div",{style:{fontSize:12,color:F.text.muted},children:[Z.length," ","entries",g?` (filtered from ${n.count})`:""]}),C.jsx("div",{"aria-live":"polite",style:{fontSize:11,color:r?F.error:F.text.faint,marginTop:4},children:r??(o?"Refreshing…":"Auto-refresh on focus")})]}),C.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[C.jsx("input",{type:"text",placeholder:"Filter items / warehouses...",value:g,onChange:q=>h(q.target.value),style:{...on.input,maxWidth:260},onFocus:q=>{q.target.style.borderColor=F.accent},onBlur:q=>{q.target.style.borderColor=F.border}}),C.jsx("button",{onClick:s,disabled:o,style:on.button,onMouseEnter:q=>{o||(q.currentTarget.style.borderColor=F.accent,q.currentTarget.style.color=F.accent)},onMouseLeave:q=>{q.currentTarget.style.borderColor=F.border,q.currentTarget.style.color=F.text.secondary},children:C.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[C.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[C.jsx("path",{d:"M10 6a4 4 0 1 1-1.1-2.76",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),C.jsx("path",{d:"M10 2v2.8H7.2",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),o?"Refreshing":"Refresh"]})})]})]}),C.jsx("div",{style:{border:`1px solid ${F.border}`,borderRadius:8,overflow:"hidden"},children:C.jsx("div",{style:{overflowX:"auto"},children:C.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",minWidth:600},children:[C.jsx("thead",{children:C.jsx("tr",{children:td.map(q=>C.jsxs("th",{onClick:()=>V(q.key),style:{...on.tableHeader,textAlign:q.align,width:q.width,color:t===q.key?F.accent:F.text.muted,background:F.bg.surface},children:[q.label,C.jsx("span",{style:{marginLeft:4,opacity:t===q.key?1:.3,fontSize:10},children:t===q.key?c==="asc"?"▲":"▼":"⇅"})]},q.key))})}),C.jsx("tbody",{children:Z.length===0?C.jsx("tr",{children:C.jsx("td",{colSpan:td.length,style:{...on.tableCell,textAlign:"center",color:F.text.muted,padding:32},children:"No matching entries"})}):Z.map((q,de)=>{const le=`${q.item_code}::${q.warehouse}`,Y=y===le;return C.jsxs(Re.Fragment,{children:[C.jsxs("tr",{style:{transition:"background 0.1s",cursor:T?"pointer":"default",background:Y?F.bg.hover:"transparent"},onClick:T?()=>k(Y?null:le):void 0,onMouseEnter:ge=>{Y||(ge.currentTarget.style.background=F.bg.hover)},onMouseLeave:ge=>{Y||(ge.currentTarget.style.background="transparent")},children:[C.jsx("td",{style:{...on.tableCell,fontWeight:500},children:q.item_code}),C.jsx("td",{style:{...on.tableCell,color:F.text.secondary},children:q.warehouse}),C.jsx("td",{style:{...on.tableCell,textAlign:"right"},children:C.jsx(E4,{qty:q.actual_qty})}),C.jsx("td",{style:Dl,children:q.reserved_qty!=null?Cl(q.reserved_qty,0):"—"}),C.jsx("td",{style:Dl,children:q.projected_qty!=null?Cl(q.projected_qty,0):"—"}),C.jsx("td",{style:Dl,children:q.valuation_rate!=null?Cl(q.valuation_rate):"—"}),C.jsx("td",{style:{...Dl,fontWeight:500,color:F.text.primary},children:q.stock_value!=null?Lv(q.stock_value):"—"})]}),Y&&C.jsx("tr",{children:C.jsx("td",{colSpan:td.length,style:{padding:0,borderBottom:`1px solid ${F.border}`},children:C.jsx(x4,{app:pr,itemCode:q.item_code,warehouse:q.warehouse,onClose:()=>k(null)})})})]},`${le}-${de}`)})})]})})}),C.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12,gap:12,padding:"8px 0"},children:[C.jsx("span",{style:{fontSize:12,color:F.text.muted},children:"Total Stock Value"}),C.jsx("span",{style:{fontSize:16,fontWeight:700,fontFamily:zt.mono,color:F.accent},children:Lv(B)})]})]})}const Dl={...on.tableCell,textAlign:"right",fontFamily:zt.mono,fontSize:12,color:F.text.secondary};Pb.createRoot(document.getElementById("app")).render(C.jsx(P4,{}));</script>
149
- <style rel="stylesheet" crossorigin>:root{--accent: #0089ff;--accent-dim: rgba(0, 137, 255, .15);--accent-border: rgba(0, 137, 255, .3);--success: #16a34a;--success-dim: rgba(22, 163, 74, .1);--error: #dc2626;--error-dim: rgba(220, 38, 38, .1);--warning: #d97706;--warning-dim: rgba(217, 119, 6, .1);--info: #2563eb;--info-dim: rgba(37, 99, 235, .1);--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;--bg-root: #ffffff;--bg-surface: #f9fafb;--bg-elevated: #f3f4f6;--bg-hover: #e5e7eb;--bg-active: #d1d5db;--text-primary: #111827;--text-secondary: #4b5563;--text-muted: #6b7280;--text-faint: #9ca3af;--border: #e5e7eb;--border-subtle: #f3f4f6;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow-md: 0 2px 8px rgba(0, 0, 0, .08)}@media(prefers-color-scheme:dark){:root{--bg-root: #08080a;--bg-surface: #111113;--bg-elevated: #18181b;--bg-hover: #1f1f23;--bg-active: #27272a;--text-primary: #e7e5e4;--text-secondary: #a8a29e;--text-muted: #78716c;--text-faint: #57534e;--border: #27272a;--border-subtle: #1f1f23;--success: #4ade80;--success-dim: rgba(74, 222, 128, .12);--error: #f87171;--error-dim: rgba(248, 113, 113, .12);--warning: #fbbf24;--warning-dim: rgba(251, 191, 36, .12);--info: #60a5fa;--info-dim: rgba(96, 165, 250, .12);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 2px 8px rgba(0, 0, 0, .4)}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{border-radius:var(--radius-lg);overflow:hidden}html,body{background:var(--bg-root);color:var(--text-primary);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{overflow:auto}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-faint)}@keyframes pulse{0%,to{opacity:.4}50%{opacity:.15}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.animate-pulse{animation:pulse 1.5s ease-in-out infinite}.skeleton{background:linear-gradient(90deg,var(--bg-elevated) 25%,var(--bg-hover) 50%,var(--bg-elevated) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius-sm)}.drag-scroll::-webkit-scrollbar{display:none}.drag-scroll{scrollbar-width:none}article button:hover:not(:disabled){background:var(--bg-hover)!important;color:var(--text-primary)!important}article[draggable=true]:active{cursor:grabbing;opacity:.85}.kanban-detail-backdrop{position:fixed;inset:0;z-index:100;background:#00000073;display:flex;align-items:flex-start;justify-content:center;padding:20px 12px;overflow-y:auto;backdrop-filter:blur(2px)}.kanban-detail-panel{background:var(--bg-root);border:1px solid var(--border);border-radius:10px;max-width:520px;width:100%;box-shadow:0 8px 32px #0000001f,0 2px 8px #0000000f;position:relative;display:flex;flex-direction:column}.kanban-detail-panel .detail-field-row{transition:background .1s}.kanban-detail-panel .detail-field-row:hover{background:var(--bg-surface)}.kanban-detail-panel .detail-field-cell{transition:background .1s;border-radius:4px}.kanban-detail-panel .detail-field-cell:hover{background:var(--bg-surface)}.kanban-detail-panel .detail-field-cell:hover input,.kanban-detail-panel .detail-field-cell:hover select{border-color:var(--border)!important;background:var(--bg-elevated)!important}.kanban-detail-panel select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}.kanban-detail-panel input:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}.kanban-detail-panel textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}@media(prefers-color-scheme:dark){.kanban-detail-backdrop{background:#000000a6}.kanban-detail-panel{box-shadow:0 8px 32px #0006,0 2px 8px #0000004d}}.kanban-card-title-link{cursor:pointer;text-decoration:none;color:inherit}.kanban-card-title-link:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}</style>
148
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:I().optional().describe("User's language and region preference in BCP 47 format."),timeZone:I().optional().describe("User's timezone in IANA format."),userAgent:I().optional().describe("Host application identifier."),platform:pe([x("web"),x("desktop"),x("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:j({touch:xe().optional().describe("Whether the device supports touch input."),hover:xe().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:j({top:ue().describe("Top safe area inset in pixels."),right:ue().describe("Right safe area inset in pixels."),bottom:ue().describe("Bottom safe area inset in pixels."),left:ue().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),v4=j({method:x("ui/notifications/host-context-changed"),params:IS.describe("Partial context update containing only changed fields.")});j({method:x("ui/update-model-context"),params:j({content:ie(ya).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ye(I(),be().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});j({method:x("ui/initialize"),params:j({appInfo:Ys.describe("App identification (name and version)."),appCapabilities:m4.describe("Features and capabilities this app provides."),protocolVersion:I().describe("Protocol version this app supports.")})});var y4=j({protocolVersion:I().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Ys.describe("Host application identification and version."),hostCapabilities:f4.describe("Features and capabilities provided by the host."),hostContext:IS.describe("Rich context about the host environment.")}).passthrough(),_4={target:"draft-2020-12"};async function Cv(n,r){let o=n["~standard"];if(o.jsonSchema)return o.jsonSchema[r](_4);if(o.vendor==="zod"){let{z:s}=await Ub(()=>Promise.resolve().then(()=>lz),void 0,import.meta.url);return s.toJSONSchema(n,{io:r})}throw Error(`Schema (vendor: ${o.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Rv(n,r,o=""){let s=await n["~standard"].validate(r);if(s.issues){let t=s.issues.map(a=>{let c=a.path?.map(m=>typeof m=="object"?m.key:m).join(".");return c?`${c}: ${a.message}`:a.message}).join("; ");throw Error(o+t)}return s.value}class np extends G1{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(r){if(this._initializedSent)return;let o=`[ext-apps] App.${r}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(o);console.warn(`${o}. This will throw in a future release.`)}eventSchemas={toolinput:a4,toolinputpartial:l4,toolresult:h4,toolcancelled:s4,hostcontextchanged:v4};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(r){if(!np.ONE_SHOT_EVENTS.has(r)||this._everHadListener.has(r)||(this._everHadListener.add(r),!this._initializedSent))return;let o=`[ext-apps] "${String(r)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(o);console.warn(o)}setEventHandler(r,o){o&&this._assertHandlerTiming(r),super.setEventHandler(r,o)}addEventListener(r,o){this._assertHandlerTiming(r),super.addEventListener(r,o)}onEventDispatch(r,o){r==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...o})}constructor(r,o={},s={autoResize:!0}){super(s),this._appInfo=r,this._capabilities=o,this.options=s,s.allowUnsafeEval||Xe({jitless:!0}),this.setRequestHandler(eu,t=>(console.log("Received ping:",t.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(r){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=K1(this._capabilities,r)}registerTool(r,o,s){if(this._registeredTools[r])throw Error(`Tool ${r} is already registered`);let t=this,a=()=>{t._initializedSent&&t._capabilities.tools?.listChanged&&t.sendToolListChanged()},c=o.inputSchema!==void 0,m={title:o.title,description:o.description,inputSchema:o.inputSchema,outputSchema:o.outputSchema,annotations:o.annotations,_meta:o._meta,enabled:!0,enable(){this.enabled=!0,a()},disable(){this.enabled=!1,a()},update(g){Object.assign(this,g),a()},remove(){t._registeredTools[r]===m&&(delete t._registeredTools[r],a())},handler:async(g,h)=>{if(!m.enabled)throw Error(`Tool ${r} is disabled`);let y;if(c){let k=m.inputSchema,T=k?await Rv(k,g??{},`Invalid input for tool ${r}: `):g??{};y=await s(T,h)}else y=await s(h);return m.outputSchema&&!y.isError&&(y.structuredContent=await Rv(m.outputSchema,y.structuredContent,`Invalid output for tool ${r}: `)),y}};return this._registeredTools[r]=m,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),a(),m}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(r,o)=>{let s=this._registeredTools[r.name];if(!s)throw Error(`Tool ${r.name} not found`);return s.handler(r.arguments,o)},this.onlisttools=async(r,o)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([s,t])=>t.enabled).map(async([s,t])=>{let a={name:s,title:t.title,description:t.description,inputSchema:t.inputSchema?await Cv(t.inputSchema,"input"):{type:"object",properties:{}}};return t.outputSchema&&(a.outputSchema=await Cv(t.outputSchema,"output")),t.annotations&&(a.annotations=t.annotations),t._meta&&(a._meta=t._meta),a}))}))}async sendToolListChanged(r={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:r})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(r){this.setEventHandler("toolinput",r)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(r){this.setEventHandler("toolinputpartial",r)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(r){this.setEventHandler("toolresult",r)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(r){this.setEventHandler("toolcancelled",r)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(r){this.setEventHandler("hostcontextchanged",r)}_onteardown;get onteardown(){return this._onteardown}set onteardown(r){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,r),this._onteardown=r,this.replaceRequestHandler(d4,(o,s)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(o.params,s)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(r){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,r),this._oncalltool=r,this.replaceRequestHandler(SS,(o,s)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(o.params,s)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(r){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,r),this._onlisttools=r,this.replaceRequestHandler(kS,(o,s)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(o.params,s)})}assertCapabilityForMethod(r){switch(r){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${r})`);break}}assertRequestHandlerCapability(r){switch(r){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${r})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${r} registered`)}}assertNotificationCapability(r){}assertTaskCapability(r){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(r){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(r,o){if(this._assertInitialized("callServerTool"),typeof r=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${r}"). Did you mean: callServerTool({ name: "${r}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:r},tu,{onprogress:()=>{},resetTimeoutOnProgress:!0,...o})}async readServerResource(r,o){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:r},yS,o)}async listServerResources(r,o){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:r},vS,o)}async createSamplingMessage(r,o){this._assertInitialized("createSamplingMessage");let s=r.tools?xS:bS;return await this.request({method:"sampling/createMessage",params:r},s,o)}sendMessage(r,o){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:r},o4,o)}sendLog(r){return this.notification({method:"notifications/message",params:r})}updateModelContext(r,o){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:r},Lm,o)}openLink(r,o){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:r},r4,o)}sendOpenLink=this.openLink;downloadFile(r,o){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:r},i4,o)}requestTeardown(r={}){return this.notification({method:"ui/notifications/request-teardown",params:r})}requestDisplayMode(r,o){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:r},p4,o)}sendSizeChanged(r){return this.notification({method:"ui/notifications/size-changed",params:r})}setupSizeChangedNotifications(){let r=!1,o=0,s=0,t=()=>{r||(r=!0,requestAnimationFrame(()=>{r=!1;let c=document.documentElement,m=c.style.height;c.style.height="max-content";let g=Math.ceil(c.getBoundingClientRect().height);c.style.height=m;let h=Math.ceil(window.innerWidth);(h!==o||g!==s)&&(o=h,s=g,this.sendSizeChanged({width:h,height:g}))}))};t();let a=new ResizeObserver(t);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(r=new Y1(window.parent,window.parent),o){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(r);try{let s=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Q1}},y4,o);if(s===void 0)throw Error(`Server sent invalid initialize result: ${s}`);this._hostCapabilities=s.hostCapabilities,this._hostInfo=s.hostInfo,this._hostContext=s.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(s){throw this.close(),s}}}function We(n){return`var(${n})`}const F={bg:{surface:We("--bg-surface"),elevated:We("--bg-elevated"),hover:We("--bg-hover")},text:{primary:We("--text-primary"),secondary:We("--text-secondary"),muted:We("--text-muted"),faint:We("--text-faint")},accent:We("--accent"),accentDim:We("--accent-dim"),border:We("--border"),borderSubtle:We("--border-subtle"),success:We("--success"),successDim:We("--success-dim"),error:We("--error"),errorDim:We("--error-dim"),warning:We("--warning"),warningDim:We("--warning-dim"),info:We("--info"),infoDim:We("--info-dim")},_t={sans:We("--font-sans"),mono:We("--font-mono")},on={card:{background:F.bg.surface,border:`1px solid ${F.border}`,borderRadius:"8px",padding:"16px"},badge:(n,r)=>({display:"inline-flex",alignItems:"center",padding:"2px 8px",fontSize:"11px",fontWeight:600,borderRadius:"4px",color:n,background:r,letterSpacing:"0.02em"}),input:{background:F.bg.elevated,border:`1px solid ${F.border}`,borderRadius:"6px",padding:"6px 12px",fontSize:"13px",color:F.text.primary,outline:"none",transition:"border-color 0.15s",width:"100%",fontFamily:_t.sans},button:{background:F.bg.elevated,border:`1px solid ${F.border}`,borderRadius:"6px",padding:"6px 14px",fontSize:"12px",color:F.text.secondary,cursor:"pointer",transition:"all 0.15s",fontFamily:_t.sans,whiteSpace:"nowrap"},buttonActive:{background:F.accentDim,borderColor:F.accent,color:F.accent},tableHeader:{padding:"8px 12px",textAlign:"left",fontSize:"11px",fontWeight:600,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:`1px solid ${F.border}`,cursor:"pointer",userSelect:"none",whiteSpace:"nowrap",transition:"color 0.15s"},tableCell:{padding:"8px 12px",fontSize:"13px",borderBottom:`1px solid ${F.borderSubtle}`,color:F.text.primary},mono:{fontFamily:_t.mono,fontSize:"12px"}};function Cl(n,r=2){return n.toLocaleString("en-US",{minimumFractionDigits:r,maximumFractionDigits:r})}function Lv(n,r="USD"){return n.toLocaleString("en-US",{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2})}function $4(){const n={width:18,height:18,flexShrink:0,borderRadius:5,background:F.accent,color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:_t.sans,fontSize:11,fontWeight:700,lineHeight:1};return C.jsx("div",{style:n,"aria-hidden":"true",children:"H"})}function k4(){const n={display:"flex",alignItems:"center",gap:7,padding:"0 14px",height:30,background:F.bg.surface,borderBottom:`1px solid ${F.border}`,flexShrink:0},r={fontFamily:_t.sans,fontSize:11.5,fontWeight:700,letterSpacing:"-0.01em",color:F.text.primary},o={width:3,height:3,borderRadius:"50%",background:F.text.faint,marginLeft:2,marginRight:2,flexShrink:0},s={fontFamily:_t.sans,fontSize:9.5,fontWeight:600,color:F.text.muted,letterSpacing:"0.13em"};return C.jsxs("div",{style:n,children:[C.jsx($4,{}),C.jsx("span",{style:r,children:"Havi Group"}),C.jsx("div",{style:o}),C.jsx("span",{style:s,children:"ERP · OPERATIONS"})]})}function S4(){const n={display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"6px 16px 8px",borderTop:`1px solid ${F.borderSubtle}`,marginTop:8},r={fontFamily:_t.sans,fontSize:10,color:F.text.faint,letterSpacing:"0.04em"};return C.jsx("div",{style:n,children:C.jsx("span",{style:r,children:"Havi Group ERP"})})}function w4(n,r={}){return!n.request||n.visibilityState!=="visible"||n.refreshInFlight?!1:r.ignoreInterval?!0:n.now-n.lastRefreshStartedAt>=n.minIntervalMs}function Zv(n,r){return n?.refreshRequest??r}function b4(n){return n instanceof Error&&/timed? out/i.test(n.message)?"Refresh timed out":"Refresh failed"}function ld(n){return n.structuredContent?JSON.stringify(n.structuredContent):n.content?.find(r=>r.type==="text")?.text??null}function Ul({label:n,value:r,bold:o}){return C.jsxs("div",{style:{padding:"4px 0"},children:[C.jsx("div",{style:{fontSize:10,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.04em",marginBottom:2},children:n}),C.jsx("div",{style:{fontSize:o?15:13,fontWeight:o?600:500,color:F.text.primary,fontFamily:o?_t.mono:_t.sans},children:r??"—"})]})}const Av={success:{color:F.success,bg:F.successDim},error:{color:F.error,bg:F.errorDim},info:{color:F.info,bg:F.infoDim},default:{color:F.text.secondary,bg:F.bg.elevated}};function ed({label:n,variant:r="default",disabled:o,loading:s,confirm:t,onClick:a}){const[c,m]=Re.useState(!1),g=Re.useRef();Re.useEffect(()=>()=>clearTimeout(g.current),[]);const h=Av[r]??Av.default;return C.jsx("button",{onClick:()=>{if(t&&!c){m(!0),clearTimeout(g.current),g.current=setTimeout(()=>m(!1),4e3);return}m(!1),a()},disabled:o||s,style:{...on.button,background:h.bg,color:h.color,borderColor:h.color,opacity:o||s?.5:1,fontSize:11,padding:"4px 10px"},children:s?"…":c?"Confirm?":n})}const Mv=1e4;function x4({app:n,itemCode:r,warehouse:o,onClose:s}){const[t,a]=Re.useState(null),[c,m]=Re.useState(null),[g,h]=Re.useState(!0);return Re.useEffect(()=>{let y=!1;return(async()=>{try{const[k,T]=await Promise.all([n.callServerTool({name:"erpnext_item_get",arguments:{name:r}},{timeout:Mv}),n.callServerTool({name:"erpnext_stock_entry_list",arguments:{limit:5,item_code:r}},{timeout:Mv})]);if(y)return;if(!k.isError){const P=ld(k);if(P){const Z=JSON.parse(P);a(Z.data??Z)}}if(!T.isError){const P=ld(T);if(P){const Z=JSON.parse(P);m(Z.data??[])}}}catch{}y||h(!1)})(),()=>{y=!0}},[r]),g?C.jsx("div",{style:{padding:16,background:F.bg.surface,borderTop:`2px solid ${F.accent}`},children:[1,2].map(y=>C.jsx("div",{className:"skeleton",style:{height:14,width:`${30+y*15}%`,marginBottom:8}},y))}):C.jsxs("div",{style:{padding:16,background:F.bg.surface,borderTop:`2px solid ${F.accent}`},children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[C.jsx("span",{style:{fontSize:14,fontWeight:600,color:F.text.primary,fontFamily:_t.mono},children:r}),C.jsx("span",{style:{fontSize:11,color:F.text.muted},children:o})]}),C.jsx("button",{onClick:s,style:{...on.button,padding:"2px 8px",fontSize:11},children:"✕"})]}),t&&C.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:6,marginBottom:10},children:[t.item_name&&C.jsx(Ul,{label:"Name",value:String(t.item_name)}),t.item_group&&C.jsx(Ul,{label:"Group",value:String(t.item_group)}),t.stock_uom&&C.jsx(Ul,{label:"UOM",value:String(t.stock_uom)}),t.standard_rate!=null&&C.jsx(Ul,{label:"Std Rate",value:String(t.standard_rate),bold:!0})]}),c&&c.length>0&&C.jsxs("div",{style:{marginBottom:10},children:[C.jsx("div",{style:{fontSize:10,color:F.text.muted,textTransform:"uppercase",letterSpacing:"0.04em",marginBottom:6},children:"Recent Movements"}),c.slice(0,4).map((y,k)=>C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"4px 0",borderBottom:`1px solid ${F.borderSubtle}`,fontSize:12},children:[C.jsx("span",{style:{color:F.text.secondary},children:String(y.stock_entry_type??y.name??"—")}),C.jsx("span",{style:{fontFamily:_t.mono,color:F.text.primary},children:String(y.posting_date??"—")})]},k))]}),C.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",paddingTop:8,borderTop:`1px solid ${F.border}`},children:[C.jsx(ed,{label:"Stock chart",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show stock chart for item ${r}`}]})}catch{}}}),C.jsx(ed,{label:"Item details",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show me the full details of Item ${r}`}]})}catch{}}}),C.jsx(ed,{label:"Stock entries",onClick:async()=>{try{await n.sendMessage({role:"user",content:[{type:"text",text:`Show stock entries for item ${r}`}]})}catch{}}})]})]})}const pr=new np({name:"Stock Viewer",version:"2.0.0"}),I4=15e3,z4=1e4;function T4(){return C.jsx("div",{style:{padding:24},children:C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[[1,2,3,4].map(n=>C.jsx("div",{className:"skeleton",style:{height:n===1?32:20,width:n===1?"40%":`${60+n*8}%`}},n)),C.jsx("div",{style:{marginTop:8},children:[1,2,3,4,5].map(n=>C.jsx("div",{className:"skeleton",style:{height:36,marginBottom:2}},n))})]})})}function j4(){return C.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"48px 24px",color:F.text.muted,gap:16},children:[C.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",style:{opacity:.35},children:[C.jsx("rect",{x:"8",y:"20",width:"16",height:"24",rx:"2",stroke:"currentColor",strokeWidth:"2"}),C.jsx("rect",{x:"28",y:"14",width:"16",height:"30",rx:"2",stroke:"currentColor",strokeWidth:"2"}),C.jsx("rect",{x:"18",y:"28",width:"16",height:"16",rx:"2",stroke:"currentColor",strokeWidth:"2",fill:"#08080a"}),C.jsx("path",{d:"M14 32h4M34 26h4M24 34h4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]}),C.jsxs("div",{style:{fontSize:13,textAlign:"center"},children:["No stock data",C.jsx("div",{style:{fontSize:11,color:F.text.faint,marginTop:4},children:"Run a stock balance query to see inventory levels"})]})]})}function E4({qty:n}){let r,o;return n<=0?(r=F.error,o=F.errorDim):n<10?(r=F.warning,o=F.warningDim):(r=F.success,o=F.successDim),C.jsx("span",{style:{...on.badge(r,o),fontFamily:_t.mono,minWidth:48,justifyContent:"center"},children:Cl(n,0)})}function Fv(n){return ld(n)}function P4(){const[n,r]=Re.useState(null),[o,s]=Re.useState(!0),[t,a]=Re.useState(!1),[c,m]=Re.useState(null),g=Re.useRef(null),h=Re.useRef(null),y=Re.useRef(!1),k=Re.useRef(0);function T(B){g.current=B,h.current=Zv(B,h.current),r(B)}function P(B){if(B.isError){const q=Fv(B);return m(q??"Tool returned an error"),s(!1),!1}const V=Fv(B);if(!V)return!1;try{const q=JSON.parse(V);return T(q),m(null),s(!1),!0}catch{return m("Failed to parse stock payload"),s(!1),!1}}async function Z(B={}){const V=Zv(g.current,h.current);if(!w4({request:V,visibilityState:typeof document>"u"?"visible":document.visibilityState,refreshInFlight:y.current,now:Date.now(),lastRefreshStartedAt:k.current,minIntervalMs:I4},B)||!V||!pr.getHostCapabilities()?.serverTools)return!1;y.current=!0,k.current=Date.now(),a(!0);try{const q=await pr.callServerTool({name:V.toolName,arguments:V.arguments},{timeout:z4});return q.isError?(m("Refresh failed"),!1):P(q)?!0:(m("Refresh returned no data"),!1)}catch(q){return m(b4(q)),!1}finally{y.current=!1,a(!1)}}return Re.useEffect(()=>{pr.ontoolresult=B=>{P(B)},pr.ontoolinputpartial=()=>{g.current||s(!0)},pr.connect().catch(()=>{})},[]),Re.useEffect(()=>{function B(){Z({ignoreInterval:!0})}function V(){document.visibilityState==="visible"&&Z({ignoreInterval:!0})}return window.addEventListener("focus",B),document.addEventListener("visibilitychange",V),()=>{window.removeEventListener("focus",B),document.removeEventListener("visibilitychange",V)}},[]),C.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},"aria-busy":t,children:[C.jsx(k4,{}),C.jsx("div",{style:{flex:1},children:o?C.jsx(T4,{}):n?C.jsx(N4,{data:n,error:c,refreshing:t,onRefresh:()=>void Z({ignoreInterval:!0})}):C.jsx(j4,{})}),C.jsx(S4,{})]})}const td=[{key:"item_code",label:"Item Code",align:"left",width:"22%"},{key:"warehouse",label:"Warehouse",align:"left",width:"22%"},{key:"actual_qty",label:"Actual Qty",align:"right",width:"12%"},{key:"reserved_qty",label:"Reserved",align:"right",width:"11%"},{key:"projected_qty",label:"Projected",align:"right",width:"11%"},{key:"valuation_rate",label:"Rate",align:"right",width:"11%"},{key:"stock_value",label:"Value",align:"right",width:"11%"}];function N4({data:n,error:r,refreshing:o,onRefresh:s}){const[t,a]=Re.useState("item_code"),[c,m]=Re.useState("asc"),[g,h]=Re.useState(""),[y,k]=Re.useState(null),T=pr.getHostCapabilities()?.serverTools,P=Re.useMemo(()=>{if(!g)return n.data;const q=g.toLowerCase();return n.data.filter(de=>de.item_code.toLowerCase().includes(q)||de.warehouse.toLowerCase().includes(q))},[n.data,g]),Z=Re.useMemo(()=>[...P].sort((q,de)=>{const le=q[t],Y=de[t];if(le==null&&Y==null)return 0;if(le==null)return 1;if(Y==null)return-1;let ge;return typeof le=="number"&&typeof Y=="number"?ge=le-Y:ge=String(le).localeCompare(String(Y)),c==="asc"?ge:-ge}),[P,t,c]),B=Re.useMemo(()=>Z.reduce((q,de)=>q+(de.stock_value??0),0),[Z]);function V(q){t===q?m(de=>de==="asc"?"desc":"asc"):(a(q),m("asc"))}return C.jsxs("div",{style:{padding:16,fontFamily:_t.sans},children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,flexWrap:"wrap",gap:8},children:[C.jsxs("div",{children:[C.jsx("div",{style:{fontSize:16,fontWeight:700,color:F.text.primary},children:"Stock Balance"}),C.jsx("div",{style:{fontSize:12,color:F.text.muted},children:Z.length<n.data.length?C.jsxs(C.Fragment,{children:[Z.length," of ",n.data.length," loaded entries ·"," ",typeof n.count=="number"?`${n.count} matching entries overall`:"total unknown"]}):typeof n.count=="number"&&n.count>n.data.length?C.jsxs(C.Fragment,{children:["first ",n.data.length," of ",n.count," entries ·"," ",n.count-n.data.length," ","not fetched (ask again with a higher limit or a narrower filter)"]}):C.jsxs(C.Fragment,{children:[Z.length," of ",typeof n.count=="number"?n.count:"an unknown number of"," entries"]})}),C.jsx("div",{"aria-live":"polite",style:{fontSize:11,color:r?F.error:F.text.faint,marginTop:4},children:r??(o?"Refreshing…":n.count===null&&n.count_error?`Total unavailable: ${n.count_error}`:"Auto-refresh on focus")})]}),C.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[C.jsx("input",{type:"text",placeholder:"Filter items / warehouses...",value:g,onChange:q=>h(q.target.value),style:{...on.input,maxWidth:260},onFocus:q=>{q.target.style.borderColor=F.accent},onBlur:q=>{q.target.style.borderColor=F.border}}),C.jsx("button",{onClick:s,disabled:o,style:on.button,onMouseEnter:q=>{o||(q.currentTarget.style.borderColor=F.accent,q.currentTarget.style.color=F.accent)},onMouseLeave:q=>{q.currentTarget.style.borderColor=F.border,q.currentTarget.style.color=F.text.secondary},children:C.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[C.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[C.jsx("path",{d:"M10 6a4 4 0 1 1-1.1-2.76",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),C.jsx("path",{d:"M10 2v2.8H7.2",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),o?"Refreshing":"Refresh"]})})]})]}),C.jsx("div",{style:{border:`1px solid ${F.border}`,borderRadius:8,overflow:"hidden"},children:C.jsx("div",{style:{overflowX:"auto"},children:C.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",minWidth:600},children:[C.jsx("thead",{children:C.jsx("tr",{children:td.map(q=>C.jsxs("th",{onClick:()=>V(q.key),style:{...on.tableHeader,textAlign:q.align,width:q.width,color:t===q.key?F.accent:F.text.muted,background:F.bg.surface},children:[q.label,C.jsx("span",{style:{marginLeft:4,opacity:t===q.key?1:.3,fontSize:10},children:t===q.key?c==="asc"?"▲":"▼":"⇅"})]},q.key))})}),C.jsx("tbody",{children:Z.length===0?C.jsx("tr",{children:C.jsx("td",{colSpan:td.length,style:{...on.tableCell,textAlign:"center",color:F.text.muted,padding:32},children:"No matching entries"})}):Z.map((q,de)=>{const le=`${q.item_code}::${q.warehouse}`,Y=y===le;return C.jsxs(Re.Fragment,{children:[C.jsxs("tr",{style:{transition:"background 0.1s",cursor:T?"pointer":"default",background:Y?F.bg.hover:"transparent"},onClick:T?()=>k(Y?null:le):void 0,onMouseEnter:ge=>{Y||(ge.currentTarget.style.background=F.bg.hover)},onMouseLeave:ge=>{Y||(ge.currentTarget.style.background="transparent")},children:[C.jsx("td",{style:{...on.tableCell,fontWeight:500},children:q.item_code}),C.jsx("td",{style:{...on.tableCell,color:F.text.secondary},children:q.warehouse}),C.jsx("td",{style:{...on.tableCell,textAlign:"right"},children:C.jsx(E4,{qty:q.actual_qty})}),C.jsx("td",{style:Dl,children:q.reserved_qty!=null?Cl(q.reserved_qty,0):"—"}),C.jsx("td",{style:Dl,children:q.projected_qty!=null?Cl(q.projected_qty,0):"—"}),C.jsx("td",{style:Dl,children:q.valuation_rate!=null?Cl(q.valuation_rate):"—"}),C.jsx("td",{style:{...Dl,fontWeight:500,color:F.text.primary},children:q.stock_value!=null?Lv(q.stock_value):"—"})]}),Y&&C.jsx("tr",{children:C.jsx("td",{colSpan:td.length,style:{padding:0,borderBottom:`1px solid ${F.border}`},children:C.jsx(x4,{app:pr,itemCode:q.item_code,warehouse:q.warehouse,onClose:()=>k(null)})})})]},`${le}-${de}`)})})]})})}),C.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12,gap:12,padding:"8px 0"},children:[C.jsx("span",{style:{fontSize:12,color:F.text.muted},children:"Total Stock Value"}),C.jsx("span",{style:{fontSize:16,fontWeight:700,fontFamily:_t.mono,color:F.accent},children:Lv(B)})]})]})}const Dl={...on.tableCell,textAlign:"right",fontFamily:_t.mono,fontSize:12,color:F.text.secondary};Pb.createRoot(document.getElementById("app")).render(C.jsx(P4,{}));</script>
149
+ <style rel="stylesheet" crossorigin>:root{--accent: #e85d1f;--accent-dim: #fdeee3;--accent-border: #f6cfb6;--success: #16a34a;--success-dim: rgba(22, 163, 74, .1);--error: #dc2626;--error-dim: rgba(220, 38, 38, .1);--warning: #d97706;--warning-dim: rgba(217, 119, 6, .1);--info: #2563eb;--info-dim: #eaf0fe;--radius-sm: 5px;--radius-md: 9px;--radius-lg: 14px;--font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", "Fira Code", monospace;--bg-root: #ffffff;--bg-surface: #f6f7f9;--bg-elevated: #f7f8fa;--bg-hover: #eef0f3;--bg-active: #e6e8ec;--text-primary: #18202b;--text-secondary: #5c6472;--text-muted: #676f7d;--text-faint: #9aa1ab;--border: #e6e8ec;--border-subtle: #ecedf0;--shadow-sm: 0 1px 2px rgba(24, 32, 43, .05);--shadow-md: 0 2px 8px rgba(24, 32, 43, .08)}@media(prefers-color-scheme:dark){:root{--accent: #ff7a3d;--accent-dim: rgba(255, 122, 61, .16);--accent-border: rgba(255, 122, 61, .34);--bg-root: #08080a;--bg-surface: #111113;--bg-elevated: #18181b;--bg-hover: #1f1f23;--bg-active: #27272a;--text-primary: #e7e5e4;--text-secondary: #a8a29e;--text-muted: #78716c;--text-faint: #57534e;--border: #27272a;--border-subtle: #1f1f23;--success: #4ade80;--success-dim: rgba(74, 222, 128, .12);--error: #f87171;--error-dim: rgba(248, 113, 113, .12);--warning: #fbbf24;--warning-dim: rgba(251, 191, 36, .12);--info: #60a5fa;--info-dim: rgba(96, 165, 250, .12);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 2px 8px rgba(0, 0, 0, .4)}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{border-radius:var(--radius-lg);overflow:hidden}html,body{background:var(--bg-root);color:var(--text-primary);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{overflow:auto}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-faint)}@keyframes pulse{0%,to{opacity:.4}50%{opacity:.15}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.animate-pulse{animation:pulse 1.5s ease-in-out infinite}.skeleton{background:linear-gradient(90deg,var(--bg-elevated) 25%,var(--bg-hover) 50%,var(--bg-elevated) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius-sm)}.drag-scroll::-webkit-scrollbar{display:none}.drag-scroll{scrollbar-width:none}article button:hover:not(:disabled){background:var(--bg-hover)!important;color:var(--text-primary)!important}article[draggable=true]:active{cursor:grabbing;opacity:.85}.kanban-detail-backdrop{position:fixed;inset:0;z-index:100;background:#00000073;display:flex;align-items:flex-start;justify-content:center;padding:20px 12px;overflow-y:auto;backdrop-filter:blur(2px)}.kanban-detail-panel{background:var(--bg-root);border:1px solid var(--border);border-radius:10px;max-width:520px;width:100%;box-shadow:0 8px 32px #0000001f,0 2px 8px #0000000f;position:relative;display:flex;flex-direction:column}.kanban-detail-panel .detail-field-row{transition:background .1s}.kanban-detail-panel .detail-field-row:hover{background:var(--bg-surface)}.kanban-detail-panel .detail-field-cell{transition:background .1s;border-radius:4px}.kanban-detail-panel .detail-field-cell:hover{background:var(--bg-surface)}.kanban-detail-panel .detail-field-cell:hover input,.kanban-detail-panel .detail-field-cell:hover select{border-color:var(--border)!important;background:var(--bg-elevated)!important}.kanban-detail-panel select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}.kanban-detail-panel input:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}.kanban-detail-panel textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--accent-dim);outline:none}@media(prefers-color-scheme:dark){.kanban-detail-backdrop{background:#000000a6}.kanban-detail-panel{box-shadow:0 8px 32px #0006,0 2px 8px #0000004d}}.kanban-card-title-link{cursor:pointer;text-decoration:none;color:inherit}.kanban-card-title-link:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}</style>
150
150
  </head>
151
151
  <body>
152
152
  <div id="app"></div>