@bitsnbobs/starch 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +273 -0
- package/dist/components/Diagram.d.ts +40 -0
- package/dist/components/Diagram.d.ts.map +1 -0
- package/dist/components/Editor.d.ts +9 -0
- package/dist/components/Editor.d.ts.map +1 -0
- package/dist/components/Timeline.d.ts +15 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/core/Scene.d.ts +47 -0
- package/dist/core/Scene.d.ts.map +1 -0
- package/dist/core/colours.d.ts +16 -0
- package/dist/core/colours.d.ts.map +1 -0
- package/dist/core/schemas.d.ts +349 -0
- package/dist/core/schemas.d.ts.map +1 -0
- package/dist/core/types/animation.d.ts +27 -0
- package/dist/core/types/animation.d.ts.map +1 -0
- package/dist/core/types/base.d.ts +26 -0
- package/dist/core/types/base.d.ts.map +1 -0
- package/dist/core/types/box.d.ts +9 -0
- package/dist/core/types/box.d.ts.map +1 -0
- package/dist/core/types/circle.d.ts +6 -0
- package/dist/core/types/circle.d.ts.map +1 -0
- package/dist/core/types/events.d.ts +17 -0
- package/dist/core/types/events.d.ts.map +1 -0
- package/dist/core/types/group.d.ts +20 -0
- package/dist/core/types/group.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +12 -0
- package/dist/core/types/index.d.ts.map +1 -0
- package/dist/core/types/label.d.ts +9 -0
- package/dist/core/types/label.d.ts.map +1 -0
- package/dist/core/types/line.d.ts +28 -0
- package/dist/core/types/line.d.ts.map +1 -0
- package/dist/core/types/path.d.ts +13 -0
- package/dist/core/types/path.d.ts.map +1 -0
- package/dist/core/types/scene.d.ts +17 -0
- package/dist/core/types/scene.d.ts.map +1 -0
- package/dist/core/types/table.d.ts +11 -0
- package/dist/core/types/table.d.ts.map +1 -0
- package/dist/editor/completions.d.ts +6 -0
- package/dist/editor/completions.d.ts.map +1 -0
- package/dist/editor/index.d.ts +3 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/theme.d.ts +3 -0
- package/dist/editor/theme.d.ts.map +1 -0
- package/dist/embed.d.ts +43 -0
- package/dist/embed.d.ts.map +1 -0
- package/dist/engine/anchor.d.ts +35 -0
- package/dist/engine/anchor.d.ts.map +1 -0
- package/dist/engine/bezier.d.ts +101 -0
- package/dist/engine/bezier.d.ts.map +1 -0
- package/dist/engine/easing.d.ts +4 -0
- package/dist/engine/easing.d.ts.map +1 -0
- package/dist/engine/evaluator.d.ts +12 -0
- package/dist/engine/evaluator.d.ts.map +1 -0
- package/dist/engine/interpolate.d.ts +4 -0
- package/dist/engine/interpolate.d.ts.map +1 -0
- package/dist/engine/layout.d.ts +7 -0
- package/dist/engine/layout.d.ts.map +1 -0
- package/dist/engine/timeline.d.ts +3 -0
- package/dist/engine/timeline.d.ts.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/parser/parser.d.ts +43 -0
- package/dist/parser/parser.d.ts.map +1 -0
- package/dist/parser/shorthands.d.ts +7 -0
- package/dist/parser/shorthands.d.ts.map +1 -0
- package/dist/renderer/EdgeGeometry.d.ts +22 -0
- package/dist/renderer/EdgeGeometry.d.ts.map +1 -0
- package/dist/renderer/renderObject.d.ts +6 -0
- package/dist/renderer/renderObject.d.ts.map +1 -0
- package/dist/renderer/svg/BoxRenderer.d.ts +6 -0
- package/dist/renderer/svg/BoxRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/CircleRenderer.d.ts +6 -0
- package/dist/renderer/svg/CircleRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/GroupRenderer.d.ts +10 -0
- package/dist/renderer/svg/GroupRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/LabelRenderer.d.ts +6 -0
- package/dist/renderer/svg/LabelRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/LineRenderer.d.ts +11 -0
- package/dist/renderer/svg/LineRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/PathRenderer.d.ts +7 -0
- package/dist/renderer/svg/PathRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/SvgCanvas.d.ts +9 -0
- package/dist/renderer/svg/SvgCanvas.d.ts.map +1 -0
- package/dist/renderer/svg/TableRenderer.d.ts +6 -0
- package/dist/renderer/svg/TableRenderer.d.ts.map +1 -0
- package/dist/renderer/svg/constants.d.ts +2 -0
- package/dist/renderer/svg/constants.d.ts.map +1 -0
- package/dist/starch-embed.iife.js +100 -0
- package/dist/starch.js +5973 -0
- package/package.json +51 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var YA=Object.defineProperty;var GA=(vn,au,hu)=>au in vn?YA(vn,au,{enumerable:!0,configurable:!0,writable:!0,value:hu}):vn[au]=hu;var Vn=(vn,au,hu)=>GA(vn,typeof au!="symbol"?au+"":au,hu);(function(){"use strict";function vn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var au={exports:{}},hu={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var df;function MD(){if(df)return hu;df=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(o,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var y in f)y!=="key"&&(d[y]=f[y])}else d=f;return f=d.ref,{$$typeof:n,type:o,key:h,ref:f!==void 0?f:null,props:d}}return hu.Fragment=a,hu.jsx=i,hu.jsxs=i,hu}var hf;function ND(){return hf||(hf=1,au.exports=MD()),au.exports}var re=ND(),Ec={exports:{}},ce={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Df;function ZD(){if(Df)return ce;Df=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function T(E){return E===null||typeof E!="object"?null:(E=_&&E[_]||E["@@iterator"],typeof E=="function"?E:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,$={};function j(E,U,Y){this.props=E,this.context=U,this.refs=$,this.updater=Y||H}j.prototype.isReactComponent={},j.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,U,"setState")},j.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function k(){}k.prototype=j.prototype;function Q(E,U,Y){this.props=E,this.context=U,this.refs=$,this.updater=Y||H}var G=Q.prototype=new k;G.constructor=Q,x(G,j.prototype),G.isPureReactComponent=!0;var L=Array.isArray;function ee(){}var V={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ye(E,U,Y){var J=Y.ref;return{$$typeof:n,type:E,key:U,ref:J!==void 0?J:null,props:Y}}function Se(E,U){return ye(E.type,U,E.props)}function Ae(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function ne(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Y){return U[Y]})}var Qe=/\/+/g;function He(E,U){return typeof E=="object"&&E!==null&&E.key!=null?ne(""+E.key):U.toString(36)}function _e(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ee,ee):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,U,Y,J,ie){var me=typeof E;(me==="undefined"||me==="boolean")&&(E=null);var de=!1;if(E===null)de=!0;else switch(me){case"bigint":case"string":case"number":de=!0;break;case"object":switch(E.$$typeof){case n:case a:de=!0;break;case g:return de=E._init,O(de(E._payload),U,Y,J,ie)}}if(de)return ie=ie(E),de=J===""?"."+He(E,0):J,L(ie)?(Y="",de!=null&&(Y=de.replace(Qe,"$&/")+"/"),O(ie,U,Y,"",function(Ct){return Ct})):ie!=null&&(Ae(ie)&&(ie=Se(ie,Y+(ie.key==null||E&&E.key===ie.key?"":(""+ie.key).replace(Qe,"$&/")+"/")+de)),U.push(ie)),1;de=0;var Ye=J===""?".":J+":";if(L(E))for(var ze=0;ze<E.length;ze++)J=E[ze],me=Ye+He(J,ze),de+=O(J,U,Y,me,ie);else if(ze=T(E),typeof ze=="function")for(E=ze.call(E),ze=0;!(J=E.next()).done;)J=J.value,me=Ye+He(J,ze++),de+=O(J,U,Y,me,ie);else if(me==="object"){if(typeof E.then=="function")return O(_e(E),U,Y,J,ie);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return de}function q(E,U,Y){if(E==null)return E;var J=[],ie=0;return O(E,J,"","",function(me){return U.call(Y,me,ie++)}),J}function X(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Y){(E._status===0||E._status===-1)&&(E._status=1,E._result=Y)},function(Y){(E._status===0||E._status===-1)&&(E._status=2,E._result=Y)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var le=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ae={map:q,forEach:function(E,U,Y){q(E,function(){U.apply(this,arguments)},Y)},count:function(E){var U=0;return q(E,function(){U++}),U},toArray:function(E){return q(E,function(U){return U})||[]},only:function(E){if(!Ae(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ce.Activity=v,ce.Children=ae,ce.Component=j,ce.Fragment=i,ce.Profiler=f,ce.PureComponent=Q,ce.StrictMode=o,ce.Suspense=D,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ce.__COMPILER_RUNTIME={__proto__:null,c:function(E){return V.H.useMemoCache(E)}},ce.cache=function(E){return function(){return E.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(E,U,Y){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=x({},E.props),ie=E.key;if(U!=null)for(me in U.key!==void 0&&(ie=""+U.key),U)!te.call(U,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&U.ref===void 0||(J[me]=U[me]);var me=arguments.length-2;if(me===1)J.children=Y;else if(1<me){for(var de=Array(me),Ye=0;Ye<me;Ye++)de[Ye]=arguments[Ye+2];J.children=de}return ye(E.type,ie,J)},ce.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ce.createElement=function(E,U,Y){var J,ie={},me=null;if(U!=null)for(J in U.key!==void 0&&(me=""+U.key),U)te.call(U,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ie[J]=U[J]);var de=arguments.length-2;if(de===1)ie.children=Y;else if(1<de){for(var Ye=Array(de),ze=0;ze<de;ze++)Ye[ze]=arguments[ze+2];ie.children=Ye}if(E&&E.defaultProps)for(J in de=E.defaultProps,de)ie[J]===void 0&&(ie[J]=de[J]);return ye(E,me,ie)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(E){return{$$typeof:y,render:E}},ce.isValidElement=Ae,ce.lazy=function(E){return{$$typeof:g,_payload:{_status:-1,_result:E},_init:X}},ce.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},ce.startTransition=function(E){var U=V.T,Y={};V.T=Y;try{var J=E(),ie=V.S;ie!==null&&ie(Y,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ee,le)}catch(me){le(me)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),V.T=U}},ce.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ce.use=function(E){return V.H.use(E)},ce.useActionState=function(E,U,Y){return V.H.useActionState(E,U,Y)},ce.useCallback=function(E,U){return V.H.useCallback(E,U)},ce.useContext=function(E){return V.H.useContext(E)},ce.useDebugValue=function(){},ce.useDeferredValue=function(E,U){return V.H.useDeferredValue(E,U)},ce.useEffect=function(E,U){return V.H.useEffect(E,U)},ce.useEffectEvent=function(E){return V.H.useEffectEvent(E)},ce.useId=function(){return V.H.useId()},ce.useImperativeHandle=function(E,U,Y){return V.H.useImperativeHandle(E,U,Y)},ce.useInsertionEffect=function(E,U){return V.H.useInsertionEffect(E,U)},ce.useLayoutEffect=function(E,U){return V.H.useLayoutEffect(E,U)},ce.useMemo=function(E,U){return V.H.useMemo(E,U)},ce.useOptimistic=function(E,U){return V.H.useOptimistic(E,U)},ce.useReducer=function(E,U,Y){return V.H.useReducer(E,U,Y)},ce.useRef=function(E){return V.H.useRef(E)},ce.useState=function(E){return V.H.useState(E)},ce.useSyncExternalStore=function(E,U,Y){return V.H.useSyncExternalStore(E,U,Y)},ce.useTransition=function(){return V.H.useTransition()},ce.version="19.2.4",ce}var mf;function bc(){return mf||(mf=1,Ec.exports=ZD()),Ec.exports}var Me=bc();const UD=vn(Me);var Cc={exports:{}},ql={},_c={exports:{}},Sc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var yf;function wD(){return yf||(yf=1,(function(n){function a(O,q){var X=O.length;O.push(q);e:for(;0<X;){var le=X-1>>>1,ae=O[le];if(0<f(ae,q))O[le]=q,O[X]=ae,X=le;else break e}}function i(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var q=O[0],X=O.pop();if(X!==q){O[0]=X;e:for(var le=0,ae=O.length,E=ae>>>1;le<E;){var U=2*(le+1)-1,Y=O[U],J=U+1,ie=O[J];if(0>f(Y,X))J<ae&&0>f(ie,Y)?(O[le]=ie,O[J]=X,le=J):(O[le]=Y,O[U]=X,le=U);else if(J<ae&&0>f(ie,X))O[le]=ie,O[J]=X,le=J;else break e}}return q}function f(O,q){var X=O.sortIndex-q.sortIndex;return X!==0?X:O.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var D=[],m=[],g=1,v=null,_=3,T=!1,H=!1,x=!1,$=!1,j=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function G(O){for(var q=i(m);q!==null;){if(q.callback===null)o(m);else if(q.startTime<=O)o(m),q.sortIndex=q.expirationTime,a(D,q);else break;q=i(m)}}function L(O){if(x=!1,G(O),!H)if(i(D)!==null)H=!0,ee||(ee=!0,ne());else{var q=i(m);q!==null&&_e(L,q.startTime-O)}}var ee=!1,V=-1,te=5,ye=-1;function Se(){return $?!0:!(n.unstable_now()-ye<te)}function Ae(){if($=!1,ee){var O=n.unstable_now();ye=O;var q=!0;try{e:{H=!1,x&&(x=!1,k(V),V=-1),T=!0;var X=_;try{t:{for(G(O),v=i(D);v!==null&&!(v.expirationTime>O&&Se());){var le=v.callback;if(typeof le=="function"){v.callback=null,_=v.priorityLevel;var ae=le(v.expirationTime<=O);if(O=n.unstable_now(),typeof ae=="function"){v.callback=ae,G(O),q=!0;break t}v===i(D)&&o(D),G(O)}else o(D);v=i(D)}if(v!==null)q=!0;else{var E=i(m);E!==null&&_e(L,E.startTime-O),q=!1}}break e}finally{v=null,_=X,T=!1}q=void 0}}finally{q?ne():ee=!1}}}var ne;if(typeof Q=="function")ne=function(){Q(Ae)};else if(typeof MessageChannel<"u"){var Qe=new MessageChannel,He=Qe.port2;Qe.port1.onmessage=Ae,ne=function(){He.postMessage(null)}}else ne=function(){j(Ae,0)};function _e(O,q){V=j(function(){O(n.unstable_now())},q)}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(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(O){switch(_){case 1:case 2:case 3:var q=3;break;default:q=_}var X=_;_=q;try{return O()}finally{_=X}},n.unstable_requestPaint=function(){$=!0},n.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var X=_;_=O;try{return q()}finally{_=X}},n.unstable_scheduleCallback=function(O,q,X){var le=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?le+X:le):X=le,O){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=X+ae,O={id:g++,callback:q,priorityLevel:O,startTime:X,expirationTime:ae,sortIndex:-1},X>le?(O.sortIndex=X,a(m,O),i(D)===null&&O===i(m)&&(x?(k(V),V=-1):x=!0,_e(L,X-le))):(O.sortIndex=ae,a(D,O),H||T||(H=!0,ee||(ee=!0,ne()))),O},n.unstable_shouldYield=Se,n.unstable_wrapCallback=function(O){var q=_;return function(){var X=_;_=q;try{return O.apply(this,arguments)}finally{_=X}}}})(Sc)),Sc}var pf;function jD(){return pf||(pf=1,_c.exports=wD()),_c.exports}var zc={exports:{}},bt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var gf;function RD(){if(gf)return bt;gf=1;var n=bc();function a(D){var m="https://react.dev/errors/"+D;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+D+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(D,m,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:D,containerInfo:m,implementation:g}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(D,m){if(D==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,bt.createPortal=function(D,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return d(D,m,null,g)},bt.flushSync=function(D){var m=h.T,g=o.p;try{if(h.T=null,o.p=2,D)return D()}finally{h.T=m,o.p=g,o.d.f()}},bt.preconnect=function(D,m){typeof D=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(D,m))},bt.prefetchDNS=function(D){typeof D=="string"&&o.d.D(D)},bt.preinit=function(D,m){if(typeof D=="string"&&m&&typeof m.as=="string"){var g=m.as,v=y(g,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?o.d.S(D,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:T}):g==="script"&&o.d.X(D,{crossOrigin:v,integrity:_,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bt.preinitModule=function(D,m){if(typeof D=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=y(m.as,m.crossOrigin);o.d.M(D,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(D)},bt.preload=function(D,m){if(typeof D=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,v=y(g,m.crossOrigin);o.d.L(D,g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bt.preloadModule=function(D,m){if(typeof D=="string")if(m){var g=y(m.as,m.crossOrigin);o.d.m(D,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(D)},bt.requestFormReset=function(D){o.d.r(D)},bt.unstable_batchedUpdates=function(D,m){return D(m)},bt.useFormState=function(D,m,g){return h.H.useFormState(D,m,g)},bt.useFormStatus=function(){return h.H.useHostTransitionStatus()},bt.version="19.2.4",bt}var vf;function HD(){if(vf)return zc.exports;vf=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(a){console.error(a)}}return n(),zc.exports=RD(),zc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Af;function qD(){if(Af)return ql;Af=1;var n=jD(),a=bc(),i=HD();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)t+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,u=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(u=t.return),e=t.return;while(e)}return t.tag===3?u:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function D(e){if(d(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var u=e,l=t;;){var c=u.return;if(c===null)break;var r=c.alternate;if(r===null){if(l=c.return,l!==null){u=l;continue}break}if(c.child===r.child){for(r=c.child;r;){if(r===u)return D(c),e;if(r===l)return D(c),t;r=r.sibling}throw Error(o(188))}if(u.return!==l.return)u=c,l=r;else{for(var s=!1,p=c.child;p;){if(p===u){s=!0,u=c,l=r;break}if(p===l){s=!0,l=c,u=r;break}p=p.sibling}if(!s){for(p=r.child;p;){if(p===u){s=!0,u=r,l=c;break}if(p===l){s=!0,l=r,u=c;break}p=p.sibling}if(!s)throw Error(o(189))}}if(u.alternate!==l)throw Error(o(190))}if(u.tag!==3)throw Error(o(188));return u.stateNode.current===u?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var Qe=Symbol.for("react.client.reference");function He(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case j:return"Profiler";case $:return"StrictMode";case L:return"Suspense";case ee:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case Q:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:He(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return He(e(t))}catch{}}return null}var _e=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},le=[],ae=-1;function E(e){return{current:e}}function U(e){0>ae||(e.current=le[ae],le[ae]=null,ae--)}function Y(e,t){ae++,le[ae]=e.current,e.current=t}var J=E(null),ie=E(null),me=E(null),de=E(null);function Ye(e,t){switch(Y(me,t),Y(ie,e),Y(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tD(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tD(t),e=uD(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(J),Y(J,e)}function ze(){U(J),U(ie),U(me)}function Ct(e){e.memoizedState!==null&&Y(de,e);var t=J.current,u=uD(t,e.type);t!==u&&(Y(ie,e),Y(J,u))}function Rt(e){ie.current===e&&(U(J),U(ie)),de.current===e&&(U(de),wa._currentValue=X)}var Lt,Cu;function Du(e){if(Lt===void 0)try{throw Error()}catch(u){var t=u.stack.trim().match(/\n( *(at )?)/);Lt=t&&t[1]||"",Cu=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Lt+e+Cu}var Vl=!1;function tl(e,t){if(!e||Vl)return"";Vl=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(F){var B=F}Reflect.construct(e,[],w)}else{try{w.call()}catch(F){B=F}e.call(w.prototype)}}else{try{throw Error()}catch(F){B=F}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(F){if(F&&B&&typeof F.stack=="string")return[F.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),s=r[0],p=r[1];if(s&&p){var A=s.split(`
|
|
44
|
+
`),z=p.split(`
|
|
45
|
+
`);for(c=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;if(l===A.length||c===z.length)for(l=A.length-1,c=z.length-1;1<=l&&0<=c&&A[l]!==z[c];)c--;for(;1<=l&&0<=c;l--,c--)if(A[l]!==z[c]){if(l!==1||c!==1)do if(l--,c--,0>c||A[l]!==z[c]){var M=`
|
|
46
|
+
`+A[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=c);break}}}finally{Vl=!1,Error.prepareStackTrace=u}return(u=e?e.displayName||e.name:"")?Du(u):""}function Ge(e,t){switch(e.tag){case 26:case 27:case 5:return Du(e.type);case 16:return Du("Lazy");case 13:return e.child!==t&&t!==null?Du("Suspense Fallback"):Du("Suspense");case 19:return Du("SuspenseList");case 0:case 15:return tl(e.type,!1);case 11:return tl(e.type.render,!1);case 1:return tl(e.type,!0);case 31:return Du("Activity");default:return""}}function qe(e){try{var t="",u=null;do t+=Ge(e,u),u=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Oe=Object.prototype.hasOwnProperty,_t=n.unstable_scheduleCallback,cu=n.unstable_cancelCallback,Qu=n.unstable_shouldYield,yt=n.unstable_requestPaint,Be=n.unstable_now,Bn=n.unstable_getCurrentPriorityLevel,Ot=n.unstable_ImmediatePriority,ou=n.unstable_UserBlockingPriority,ru=n.unstable_NormalPriority,Tn=n.unstable_LowPriority,Lu=n.unstable_IdlePriority,Vt=n.log,Wc=n.unstable_setDisableYieldValue,Fn=null,it=null;function mu(e){if(typeof Vt=="function"&&Wc(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Fn,e)}catch{}}var Bt=Math.clz32?Math.clz32:Tv,zv=Math.log,Bv=Math.LN2;function Tv(e){return e>>>=0,e===0?32:31-(zv(e)/Bv|0)|0}var ai=256,ii=262144,ci=4194304;function On(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function oi(e,t,u){var l=e.pendingLanes;if(l===0)return 0;var c=0,r=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~r,l!==0?c=On(l):(s&=p,s!==0?c=On(s):u||(u=p&~e,u!==0&&(c=On(u))))):(p=l&~r,p!==0?c=On(p):s!==0?c=On(s):u||(u=l&~e,u!==0&&(c=On(u)))),c===0?0:t!==0&&t!==c&&(t&r)===0&&(r=c&-c,u=t&-t,r>=u||r===32&&(u&4194048)!==0)?t:c}function Jl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ws(){var e=ci;return ci<<=1,(ci&62914560)===0&&(ci=4194304),e}function Ic(e){for(var t=[],u=0;31>u;u++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ov(e,t,u,l,c,r){var s=e.pendingLanes;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=u,e.entangledLanes&=u,e.errorRecoveryDisabledLanes&=u,e.shellSuspendCounter=0;var p=e.entanglements,A=e.expirationTimes,z=e.hiddenUpdates;for(u=s&~u;0<u;){var M=31-Bt(u),w=1<<M;p[M]=0,A[M]=-1;var B=z[M];if(B!==null)for(z[M]=null,M=0;M<B.length;M++){var F=B[M];F!==null&&(F.lane&=-536870913)}u&=~w}l!==0&&js(e,l,0),r!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=r&~(s&~t))}function js(e,t,u){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|u&261930}function Rs(e,t){var u=e.entangledLanes|=t;for(e=e.entanglements;u;){var l=31-Bt(u),c=1<<l;c&t|e[l]&t&&(e[l]|=t),u&=~c}}function Hs(e,t){var u=t&-t;return u=(u&42)!==0?1:Pc(u),(u&(e.suspendedLanes|t))!==0?0:u}function Pc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function eo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qs(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:SD(e.type))}function $s(e,t){var u=q.p;try{return q.p=e,t()}finally{q.p=u}}var Vu=Math.random().toString(36).slice(2),pt="__reactFiber$"+Vu,xt="__reactProps$"+Vu,ul="__reactContainer$"+Vu,to="__reactEvents$"+Vu,xv="__reactListeners$"+Vu,Mv="__reactHandles$"+Vu,Ys="__reactResources$"+Vu,Wl="__reactMarker$"+Vu;function uo(e){delete e[pt],delete e[xt],delete e[to],delete e[xv],delete e[Mv]}function nl(e){var t=e[pt];if(t)return t;for(var u=e.parentNode;u;){if(t=u[ul]||u[pt]){if(u=t.alternate,t.child!==null||u!==null&&u.child!==null)for(e=rD(e);e!==null;){if(u=e[pt])return u;e=rD(e)}return t}e=u,u=e.parentNode}return null}function ll(e){if(e=e[pt]||e[ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function al(e){var t=e[Ys];return t||(t=e[Ys]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[Wl]=!0}var Gs=new Set,ks={};function xn(e,t){il(e,t),il(e+"Capture",t)}function il(e,t){for(ks[e]=t,e=0;e<t.length;e++)Gs.add(t[e])}var Nv=RegExp("^[: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]*$"),Xs={},Qs={};function Zv(e){return Oe.call(Qs,e)?!0:Oe.call(Xs,e)?!1:Nv.test(e)?Qs[e]=!0:(Xs[e]=!0,!1)}function ri(e,t,u){if(Zv(t))if(u===null)e.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+u)}}function fi(e,t,u){if(u===null)e.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+u)}}function _u(e,t,u,l){if(l===null)e.removeAttribute(u);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(u);return}e.setAttributeNS(t,u,""+l)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ls(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e,t,u){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(s){u=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(s){u=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){if(!e._valueTracker){var t=Ls(e)?"checked":"value";e._valueTracker=Uv(e,t,""+e[t])}}function Vs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var u=t.getValue(),l="";return e&&(l=Ls(e)?e.checked?"true":"false":e.value),e=l,e!==u?(t.setValue(e),!0):!1}function si(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}}var wv=/[\n"\\]/g;function Kt(e){return e.replace(wv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lo(e,t,u,l,c,r,s,p){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?ao(e,s,Jt(t)):u!=null?ao(e,s,Jt(u)):l!=null&&e.removeAttribute("value"),c==null&&r!=null&&(e.defaultChecked=!!r),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Jt(p):e.removeAttribute("name")}function Js(e,t,u,l,c,r,s,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||u!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){no(e);return}u=u!=null?""+Jt(u):"",t=t!=null?""+Jt(t):u,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),no(e)}function ao(e,t,u){t==="number"&&si(e.ownerDocument)===e||e.defaultValue===""+u||(e.defaultValue=""+u)}function cl(e,t,u,l){if(e=e.options,t){t={};for(var c=0;c<u.length;c++)t["$"+u[c]]=!0;for(u=0;u<e.length;u++)c=t.hasOwnProperty("$"+e[u].value),e[u].selected!==c&&(e[u].selected=c),c&&l&&(e[u].defaultSelected=!0)}else{for(u=""+Jt(u),t=null,c=0;c<e.length;c++){if(e[c].value===u){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Ks(e,t,u){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),u==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=u!=null?""+Jt(u):""}function Ws(e,t,u,l){if(t==null){if(l!=null){if(u!=null)throw Error(o(92));if(_e(l)){if(1<l.length)throw Error(o(93));l=l[0]}u=l}u==null&&(u=""),t=u}u=Jt(t),e.defaultValue=u,l=e.textContent,l===u&&l!==""&&l!==null&&(e.value=l),no(e)}function ol(e,t){if(t){var u=e.firstChild;if(u&&u===e.lastChild&&u.nodeType===3){u.nodeValue=t;return}}e.textContent=t}var jv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Is(e,t,u){var l=t.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,u):typeof u!="number"||u===0||jv.has(t)?t==="float"?e.cssFloat=u:e[t]=(""+u).trim():e[t]=u+"px"}function Ps(e,t,u){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,u!=null){for(var l in u)!u.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&u[c]!==l&&Is(e,c,l)}else for(var r in t)t.hasOwnProperty(r)&&Is(e,r,t[r])}function io(e){if(e.indexOf("-")===-1)return!1;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 Rv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function di(e){return Hv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Su(){}var co=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,fl=null;function e0(e){var t=ll(e);if(t&&(e=t.stateNode)){var u=e[xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(lo(e,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),t=u.name,u.type==="radio"&&t!=null){for(u=e;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Kt(""+t)+'"][type="radio"]'),t=0;t<u.length;t++){var l=u[t];if(l!==e&&l.form===e.form){var c=l[xt]||null;if(!c)throw Error(o(90));lo(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<u.length;t++)l=u[t],l.form===e.form&&Vs(l)}break e;case"textarea":Ks(e,u.value,u.defaultValue);break e;case"select":t=u.value,t!=null&&cl(e,!!u.multiple,t,!1)}}}var ro=!1;function t0(e,t,u){if(ro)return e(t,u);ro=!0;try{var l=e(t);return l}finally{if(ro=!1,(rl!==null||fl!==null)&&(Pi(),rl&&(t=rl,e=fl,fl=rl=null,e0(t),e)))for(t=0;t<e.length;t++)e0(e[t])}}function Pl(e,t){var u=e.stateNode;if(u===null)return null;var l=u[xt]||null;if(l===null)return null;u=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(u&&typeof u!="function")throw Error(o(231,t,typeof u));return u}var zu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fo=!1;if(zu)try{var ea={};Object.defineProperty(ea,"passive",{get:function(){fo=!0}}),window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{fo=!1}var Ju=null,so=null,hi=null;function u0(){if(hi)return hi;var e,t=so,u=t.length,l,c="value"in Ju?Ju.value:Ju.textContent,r=c.length;for(e=0;e<u&&t[e]===c[e];e++);var s=u-e;for(l=1;l<=s&&t[u-l]===c[r-l];l++);return hi=c.slice(e,1<l?1-l:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function n0(){return!1}function Mt(e){function t(u,l,c,r,s){this._reactName=u,this._targetInst=c,this.type=l,this.nativeEvent=r,this.target=s,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(u=e[p],this[p]=u?u(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?mi:n0,this.isPropagationStopped=n0,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yi=Mt(Mn),ta=v({},Mn,{view:0,detail:0}),qv=Mt(ta),ho,Do,ua,pi=v({},ta,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yo,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!==ua&&(ua&&e.type==="mousemove"?(ho=e.screenX-ua.screenX,Do=e.screenY-ua.screenY):Do=ho=0,ua=e),ho)},movementY:function(e){return"movementY"in e?e.movementY:Do}}),l0=Mt(pi),$v=v({},pi,{dataTransfer:0}),Yv=Mt($v),Gv=v({},ta,{relatedTarget:0}),mo=Mt(Gv),kv=v({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Xv=Mt(kv),Qv=v({},Mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lv=Mt(Qv),Vv=v({},Mn,{data:0}),a0=Mt(Vv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={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"},Wv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wv[e])?!!t[e]:!1}function yo(){return Iv}var Pv=v({},ta,{key:function(e){if(e.key){var t=Jv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yo,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e2=Mt(Pv),t2=v({},pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),i0=Mt(t2),u2=v({},ta,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yo}),n2=Mt(u2),l2=v({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),a2=Mt(l2),i2=v({},pi,{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}),c2=Mt(i2),o2=v({},Mn,{newState:0,oldState:0}),r2=Mt(o2),f2=[9,13,27,32],po=zu&&"CompositionEvent"in window,na=null;zu&&"documentMode"in document&&(na=document.documentMode);var s2=zu&&"TextEvent"in window&&!na,c0=zu&&(!po||na&&8<na&&11>=na),o0=" ",r0=!1;function f0(e,t){switch(e){case"keyup":return f2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function s0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function d2(e,t){switch(e){case"compositionend":return s0(t);case"keypress":return t.which!==32?null:(r0=!0,o0);case"textInput":return e=t.data,e===o0&&r0?null:e;default:return null}}function h2(e,t){if(sl)return e==="compositionend"||!po&&f0(e,t)?(e=u0(),hi=so=Ju=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return c0&&t.locale!=="ko"?null:t.data;default:return null}}var D2={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 d0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!D2[e.type]:t==="textarea"}function h0(e,t,u,l){rl?fl?fl.push(l):fl=[l]:rl=l,t=ic(t,"onChange"),0<t.length&&(u=new yi("onChange","change",null,u,l),e.push({event:u,listeners:t}))}var la=null,aa=null;function m2(e){Jh(e,0)}function gi(e){var t=Il(e);if(Vs(t))return e}function D0(e,t){if(e==="change")return t}var m0=!1;if(zu){var go;if(zu){var vo="oninput"in document;if(!vo){var y0=document.createElement("div");y0.setAttribute("oninput","return;"),vo=typeof y0.oninput=="function"}go=vo}else go=!1;m0=go&&(!document.documentMode||9<document.documentMode)}function p0(){la&&(la.detachEvent("onpropertychange",g0),aa=la=null)}function g0(e){if(e.propertyName==="value"&&gi(aa)){var t=[];h0(t,aa,e,oo(e)),t0(m2,t)}}function y2(e,t,u){e==="focusin"?(p0(),la=t,aa=u,la.attachEvent("onpropertychange",g0)):e==="focusout"&&p0()}function p2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gi(aa)}function g2(e,t){if(e==="click")return gi(t)}function v2(e,t){if(e==="input"||e==="change")return gi(t)}function A2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:A2;function ia(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var u=Object.keys(e),l=Object.keys(t);if(u.length!==l.length)return!1;for(l=0;l<u.length;l++){var c=u[l];if(!Oe.call(t,c)||!Ht(e[c],t[c]))return!1}return!0}function v0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function A0(e,t){var u=v0(e);e=0;for(var l;u;){if(u.nodeType===3){if(l=e+u.textContent.length,e<=t&&l>=t)return{node:u,offset:t-e};e=l}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=v0(u)}}function E0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=si(e.document);t instanceof e.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)e=t.contentWindow;else break;t=si(e.document)}return t}function Ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var E2=zu&&"documentMode"in document&&11>=document.documentMode,dl=null,Eo=null,ca=null,bo=!1;function C0(e,t,u){var l=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;bo||dl==null||dl!==si(l)||(l=dl,"selectionStart"in l&&Ao(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ca&&ia(ca,l)||(ca=l,l=ic(Eo,"onSelect"),0<l.length&&(t=new yi("onSelect","select",null,t,u),e.push({event:t,listeners:l}),t.target=dl)))}function Nn(e,t){var u={};return u[e.toLowerCase()]=t.toLowerCase(),u["Webkit"+e]="webkit"+t,u["Moz"+e]="moz"+t,u}var hl={animationend:Nn("Animation","AnimationEnd"),animationiteration:Nn("Animation","AnimationIteration"),animationstart:Nn("Animation","AnimationStart"),transitionrun:Nn("Transition","TransitionRun"),transitionstart:Nn("Transition","TransitionStart"),transitioncancel:Nn("Transition","TransitionCancel"),transitionend:Nn("Transition","TransitionEnd")},Co={},_0={};zu&&(_0=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function Zn(e){if(Co[e])return Co[e];if(!hl[e])return e;var t=hl[e],u;for(u in t)if(t.hasOwnProperty(u)&&u in _0)return Co[e]=t[u];return e}var S0=Zn("animationend"),z0=Zn("animationiteration"),B0=Zn("animationstart"),b2=Zn("transitionrun"),C2=Zn("transitionstart"),_2=Zn("transitioncancel"),T0=Zn("transitionend"),F0=new Map,_o="abort auxClick beforeToggle 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(" ");_o.push("scrollEnd");function fu(e,t){F0.set(e,t),xn(t,[e])}var vi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wt=[],Dl=0,So=0;function Ai(){for(var e=Dl,t=So=Dl=0;t<e;){var u=Wt[t];Wt[t++]=null;var l=Wt[t];Wt[t++]=null;var c=Wt[t];Wt[t++]=null;var r=Wt[t];if(Wt[t++]=null,l!==null&&c!==null){var s=l.pending;s===null?c.next=c:(c.next=s.next,s.next=c),l.pending=c}r!==0&&O0(u,c,r)}}function Ei(e,t,u,l){Wt[Dl++]=e,Wt[Dl++]=t,Wt[Dl++]=u,Wt[Dl++]=l,So|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function zo(e,t,u,l){return Ei(e,t,u,l),bi(e)}function Un(e,t){return Ei(e,null,null,t),bi(e)}function O0(e,t,u){e.lanes|=u;var l=e.alternate;l!==null&&(l.lanes|=u);for(var c=!1,r=e.return;r!==null;)r.childLanes|=u,l=r.alternate,l!==null&&(l.childLanes|=u),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(c=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,c&&t!==null&&(c=31-Bt(u),e=r.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=u|536870912),r):null}function bi(e){if(50<Fa)throw Fa=0,Ur=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ml={};function S2(e,t,u,l){this.tag=e,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,t,u,l){return new S2(e,t,u,l)}function Bo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bu(e,t){var u=e.alternate;return u===null?(u=qt(e.tag,t,e.key,e.mode),u.elementType=e.elementType,u.type=e.type,u.stateNode=e.stateNode,u.alternate=e,e.alternate=u):(u.pendingProps=t,u.type=e.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=e.flags&65011712,u.childLanes=e.childLanes,u.lanes=e.lanes,u.child=e.child,u.memoizedProps=e.memoizedProps,u.memoizedState=e.memoizedState,u.updateQueue=e.updateQueue,t=e.dependencies,u.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},u.sibling=e.sibling,u.index=e.index,u.ref=e.ref,u.refCleanup=e.refCleanup,u}function x0(e,t){e.flags&=65011714;var u=e.alternate;return u===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=u.childLanes,e.lanes=u.lanes,e.child=u.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=u.memoizedProps,e.memoizedState=u.memoizedState,e.updateQueue=u.updateQueue,e.type=u.type,t=u.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ci(e,t,u,l,c,r){var s=0;if(l=e,typeof e=="function")Bo(e)&&(s=1);else if(typeof e=="string")s=OA(e,u,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=qt(31,u,t,c),e.elementType=ye,e.lanes=r,e;case x:return wn(u.children,c,r,t);case $:s=8,c|=24;break;case j:return e=qt(12,u,t,c|2),e.elementType=j,e.lanes=r,e;case L:return e=qt(13,u,t,c),e.elementType=L,e.lanes=r,e;case ee:return e=qt(19,u,t,c),e.elementType=ee,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:s=10;break e;case k:s=9;break e;case G:s=11;break e;case V:s=14;break e;case te:s=16,l=null;break e}s=29,u=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=qt(s,u,t,c),t.elementType=e,t.type=l,t.lanes=r,t}function wn(e,t,u,l){return e=qt(7,e,l,t),e.lanes=u,e}function To(e,t,u){return e=qt(6,e,null,t),e.lanes=u,e}function M0(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function Fo(e,t,u){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=u,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var N0=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var u=N0.get(e);return u!==void 0?u:(t={value:e,source:t,stack:qe(t)},N0.set(e,t),t)}return{value:e,source:t,stack:qe(t)}}var yl=[],pl=0,_i=null,oa=0,Pt=[],eu=0,Ku=null,yu=1,pu="";function Tu(e,t){yl[pl++]=oa,yl[pl++]=_i,_i=e,oa=t}function Z0(e,t,u){Pt[eu++]=yu,Pt[eu++]=pu,Pt[eu++]=Ku,Ku=e;var l=yu;e=pu;var c=32-Bt(l)-1;l&=~(1<<c),u+=1;var r=32-Bt(t)+c;if(30<r){var s=c-c%5;r=(l&(1<<s)-1).toString(32),l>>=s,c-=s,yu=1<<32-Bt(t)+c|u<<c|l,pu=r+e}else yu=1<<r|u<<c|l,pu=e}function Oo(e){e.return!==null&&(Tu(e,1),Z0(e,1,0))}function xo(e){for(;e===_i;)_i=yl[--pl],yl[pl]=null,oa=yl[--pl],yl[pl]=null;for(;e===Ku;)Ku=Pt[--eu],Pt[eu]=null,pu=Pt[--eu],Pt[eu]=null,yu=Pt[--eu],Pt[eu]=null}function U0(e,t){Pt[eu++]=yu,Pt[eu++]=pu,Pt[eu++]=Ku,yu=t.id,pu=t.overflow,Ku=e}var gt=null,Le=null,Ce=!1,Wu=null,tu=!1,Mo=Error(o(519));function Iu(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ra(It(t,e)),Mo}function w0(e){var t=e.stateNode,u=e.type,l=e.memoizedProps;switch(t[pt]=e,t[xt]=l,u){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(u=0;u<xa.length;u++)ge(xa[u],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),Js(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),Ws(t,l.value,l.defaultValue,l.children)}u=l.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||t.textContent===""+u||l.suppressHydrationWarning===!0||Ph(t.textContent,u)?(l.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),l.onScroll!=null&&ge("scroll",t),l.onScrollEnd!=null&&ge("scrollend",t),l.onClick!=null&&(t.onclick=Su),t=!0):t=!1,t||Iu(e,!0)}function j0(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:tu=!1;return;case 27:case 3:tu=!0;return;default:gt=gt.return}}function gl(e){if(e!==gt)return!1;if(!Ce)return j0(e),Ce=!0,!1;var t=e.tag,u;if((u=t!==3&&t!==27)&&((u=t===5)&&(u=e.type,u=!(u!=="form"&&u!=="button")||Kr(e.type,e.memoizedProps)),u=!u),u&&Le&&Iu(e),j0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=oD(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=oD(e)}else t===27?(t=Le,hn(e.type)?(e=tf,tf=null,Le=e):Le=t):Le=gt?nu(e.stateNode.nextSibling):null;return!0}function jn(){Le=gt=null,Ce=!1}function No(){var e=Wu;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),Wu=null),e}function ra(e){Wu===null?Wu=[e]:Wu.push(e)}var Zo=E(null),Rn=null,Fu=null;function Pu(e,t,u){Y(Zo,t._currentValue),t._currentValue=u}function Ou(e){e._currentValue=Zo.current,U(Zo)}function Uo(e,t,u){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===u)break;e=e.return}}function wo(e,t,u,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var r=c.dependencies;if(r!==null){var s=c.child;r=r.firstContext;e:for(;r!==null;){var p=r;r=c;for(var A=0;A<t.length;A++)if(p.context===t[A]){r.lanes|=u,p=r.alternate,p!==null&&(p.lanes|=u),Uo(r.return,u,e),l||(s=null);break e}r=p.next}}else if(c.tag===18){if(s=c.return,s===null)throw Error(o(341));s.lanes|=u,r=s.alternate,r!==null&&(r.lanes|=u),Uo(s,u,e),s=null}else s=c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===e){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}}function vl(e,t,u,l){e=null;for(var c=t,r=!1;c!==null;){if(!r){if((c.flags&524288)!==0)r=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var s=c.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var p=c.type;Ht(c.pendingProps.value,s.value)||(e!==null?e.push(p):e=[p])}}else if(c===de.current){if(s=c.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(wa):e=[wa])}c=c.return}e!==null&&wo(t,e,u,l),t.flags|=262144}function Si(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hn(e){Rn=e,Fu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return R0(Rn,e)}function zi(e,t){return Rn===null&&Hn(e),R0(e,t)}function R0(e,t){var u=t._currentValue;if(t={context:t,memoizedValue:u,next:null},Fu===null){if(e===null)throw Error(o(308));Fu=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fu=Fu.next=t;return u}var z2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(u,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(u){return u()})}},B2=n.unstable_scheduleCallback,T2=n.unstable_NormalPriority,ct={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jo(){return{controller:new z2,data:new Map,refCount:0}}function fa(e){e.refCount--,e.refCount===0&&B2(T2,function(){e.controller.abort()})}var sa=null,Ro=0,Al=0,El=null;function F2(e,t){if(sa===null){var u=sa=[];Ro=0,Al=$r(),El={status:"pending",value:void 0,then:function(l){u.push(l)}}}return Ro++,t.then(H0,H0),t}function H0(){if(--Ro===0&&sa!==null){El!==null&&(El.status="fulfilled");var e=sa;sa=null,Al=0,El=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O2(e,t){var u=[],l={status:"pending",value:null,reason:null,then:function(c){u.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<u.length;c++)(0,u[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<u.length;c++)(0,u[c])(void 0)}),l}var q0=O.S;O.S=function(e,t){Ch=Be(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&F2(e,t),q0!==null&&q0(e,t)};var qn=E(null);function Ho(){var e=qn.current;return e!==null?e:$e.pooledCache}function Bi(e,t){t===null?Y(qn,qn.current):Y(qn,t.pool)}function $0(){var e=Ho();return e===null?null:{parent:ct._currentValue,pool:e}}var bl=Error(o(460)),qo=Error(o(474)),Ti=Error(o(542)),Fi={then:function(){}};function Y0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function G0(e,t,u){switch(u=e[u],u===void 0?e.push(t):u!==t&&(t.then(Su,Su),t=u),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e;default:if(typeof t.status=="string")t.then(Su,Su);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e}throw Yn=t,bl}}function $n(e){try{var t=e._init;return t(e._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Yn=u,bl):u}}var Yn=null;function k0(){if(Yn===null)throw Error(o(459));var e=Yn;return Yn=null,e}function X0(e){if(e===bl||e===Ti)throw Error(o(483))}var Cl=null,da=0;function Oi(e){var t=da;return da+=1,Cl===null&&(Cl=[]),G0(Cl,e,t)}function ha(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(e,t){throw t.$$typeof===_?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Q0(e){function t(C,b){if(e){var S=C.deletions;S===null?(C.deletions=[b],C.flags|=16):S.push(b)}}function u(C,b){if(!e)return null;for(;b!==null;)t(C,b),b=b.sibling;return null}function l(C){for(var b=new Map;C!==null;)C.key!==null?b.set(C.key,C):b.set(C.index,C),C=C.sibling;return b}function c(C,b){return C=Bu(C,b),C.index=0,C.sibling=null,C}function r(C,b,S){return C.index=S,e?(S=C.alternate,S!==null?(S=S.index,S<b?(C.flags|=67108866,b):S):(C.flags|=67108866,b)):(C.flags|=1048576,b)}function s(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,b,S,N){return b===null||b.tag!==6?(b=To(S,C.mode,N),b.return=C,b):(b=c(b,S),b.return=C,b)}function A(C,b,S,N){var P=S.type;return P===x?M(C,b,S.props.children,N,S.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===te&&$n(P)===b.type)?(b=c(b,S.props),ha(b,S),b.return=C,b):(b=Ci(S.type,S.key,S.props,null,C.mode,N),ha(b,S),b.return=C,b)}function z(C,b,S,N){return b===null||b.tag!==4||b.stateNode.containerInfo!==S.containerInfo||b.stateNode.implementation!==S.implementation?(b=Fo(S,C.mode,N),b.return=C,b):(b=c(b,S.children||[]),b.return=C,b)}function M(C,b,S,N,P){return b===null||b.tag!==7?(b=wn(S,C.mode,N,P),b.return=C,b):(b=c(b,S),b.return=C,b)}function w(C,b,S){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=To(""+b,C.mode,S),b.return=C,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case T:return S=Ci(b.type,b.key,b.props,null,C.mode,S),ha(S,b),S.return=C,S;case H:return b=Fo(b,C.mode,S),b.return=C,b;case te:return b=$n(b),w(C,b,S)}if(_e(b)||ne(b))return b=wn(b,C.mode,S,null),b.return=C,b;if(typeof b.then=="function")return w(C,Oi(b),S);if(b.$$typeof===Q)return w(C,zi(C,b),S);xi(C,b)}return null}function B(C,b,S,N){var P=b!==null?b.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return P!==null?null:p(C,b,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case T:return S.key===P?A(C,b,S,N):null;case H:return S.key===P?z(C,b,S,N):null;case te:return S=$n(S),B(C,b,S,N)}if(_e(S)||ne(S))return P!==null?null:M(C,b,S,N,null);if(typeof S.then=="function")return B(C,b,Oi(S),N);if(S.$$typeof===Q)return B(C,b,zi(C,S),N);xi(C,S)}return null}function F(C,b,S,N,P){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return C=C.get(S)||null,p(b,C,""+N,P);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return C=C.get(N.key===null?S:N.key)||null,A(b,C,N,P);case H:return C=C.get(N.key===null?S:N.key)||null,z(b,C,N,P);case te:return N=$n(N),F(C,b,S,N,P)}if(_e(N)||ne(N))return C=C.get(S)||null,M(b,C,N,P,null);if(typeof N.then=="function")return F(C,b,S,Oi(N),P);if(N.$$typeof===Q)return F(C,b,S,zi(b,N),P);xi(b,N)}return null}function K(C,b,S,N){for(var P=null,Te=null,W=b,he=b=0,be=null;W!==null&&he<S.length;he++){W.index>he?(be=W,W=null):be=W.sibling;var Fe=B(C,W,S[he],N);if(Fe===null){W===null&&(W=be);break}e&&W&&Fe.alternate===null&&t(C,W),b=r(Fe,b,he),Te===null?P=Fe:Te.sibling=Fe,Te=Fe,W=be}if(he===S.length)return u(C,W),Ce&&Tu(C,he),P;if(W===null){for(;he<S.length;he++)W=w(C,S[he],N),W!==null&&(b=r(W,b,he),Te===null?P=W:Te.sibling=W,Te=W);return Ce&&Tu(C,he),P}for(W=l(W);he<S.length;he++)be=F(W,C,he,S[he],N),be!==null&&(e&&be.alternate!==null&&W.delete(be.key===null?he:be.key),b=r(be,b,he),Te===null?P=be:Te.sibling=be,Te=be);return e&&W.forEach(function(gn){return t(C,gn)}),Ce&&Tu(C,he),P}function ue(C,b,S,N){if(S==null)throw Error(o(151));for(var P=null,Te=null,W=b,he=b=0,be=null,Fe=S.next();W!==null&&!Fe.done;he++,Fe=S.next()){W.index>he?(be=W,W=null):be=W.sibling;var gn=B(C,W,Fe.value,N);if(gn===null){W===null&&(W=be);break}e&&W&&gn.alternate===null&&t(C,W),b=r(gn,b,he),Te===null?P=gn:Te.sibling=gn,Te=gn,W=be}if(Fe.done)return u(C,W),Ce&&Tu(C,he),P;if(W===null){for(;!Fe.done;he++,Fe=S.next())Fe=w(C,Fe.value,N),Fe!==null&&(b=r(Fe,b,he),Te===null?P=Fe:Te.sibling=Fe,Te=Fe);return Ce&&Tu(C,he),P}for(W=l(W);!Fe.done;he++,Fe=S.next())Fe=F(W,C,he,Fe.value,N),Fe!==null&&(e&&Fe.alternate!==null&&W.delete(Fe.key===null?he:Fe.key),b=r(Fe,b,he),Te===null?P=Fe:Te.sibling=Fe,Te=Fe);return e&&W.forEach(function($A){return t(C,$A)}),Ce&&Tu(C,he),P}function Re(C,b,S,N){if(typeof S=="object"&&S!==null&&S.type===x&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case T:e:{for(var P=S.key;b!==null;){if(b.key===P){if(P=S.type,P===x){if(b.tag===7){u(C,b.sibling),N=c(b,S.props.children),N.return=C,C=N;break e}}else if(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===te&&$n(P)===b.type){u(C,b.sibling),N=c(b,S.props),ha(N,S),N.return=C,C=N;break e}u(C,b);break}else t(C,b);b=b.sibling}S.type===x?(N=wn(S.props.children,C.mode,N,S.key),N.return=C,C=N):(N=Ci(S.type,S.key,S.props,null,C.mode,N),ha(N,S),N.return=C,C=N)}return s(C);case H:e:{for(P=S.key;b!==null;){if(b.key===P)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){u(C,b.sibling),N=c(b,S.children||[]),N.return=C,C=N;break e}else{u(C,b);break}else t(C,b);b=b.sibling}N=Fo(S,C.mode,N),N.return=C,C=N}return s(C);case te:return S=$n(S),Re(C,b,S,N)}if(_e(S))return K(C,b,S,N);if(ne(S)){if(P=ne(S),typeof P!="function")throw Error(o(150));return S=P.call(S),ue(C,b,S,N)}if(typeof S.then=="function")return Re(C,b,Oi(S),N);if(S.$$typeof===Q)return Re(C,b,zi(C,S),N);xi(C,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,b!==null&&b.tag===6?(u(C,b.sibling),N=c(b,S),N.return=C,C=N):(u(C,b),N=To(S,C.mode,N),N.return=C,C=N),s(C)):u(C,b)}return function(C,b,S,N){try{da=0;var P=Re(C,b,S,N);return Cl=null,P}catch(W){if(W===bl||W===Ti)throw W;var Te=qt(29,W,null,C.mode);return Te.lanes=N,Te.return=C,Te}finally{}}}var Gn=Q0(!0),L0=Q0(!1),en=!1;function $o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function un(e,t,u){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(xe&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=bi(e),O0(e,null,u),t}return Ei(e,l,t,u),bi(e)}function Da(e,t,u){if(t=t.updateQueue,t!==null&&(t=t.shared,(u&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,u|=l,t.lanes=u,Rs(e,u)}}function Go(e,t){var u=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,u===l)){var c=null,r=null;if(u=u.firstBaseUpdate,u!==null){do{var s={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};r===null?c=r=s:r=r.next=s,u=u.next}while(u!==null);r===null?c=r=t:r=r.next=t}else c=r=t;u={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=u;return}e=u.lastBaseUpdate,e===null?u.firstBaseUpdate=t:e.next=t,u.lastBaseUpdate=t}var ko=!1;function ma(){if(ko){var e=El;if(e!==null)throw e}}function ya(e,t,u,l){ko=!1;var c=e.updateQueue;en=!1;var r=c.firstBaseUpdate,s=c.lastBaseUpdate,p=c.shared.pending;if(p!==null){c.shared.pending=null;var A=p,z=A.next;A.next=null,s===null?r=z:s.next=z,s=A;var M=e.alternate;M!==null&&(M=M.updateQueue,p=M.lastBaseUpdate,p!==s&&(p===null?M.firstBaseUpdate=z:p.next=z,M.lastBaseUpdate=A))}if(r!==null){var w=c.baseState;s=0,M=z=A=null,p=r;do{var B=p.lane&-536870913,F=B!==p.lane;if(F?(Ee&B)===B:(l&B)===B){B!==0&&B===Al&&(ko=!0),M!==null&&(M=M.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var K=e,ue=p;B=t;var Re=u;switch(ue.tag){case 1:if(K=ue.payload,typeof K=="function"){w=K.call(Re,w,B);break e}w=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=ue.payload,B=typeof K=="function"?K.call(Re,w,B):K,B==null)break e;w=v({},w,B);break e;case 2:en=!0}}B=p.callback,B!==null&&(e.flags|=64,F&&(e.flags|=8192),F=c.callbacks,F===null?c.callbacks=[B]:F.push(B))}else F={lane:B,tag:p.tag,payload:p.payload,callback:p.callback,next:null},M===null?(z=M=F,A=w):M=M.next=F,s|=B;if(p=p.next,p===null){if(p=c.shared.pending,p===null)break;F=p,p=F.next,F.next=null,c.lastBaseUpdate=F,c.shared.pending=null}}while(!0);M===null&&(A=w),c.baseState=A,c.firstBaseUpdate=z,c.lastBaseUpdate=M,r===null&&(c.shared.lanes=0),on|=s,e.lanes=s,e.memoizedState=w}}function V0(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function J0(e,t){var u=e.callbacks;if(u!==null)for(e.callbacks=null,e=0;e<u.length;e++)V0(u[e],t)}var _l=E(null),Mi=E(0);function K0(e,t){e=Hu,Y(Mi,e),Y(_l,t),Hu=e|t.baseLanes}function Xo(){Y(Mi,Hu),Y(_l,_l.current)}function Qo(){Hu=Mi.current,U(_l),U(Mi)}var $t=E(null),uu=null;function nn(e){var t=e.alternate;Y(lt,lt.current&1),Y($t,e),uu===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(uu=e)}function Lo(e){Y(lt,lt.current),Y($t,e),uu===null&&(uu=e)}function W0(e){e.tag===22?(Y(lt,lt.current),Y($t,e),uu===null&&(uu=e)):ln()}function ln(){Y(lt,lt.current),Y($t,$t.current)}function Yt(e){U($t),uu===e&&(uu=null),U(lt)}var lt=E(0);function Ni(e){for(var t=e;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Pr(u)||ef(u)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xu=0,se=null,we=null,ot=null,Zi=!1,Sl=!1,kn=!1,Ui=0,pa=0,zl=null,x2=0;function et(){throw Error(o(321))}function Vo(e,t){if(t===null)return!1;for(var u=0;u<t.length&&u<e.length;u++)if(!Ht(e[u],t[u]))return!1;return!0}function Jo(e,t,u,l,c,r){return xu=r,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Zd:fr,kn=!1,r=u(l,c),kn=!1,Sl&&(r=P0(t,u,l,c)),I0(e),r}function I0(e){O.H=Aa;var t=we!==null&&we.next!==null;if(xu=0,ot=we=se=null,Zi=!1,pa=0,zl=null,t)throw Error(o(300));e===null||rt||(e=e.dependencies,e!==null&&Si(e)&&(rt=!0))}function P0(e,t,u,l){se=e;var c=0;do{if(Sl&&(zl=null),pa=0,Sl=!1,25<=c)throw Error(o(301));if(c+=1,ot=we=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=Ud,r=t(u,l)}while(Sl);return r}function M2(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?ga(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(se.flags|=1024),t}function Ko(){var e=Ui!==0;return Ui=0,e}function Wo(e,t,u){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u}function Io(e){if(Zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zi=!1}xu=0,ot=we=se=null,Sl=!1,pa=Ui=0,zl=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?se.memoizedState=ot=e:ot=ot.next=e,ot}function at(){if(we===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=ot===null?se.memoizedState:ot.next;if(t!==null)ot=t,we=e;else{if(e===null)throw se.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},ot===null?se.memoizedState=ot=e:ot=ot.next=e}return ot}function wi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ga(e){var t=pa;return pa+=1,zl===null&&(zl=[]),e=G0(zl,e,t),t=se,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Zd:fr),e}function ji(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ga(e);if(e.$$typeof===Q)return vt(e)}throw Error(o(438,String(e)))}function Po(e){var t=null,u=se.updateQueue;if(u!==null&&(t=u.memoCache),t==null){var l=se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),u===null&&(u=wi(),se.updateQueue=u),u.memoCache=t,u=t.data[t.index],u===void 0)for(u=t.data[t.index]=Array(e),l=0;l<e;l++)u[l]=Se;return t.index++,u}function Mu(e,t){return typeof t=="function"?t(e):t}function Ri(e){var t=at();return er(t,we,e)}function er(e,t,u){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=u;var c=e.baseQueue,r=l.pending;if(r!==null){if(c!==null){var s=c.next;c.next=r.next,r.next=s}t.baseQueue=c=r,l.pending=null}if(r=e.baseState,c===null)e.memoizedState=r;else{t=c.next;var p=s=null,A=null,z=t,M=!1;do{var w=z.lane&-536870913;if(w!==z.lane?(Ee&w)===w:(xu&w)===w){var B=z.revertLane;if(B===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),w===Al&&(M=!0);else if((xu&B)===B){z=z.next,B===Al&&(M=!0);continue}else w={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(p=A=w,s=r):A=A.next=w,se.lanes|=B,on|=B;w=z.action,kn&&u(r,w),r=z.hasEagerState?z.eagerState:u(r,w)}else B={lane:w,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},A===null?(p=A=B,s=r):A=A.next=B,se.lanes|=w,on|=w;z=z.next}while(z!==null&&z!==t);if(A===null?s=r:A.next=p,!Ht(r,e.memoizedState)&&(rt=!0,M&&(u=El,u!==null)))throw u;e.memoizedState=r,e.baseState=s,e.baseQueue=A,l.lastRenderedState=r}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function tr(e){var t=at(),u=t.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=e;var l=u.dispatch,c=u.pending,r=t.memoizedState;if(c!==null){u.pending=null;var s=c=c.next;do r=e(r,s.action),s=s.next;while(s!==c);Ht(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),u.lastRenderedState=r}return[r,l]}function ed(e,t,u){var l=se,c=at(),r=Ce;if(r){if(u===void 0)throw Error(o(407));u=u()}else u=t();var s=!Ht((we||c).memoizedState,u);if(s&&(c.memoizedState=u,rt=!0),c=c.queue,lr(nd.bind(null,l,c,e),[e]),c.getSnapshot!==t||s||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,Bl(9,{destroy:void 0},ud.bind(null,l,c,u,t),null),$e===null)throw Error(o(349));r||(xu&127)!==0||td(l,t,u)}return u}function td(e,t,u){e.flags|=16384,e={getSnapshot:t,value:u},t=se.updateQueue,t===null?(t=wi(),se.updateQueue=t,t.stores=[e]):(u=t.stores,u===null?t.stores=[e]:u.push(e))}function ud(e,t,u,l){t.value=u,t.getSnapshot=l,ld(t)&&ad(e)}function nd(e,t,u){return u(function(){ld(t)&&ad(e)})}function ld(e){var t=e.getSnapshot;e=e.value;try{var u=t();return!Ht(e,u)}catch{return!0}}function ad(e){var t=Un(e,2);t!==null&&jt(t,e,2)}function ur(e){var t=Tt();if(typeof e=="function"){var u=e;if(e=u(),kn){mu(!0);try{u()}finally{mu(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:e},t}function id(e,t,u,l){return e.baseState=u,er(e,we,typeof l=="function"?l:Mu)}function N2(e,t,u,l,c){if($i(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){r.listeners.push(s)}};O.T!==null?u(!0):r.isTransition=!1,l(r),u=t.pending,u===null?(r.next=t.pending=r,cd(t,r)):(r.next=u.next,t.pending=u.next=r)}}function cd(e,t){var u=t.action,l=t.payload,c=e.state;if(t.isTransition){var r=O.T,s={};O.T=s;try{var p=u(c,l),A=O.S;A!==null&&A(s,p),od(e,t,p)}catch(z){nr(e,t,z)}finally{r!==null&&s.types!==null&&(r.types=s.types),O.T=r}}else try{r=u(c,l),od(e,t,r)}catch(z){nr(e,t,z)}}function od(e,t,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(l){rd(e,t,l)},function(l){return nr(e,t,l)}):rd(e,t,u)}function rd(e,t,u){t.status="fulfilled",t.value=u,fd(t),e.state=u,t=e.pending,t!==null&&(u=t.next,u===t?e.pending=null:(u=u.next,t.next=u,cd(e,u)))}function nr(e,t,u){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=u,fd(t),t=t.next;while(t!==l)}e.action=null}function fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sd(e,t){return t}function dd(e,t){if(Ce){var u=$e.formState;if(u!==null){e:{var l=se;if(Ce){if(Le){t:{for(var c=Le,r=tu;c.nodeType!==8;){if(!r){c=null;break t}if(c=nu(c.nextSibling),c===null){c=null;break t}}r=c.data,c=r==="F!"||r==="F"?c:null}if(c){Le=nu(c.nextSibling),l=c.data==="F!";break e}}Iu(l)}l=!1}l&&(t=u[0])}}return u=Tt(),u.memoizedState=u.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sd,lastRenderedState:t},u.queue=l,u=xd.bind(null,se,l),l.dispatch=u,l=ur(!1),r=rr.bind(null,se,!1,l.queue),l=Tt(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,u=N2.bind(null,se,c,r,u),c.dispatch=u,l.memoizedState=e,[t,u,!1]}function hd(e){var t=at();return Dd(t,we,e)}function Dd(e,t,u){if(t=er(e,t,sd)[0],e=Ri(Mu)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ga(t)}catch(s){throw s===bl?Ti:s}else l=t;t=at();var c=t.queue,r=c.dispatch;return u!==t.memoizedState&&(se.flags|=2048,Bl(9,{destroy:void 0},Z2.bind(null,c,u),null)),[l,r,e]}function Z2(e,t){e.action=t}function md(e){var t=at(),u=we;if(u!==null)return Dd(t,u,e);at(),t=t.memoizedState,u=at();var l=u.queue.dispatch;return u.memoizedState=e,[t,l,!1]}function Bl(e,t,u,l){return e={tag:e,create:u,deps:l,inst:t,next:null},t=se.updateQueue,t===null&&(t=wi(),se.updateQueue=t),u=t.lastEffect,u===null?t.lastEffect=e.next=e:(l=u.next,u.next=e,e.next=l,t.lastEffect=e),e}function yd(){return at().memoizedState}function Hi(e,t,u,l){var c=Tt();se.flags|=e,c.memoizedState=Bl(1|t,{destroy:void 0},u,l===void 0?null:l)}function qi(e,t,u,l){var c=at();l=l===void 0?null:l;var r=c.memoizedState.inst;we!==null&&l!==null&&Vo(l,we.memoizedState.deps)?c.memoizedState=Bl(t,r,u,l):(se.flags|=e,c.memoizedState=Bl(1|t,r,u,l))}function pd(e,t){Hi(8390656,8,e,t)}function lr(e,t){qi(2048,8,e,t)}function U2(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=wi(),se.updateQueue=t,t.events=[e];else{var u=t.events;u===null?t.events=[e]:u.push(e)}}function gd(e){var t=at().memoizedState;return U2({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function vd(e,t){return qi(4,2,e,t)}function Ad(e,t){return qi(4,4,e,t)}function Ed(e,t){if(typeof t=="function"){e=e();var u=t(e);return function(){typeof u=="function"?u():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bd(e,t,u){u=u!=null?u.concat([e]):null,qi(4,4,Ed.bind(null,t,e),u)}function ar(){}function Cd(e,t){var u=at();t=t===void 0?null:t;var l=u.memoizedState;return t!==null&&Vo(t,l[1])?l[0]:(u.memoizedState=[e,t],e)}function _d(e,t){var u=at();t=t===void 0?null:t;var l=u.memoizedState;if(t!==null&&Vo(t,l[1]))return l[0];if(l=e(),kn){mu(!0);try{e()}finally{mu(!1)}}return u.memoizedState=[l,t],l}function ir(e,t,u){return u===void 0||(xu&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=u,e=Sh(),se.lanes|=e,on|=e,u)}function Sd(e,t,u,l){return Ht(u,t)?u:_l.current!==null?(e=ir(e,u,l),Ht(e,t)||(rt=!0),e):(xu&42)===0||(xu&1073741824)!==0&&(Ee&261930)===0?(rt=!0,e.memoizedState=u):(e=Sh(),se.lanes|=e,on|=e,t)}function zd(e,t,u,l,c){var r=q.p;q.p=r!==0&&8>r?r:8;var s=O.T,p={};O.T=p,rr(e,!1,t,u);try{var A=c(),z=O.S;if(z!==null&&z(p,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var M=O2(A,l);va(e,t,M,Xt(e))}else va(e,t,l,Xt(e))}catch(w){va(e,t,{then:function(){},status:"rejected",reason:w},Xt())}finally{q.p=r,s!==null&&p.types!==null&&(s.types=p.types),O.T=s}}function w2(){}function cr(e,t,u,l){if(e.tag!==5)throw Error(o(476));var c=Bd(e).queue;zd(e,c,t,X,u===null?w2:function(){return Td(e),u(l)})}function Bd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:X},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:u},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Td(e){var t=Bd(e);t.next===null&&(t=e.alternate.memoizedState),va(e,t.next.queue,{},Xt())}function or(){return vt(wa)}function Fd(){return at().memoizedState}function Od(){return at().memoizedState}function j2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var u=Xt();e=tn(u);var l=un(t,e,u);l!==null&&(jt(l,t,u),Da(l,t,u)),t={cache:jo()},e.payload=t;return}t=t.return}}function R2(e,t,u){var l=Xt();u={lane:l,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},$i(e)?Md(t,u):(u=zo(e,t,u,l),u!==null&&(jt(u,e,l),Nd(u,t,l)))}function xd(e,t,u){var l=Xt();va(e,t,u,l)}function va(e,t,u,l){var c={lane:l,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if($i(e))Md(t,c);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var s=t.lastRenderedState,p=r(s,u);if(c.hasEagerState=!0,c.eagerState=p,Ht(p,s))return Ei(e,t,c,0),$e===null&&Ai(),!1}catch{}finally{}if(u=zo(e,t,c,l),u!==null)return jt(u,e,l),Nd(u,t,l),!0}return!1}function rr(e,t,u,l){if(l={lane:2,revertLane:$r(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$i(e)){if(t)throw Error(o(479))}else t=zo(e,u,l,2),t!==null&&jt(t,e,2)}function $i(e){var t=e.alternate;return e===se||t!==null&&t===se}function Md(e,t){Sl=Zi=!0;var u=e.pending;u===null?t.next=t:(t.next=u.next,u.next=t),e.pending=t}function Nd(e,t,u){if((u&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,u|=l,t.lanes=u,Rs(e,u)}}var Aa={readContext:vt,use:ji,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Aa.useEffectEvent=et;var Zd={readContext:vt,use:ji,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:pd,useImperativeHandle:function(e,t,u){u=u!=null?u.concat([e]):null,Hi(4194308,4,Ed.bind(null,t,e),u)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){Hi(4,2,e,t)},useMemo:function(e,t){var u=Tt();t=t===void 0?null:t;var l=e();if(kn){mu(!0);try{e()}finally{mu(!1)}}return u.memoizedState=[l,t],l},useReducer:function(e,t,u){var l=Tt();if(u!==void 0){var c=u(t);if(kn){mu(!0);try{u(t)}finally{mu(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=R2.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=ur(e);var t=e.queue,u=xd.bind(null,se,t);return t.dispatch=u,[e.memoizedState,u]},useDebugValue:ar,useDeferredValue:function(e,t){var u=Tt();return ir(u,e,t)},useTransition:function(){var e=ur(!1);return e=zd.bind(null,se,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,u){var l=se,c=Tt();if(Ce){if(u===void 0)throw Error(o(407));u=u()}else{if(u=t(),$e===null)throw Error(o(349));(Ee&127)!==0||td(l,t,u)}c.memoizedState=u;var r={value:u,getSnapshot:t};return c.queue=r,pd(nd.bind(null,l,r,e),[e]),l.flags|=2048,Bl(9,{destroy:void 0},ud.bind(null,l,r,u,t),null),u},useId:function(){var e=Tt(),t=$e.identifierPrefix;if(Ce){var u=pu,l=yu;u=(l&~(1<<32-Bt(l)-1)).toString(32)+u,t="_"+t+"R_"+u,u=Ui++,0<u&&(t+="H"+u.toString(32)),t+="_"}else u=x2++,t="_"+t+"r_"+u.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:or,useFormState:dd,useActionState:dd,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=u,t=rr.bind(null,se,!0,u),u.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return Tt().memoizedState=j2.bind(null,se)},useEffectEvent:function(e){var t=Tt(),u={impl:e};return t.memoizedState=u,function(){if((xe&2)!==0)throw Error(o(440));return u.impl.apply(void 0,arguments)}}},fr={readContext:vt,use:ji,useCallback:Cd,useContext:vt,useEffect:lr,useImperativeHandle:bd,useInsertionEffect:vd,useLayoutEffect:Ad,useMemo:_d,useReducer:Ri,useRef:yd,useState:function(){return Ri(Mu)},useDebugValue:ar,useDeferredValue:function(e,t){var u=at();return Sd(u,we.memoizedState,e,t)},useTransition:function(){var e=Ri(Mu)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ga(e),t]},useSyncExternalStore:ed,useId:Fd,useHostTransitionStatus:or,useFormState:hd,useActionState:hd,useOptimistic:function(e,t){var u=at();return id(u,we,e,t)},useMemoCache:Po,useCacheRefresh:Od};fr.useEffectEvent=gd;var Ud={readContext:vt,use:ji,useCallback:Cd,useContext:vt,useEffect:lr,useImperativeHandle:bd,useInsertionEffect:vd,useLayoutEffect:Ad,useMemo:_d,useReducer:tr,useRef:yd,useState:function(){return tr(Mu)},useDebugValue:ar,useDeferredValue:function(e,t){var u=at();return we===null?ir(u,e,t):Sd(u,we.memoizedState,e,t)},useTransition:function(){var e=tr(Mu)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ga(e),t]},useSyncExternalStore:ed,useId:Fd,useHostTransitionStatus:or,useFormState:md,useActionState:md,useOptimistic:function(e,t){var u=at();return we!==null?id(u,we,e,t):(u.baseState=e,[e,u.queue.dispatch])},useMemoCache:Po,useCacheRefresh:Od};Ud.useEffectEvent=gd;function sr(e,t,u,l){t=e.memoizedState,u=u(l,t),u=u==null?t:v({},t,u),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}var dr={enqueueSetState:function(e,t,u){e=e._reactInternals;var l=Xt(),c=tn(l);c.payload=t,u!=null&&(c.callback=u),t=un(e,c,l),t!==null&&(jt(t,e,l),Da(t,e,l))},enqueueReplaceState:function(e,t,u){e=e._reactInternals;var l=Xt(),c=tn(l);c.tag=1,c.payload=t,u!=null&&(c.callback=u),t=un(e,c,l),t!==null&&(jt(t,e,l),Da(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var u=Xt(),l=tn(u);l.tag=2,t!=null&&(l.callback=t),t=un(e,l,u),t!==null&&(jt(t,e,u),Da(t,e,u))}};function wd(e,t,u,l,c,r,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,s):t.prototype&&t.prototype.isPureReactComponent?!ia(u,l)||!ia(c,r):!0}function jd(e,t,u,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,l),t.state!==e&&dr.enqueueReplaceState(t,t.state,null)}function Xn(e,t){var u=t;if("ref"in t){u={};for(var l in t)l!=="ref"&&(u[l]=t[l])}if(e=e.defaultProps){u===t&&(u=v({},u));for(var c in e)u[c]===void 0&&(u[c]=e[c])}return u}function Rd(e){vi(e)}function Hd(e){console.error(e)}function qd(e){vi(e)}function Yi(e,t){try{var u=e.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function $d(e,t,u){try{var l=e.onCaughtError;l(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function hr(e,t,u){return u=tn(u),u.tag=3,u.payload={element:null},u.callback=function(){Yi(e,t)},u}function Yd(e){return e=tn(e),e.tag=3,e}function Gd(e,t,u,l){var c=u.type.getDerivedStateFromError;if(typeof c=="function"){var r=l.value;e.payload=function(){return c(r)},e.callback=function(){$d(t,u,l)}}var s=u.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){$d(t,u,l),typeof c!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function H2(e,t,u,l,c){if(u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=u.alternate,t!==null&&vl(t,u,c,!0),u=$t.current,u!==null){switch(u.tag){case 31:case 13:return uu===null?ec():u.alternate===null&&tt===0&&(tt=3),u.flags&=-257,u.flags|=65536,u.lanes=c,l===Fi?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([l]):t.add(l),Rr(e,l,c)),!1;case 22:return u.flags|=65536,l===Fi?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([l]):u.add(l)),Rr(e,l,c)),!1}throw Error(o(435,u.tag))}return Rr(e,l,c),ec(),!1}if(Ce)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Mo&&(e=Error(o(422),{cause:l}),ra(It(e,u)))):(l!==Mo&&(t=Error(o(423),{cause:l}),ra(It(t,u))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=It(l,u),c=hr(e.stateNode,l,c),Go(e,c),tt!==4&&(tt=2)),!1;var r=Error(o(520),{cause:l});if(r=It(r,u),Ta===null?Ta=[r]:Ta.push(r),tt!==4&&(tt=2),t===null)return!0;l=It(l,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,e=c&-c,u.lanes|=e,e=hr(u.stateNode,l,e),Go(u,e),!1;case 1:if(t=u.type,r=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(rn===null||!rn.has(r))))return u.flags|=65536,c&=-c,u.lanes|=c,c=Yd(c),Gd(c,e,u,l),Go(u,c),!1}u=u.return}while(u!==null);return!1}var Dr=Error(o(461)),rt=!1;function At(e,t,u,l){t.child=e===null?L0(t,null,u,l):Gn(t,e.child,u,l)}function kd(e,t,u,l,c){u=u.render;var r=t.ref;if("ref"in l){var s={};for(var p in l)p!=="ref"&&(s[p]=l[p])}else s=l;return Hn(t),l=Jo(e,t,u,s,r,c),p=Ko(),e!==null&&!rt?(Wo(e,t,c),Nu(e,t,c)):(Ce&&p&&Oo(t),t.flags|=1,At(e,t,l,c),t.child)}function Xd(e,t,u,l,c){if(e===null){var r=u.type;return typeof r=="function"&&!Bo(r)&&r.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=r,Qd(e,t,r,l,c)):(e=Ci(u.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!br(e,c)){var s=r.memoizedProps;if(u=u.compare,u=u!==null?u:ia,u(s,l)&&e.ref===t.ref)return Nu(e,t,c)}return t.flags|=1,e=Bu(r,l),e.ref=t.ref,e.return=t,t.child=e}function Qd(e,t,u,l,c){if(e!==null){var r=e.memoizedProps;if(ia(r,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=r,br(e,c))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Nu(e,t,c)}return mr(e,t,u,l,c)}function Ld(e,t,u,l){var c=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|u:u,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~r}else l=0,t.child=null;return Vd(e,t,r,u,l)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bi(t,r!==null?r.cachePool:null),r!==null?K0(t,r):Xo(),W0(t);else return l=t.lanes=536870912,Vd(e,t,r!==null?r.baseLanes|u:u,u,l)}else r!==null?(Bi(t,r.cachePool),K0(t,r),ln(),t.memoizedState=null):(e!==null&&Bi(t,null),Xo(),ln());return At(e,t,c,u),t.child}function Ea(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vd(e,t,u,l,c){var r=Ho();return r=r===null?null:{parent:ct._currentValue,pool:r},t.memoizedState={baseLanes:u,cachePool:r},e!==null&&Bi(t,null),Xo(),W0(t),e!==null&&vl(e,t,l,!0),t.childLanes=c,null}function Gi(e,t){return t=Xi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jd(e,t,u){return Gn(t,e.child,null,u),e=Gi(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function q2(e,t,u){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(l.mode==="hidden")return e=Gi(t,l),t.lanes=536870912,Ea(null,e);if(Lo(t),(e=Le)?(e=cD(e,tu),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ku!==null?{id:yu,overflow:pu}:null,retryLane:536870912,hydrationErrors:null},u=M0(e),u.return=t,t.child=u,gt=t,Le=null)):e=null,e===null)throw Iu(t);return t.lanes=536870912,null}return Gi(t,l)}var r=e.memoizedState;if(r!==null){var s=r.dehydrated;if(Lo(t),c)if(t.flags&256)t.flags&=-257,t=Jd(e,t,u);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(rt||vl(e,t,u,!1),c=(u&e.childLanes)!==0,rt||c){if(l=$e,l!==null&&(s=Hs(l,u),s!==0&&s!==r.retryLane))throw r.retryLane=s,Un(e,s),jt(l,e,s),Dr;ec(),t=Jd(e,t,u)}else e=r.treeContext,Le=nu(s.nextSibling),gt=t,Ce=!0,Wu=null,tu=!1,e!==null&&U0(t,e),t=Gi(t,l),t.flags|=4096;return t}return e=Bu(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var u=t.ref;if(u===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(o(284));(e===null||e.ref!==u)&&(t.flags|=4194816)}}function mr(e,t,u,l,c){return Hn(t),u=Jo(e,t,u,l,void 0,c),l=Ko(),e!==null&&!rt?(Wo(e,t,c),Nu(e,t,c)):(Ce&&l&&Oo(t),t.flags|=1,At(e,t,u,c),t.child)}function Kd(e,t,u,l,c,r){return Hn(t),t.updateQueue=null,u=P0(t,l,u,c),I0(e),l=Ko(),e!==null&&!rt?(Wo(e,t,r),Nu(e,t,r)):(Ce&&l&&Oo(t),t.flags|=1,At(e,t,u,r),t.child)}function Wd(e,t,u,l,c){if(Hn(t),t.stateNode===null){var r=ml,s=u.contextType;typeof s=="object"&&s!==null&&(r=vt(s)),r=new u(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=dr,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},$o(t),s=u.contextType,r.context=typeof s=="object"&&s!==null?vt(s):ml,r.state=t.memoizedState,s=u.getDerivedStateFromProps,typeof s=="function"&&(sr(t,u,s,l),r.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(s=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&dr.enqueueReplaceState(r,r.state,null),ya(t,l,r,c),ma(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var p=t.memoizedProps,A=Xn(u,p);r.props=A;var z=r.context,M=u.contextType;s=ml,typeof M=="object"&&M!==null&&(s=vt(M));var w=u.getDerivedStateFromProps;M=typeof w=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,M||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||z!==s)&&jd(t,r,l,s),en=!1;var B=t.memoizedState;r.state=B,ya(t,l,r,c),ma(),z=t.memoizedState,p||B!==z||en?(typeof w=="function"&&(sr(t,u,w,l),z=t.memoizedState),(A=en||wd(t,u,A,l,B,z,s))?(M||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),r.props=l,r.state=z,r.context=s,l=A):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Yo(e,t),s=t.memoizedProps,M=Xn(u,s),r.props=M,w=t.pendingProps,B=r.context,z=u.contextType,A=ml,typeof z=="object"&&z!==null&&(A=vt(z)),p=u.getDerivedStateFromProps,(z=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==w||B!==A)&&jd(t,r,l,A),en=!1,B=t.memoizedState,r.state=B,ya(t,l,r,c),ma();var F=t.memoizedState;s!==w||B!==F||en||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof p=="function"&&(sr(t,u,p,l),F=t.memoizedState),(M=en||wd(t,u,M,l,B,F,A)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(z||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,F,A),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,F,A)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),r.props=l,r.state=F,r.context=A,l=M):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,ki(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,u=l&&typeof u.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Gn(t,e.child,null,c),t.child=Gn(t,null,u,c)):At(e,t,u,c),t.memoizedState=r.state,e=t.child):e=Nu(e,t,c),e}function Id(e,t,u,l){return jn(),t.flags|=256,At(e,t,u,l),t.child}var yr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pr(e){return{baseLanes:e,cachePool:$0()}}function gr(e,t,u){return e=e!==null?e.childLanes&~u:0,t&&(e|=kt),e}function Pd(e,t,u){var l=t.pendingProps,c=!1,r=(t.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),s&&(c=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(c?nn(t):ln(),(e=Le)?(e=cD(e,tu),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ku!==null?{id:yu,overflow:pu}:null,retryLane:536870912,hydrationErrors:null},u=M0(e),u.return=t,t.child=u,gt=t,Le=null)):e=null,e===null)throw Iu(t);return ef(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,c?(ln(),c=t.mode,p=Xi({mode:"hidden",children:p},c),l=wn(l,c,u,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=pr(u),l.childLanes=gr(e,s,u),t.memoizedState=yr,Ea(null,l)):(nn(t),vr(t,p))}var A=e.memoizedState;if(A!==null&&(p=A.dehydrated,p!==null)){if(r)t.flags&256?(nn(t),t.flags&=-257,t=Ar(e,t,u)):t.memoizedState!==null?(ln(),t.child=e.child,t.flags|=128,t=null):(ln(),p=l.fallback,c=t.mode,l=Xi({mode:"visible",children:l.children},c),p=wn(p,c,u,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,Gn(t,e.child,null,u),l=t.child,l.memoizedState=pr(u),l.childLanes=gr(e,s,u),t.memoizedState=yr,t=Ea(null,l));else if(nn(t),ef(p)){if(s=p.nextSibling&&p.nextSibling.dataset,s)var z=s.dgst;s=z,l=Error(o(419)),l.stack="",l.digest=s,ra({value:l,source:null,stack:null}),t=Ar(e,t,u)}else if(rt||vl(e,t,u,!1),s=(u&e.childLanes)!==0,rt||s){if(s=$e,s!==null&&(l=Hs(s,u),l!==0&&l!==A.retryLane))throw A.retryLane=l,Un(e,l),jt(s,e,l),Dr;Pr(p)||ec(),t=Ar(e,t,u)}else Pr(p)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Le=nu(p.nextSibling),gt=t,Ce=!0,Wu=null,tu=!1,e!==null&&U0(t,e),t=vr(t,l.children),t.flags|=4096);return t}return c?(ln(),p=l.fallback,c=t.mode,A=e.child,z=A.sibling,l=Bu(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,z!==null?p=Bu(z,p):(p=wn(p,c,u,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Ea(null,l),l=t.child,p=e.child.memoizedState,p===null?p=pr(u):(c=p.cachePool,c!==null?(A=ct._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=$0(),p={baseLanes:p.baseLanes|u,cachePool:c}),l.memoizedState=p,l.childLanes=gr(e,s,u),t.memoizedState=yr,Ea(e.child,l)):(nn(t),u=e.child,e=u.sibling,u=Bu(u,{mode:"visible",children:l.children}),u.return=t,u.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=u,t.memoizedState=null,u)}function vr(e,t){return t=Xi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xi(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function Ar(e,t,u){return Gn(t,e.child,null,u),e=vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eh(e,t,u){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uo(e.return,t,u)}function Er(e,t,u,l,c,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:u,tailMode:c,treeForkCount:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=u,s.tailMode=c,s.treeForkCount=r)}function th(e,t,u){var l=t.pendingProps,c=l.revealOrder,r=l.tail;l=l.children;var s=lt.current,p=(s&2)!==0;if(p?(s=s&1|2,t.flags|=128):s&=1,Y(lt,s),At(e,t,l,u),l=Ce?oa:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eh(e,u,t);else if(e.tag===19)eh(e,u,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(u=t.child,c=null;u!==null;)e=u.alternate,e!==null&&Ni(e)===null&&(c=u),u=u.sibling;u=c,u===null?(c=t.child,t.child=null):(c=u.sibling,u.sibling=null),Er(t,!1,c,u,r,l);break;case"backwards":case"unstable_legacy-backwards":for(u=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ni(e)===null){t.child=c;break}e=c.sibling,c.sibling=u,u=c,c=e}Er(t,!0,u,null,r,l);break;case"together":Er(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Nu(e,t,u){if(e!==null&&(t.dependencies=e.dependencies),on|=t.lanes,(u&t.childLanes)===0)if(e!==null){if(vl(e,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,u=Bu(e,e.pendingProps),t.child=u,u.return=t;e.sibling!==null;)e=e.sibling,u=u.sibling=Bu(e,e.pendingProps),u.return=t;u.sibling=null}return t.child}function br(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Si(e)))}function $2(e,t,u){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),Pu(t,ct,e.memoizedState.cache),jn();break;case 27:case 5:Ct(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:Pu(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(nn(t),t.flags|=128,null):(u&t.child.childLanes)!==0?Pd(e,t,u):(nn(t),e=Nu(e,t,u),e!==null?e.sibling:null);nn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(u&t.childLanes)!==0,l||(vl(e,t,u,!1),l=(u&t.childLanes)!==0),c){if(l)return th(e,t,u);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Y(lt,lt.current),l)break;return null;case 22:return t.lanes=0,Ld(e,t,u,t.pendingProps);case 24:Pu(t,ct,e.memoizedState.cache)}return Nu(e,t,u)}function uh(e,t,u){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!br(e,u)&&(t.flags&128)===0)return rt=!1,$2(e,t,u);rt=(e.flags&131072)!==0}else rt=!1,Ce&&(t.flags&1048576)!==0&&Z0(t,oa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=$n(t.elementType),t.type=e,typeof e=="function")Bo(e)?(l=Xn(e,l),t.tag=1,t=Wd(null,t,e,l,u)):(t.tag=0,t=mr(null,t,e,l,u));else{if(e!=null){var c=e.$$typeof;if(c===G){t.tag=11,t=kd(null,t,e,l,u);break e}else if(c===V){t.tag=14,t=Xd(null,t,e,l,u);break e}}throw t=He(e)||e,Error(o(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,u);case 1:return l=t.type,c=Xn(l,t.pendingProps),Wd(e,t,l,c,u);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var r=t.memoizedState;c=r.element,Yo(e,t),ya(t,l,null,u);var s=t.memoizedState;if(l=s.cache,Pu(t,ct,l),l!==r.cache&&wo(t,[ct],u,!0),ma(),l=s.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Id(e,t,l,u);break e}else if(l!==c){c=It(Error(o(424)),t),ra(c),t=Id(e,t,l,u);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=nu(e.firstChild),gt=t,Ce=!0,Wu=null,tu=!0,u=L0(t,null,l,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(jn(),l===c){t=Nu(e,t,u);break e}At(e,t,l,u)}t=t.child}return t;case 26:return ki(e,t),e===null?(u=hD(t.type,null,t.pendingProps,null))?t.memoizedState=u:Ce||(u=t.type,e=t.pendingProps,l=cc(me.current).createElement(u),l[pt]=t,l[xt]=e,Et(l,u,e),Dt(l),t.stateNode=l):t.memoizedState=hD(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ct(t),e===null&&Ce&&(l=t.stateNode=fD(t.type,t.pendingProps,me.current),gt=t,tu=!0,c=Le,hn(t.type)?(tf=c,Le=nu(l.firstChild)):Le=c),At(e,t,t.pendingProps.children,u),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((c=l=Le)&&(l=pA(l,t.type,t.pendingProps,tu),l!==null?(t.stateNode=l,gt=t,Le=nu(l.firstChild),tu=!1,c=!0):c=!1),c||Iu(t)),Ct(t),c=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,l=r.children,Kr(c,r)?l=null:s!==null&&Kr(c,s)&&(t.flags|=32),t.memoizedState!==null&&(c=Jo(e,t,M2,null,null,u),wa._currentValue=c),ki(e,t),At(e,t,l,u),t.child;case 6:return e===null&&Ce&&((e=u=Le)&&(u=gA(u,t.pendingProps,tu),u!==null?(t.stateNode=u,gt=t,Le=null,e=!0):e=!1),e||Iu(t)),null;case 13:return Pd(e,t,u);case 4:return Ye(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Gn(t,null,l,u):At(e,t,l,u),t.child;case 11:return kd(e,t,t.type,t.pendingProps,u);case 7:return At(e,t,t.pendingProps,u),t.child;case 8:return At(e,t,t.pendingProps.children,u),t.child;case 12:return At(e,t,t.pendingProps.children,u),t.child;case 10:return l=t.pendingProps,Pu(t,t.type,l.value),At(e,t,l.children,u),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Hn(t),c=vt(c),l=l(c),t.flags|=1,At(e,t,l,u),t.child;case 14:return Xd(e,t,t.type,t.pendingProps,u);case 15:return Qd(e,t,t.type,t.pendingProps,u);case 19:return th(e,t,u);case 31:return q2(e,t,u);case 22:return Ld(e,t,u,t.pendingProps);case 24:return Hn(t),l=vt(ct),e===null?(c=Ho(),c===null&&(c=$e,r=jo(),c.pooledCache=r,r.refCount++,r!==null&&(c.pooledCacheLanes|=u),c=r),t.memoizedState={parent:l,cache:c},$o(t),Pu(t,ct,c)):((e.lanes&u)!==0&&(Yo(e,t),ya(t,null,null,u),ma()),c=e.memoizedState,r=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Pu(t,ct,l)):(l=r.cache,Pu(t,ct,l),l!==c.cache&&wo(t,[ct],u,!0))),At(e,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Zu(e){e.flags|=4}function Cr(e,t,u,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Fh())e.flags|=8192;else throw Yn=Fi,qo}else e.flags&=-16777217}function nh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gD(t))if(Fh())e.flags|=8192;else throw Yn=Fi,qo}function Qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ws():536870912,e.lanes|=t,xl|=t)}function ba(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?e.tail=null:u.sibling=null;break;case"collapsed":u=e.tail;for(var l=null;u!==null;)u.alternate!==null&&(l=u),u=u.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,u=0,l=0;if(t)for(var c=e.child;c!==null;)u|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)u|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=u,t}function Y2(e,t,u){var l=t.pendingProps;switch(xo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return u=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ou(ct),ze(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(gl(t)?Zu(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,No())),Ve(t),null;case 26:var c=t.type,r=t.memoizedState;return e===null?(Zu(t),r!==null?(Ve(t),nh(t,r)):(Ve(t),Cr(t,c,null,l,u))):r?r!==e.memoizedState?(Zu(t),Ve(t),nh(t,r)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Zu(t),Ve(t),Cr(t,c,e,l,u)),null;case 27:if(Rt(t),u=me.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zu(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ve(t),null}e=J.current,gl(t)?w0(t):(e=fD(c,l,u),t.stateNode=e,Zu(t))}return Ve(t),null;case 5:if(Rt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zu(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ve(t),null}if(r=J.current,gl(t))w0(t);else{var s=cc(me.current);switch(r){case 1:r=s.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:r=s.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":r=s.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":r=s.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":r=s.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?s.createElement("select",{is:l.is}):s.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?s.createElement(c,{is:l.is}):s.createElement(c)}}r[pt]=t,r[xt]=l;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)r.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=r;e:switch(Et(r,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Zu(t)}}return Ve(t),Cr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,u),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Zu(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,gl(t)){if(e=t.stateNode,u=t.memoizedProps,l=null,c=gt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[pt]=t,e=!!(e.nodeValue===u||l!==null&&l.suppressHydrationWarning===!0||Ph(e.nodeValue,u)),e||Iu(t,!0)}else e=cc(e).createTextNode(l),e[pt]=t,t.stateNode=e}return Ve(t),null;case 31:if(u=t.memoizedState,e===null||e.memoizedState!==null){if(l=gl(t),u!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[pt]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else u=No(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ve(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=gl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[pt]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),c=!1}else c=No(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=u,t):(u=l!==null,e=e!==null&&e.memoizedState!==null,u&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==c&&(l.flags|=2048)),u!==e&&u&&(t.child.flags|=8192),Qi(t,t.updateQueue),Ve(t),null);case 4:return ze(),e===null&&Xr(t.stateNode.containerInfo),Ve(t),null;case 10:return Ou(t.type),Ve(t),null;case 19:if(U(lt),l=t.memoizedState,l===null)return Ve(t),null;if(c=(t.flags&128)!==0,r=l.rendering,r===null)if(c)ba(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ni(e),r!==null){for(t.flags|=128,ba(l,!1),e=r.updateQueue,t.updateQueue=e,Qi(t,e),t.subtreeFlags=0,e=u,u=t.child;u!==null;)x0(u,e),u=u.sibling;return Y(lt,lt.current&1|2),Ce&&Tu(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Be()>Wi&&(t.flags|=128,c=!0,ba(l,!1),t.lanes=4194304)}else{if(!c)if(e=Ni(r),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Qi(t,e),ba(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!Ce)return Ve(t),null}else 2*Be()-l.renderingStartTime>Wi&&u!==536870912&&(t.flags|=128,c=!0,ba(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Be(),e.sibling=null,u=lt.current,Y(lt,c?u&1|2:u&1),Ce&&Tu(t,l.treeForkCount),e):(Ve(t),null);case 22:case 23:return Yt(t),Qo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(u&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),u=t.updateQueue,u!==null&&Qi(t,u.retryQueue),u=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==u&&(t.flags|=2048),e!==null&&U(qn),null;case 24:return u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Ou(ct),Ve(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function G2(e,t){switch(xo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ou(ct),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rt(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(o(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(lt),null;case 4:return ze(),null;case 10:return Ou(t.type),null;case 22:case 23:return Yt(t),Qo(),e!==null&&U(qn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ou(ct),null;case 25:return null;default:return null}}function lh(e,t){switch(xo(t),t.tag){case 3:Ou(ct),ze();break;case 26:case 27:case 5:Rt(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:U(lt);break;case 10:Ou(t.type);break;case 22:case 23:Yt(t),Qo(),e!==null&&U(qn);break;case 24:Ou(ct)}}function Ca(e,t){try{var u=t.updateQueue,l=u!==null?u.lastEffect:null;if(l!==null){var c=l.next;u=c;do{if((u.tag&e)===e){l=void 0;var r=u.create,s=u.inst;l=r(),s.destroy=l}u=u.next}while(u!==c)}}catch(p){Ue(t,t.return,p)}}function an(e,t,u){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var r=c.next;l=r;do{if((l.tag&e)===e){var s=l.inst,p=s.destroy;if(p!==void 0){s.destroy=void 0,c=t;var A=u,z=p;try{z()}catch(M){Ue(c,A,M)}}}l=l.next}while(l!==r)}}catch(M){Ue(t,t.return,M)}}function ah(e){var t=e.updateQueue;if(t!==null){var u=e.stateNode;try{J0(t,u)}catch(l){Ue(e,e.return,l)}}}function ih(e,t,u){u.props=Xn(e.type,e.memoizedProps),u.state=e.memoizedState;try{u.componentWillUnmount()}catch(l){Ue(e,t,l)}}function _a(e,t){try{var u=e.ref;if(u!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof u=="function"?e.refCleanup=u(l):u.current=l}}catch(c){Ue(e,t,c)}}function gu(e,t){var u=e.ref,l=e.refCleanup;if(u!==null)if(typeof l=="function")try{l()}catch(c){Ue(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(c){Ue(e,t,c)}else u.current=null}function ch(e){var t=e.type,u=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":u.autoFocus&&l.focus();break e;case"img":u.src?l.src=u.src:u.srcSet&&(l.srcset=u.srcSet)}}catch(c){Ue(e,e.return,c)}}function _r(e,t,u){try{var l=e.stateNode;sA(l,e.type,u,t),l[xt]=t}catch(c){Ue(e,e.return,c)}}function oh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hn(e.type)||e.tag===4}function Sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oh(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.tag===27&&hn(e.type)||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 zr(e,t,u){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(e,t):(t=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,t.appendChild(e),u=u._reactRootContainer,u!=null||t.onclick!==null||(t.onclick=Su));else if(l!==4&&(l===27&&hn(e.type)&&(u=e.stateNode,t=null),e=e.child,e!==null))for(zr(e,t,u),e=e.sibling;e!==null;)zr(e,t,u),e=e.sibling}function Li(e,t,u){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?u.insertBefore(e,t):u.appendChild(e);else if(l!==4&&(l===27&&hn(e.type)&&(u=e.stateNode),e=e.child,e!==null))for(Li(e,t,u),e=e.sibling;e!==null;)Li(e,t,u),e=e.sibling}function rh(e){var t=e.stateNode,u=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Et(t,l,u),t[pt]=e,t[xt]=u}catch(r){Ue(e,e.return,r)}}var Uu=!1,ft=!1,Br=!1,fh=typeof WeakSet=="function"?WeakSet:Set,mt=null;function k2(e,t){if(e=e.containerInfo,Vr=Dc,e=b0(e),Ao(e)){if("selectionStart"in e)var u={start:e.selectionStart,end:e.selectionEnd};else e:{u=(u=e.ownerDocument)&&u.defaultView||window;var l=u.getSelection&&u.getSelection();if(l&&l.rangeCount!==0){u=l.anchorNode;var c=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{u.nodeType,r.nodeType}catch{u=null;break e}var s=0,p=-1,A=-1,z=0,M=0,w=e,B=null;t:for(;;){for(var F;w!==u||c!==0&&w.nodeType!==3||(p=s+c),w!==r||l!==0&&w.nodeType!==3||(A=s+l),w.nodeType===3&&(s+=w.nodeValue.length),(F=w.firstChild)!==null;)B=w,w=F;for(;;){if(w===e)break t;if(B===u&&++z===c&&(p=s),B===r&&++M===l&&(A=s),(F=w.nextSibling)!==null)break;w=B,B=w.parentNode}w=F}u=p===-1||A===-1?null:{start:p,end:A}}else u=null}u=u||{start:0,end:0}}else u=null;for(Jr={focusedElem:e,selectionRange:u},Dc=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(u=0;u<e.length;u++)c=e[u],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,u=t,c=r.memoizedProps,r=r.memoizedState,l=u.stateNode;try{var K=Xn(u.type,c);e=l.getSnapshotBeforeUpdate(K,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Ue(u,u.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,u=e.nodeType,u===9)Ir(e);else if(u===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ir(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function sh(e,t,u){var l=u.flags;switch(u.tag){case 0:case 11:case 15:ju(e,u),l&4&&Ca(5,u);break;case 1:if(ju(e,u),l&4)if(e=u.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(u,u.return,s)}else{var c=Xn(u.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(u,u.return,s)}}l&64&&ah(u),l&512&&_a(u,u.return);break;case 3:if(ju(e,u),l&64&&(e=u.updateQueue,e!==null)){if(t=null,u.child!==null)switch(u.child.tag){case 27:case 5:t=u.child.stateNode;break;case 1:t=u.child.stateNode}try{J0(e,t)}catch(s){Ue(u,u.return,s)}}break;case 27:t===null&&l&4&&rh(u);case 26:case 5:ju(e,u),t===null&&l&4&&ch(u),l&512&&_a(u,u.return);break;case 12:ju(e,u);break;case 31:ju(e,u),l&4&&Dh(e,u);break;case 13:ju(e,u),l&4&&mh(e,u),l&64&&(e=u.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(u=P2.bind(null,u),vA(e,u))));break;case 22:if(l=u.memoizedState!==null||Uu,!l){t=t!==null&&t.memoizedState!==null||ft,c=Uu;var r=ft;Uu=l,(ft=t)&&!r?Ru(e,u,(u.subtreeFlags&8772)!==0):ju(e,u),Uu=c,ft=r}break;case 30:break;default:ju(e,u)}}function dh(e){var t=e.alternate;t!==null&&(e.alternate=null,dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ke=null,Nt=!1;function wu(e,t,u){for(u=u.child;u!==null;)hh(e,t,u),u=u.sibling}function hh(e,t,u){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Fn,u)}catch{}switch(u.tag){case 26:ft||gu(u,t),wu(e,t,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:ft||gu(u,t);var l=Ke,c=Nt;hn(u.type)&&(Ke=u.stateNode,Nt=!1),wu(e,t,u),Na(u.stateNode),Ke=l,Nt=c;break;case 5:ft||gu(u,t);case 6:if(l=Ke,c=Nt,Ke=null,wu(e,t,u),Ke=l,Nt=c,Ke!==null)if(Nt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(u.stateNode)}catch(r){Ue(u,t,r)}else try{Ke.removeChild(u.stateNode)}catch(r){Ue(u,t,r)}break;case 18:Ke!==null&&(Nt?(e=Ke,aD(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,u.stateNode),Hl(e)):aD(Ke,u.stateNode));break;case 4:l=Ke,c=Nt,Ke=u.stateNode.containerInfo,Nt=!0,wu(e,t,u),Ke=l,Nt=c;break;case 0:case 11:case 14:case 15:an(2,u,t),ft||an(4,u,t),wu(e,t,u);break;case 1:ft||(gu(u,t),l=u.stateNode,typeof l.componentWillUnmount=="function"&&ih(u,t,l)),wu(e,t,u);break;case 21:wu(e,t,u);break;case 22:ft=(l=ft)||u.memoizedState!==null,wu(e,t,u),ft=l;break;default:wu(e,t,u)}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hl(e)}catch(u){Ue(t,t.return,u)}}}function mh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hl(e)}catch(u){Ue(t,t.return,u)}}function X2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(o(435,e.tag))}}function Vi(e,t){var u=X2(e);t.forEach(function(l){if(!u.has(l)){u.add(l);var c=eA.bind(null,e,l);l.then(c,c)}})}function Zt(e,t){var u=t.deletions;if(u!==null)for(var l=0;l<u.length;l++){var c=u[l],r=e,s=t,p=s;e:for(;p!==null;){switch(p.tag){case 27:if(hn(p.type)){Ke=p.stateNode,Nt=!1;break e}break;case 5:Ke=p.stateNode,Nt=!1;break e;case 3:case 4:Ke=p.stateNode.containerInfo,Nt=!0;break e}p=p.return}if(Ke===null)throw Error(o(160));hh(r,s,c),Ke=null,Nt=!1,r=c.alternate,r!==null&&(r.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yh(t,e),t=t.sibling}var su=null;function yh(e,t){var u=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(t,e),Ut(e),l&4&&(an(3,e,e.return),Ca(3,e),an(5,e,e.return));break;case 1:Zt(t,e),Ut(e),l&512&&(ft||u===null||gu(u,u.return)),l&64&&Uu&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(u=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=u===null?l:u.concat(l))));break;case 26:var c=su;if(Zt(t,e),Ut(e),l&512&&(ft||u===null||gu(u,u.return)),l&4){var r=u!==null?u.memoizedState:null;if(l=e.memoizedState,u===null)if(l===null)if(e.stateNode===null){e:{l=e.type,u=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":r=c.getElementsByTagName("title")[0],(!r||r[Wl]||r[pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=c.createElement(l),c.head.insertBefore(r,c.querySelector("head > title"))),Et(r,l,u),r[pt]=e,Dt(r),l=r;break e;case"link":var s=yD("link","href",c).get(l+(u.href||""));if(s){for(var p=0;p<s.length;p++)if(r=s[p],r.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&r.getAttribute("rel")===(u.rel==null?null:u.rel)&&r.getAttribute("title")===(u.title==null?null:u.title)&&r.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){s.splice(p,1);break t}}r=c.createElement(l),Et(r,l,u),c.head.appendChild(r);break;case"meta":if(s=yD("meta","content",c).get(l+(u.content||""))){for(p=0;p<s.length;p++)if(r=s[p],r.getAttribute("content")===(u.content==null?null:""+u.content)&&r.getAttribute("name")===(u.name==null?null:u.name)&&r.getAttribute("property")===(u.property==null?null:u.property)&&r.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&r.getAttribute("charset")===(u.charSet==null?null:u.charSet)){s.splice(p,1);break t}}r=c.createElement(l),Et(r,l,u),c.head.appendChild(r);break;default:throw Error(o(468,l))}r[pt]=e,Dt(r),l=r}e.stateNode=l}else pD(c,e.type,e.stateNode);else e.stateNode=mD(c,l,e.memoizedProps);else r!==l?(r===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):r.count--,l===null?pD(c,e.type,e.stateNode):mD(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_r(e,e.memoizedProps,u.memoizedProps)}break;case 27:Zt(t,e),Ut(e),l&512&&(ft||u===null||gu(u,u.return)),u!==null&&l&4&&_r(e,e.memoizedProps,u.memoizedProps);break;case 5:if(Zt(t,e),Ut(e),l&512&&(ft||u===null||gu(u,u.return)),e.flags&32){c=e.stateNode;try{ol(c,"")}catch(K){Ue(e,e.return,K)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,_r(e,c,u!==null?u.memoizedProps:c)),l&1024&&(Br=!0);break;case 6:if(Zt(t,e),Ut(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,u=e.stateNode;try{u.nodeValue=l}catch(K){Ue(e,e.return,K)}}break;case 3:if(fc=null,c=su,su=oc(t.containerInfo),Zt(t,e),su=c,Ut(e),l&4&&u!==null&&u.memoizedState.isDehydrated)try{Hl(t.containerInfo)}catch(K){Ue(e,e.return,K)}Br&&(Br=!1,ph(e));break;case 4:l=su,su=oc(e.stateNode.containerInfo),Zt(t,e),Ut(e),su=l;break;case 12:Zt(t,e),Ut(e);break;case 31:Zt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vi(e,l)));break;case 13:Zt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Ki=Be()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vi(e,l)));break;case 22:c=e.memoizedState!==null;var A=u!==null&&u.memoizedState!==null,z=Uu,M=ft;if(Uu=z||c,ft=M||A,Zt(t,e),ft=M,Uu=z,Ut(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(u===null||A||Uu||ft||Qn(e)),u=null,t=e;;){if(t.tag===5||t.tag===26){if(u===null){A=u=t;try{if(r=A.stateNode,c)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{p=A.stateNode;var w=A.memoizedProps.style,B=w!=null&&w.hasOwnProperty("display")?w.display:null;p.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(K){Ue(A,A.return,K)}}}else if(t.tag===6){if(u===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(K){Ue(A,A.return,K)}}}else if(t.tag===18){if(u===null){A=t;try{var F=A.stateNode;c?iD(F,!0):iD(A.stateNode,!1)}catch(K){Ue(A,A.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(u=l.retryQueue,u!==null&&(l.retryQueue=null,Vi(e,u))));break;case 19:Zt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vi(e,l)));break;case 30:break;case 21:break;default:Zt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var u,l=e.return;l!==null;){if(oh(l)){u=l;break}l=l.return}if(u==null)throw Error(o(160));switch(u.tag){case 27:var c=u.stateNode,r=Sr(e);Li(e,r,c);break;case 5:var s=u.stateNode;u.flags&32&&(ol(s,""),u.flags&=-33);var p=Sr(e);Li(e,p,s);break;case 3:case 4:var A=u.stateNode.containerInfo,z=Sr(e);zr(e,z,A);break;default:throw Error(o(161))}}catch(M){Ue(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ph(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ph(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ju(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sh(e,t.alternate,t),t=t.sibling}function Qn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:an(4,t,t.return),Qn(t);break;case 1:gu(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&ih(t,t.return,u),Qn(t);break;case 27:Na(t.stateNode);case 26:case 5:gu(t,t.return),Qn(t);break;case 22:t.memoizedState===null&&Qn(t);break;case 30:Qn(t);break;default:Qn(t)}e=e.sibling}}function Ru(e,t,u){for(u=u&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,r=t,s=r.flags;switch(r.tag){case 0:case 11:case 15:Ru(c,r,u),Ca(4,r);break;case 1:if(Ru(c,r,u),l=r,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(z){Ue(l,l.return,z)}if(l=r,c=l.updateQueue,c!==null){var p=l.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)V0(A[c],p)}catch(z){Ue(l,l.return,z)}}u&&s&64&&ah(r),_a(r,r.return);break;case 27:rh(r);case 26:case 5:Ru(c,r,u),u&&l===null&&s&4&&ch(r),_a(r,r.return);break;case 12:Ru(c,r,u);break;case 31:Ru(c,r,u),u&&s&4&&Dh(c,r);break;case 13:Ru(c,r,u),u&&s&4&&mh(c,r);break;case 22:r.memoizedState===null&&Ru(c,r,u),_a(r,r.return);break;case 30:break;default:Ru(c,r,u)}t=t.sibling}}function Tr(e,t){var u=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==u&&(e!=null&&e.refCount++,u!=null&&fa(u))}function Fr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fa(e))}function du(e,t,u,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gh(e,t,u,l),t=t.sibling}function gh(e,t,u,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:du(e,t,u,l),c&2048&&Ca(9,t);break;case 1:du(e,t,u,l);break;case 3:du(e,t,u,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fa(e)));break;case 12:if(c&2048){du(e,t,u,l),e=t.stateNode;try{var r=t.memoizedProps,s=r.id,p=r.onPostCommit;typeof p=="function"&&p(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ue(t,t.return,A)}}else du(e,t,u,l);break;case 31:du(e,t,u,l);break;case 13:du(e,t,u,l);break;case 23:break;case 22:r=t.stateNode,s=t.alternate,t.memoizedState!==null?r._visibility&2?du(e,t,u,l):Sa(e,t):r._visibility&2?du(e,t,u,l):(r._visibility|=2,Tl(e,t,u,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Tr(s,t);break;case 24:du(e,t,u,l),c&2048&&Fr(t.alternate,t);break;default:du(e,t,u,l)}}function Tl(e,t,u,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,s=t,p=u,A=l,z=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(r,s,p,A,c),Ca(8,s);break;case 23:break;case 22:var M=s.stateNode;s.memoizedState!==null?M._visibility&2?Tl(r,s,p,A,c):Sa(r,s):(M._visibility|=2,Tl(r,s,p,A,c)),c&&z&2048&&Tr(s.alternate,s);break;case 24:Tl(r,s,p,A,c),c&&z&2048&&Fr(s.alternate,s);break;default:Tl(r,s,p,A,c)}t=t.sibling}}function Sa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var u=e,l=t,c=l.flags;switch(l.tag){case 22:Sa(u,l),c&2048&&Tr(l.alternate,l);break;case 24:Sa(u,l),c&2048&&Fr(l.alternate,l);break;default:Sa(u,l)}t=t.sibling}}var za=8192;function Fl(e,t,u){if(e.subtreeFlags&za)for(e=e.child;e!==null;)vh(e,t,u),e=e.sibling}function vh(e,t,u){switch(e.tag){case 26:Fl(e,t,u),e.flags&za&&e.memoizedState!==null&&xA(u,su,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,u);break;case 3:case 4:var l=su;su=oc(e.stateNode.containerInfo),Fl(e,t,u),su=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=za,za=16777216,Fl(e,t,u),za=l):Fl(e,t,u));break;default:Fl(e,t,u)}}function Ah(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ba(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var u=0;u<t.length;u++){var l=t[u];mt=l,bh(l,e)}Ah(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Eh(e),e=e.sibling}function Eh(e){switch(e.tag){case 0:case 11:case 15:Ba(e),e.flags&2048&&an(9,e,e.return);break;case 3:Ba(e);break;case 12:Ba(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ji(e)):Ba(e);break;default:Ba(e)}}function Ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var u=0;u<t.length;u++){var l=t[u];mt=l,bh(l,e)}Ah(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:an(8,t,t.return),Ji(t);break;case 22:u=t.stateNode,u._visibility&2&&(u._visibility&=-3,Ji(t));break;default:Ji(t)}e=e.sibling}}function bh(e,t){for(;mt!==null;){var u=mt;switch(u.tag){case 0:case 11:case 15:an(8,u,t);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var l=u.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fa(u.memoizedState.cache)}if(l=u.child,l!==null)l.return=u,mt=l;else e:for(u=e;mt!==null;){l=mt;var c=l.sibling,r=l.return;if(dh(l),l===u){mt=null;break e}if(c!==null){c.return=r,mt=c;break e}mt=r}}}var Q2={getCacheForType:function(e){var t=vt(ct),u=t.data.get(e);return u===void 0&&(u=e(),t.data.set(e,u)),u},cacheSignal:function(){return vt(ct).controller.signal}},L2=typeof WeakMap=="function"?WeakMap:Map,xe=0,$e=null,pe=null,Ee=0,Ze=0,Gt=null,cn=!1,Ol=!1,Or=!1,Hu=0,tt=0,on=0,Ln=0,xr=0,kt=0,xl=0,Ta=null,wt=null,Mr=!1,Ki=0,Ch=0,Wi=1/0,Ii=null,rn=null,dt=0,fn=null,Ml=null,qu=0,Nr=0,Zr=null,_h=null,Fa=0,Ur=null;function Xt(){return(xe&2)!==0&&Ee!==0?Ee&-Ee:O.T!==null?$r():qs()}function Sh(){if(kt===0)if((Ee&536870912)===0||Ce){var e=ii;ii<<=1,(ii&3932160)===0&&(ii=262144),kt=e}else kt=536870912;return e=$t.current,e!==null&&(e.flags|=32),kt}function jt(e,t,u){(e===$e&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(Nl(e,0),sn(e,Ee,kt,!1)),Kl(e,u),((xe&2)===0||e!==$e)&&(e===$e&&((xe&2)===0&&(Ln|=u),tt===4&&sn(e,Ee,kt,!1)),vu(e))}function zh(e,t,u){if((xe&6)!==0)throw Error(o(327));var l=!u&&(t&127)===0&&(t&e.expiredLanes)===0||Jl(e,t),c=l?K2(e,t):jr(e,t,!0),r=l;do{if(c===0){Ol&&!l&&sn(e,t,0,!1);break}else{if(u=e.current.alternate,r&&!V2(u)){c=jr(e,t,!1),r=!1;continue}if(c===2){if(r=t,e.errorRecoveryDisabledLanes&r)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var p=e;c=Ta;var A=p.current.memoizedState.isDehydrated;if(A&&(Nl(p,s).flags|=256),s=jr(p,s,!1),s!==2){if(Or&&!A){p.errorRecoveryDisabledLanes|=r,Ln|=r,c=4;break e}r=wt,wt=c,r!==null&&(wt===null?wt=r:wt.push.apply(wt,r))}c=s}if(r=!1,c!==2)continue}}if(c===1){Nl(e,0),sn(e,t,0,!0);break}e:{switch(l=e,r=c,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:sn(l,t,kt,!cn);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Ki+300-Be(),10<c)){if(sn(l,t,kt,!cn),oi(l,0,!0)!==0)break e;qu=t,l.timeoutHandle=nD(Bh.bind(null,l,u,wt,Ii,Mr,t,kt,Ln,xl,cn,r,"Throttled",-0,0),c);break e}Bh(l,u,wt,Ii,Mr,t,kt,Ln,xl,cn,r,null,-0,0)}}break}while(!0);vu(e)}function Bh(e,t,u,l,c,r,s,p,A,z,M,w,B,F){if(e.timeoutHandle=-1,w=t.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Su},vh(t,r,w);var K=(r&62914560)===r?Ki-Be():(r&4194048)===r?Ch-Be():0;if(K=MA(w,K),K!==null){qu=r,e.cancelPendingCommit=K(Uh.bind(null,e,t,r,u,l,c,s,p,A,M,w,null,B,F)),sn(e,r,s,!z);return}}Uh(e,t,r,u,l,c,s,p,A)}function V2(e){for(var t=e;;){var u=t.tag;if((u===0||u===11||u===15)&&t.flags&16384&&(u=t.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var l=0;l<u.length;l++){var c=u[l],r=c.getSnapshot;c=c.value;try{if(!Ht(r(),c))return!1}catch{return!1}}if(u=t.child,t.subtreeFlags&16384&&u!==null)u.return=t,t=u;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sn(e,t,u,l){t&=~xr,t&=~Ln,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var r=31-Bt(c),s=1<<r;l[r]=-1,c&=~s}u!==0&&js(e,u,t)}function Pi(){return(xe&6)===0?(Oa(0),!1):!0}function wr(){if(pe!==null){if(Ze===0)var e=pe.return;else e=pe,Fu=Rn=null,Io(e),Cl=null,da=0,e=pe;for(;e!==null;)lh(e.alternate,e),e=e.return;pe=null}}function Nl(e,t){var u=e.timeoutHandle;u!==-1&&(e.timeoutHandle=-1,DA(u)),u=e.cancelPendingCommit,u!==null&&(e.cancelPendingCommit=null,u()),qu=0,wr(),$e=e,pe=u=Bu(e.current,null),Ee=t,Ze=0,Gt=null,cn=!1,Ol=Jl(e,t),Or=!1,xl=kt=xr=Ln=on=tt=0,wt=Ta=null,Mr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-Bt(l),r=1<<c;t|=e[c],l&=~r}return Hu=t,Ai(),u}function Th(e,t){se=null,O.H=Aa,t===bl||t===Ti?(t=k0(),Ze=3):t===qo?(t=k0(),Ze=4):Ze=t===Dr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,pe===null&&(tt=1,Yi(e,It(t,e.current)))}function Fh(){var e=$t.current;return e===null?!0:(Ee&4194048)===Ee?uu===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===uu:!1}function Oh(){var e=O.H;return O.H=Aa,e===null?Aa:e}function xh(){var e=O.A;return O.A=Q2,e}function ec(){tt=4,cn||(Ee&4194048)!==Ee&&$t.current!==null||(Ol=!0),(on&134217727)===0&&(Ln&134217727)===0||$e===null||sn($e,Ee,kt,!1)}function jr(e,t,u){var l=xe;xe|=2;var c=Oh(),r=xh();($e!==e||Ee!==t)&&(Ii=null,Nl(e,t)),t=!1;var s=tt;e:do try{if(Ze!==0&&pe!==null){var p=pe,A=Gt;switch(Ze){case 8:wr(),s=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var z=Ze;if(Ze=0,Gt=null,Zl(e,p,A,z),u&&Ol){s=0;break e}break;default:z=Ze,Ze=0,Gt=null,Zl(e,p,A,z)}}J2(),s=tt;break}catch(M){Th(e,M)}while(!0);return t&&e.shellSuspendCounter++,Fu=Rn=null,xe=l,O.H=c,O.A=r,pe===null&&($e=null,Ee=0,Ai()),s}function J2(){for(;pe!==null;)Mh(pe)}function K2(e,t){var u=xe;xe|=2;var l=Oh(),c=xh();$e!==e||Ee!==t?(Ii=null,Wi=Be()+500,Nl(e,t)):Ol=Jl(e,t);e:do try{if(Ze!==0&&pe!==null){t=pe;var r=Gt;t:switch(Ze){case 1:Ze=0,Gt=null,Zl(e,t,r,1);break;case 2:case 9:if(Y0(r)){Ze=0,Gt=null,Nh(t);break}t=function(){Ze!==2&&Ze!==9||$e!==e||(Ze=7),vu(e)},r.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:Y0(r)?(Ze=0,Gt=null,Nh(t)):(Ze=0,Gt=null,Zl(e,t,r,7));break;case 5:var s=null;switch(pe.tag){case 26:s=pe.memoizedState;case 5:case 27:var p=pe;if(s?gD(s):p.stateNode.complete){Ze=0,Gt=null;var A=p.sibling;if(A!==null)pe=A;else{var z=p.return;z!==null?(pe=z,tc(z)):pe=null}break t}}Ze=0,Gt=null,Zl(e,t,r,5);break;case 6:Ze=0,Gt=null,Zl(e,t,r,6);break;case 8:wr(),tt=6;break e;default:throw Error(o(462))}}W2();break}catch(M){Th(e,M)}while(!0);return Fu=Rn=null,O.H=l,O.A=c,xe=u,pe!==null?0:($e=null,Ee=0,Ai(),tt)}function W2(){for(;pe!==null&&!Qu();)Mh(pe)}function Mh(e){var t=uh(e.alternate,e,Hu);e.memoizedProps=e.pendingProps,t===null?tc(e):pe=t}function Nh(e){var t=e,u=t.alternate;switch(t.tag){case 15:case 0:t=Kd(u,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Kd(u,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Io(t);default:lh(u,t),t=pe=x0(t,Hu),t=uh(u,t,Hu)}e.memoizedProps=e.pendingProps,t===null?tc(e):pe=t}function Zl(e,t,u,l){Fu=Rn=null,Io(t),Cl=null,da=0;var c=t.return;try{if(H2(e,c,t,u,Ee)){tt=1,Yi(e,It(u,e.current)),pe=null;return}}catch(r){if(c!==null)throw pe=c,r;tt=1,Yi(e,It(u,e.current)),pe=null;return}t.flags&32768?(Ce||l===1?e=!0:Ol||(Ee&536870912)!==0?e=!1:(cn=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zh(t,e)):tc(t)}function tc(e){var t=e;do{if((t.flags&32768)!==0){Zh(t,cn);return}e=t.return;var u=Y2(t.alternate,t,Hu);if(u!==null){pe=u;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);tt===0&&(tt=5)}function Zh(e,t){do{var u=G2(e.alternate,e);if(u!==null){u.flags&=32767,pe=u;return}if(u=e.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=u}while(e!==null);tt=6,pe=null}function Uh(e,t,u,l,c,r,s,p,A){e.cancelPendingCommit=null;do uc();while(dt!==0);if((xe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=So,Ov(e,u,r,s,p,A),e===$e&&(pe=$e=null,Ee=0),Ml=t,fn=e,qu=u,Nr=r,Zr=c,_h=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tA(ru,function(){return qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,c=q.p,q.p=2,s=xe,xe|=4;try{k2(e,t,u)}finally{xe=s,q.p=c,O.T=l}}dt=1,wh(),jh(),Rh()}}function wh(){if(dt===1){dt=0;var e=fn,t=Ml,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=O.T,O.T=null;var l=q.p;q.p=2;var c=xe;xe|=4;try{yh(t,e);var r=Jr,s=b0(e.containerInfo),p=r.focusedElem,A=r.selectionRange;if(s!==p&&p&&p.ownerDocument&&E0(p.ownerDocument.documentElement,p)){if(A!==null&&Ao(p)){var z=A.start,M=A.end;if(M===void 0&&(M=z),"selectionStart"in p)p.selectionStart=z,p.selectionEnd=Math.min(M,p.value.length);else{var w=p.ownerDocument||document,B=w&&w.defaultView||window;if(B.getSelection){var F=B.getSelection(),K=p.textContent.length,ue=Math.min(A.start,K),Re=A.end===void 0?ue:Math.min(A.end,K);!F.extend&&ue>Re&&(s=Re,Re=ue,ue=s);var C=A0(p,ue),b=A0(p,Re);if(C&&b&&(F.rangeCount!==1||F.anchorNode!==C.node||F.anchorOffset!==C.offset||F.focusNode!==b.node||F.focusOffset!==b.offset)){var S=w.createRange();S.setStart(C.node,C.offset),F.removeAllRanges(),ue>Re?(F.addRange(S),F.extend(b.node,b.offset)):(S.setEnd(b.node,b.offset),F.addRange(S))}}}}for(w=[],F=p;F=F.parentNode;)F.nodeType===1&&w.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<w.length;p++){var N=w[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Dc=!!Vr,Jr=Vr=null}finally{xe=c,q.p=l,O.T=u}}e.current=t,dt=2}}function jh(){if(dt===2){dt=0;var e=fn,t=Ml,u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=O.T,O.T=null;var l=q.p;q.p=2;var c=xe;xe|=4;try{sh(e,t.alternate,t)}finally{xe=c,q.p=l,O.T=u}}dt=3}}function Rh(){if(dt===4||dt===3){dt=0,yt();var e=fn,t=Ml,u=qu,l=_h;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,Ml=fn=null,Hh(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(rn=null),eo(u),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Fn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,c=q.p,q.p=2,O.T=null;try{for(var r=e.onRecoverableError,s=0;s<l.length;s++){var p=l[s];r(p.value,{componentStack:p.stack})}}finally{O.T=t,q.p=c}}(qu&3)!==0&&uc(),vu(e),c=e.pendingLanes,(u&261930)!==0&&(c&42)!==0?e===Ur?Fa++:(Fa=0,Ur=e):Fa=0,Oa(0)}}function Hh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fa(t)))}function uc(){return wh(),jh(),Rh(),qh()}function qh(){if(dt!==5)return!1;var e=fn,t=Nr;Nr=0;var u=eo(qu),l=O.T,c=q.p;try{q.p=32>u?32:u,O.T=null,u=Zr,Zr=null;var r=fn,s=qu;if(dt=0,Ml=fn=null,qu=0,(xe&6)!==0)throw Error(o(331));var p=xe;if(xe|=4,Eh(r.current),gh(r,r.current,s,u),xe=p,Oa(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Fn,r)}catch{}return!0}finally{q.p=c,O.T=l,Hh(e,t)}}function $h(e,t,u){t=It(u,t),t=hr(e.stateNode,t,2),e=un(e,t,2),e!==null&&(Kl(e,2),vu(e))}function Ue(e,t,u){if(e.tag===3)$h(e,e,u);else for(;t!==null;){if(t.tag===3){$h(t,e,u);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(rn===null||!rn.has(l))){e=It(u,e),u=Yd(2),l=un(t,u,2),l!==null&&(Gd(u,l,t,e),Kl(l,2),vu(l));break}}t=t.return}}function Rr(e,t,u){var l=e.pingCache;if(l===null){l=e.pingCache=new L2;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(u)||(Or=!0,c.add(u),e=I2.bind(null,e,t,u),t.then(e,e))}function I2(e,t,u){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&u,e.warmLanes&=~u,$e===e&&(Ee&u)===u&&(tt===4||tt===3&&(Ee&62914560)===Ee&&300>Be()-Ki?(xe&2)===0&&Nl(e,0):xr|=u,xl===Ee&&(xl=0)),vu(e)}function Yh(e,t){t===0&&(t=ws()),e=Un(e,t),e!==null&&(Kl(e,t),vu(e))}function P2(e){var t=e.memoizedState,u=0;t!==null&&(u=t.retryLane),Yh(e,u)}function eA(e,t){var u=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(u=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Yh(e,u)}function tA(e,t){return _t(e,t)}var nc=null,Ul=null,Hr=!1,lc=!1,qr=!1,dn=0;function vu(e){e!==Ul&&e.next===null&&(Ul===null?nc=Ul=e:Ul=Ul.next=e),lc=!0,Hr||(Hr=!0,nA())}function Oa(e,t){if(!qr&&lc){qr=!0;do for(var u=!1,l=nc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var r=0;else{var s=l.suspendedLanes,p=l.pingedLanes;r=(1<<31-Bt(42|e)+1)-1,r&=c&~(s&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(u=!0,Qh(l,r))}else r=Ee,r=oi(l,l===$e?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Jl(l,r)||(u=!0,Qh(l,r));l=l.next}while(u);qr=!1}}function uA(){Gh()}function Gh(){lc=Hr=!1;var e=0;dn!==0&&hA()&&(e=dn);for(var t=Be(),u=null,l=nc;l!==null;){var c=l.next,r=kh(l,t);r===0?(l.next=null,u===null?nc=c:u.next=c,c===null&&(Ul=u)):(u=l,(e!==0||(r&3)!==0)&&(lc=!0)),l=c}dt!==0&&dt!==5||Oa(e),dn!==0&&(dn=0)}function kh(e,t){for(var u=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var s=31-Bt(r),p=1<<s,A=c[s];A===-1?((p&u)===0||(p&l)!==0)&&(c[s]=Fv(p,t)):A<=t&&(e.expiredLanes|=p),r&=~p}if(t=$e,u=Ee,u=oi(e,e===t?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,u===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&cu(l),e.callbackNode=null,e.callbackPriority=0;if((u&3)===0||Jl(e,u)){if(t=u&-u,t===e.callbackPriority)return t;switch(l!==null&&cu(l),eo(u)){case 2:case 8:u=ou;break;case 32:u=ru;break;case 268435456:u=Lu;break;default:u=ru}return l=Xh.bind(null,e),u=_t(u,l),e.callbackPriority=t,e.callbackNode=u,t}return l!==null&&l!==null&&cu(l),e.callbackPriority=2,e.callbackNode=null,2}function Xh(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var u=e.callbackNode;if(uc()&&e.callbackNode!==u)return null;var l=Ee;return l=oi(e,e===$e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(zh(e,l,t),kh(e,Be()),e.callbackNode!=null&&e.callbackNode===u?Xh.bind(null,e):null)}function Qh(e,t){if(uc())return null;zh(e,t,!0)}function nA(){mA(function(){(xe&6)!==0?_t(Ot,uA):Gh()})}function $r(){if(dn===0){var e=Al;e===0&&(e=ai,ai<<=1,(ai&261888)===0&&(ai=256)),dn=e}return dn}function Lh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:di(""+e)}function Vh(e,t){var u=t.ownerDocument.createElement("input");return u.name=t.name,u.value=t.value,e.id&&u.setAttribute("form",e.id),t.parentNode.insertBefore(u,t),e=new FormData(e),u.parentNode.removeChild(u),e}function lA(e,t,u,l,c){if(t==="submit"&&u&&u.stateNode===c){var r=Lh((c[xt]||null).action),s=l.submitter;s&&(t=(t=s[xt]||null)?Lh(t.formAction):s.getAttribute("formAction"),t!==null&&(r=t,s=null));var p=new yi("action","action",null,l,c);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(dn!==0){var A=s?Vh(c,s):new FormData(c);cr(u,{pending:!0,data:A,method:c.method,action:r},null,A)}}else typeof r=="function"&&(p.preventDefault(),A=s?Vh(c,s):new FormData(c),cr(u,{pending:!0,data:A,method:c.method,action:r},r,A))},currentTarget:c}]})}}for(var Yr=0;Yr<_o.length;Yr++){var Gr=_o[Yr],aA=Gr.toLowerCase(),iA=Gr[0].toUpperCase()+Gr.slice(1);fu(aA,"on"+iA)}fu(S0,"onAnimationEnd"),fu(z0,"onAnimationIteration"),fu(B0,"onAnimationStart"),fu("dblclick","onDoubleClick"),fu("focusin","onFocus"),fu("focusout","onBlur"),fu(b2,"onTransitionRun"),fu(C2,"onTransitionStart"),fu(_2,"onTransitionCancel"),fu(T0,"onTransitionEnd"),il("onMouseEnter",["mouseout","mouseover"]),il("onMouseLeave",["mouseout","mouseover"]),il("onPointerEnter",["pointerout","pointerover"]),il("onPointerLeave",["pointerout","pointerover"]),xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xa="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(" "),cA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xa));function Jh(e,t){t=(t&4)!==0;for(var u=0;u<e.length;u++){var l=e[u],c=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var s=l.length-1;0<=s;s--){var p=l[s],A=p.instance,z=p.currentTarget;if(p=p.listener,A!==r&&c.isPropagationStopped())break e;r=p,c.currentTarget=z;try{r(c)}catch(M){vi(M)}c.currentTarget=null,r=A}else for(s=0;s<l.length;s++){if(p=l[s],A=p.instance,z=p.currentTarget,p=p.listener,A!==r&&c.isPropagationStopped())break e;r=p,c.currentTarget=z;try{r(c)}catch(M){vi(M)}c.currentTarget=null,r=A}}}}function ge(e,t){var u=t[to];u===void 0&&(u=t[to]=new Set);var l=e+"__bubble";u.has(l)||(Kh(t,e,2,!1),u.add(l))}function kr(e,t,u){var l=0;t&&(l|=4),Kh(u,e,l,t)}var ac="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[ac]){e[ac]=!0,Gs.forEach(function(u){u!=="selectionchange"&&(cA.has(u)||kr(u,!1,e),kr(u,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ac]||(t[ac]=!0,kr("selectionchange",!1,t))}}function Kh(e,t,u,l){switch(SD(t)){case 2:var c=UA;break;case 8:c=wA;break;default:c=cf}u=c.bind(null,t,u,e),c=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,u,{capture:!0,passive:c}):e.addEventListener(t,u,!0):c!==void 0?e.addEventListener(t,u,{passive:c}):e.addEventListener(t,u,!1)}function Qr(e,t,u,l,c){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var s=l.tag;if(s===3||s===4){var p=l.stateNode.containerInfo;if(p===c)break;if(s===4)for(s=l.return;s!==null;){var A=s.tag;if((A===3||A===4)&&s.stateNode.containerInfo===c)return;s=s.return}for(;p!==null;){if(s=nl(p),s===null)return;if(A=s.tag,A===5||A===6||A===26||A===27){l=r=s;continue e}p=p.parentNode}}l=l.return}t0(function(){var z=r,M=oo(u),w=[];e:{var B=F0.get(e);if(B!==void 0){var F=yi,K=e;switch(e){case"keypress":if(Di(u)===0)break e;case"keydown":case"keyup":F=e2;break;case"focusin":K="focus",F=mo;break;case"focusout":K="blur",F=mo;break;case"beforeblur":case"afterblur":F=mo;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=l0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=n2;break;case S0:case z0:case B0:F=Xv;break;case T0:F=a2;break;case"scroll":case"scrollend":F=qv;break;case"wheel":F=c2;break;case"copy":case"cut":case"paste":F=Lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=i0;break;case"toggle":case"beforetoggle":F=r2}var ue=(t&4)!==0,Re=!ue&&(e==="scroll"||e==="scrollend"),C=ue?B!==null?B+"Capture":null:B;ue=[];for(var b=z,S;b!==null;){var N=b;if(S=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||S===null||C===null||(N=Pl(b,C),N!=null&&ue.push(Ma(b,N,S))),Re)break;b=b.return}0<ue.length&&(B=new F(B,K,null,u,M),w.push({event:B,listeners:ue}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",B&&u!==co&&(K=u.relatedTarget||u.fromElement)&&(nl(K)||K[ul]))break e;if((F||B)&&(B=M.window===M?M:(B=M.ownerDocument)?B.defaultView||B.parentWindow:window,F?(K=u.relatedTarget||u.toElement,F=z,K=K?nl(K):null,K!==null&&(Re=d(K),ue=K.tag,K!==Re||ue!==5&&ue!==27&&ue!==6)&&(K=null)):(F=null,K=z),F!==K)){if(ue=l0,N="onMouseLeave",C="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ue=i0,N="onPointerLeave",C="onPointerEnter",b="pointer"),Re=F==null?B:Il(F),S=K==null?B:Il(K),B=new ue(N,b+"leave",F,u,M),B.target=Re,B.relatedTarget=S,N=null,nl(M)===z&&(ue=new ue(C,b+"enter",K,u,M),ue.target=S,ue.relatedTarget=Re,N=ue),Re=N,F&&K)t:{for(ue=oA,C=F,b=K,S=0,N=C;N;N=ue(N))S++;N=0;for(var P=b;P;P=ue(P))N++;for(;0<S-N;)C=ue(C),S--;for(;0<N-S;)b=ue(b),N--;for(;S--;){if(C===b||b!==null&&C===b.alternate){ue=C;break t}C=ue(C),b=ue(b)}ue=null}else ue=null;F!==null&&Wh(w,B,F,ue,!1),K!==null&&Re!==null&&Wh(w,Re,K,ue,!0)}}e:{if(B=z?Il(z):window,F=B.nodeName&&B.nodeName.toLowerCase(),F==="select"||F==="input"&&B.type==="file")var Te=D0;else if(d0(B))if(m0)Te=v2;else{Te=p2;var W=y2}else F=B.nodeName,!F||F.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?z&&io(z.elementType)&&(Te=D0):Te=g2;if(Te&&(Te=Te(e,z))){h0(w,Te,u,M);break e}W&&W(e,B,z),e==="focusout"&&z&&B.type==="number"&&z.memoizedProps.value!=null&&ao(B,"number",B.value)}switch(W=z?Il(z):window,e){case"focusin":(d0(W)||W.contentEditable==="true")&&(dl=W,Eo=z,ca=null);break;case"focusout":ca=Eo=dl=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,C0(w,u,M);break;case"selectionchange":if(E2)break;case"keydown":case"keyup":C0(w,u,M)}var he;if(po)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else sl?f0(e,u)&&(be="onCompositionEnd"):e==="keydown"&&u.keyCode===229&&(be="onCompositionStart");be&&(c0&&u.locale!=="ko"&&(sl||be!=="onCompositionStart"?be==="onCompositionEnd"&&sl&&(he=u0()):(Ju=M,so="value"in Ju?Ju.value:Ju.textContent,sl=!0)),W=ic(z,be),0<W.length&&(be=new a0(be,e,null,u,M),w.push({event:be,listeners:W}),he?be.data=he:(he=s0(u),he!==null&&(be.data=he)))),(he=s2?d2(e,u):h2(e,u))&&(be=ic(z,"onBeforeInput"),0<be.length&&(W=new a0("onBeforeInput","beforeinput",null,u,M),w.push({event:W,listeners:be}),W.data=he)),lA(w,e,z,u,M)}Jh(w,t)})}function Ma(e,t,u){return{instance:e,listener:t,currentTarget:u}}function ic(e,t){for(var u=t+"Capture",l=[];e!==null;){var c=e,r=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||r===null||(c=Pl(e,u),c!=null&&l.unshift(Ma(e,c,r)),c=Pl(e,t),c!=null&&l.push(Ma(e,c,r))),e.tag===3)return l;e=e.return}return[]}function oA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wh(e,t,u,l,c){for(var r=t._reactName,s=[];u!==null&&u!==l;){var p=u,A=p.alternate,z=p.stateNode;if(p=p.tag,A!==null&&A===l)break;p!==5&&p!==26&&p!==27||z===null||(A=z,c?(z=Pl(u,r),z!=null&&s.unshift(Ma(u,z,A))):c||(z=Pl(u,r),z!=null&&s.push(Ma(u,z,A)))),u=u.return}s.length!==0&&e.push({event:t,listeners:s})}var rA=/\r\n?/g,fA=/\u0000|\uFFFD/g;function Ih(e){return(typeof e=="string"?e:""+e).replace(rA,`
|
|
49
|
+
`).replace(fA,"")}function Ph(e,t){return t=Ih(t),Ih(e)===t}function je(e,t,u,l,c,r){switch(u){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ol(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ol(e,""+l);break;case"className":fi(e,"class",l);break;case"tabIndex":fi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(e,u,l);break;case"style":Ps(e,l,r);break;case"data":if(t!=="object"){fi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||u!=="href")){e.removeAttribute(u);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(u);break}l=di(""+l),e.setAttribute(u,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(u==="formAction"?(t!=="input"&&je(e,t,"name",c.name,c,null),je(e,t,"formEncType",c.formEncType,c,null),je(e,t,"formMethod",c.formMethod,c,null),je(e,t,"formTarget",c.formTarget,c,null)):(je(e,t,"encType",c.encType,c,null),je(e,t,"method",c.method,c,null),je(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(u);break}l=di(""+l),e.setAttribute(u,l);break;case"onClick":l!=null&&(e.onclick=Su);break;case"onScroll":l!=null&&ge("scroll",e);break;case"onScrollEnd":l!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(u=l.__html,u!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=u}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}u=di(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(u,""+l):e.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(u,""):e.removeAttribute(u);break;case"capture":case"download":l===!0?e.setAttribute(u,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(u,l):e.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(u,l):e.removeAttribute(u);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(u):e.setAttribute(u,l);break;case"popover":ge("beforetoggle",e),ge("toggle",e),ri(e,"popover",l);break;case"xlinkActuate":_u(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":_u(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":_u(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":_u(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":_u(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":_u(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":_u(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":_u(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":_u(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ri(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Rv.get(u)||u,ri(e,u,l))}}function Lr(e,t,u,l,c,r){switch(u){case"style":Ps(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(u=l.__html,u!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=u}}break;case"children":typeof l=="string"?ol(e,l):(typeof l=="number"||typeof l=="bigint")&&ol(e,""+l);break;case"onScroll":l!=null&&ge("scroll",e);break;case"onScrollEnd":l!=null&&ge("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Su);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ks.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(c=u.endsWith("Capture"),t=u.slice(2,c?u.length-7:void 0),r=e[xt]||null,r=r!=null?r[u]:null,typeof r=="function"&&e.removeEventListener(t,r,c),typeof l=="function")){typeof r!="function"&&r!==null&&(u in e?e[u]=null:e.hasAttribute(u)&&e.removeAttribute(u)),e.addEventListener(t,l,c);break e}u in e?e[u]=l:l===!0?e.setAttribute(u,""):ri(e,u,l)}}}function Et(e,t,u){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var l=!1,c=!1,r;for(r in u)if(u.hasOwnProperty(r)){var s=u[r];if(s!=null)switch(r){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:je(e,t,r,s,u,null)}}c&&je(e,t,"srcSet",u.srcSet,u,null),l&&je(e,t,"src",u.src,u,null);return;case"input":ge("invalid",e);var p=r=s=c=null,A=null,z=null;for(l in u)if(u.hasOwnProperty(l)){var M=u[l];if(M!=null)switch(l){case"name":c=M;break;case"type":s=M;break;case"checked":A=M;break;case"defaultChecked":z=M;break;case"value":r=M;break;case"defaultValue":p=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:je(e,t,l,M,u,null)}}Js(e,r,p,A,z,s,c,!1);return;case"select":ge("invalid",e),l=s=r=null;for(c in u)if(u.hasOwnProperty(c)&&(p=u[c],p!=null))switch(c){case"value":r=p;break;case"defaultValue":s=p;break;case"multiple":l=p;default:je(e,t,c,p,u,null)}t=r,u=s,e.multiple=!!l,t!=null?cl(e,!!l,t,!1):u!=null&&cl(e,!!l,u,!0);return;case"textarea":ge("invalid",e),r=c=l=null;for(s in u)if(u.hasOwnProperty(s)&&(p=u[s],p!=null))switch(s){case"value":l=p;break;case"defaultValue":c=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:je(e,t,s,p,u,null)}Ws(e,l,c,r);return;case"option":for(A in u)if(u.hasOwnProperty(A)&&(l=u[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(e,t,A,l,u,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(l=0;l<xa.length;l++)ge(xa[l],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in u)if(u.hasOwnProperty(z)&&(l=u[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:je(e,t,z,l,u,null)}return;default:if(io(t)){for(M in u)u.hasOwnProperty(M)&&(l=u[M],l!==void 0&&Lr(e,t,M,l,u,void 0));return}}for(p in u)u.hasOwnProperty(p)&&(l=u[p],l!=null&&je(e,t,p,l,u,null))}function sA(e,t,u,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,r=null,s=null,p=null,A=null,z=null,M=null;for(F in u){var w=u[F];if(u.hasOwnProperty(F)&&w!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":A=w;default:l.hasOwnProperty(F)||je(e,t,F,null,l,w)}}for(var B in l){var F=l[B];if(w=u[B],l.hasOwnProperty(B)&&(F!=null||w!=null))switch(B){case"type":r=F;break;case"name":c=F;break;case"checked":z=F;break;case"defaultChecked":M=F;break;case"value":s=F;break;case"defaultValue":p=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:F!==w&&je(e,t,B,F,l,w)}}lo(e,s,p,A,z,M,r,c);return;case"select":F=s=p=B=null;for(r in u)if(A=u[r],u.hasOwnProperty(r)&&A!=null)switch(r){case"value":break;case"multiple":F=A;default:l.hasOwnProperty(r)||je(e,t,r,null,l,A)}for(c in l)if(r=l[c],A=u[c],l.hasOwnProperty(c)&&(r!=null||A!=null))switch(c){case"value":B=r;break;case"defaultValue":p=r;break;case"multiple":s=r;default:r!==A&&je(e,t,c,r,l,A)}t=p,u=s,l=F,B!=null?cl(e,!!u,B,!1):!!l!=!!u&&(t!=null?cl(e,!!u,t,!0):cl(e,!!u,u?[]:"",!1));return;case"textarea":F=B=null;for(p in u)if(c=u[p],u.hasOwnProperty(p)&&c!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:je(e,t,p,null,l,c)}for(s in l)if(c=l[s],r=u[s],l.hasOwnProperty(s)&&(c!=null||r!=null))switch(s){case"value":B=c;break;case"defaultValue":F=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==r&&je(e,t,s,c,l,r)}Ks(e,B,F);return;case"option":for(var K in u)if(B=u[K],u.hasOwnProperty(K)&&B!=null&&!l.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:je(e,t,K,null,l,B)}for(A in l)if(B=l[A],F=u[A],l.hasOwnProperty(A)&&B!==F&&(B!=null||F!=null))switch(A){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:je(e,t,A,B,l,F)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in u)B=u[ue],u.hasOwnProperty(ue)&&B!=null&&!l.hasOwnProperty(ue)&&je(e,t,ue,null,l,B);for(z in l)if(B=l[z],F=u[z],l.hasOwnProperty(z)&&B!==F&&(B!=null||F!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:je(e,t,z,B,l,F)}return;default:if(io(t)){for(var Re in u)B=u[Re],u.hasOwnProperty(Re)&&B!==void 0&&!l.hasOwnProperty(Re)&&Lr(e,t,Re,void 0,l,B);for(M in l)B=l[M],F=u[M],!l.hasOwnProperty(M)||B===F||B===void 0&&F===void 0||Lr(e,t,M,B,l,F);return}}for(var C in u)B=u[C],u.hasOwnProperty(C)&&B!=null&&!l.hasOwnProperty(C)&&je(e,t,C,null,l,B);for(w in l)B=l[w],F=u[w],!l.hasOwnProperty(w)||B===F||B==null&&F==null||je(e,t,w,B,l,F)}function eD(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dA(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,u=performance.getEntriesByType("resource"),l=0;l<u.length;l++){var c=u[l],r=c.transferSize,s=c.initiatorType,p=c.duration;if(r&&p&&eD(s)){for(s=0,p=c.responseEnd,l+=1;l<u.length;l++){var A=u[l],z=A.startTime;if(z>p)break;var M=A.transferSize,w=A.initiatorType;M&&eD(w)&&(A=A.responseEnd,s+=M*(A<p?1:(p-z)/(A-z)))}if(--l,t+=8*(r+s)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vr=null,Jr=null;function cc(e){return e.nodeType===9?e:e.ownerDocument}function tD(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function uD(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Kr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wr=null;function hA(){var e=window.event;return e&&e.type==="popstate"?e===Wr?!1:(Wr=e,!0):(Wr=null,!1)}var nD=typeof setTimeout=="function"?setTimeout:void 0,DA=typeof clearTimeout=="function"?clearTimeout:void 0,lD=typeof Promise=="function"?Promise:void 0,mA=typeof queueMicrotask=="function"?queueMicrotask:typeof lD<"u"?function(e){return lD.resolve(null).then(e).catch(yA)}:nD;function yA(e){setTimeout(function(){throw e})}function hn(e){return e==="head"}function aD(e,t){var u=t,l=0;do{var c=u.nextSibling;if(e.removeChild(u),c&&c.nodeType===8)if(u=c.data,u==="/$"||u==="/&"){if(l===0){e.removeChild(c),Hl(t);return}l--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")l++;else if(u==="html")Na(e.ownerDocument.documentElement);else if(u==="head"){u=e.ownerDocument.head,Na(u);for(var r=u.firstChild;r;){var s=r.nextSibling,p=r.nodeName;r[Wl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||u.removeChild(r),r=s}}else u==="body"&&Na(e.ownerDocument.body);u=c}while(u);Hl(t)}function iD(e,t){var u=e;e=0;do{var l=u.nextSibling;if(u.nodeType===1?t?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(t?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),l&&l.nodeType===8)if(u=l.data,u==="/$"){if(e===0)break;e--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||e++;u=l}while(u)}function Ir(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var u=t;switch(t=t.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Ir(u),uo(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}e.removeChild(u)}}function pA(e,t,u,l){for(;e.nodeType===1;){var c=u;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Wl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=nu(e.nextSibling),e===null)break}return null}function gA(e,t,u){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!u||(e=nu(e.nextSibling),e===null))return null;return e}function cD(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nu(e.nextSibling),e===null))return null;return e}function Pr(e){return e.data==="$?"||e.data==="$~"}function ef(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vA(e,t){var u=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||u.readyState!=="loading")t();else{var l=function(){t(),u.removeEventListener("DOMContentLoaded",l)};u.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function nu(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var tf=null;function oD(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var u=e.data;if(u==="/$"||u==="/&"){if(t===0)return nu(e.nextSibling);t--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||t++}e=e.nextSibling}return null}function rD(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var u=e.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(t===0)return e;t--}else u!=="/$"&&u!=="/&"||t++}e=e.previousSibling}return null}function fD(e,t,u){switch(t=cc(u),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Na(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uo(e)}var lu=new Map,sD=new Set;function oc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $u=q.d;q.d={f:AA,r:EA,D:bA,C:CA,L:_A,m:SA,X:BA,S:zA,M:TA};function AA(){var e=$u.f(),t=Pi();return e||t}function EA(e){var t=ll(e);t!==null&&t.tag===5&&t.type==="form"?Td(t):$u.r(e)}var wl=typeof document>"u"?null:document;function dD(e,t,u){var l=wl;if(l&&typeof t=="string"&&t){var c=Kt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof u=="string"&&(c+='[crossorigin="'+u+'"]'),sD.has(c)||(sD.add(c),e={rel:e,crossOrigin:u,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),Et(t,"link",e),Dt(t),l.head.appendChild(t)))}}function bA(e){$u.D(e),dD("dns-prefetch",e,null)}function CA(e,t){$u.C(e,t),dD("preconnect",e,t)}function _A(e,t,u){$u.L(e,t,u);var l=wl;if(l&&e&&t){var c='link[rel="preload"][as="'+Kt(t)+'"]';t==="image"&&u&&u.imageSrcSet?(c+='[imagesrcset="'+Kt(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(c+='[imagesizes="'+Kt(u.imageSizes)+'"]')):c+='[href="'+Kt(e)+'"]';var r=c;switch(t){case"style":r=jl(e);break;case"script":r=Rl(e)}lu.has(r)||(e=v({rel:"preload",href:t==="image"&&u&&u.imageSrcSet?void 0:e,as:t},u),lu.set(r,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Za(r))||t==="script"&&l.querySelector(Ua(r))||(t=l.createElement("link"),Et(t,"link",e),Dt(t),l.head.appendChild(t)))}}function SA(e,t){$u.m(e,t);var u=wl;if(u&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Kt(l)+'"][href="'+Kt(e)+'"]',r=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Rl(e)}if(!lu.has(r)&&(e=v({rel:"modulepreload",href:e},t),lu.set(r,e),u.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ua(r)))return}l=u.createElement("link"),Et(l,"link",e),Dt(l),u.head.appendChild(l)}}}function zA(e,t,u){$u.S(e,t,u);var l=wl;if(l&&e){var c=al(l).hoistableStyles,r=jl(e);t=t||"default";var s=c.get(r);if(!s){var p={loading:0,preload:null};if(s=l.querySelector(Za(r)))p.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},u),(u=lu.get(r))&&uf(e,u);var A=s=l.createElement("link");Dt(A),Et(A,"link",e),A._p=new Promise(function(z,M){A.onload=z,A.onerror=M}),A.addEventListener("load",function(){p.loading|=1}),A.addEventListener("error",function(){p.loading|=2}),p.loading|=4,rc(s,t,l)}s={type:"stylesheet",instance:s,count:1,state:p},c.set(r,s)}}}function BA(e,t){$u.X(e,t);var u=wl;if(u&&e){var l=al(u).hoistableScripts,c=Rl(e),r=l.get(c);r||(r=u.querySelector(Ua(c)),r||(e=v({src:e,async:!0},t),(t=lu.get(c))&&nf(e,t),r=u.createElement("script"),Dt(r),Et(r,"link",e),u.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function TA(e,t){$u.M(e,t);var u=wl;if(u&&e){var l=al(u).hoistableScripts,c=Rl(e),r=l.get(c);r||(r=u.querySelector(Ua(c)),r||(e=v({src:e,async:!0,type:"module"},t),(t=lu.get(c))&&nf(e,t),r=u.createElement("script"),Dt(r),Et(r,"link",e),u.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(c,r))}}function hD(e,t,u,l){var c=(c=me.current)?oc(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(t=jl(u.href),u=al(c).hoistableStyles,l=u.get(t),l||(l={type:"style",instance:null,count:0,state:null},u.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){e=jl(u.href);var r=al(c).hoistableStyles,s=r.get(e);if(s||(c=c.ownerDocument||c,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,s),(r=c.querySelector(Za(e)))&&!r._p&&(s.instance=r,s.state.loading=5),lu.has(e)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},lu.set(e,u),r||FA(c,e,u,s.state))),t&&l===null)throw Error(o(528,""));return s}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=u.async,u=u.src,typeof u=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rl(u),u=al(c).hoistableScripts,l=u.get(t),l||(l={type:"script",instance:null,count:0,state:null},u.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function jl(e){return'href="'+Kt(e)+'"'}function Za(e){return'link[rel="stylesheet"]['+e+"]"}function DD(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function FA(e,t,u,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Et(t,"link",u),Dt(t),e.head.appendChild(t))}function Rl(e){return'[src="'+Kt(e)+'"]'}function Ua(e){return"script[async]"+e}function mD(e,t,u){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Kt(u.href)+'"]');if(l)return t.instance=l,Dt(l),l;var c=v({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Dt(l),Et(l,"style",c),rc(l,u.precedence,e),t.instance=l;case"stylesheet":c=jl(u.href);var r=e.querySelector(Za(c));if(r)return t.state.loading|=4,t.instance=r,Dt(r),r;l=DD(u),(c=lu.get(c))&&uf(l,c),r=(e.ownerDocument||e).createElement("link"),Dt(r);var s=r;return s._p=new Promise(function(p,A){s.onload=p,s.onerror=A}),Et(r,"link",l),t.state.loading|=4,rc(r,u.precedence,e),t.instance=r;case"script":return r=Rl(u.src),(c=e.querySelector(Ua(r)))?(t.instance=c,Dt(c),c):(l=u,(c=lu.get(r))&&(l=v({},u),nf(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Dt(c),Et(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,rc(l,u.precedence,e));return t.instance}function rc(e,t,u){for(var l=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,r=c,s=0;s<l.length;s++){var p=l[s];if(p.dataset.precedence===t)r=p;else if(r!==c)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=u.nodeType===9?u.head:u,t.insertBefore(e,t.firstChild))}function uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fc=null;function yD(e,t,u){if(fc===null){var l=new Map,c=fc=new Map;c.set(u,l)}else c=fc,l=c.get(u),l||(l=new Map,c.set(u,l));if(l.has(e))return l;for(l.set(e,null),u=u.getElementsByTagName(e),c=0;c<u.length;c++){var r=u[c];if(!(r[Wl]||r[pt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var s=r.getAttribute(t)||"";s=e+s;var p=l.get(s);p?p.push(r):l.set(s,[r])}}return l}function pD(e,t,u){e=e.ownerDocument||e,e.head.insertBefore(u,t==="title"?e.querySelector("head > title"):null)}function OA(e,t,u){if(u===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gD(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xA(e,t,u,l){if(u.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var c=jl(l.href),r=t.querySelector(Za(c));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sc.bind(e),t.then(e,e)),u.state.loading|=4,u.instance=r,Dt(r);return}r=t.ownerDocument||t,l=DD(l),(c=lu.get(c))&&uf(l,c),r=r.createElement("link"),Dt(r);var s=r;s._p=new Promise(function(p,A){s.onload=p,s.onerror=A}),Et(r,"link",l),u.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(u,t),(t=u.state.preload)&&(u.state.loading&3)===0&&(e.count++,u=sc.bind(e),t.addEventListener("load",u),t.addEventListener("error",u))}}var lf=0;function MA(e,t){return e.stylesheets&&e.count===0&&hc(e,e.stylesheets),0<e.count||0<e.imgCount?function(u){var l=setTimeout(function(){if(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&lf===0&&(lf=62500*dA());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=u,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var dc=null;function hc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,dc=new Map,t.forEach(NA,e),dc=null,sc.call(e))}function NA(e,t){if(!(t.state.loading&4)){var u=dc.get(e);if(u)var l=u.get(null);else{u=new Map,dc.set(e,u);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<c.length;r++){var s=c[r];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(u.set(s.dataset.precedence,s),l=s)}l&&u.set(null,l)}c=t.instance,s=c.getAttribute("data-precedence"),r=u.get(s)||l,r===l&&u.set(null,c),u.set(s,c),this.count++,l=sc.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),r?r.parentNode.insertBefore(c,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var wa={$$typeof:Q,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function ZA(e,t,u,l,c,r,s,p,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=r,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function vD(e,t,u,l,c,r,s,p,A,z,M,w){return e=new ZA(e,t,u,s,A,z,M,w,p),t=1,r===!0&&(t|=24),r=qt(3,null,null,t),e.current=r,r.stateNode=e,t=jo(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:u,cache:t},$o(r),e}function AD(e){return e?(e=ml,e):ml}function ED(e,t,u,l,c,r){c=AD(c),l.context===null?l.context=c:l.pendingContext=c,l=tn(t),l.payload={element:u},r=r===void 0?null:r,r!==null&&(l.callback=r),u=un(e,l,t),u!==null&&(jt(u,e,t),Da(u,e,t))}function bD(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var u=e.retryLane;e.retryLane=u!==0&&u<t?u:t}}function af(e,t){bD(e,t),(e=e.alternate)&&bD(e,t)}function CD(e){if(e.tag===13||e.tag===31){var t=Un(e,67108864);t!==null&&jt(t,e,67108864),af(e,67108864)}}function _D(e){if(e.tag===13||e.tag===31){var t=Xt();t=Pc(t);var u=Un(e,t);u!==null&&jt(u,e,t),af(e,t)}}var Dc=!0;function UA(e,t,u,l){var c=O.T;O.T=null;var r=q.p;try{q.p=2,cf(e,t,u,l)}finally{q.p=r,O.T=c}}function wA(e,t,u,l){var c=O.T;O.T=null;var r=q.p;try{q.p=8,cf(e,t,u,l)}finally{q.p=r,O.T=c}}function cf(e,t,u,l){if(Dc){var c=of(l);if(c===null)Qr(e,t,l,mc,u),zD(e,l);else if(RA(c,e,t,u,l))l.stopPropagation();else if(zD(e,l),t&4&&-1<jA.indexOf(e)){for(;c!==null;){var r=ll(c);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var s=On(r.pendingLanes);if(s!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;s;){var A=1<<31-Bt(s);p.entanglements[1]|=A,s&=~A}vu(r),(xe&6)===0&&(Wi=Be()+500,Oa(0))}}break;case 31:case 13:p=Un(r,2),p!==null&&jt(p,r,2),Pi(),af(r,2)}if(r=of(l),r===null&&Qr(e,t,l,mc,u),r===c)break;c=r}c!==null&&l.stopPropagation()}else Qr(e,t,l,null,u)}}function of(e){return e=oo(e),rf(e)}var mc=null;function rf(e){if(mc=null,e=nl(e),e!==null){var t=d(e);if(t===null)e=null;else{var u=t.tag;if(u===13){if(e=h(t),e!==null)return e;e=null}else if(u===31){if(e=y(t),e!==null)return e;e=null}else if(u===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mc=e,null}function SD(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Bn()){case Ot:return 2;case ou:return 8;case ru:case Tn:return 32;case Lu:return 268435456;default:return 32}default:return 32}}var ff=!1,Dn=null,mn=null,yn=null,ja=new Map,Ra=new Map,pn=[],jA="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".split(" ");function zD(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":ja.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ra.delete(t.pointerId)}}function Ha(e,t,u,l,c,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:u,eventSystemFlags:l,nativeEvent:r,targetContainers:[c]},t!==null&&(t=ll(t),t!==null&&CD(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function RA(e,t,u,l,c){switch(t){case"focusin":return Dn=Ha(Dn,e,t,u,l,c),!0;case"dragenter":return mn=Ha(mn,e,t,u,l,c),!0;case"mouseover":return yn=Ha(yn,e,t,u,l,c),!0;case"pointerover":var r=c.pointerId;return ja.set(r,Ha(ja.get(r)||null,e,t,u,l,c)),!0;case"gotpointercapture":return r=c.pointerId,Ra.set(r,Ha(Ra.get(r)||null,e,t,u,l,c)),!0}return!1}function BD(e){var t=nl(e.target);if(t!==null){var u=d(t);if(u!==null){if(t=u.tag,t===13){if(t=h(u),t!==null){e.blockedOn=t,$s(e.priority,function(){_D(u)});return}}else if(t===31){if(t=y(u),t!==null){e.blockedOn=t,$s(e.priority,function(){_D(u)});return}}else if(t===3&&u.stateNode.current.memoizedState.isDehydrated){e.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var u=of(e.nativeEvent);if(u===null){u=e.nativeEvent;var l=new u.constructor(u.type,u);co=l,u.target.dispatchEvent(l),co=null}else return t=ll(u),t!==null&&CD(t),e.blockedOn=u,!1;t.shift()}return!0}function TD(e,t,u){yc(e)&&u.delete(t)}function HA(){ff=!1,Dn!==null&&yc(Dn)&&(Dn=null),mn!==null&&yc(mn)&&(mn=null),yn!==null&&yc(yn)&&(yn=null),ja.forEach(TD),Ra.forEach(TD)}function pc(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,HA)))}var gc=null;function FD(e){gc!==e&&(gc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){gc===e&&(gc=null);for(var t=0;t<e.length;t+=3){var u=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(rf(l||u)===null)continue;break}var r=ll(u);r!==null&&(e.splice(t,3),t-=3,cr(r,{pending:!0,data:c,method:u.method,action:l},l,c))}}))}function Hl(e){function t(A){return pc(A,e)}Dn!==null&&pc(Dn,e),mn!==null&&pc(mn,e),yn!==null&&pc(yn,e),ja.forEach(t),Ra.forEach(t);for(var u=0;u<pn.length;u++){var l=pn[u];l.blockedOn===e&&(l.blockedOn=null)}for(;0<pn.length&&(u=pn[0],u.blockedOn===null);)BD(u),u.blockedOn===null&&pn.shift();if(u=(e.ownerDocument||e).$$reactFormReplay,u!=null)for(l=0;l<u.length;l+=3){var c=u[l],r=u[l+1],s=c[xt]||null;if(typeof r=="function")s||FD(u);else if(s){var p=null;if(r&&r.hasAttribute("formAction")){if(c=r,s=r[xt]||null)p=s.formAction;else if(rf(c)!==null)continue}else p=s.action;typeof p=="function"?u[l+1]=p:(u.splice(l,3),l-=3),FD(u)}}}function OD(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(s){return c=s})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(u,20)}function u(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(u,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function sf(e){this._internalRoot=e}vc.prototype.render=sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var u=t.current,l=Xt();ED(u,l,e,t,null,null)},vc.prototype.unmount=sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ED(e.current,2,null,e,null,null),Pi(),t[ul]=null}};function vc(e){this._internalRoot=e}vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=qs();e={blockedOn:null,target:e,priority:t};for(var u=0;u<pn.length&&t!==0&&t<pn[u].priority;u++);pn.splice(u,0,e),u===0&&BD(e)}};var xD=a.version;if(xD!=="19.2.4")throw Error(o(527,xD,"19.2.4"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var qA={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ac.isDisabled&&Ac.supportsFiber)try{Fn=Ac.inject(qA),it=Ac}catch{}}return ql.createRoot=function(e,t){if(!f(e))throw Error(o(299));var u=!1,l="",c=Rd,r=Hd,s=qd;return t!=null&&(t.unstable_strictMode===!0&&(u=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=vD(e,1,!1,null,null,u,l,null,c,r,s,OD),e[ul]=t.current,Xr(e),new sf(t)},ql.hydrateRoot=function(e,t,u){if(!f(e))throw Error(o(299));var l=!1,c="",r=Rd,s=Hd,p=qd,A=null;return u!=null&&(u.unstable_strictMode===!0&&(l=!0),u.identifierPrefix!==void 0&&(c=u.identifierPrefix),u.onUncaughtError!==void 0&&(r=u.onUncaughtError),u.onCaughtError!==void 0&&(s=u.onCaughtError),u.onRecoverableError!==void 0&&(p=u.onRecoverableError),u.formState!==void 0&&(A=u.formState)),t=vD(e,1,!0,t,u??null,l,c,A,r,s,p,OD),t.context=AD(null),u=t.current,l=Xt(),l=Pc(l),c=tn(l),c.callback=null,un(u,c,l),u=l,t.current.lanes=u,Kl(t,u),vu(t),e[ul]=t.current,Xr(e),new vc(t)},ql.version="19.2.4",ql}var Ef;function $D(){if(Ef)return Cc.exports;Ef=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(a){console.error(a)}}return n(),Cc.exports=qD(),Cc.exports}var YD=$D(),GD=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,kD=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,XD=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Bc={Space_Separator:GD,ID_Start:kD,ID_Continue:XD},ut={isSpaceSeparator(n){return typeof n=="string"&&Bc.Space_Separator.test(n)},isIdStartChar(n){return typeof n=="string"&&(n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="$"||n==="_"||Bc.ID_Start.test(n))},isIdContinueChar(n){return typeof n=="string"&&(n>="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9"||n==="$"||n==="_"||n===""||n===""||Bc.ID_Continue.test(n))},isDigit(n){return typeof n=="string"&&/[0-9]/.test(n)},isHexDigit(n){return typeof n=="string"&&/[0-9A-Fa-f]/.test(n)}};let Tc,St,Au,qa,Yu,iu,ht,Fc,$l;var QD=function(a,i){Tc=String(a),St="start",Au=[],qa=0,Yu=1,iu=0,ht=void 0,Fc=void 0,$l=void 0;do ht=LD(),KD[St]();while(ht.type!=="eof");return typeof i=="function"?Oc({"":$l},"",i):$l};function Oc(n,a,i){const o=n[a];if(o!=null&&typeof o=="object")if(Array.isArray(o))for(let f=0;f<o.length;f++){const d=String(f),h=Oc(o,d,i);h===void 0?delete o[d]:Object.defineProperty(o,d,{value:h,writable:!0,enumerable:!0,configurable:!0})}else for(const f in o){const d=Oc(o,f,i);d===void 0?delete o[f]:Object.defineProperty(o,f,{value:d,writable:!0,enumerable:!0,configurable:!0})}return i.call(n,a,o)}let De,fe,Yl,Eu,ve;function LD(){for(De="default",fe="",Yl=!1,Eu=1;;){ve=bu();const n=bf[De]();if(n)return n}}function bu(){if(Tc[qa])return String.fromCodePoint(Tc.codePointAt(qa))}function R(){const n=bu();return n===`
|
|
50
|
+
`?(Yu++,iu=0):n?iu+=n.length:iu++,n&&(qa+=n.length),n}const bf={default(){switch(ve){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
51
|
+
`:case"\r":case"\u2028":case"\u2029":R();return;case"/":R(),De="comment";return;case void 0:return R(),ke("eof")}if(ut.isSpaceSeparator(ve)){R();return}return bf[St]()},comment(){switch(ve){case"*":R(),De="multiLineComment";return;case"/":R(),De="singleLineComment";return}throw Xe(R())},multiLineComment(){switch(ve){case"*":R(),De="multiLineCommentAsterisk";return;case void 0:throw Xe(R())}R()},multiLineCommentAsterisk(){switch(ve){case"*":R();return;case"/":R(),De="default";return;case void 0:throw Xe(R())}R(),De="multiLineComment"},singleLineComment(){switch(ve){case`
|
|
52
|
+
`:case"\r":case"\u2028":case"\u2029":R(),De="default";return;case void 0:return R(),ke("eof")}R()},value(){switch(ve){case"{":case"[":return ke("punctuator",R());case"n":return R(),An("ull"),ke("null",null);case"t":return R(),An("rue"),ke("boolean",!0);case"f":return R(),An("alse"),ke("boolean",!1);case"-":case"+":R()==="-"&&(Eu=-1),De="sign";return;case".":fe=R(),De="decimalPointLeading";return;case"0":fe=R(),De="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":fe=R(),De="decimalInteger";return;case"I":return R(),An("nfinity"),ke("numeric",1/0);case"N":return R(),An("aN"),ke("numeric",NaN);case'"':case"'":Yl=R()==='"',fe="",De="string";return}throw Xe(R())},identifierNameStartEscape(){if(ve!=="u")throw Xe(R());R();const n=xc();switch(n){case"$":case"_":break;default:if(!ut.isIdStartChar(n))throw Cf();break}fe+=n,De="identifierName"},identifierName(){switch(ve){case"$":case"_":case"":case"":fe+=R();return;case"\\":R(),De="identifierNameEscape";return}if(ut.isIdContinueChar(ve)){fe+=R();return}return ke("identifier",fe)},identifierNameEscape(){if(ve!=="u")throw Xe(R());R();const n=xc();switch(n){case"$":case"_":case"":case"":break;default:if(!ut.isIdContinueChar(n))throw Cf();break}fe+=n,De="identifierName"},sign(){switch(ve){case".":fe=R(),De="decimalPointLeading";return;case"0":fe=R(),De="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":fe=R(),De="decimalInteger";return;case"I":return R(),An("nfinity"),ke("numeric",Eu*(1/0));case"N":return R(),An("aN"),ke("numeric",NaN)}throw Xe(R())},zero(){switch(ve){case".":fe+=R(),De="decimalPoint";return;case"e":case"E":fe+=R(),De="decimalExponent";return;case"x":case"X":fe+=R(),De="hexadecimal";return}return ke("numeric",Eu*0)},decimalInteger(){switch(ve){case".":fe+=R(),De="decimalPoint";return;case"e":case"E":fe+=R(),De="decimalExponent";return}if(ut.isDigit(ve)){fe+=R();return}return ke("numeric",Eu*Number(fe))},decimalPointLeading(){if(ut.isDigit(ve)){fe+=R(),De="decimalFraction";return}throw Xe(R())},decimalPoint(){switch(ve){case"e":case"E":fe+=R(),De="decimalExponent";return}if(ut.isDigit(ve)){fe+=R(),De="decimalFraction";return}return ke("numeric",Eu*Number(fe))},decimalFraction(){switch(ve){case"e":case"E":fe+=R(),De="decimalExponent";return}if(ut.isDigit(ve)){fe+=R();return}return ke("numeric",Eu*Number(fe))},decimalExponent(){switch(ve){case"+":case"-":fe+=R(),De="decimalExponentSign";return}if(ut.isDigit(ve)){fe+=R(),De="decimalExponentInteger";return}throw Xe(R())},decimalExponentSign(){if(ut.isDigit(ve)){fe+=R(),De="decimalExponentInteger";return}throw Xe(R())},decimalExponentInteger(){if(ut.isDigit(ve)){fe+=R();return}return ke("numeric",Eu*Number(fe))},hexadecimal(){if(ut.isHexDigit(ve)){fe+=R(),De="hexadecimalInteger";return}throw Xe(R())},hexadecimalInteger(){if(ut.isHexDigit(ve)){fe+=R();return}return ke("numeric",Eu*Number(fe))},string(){switch(ve){case"\\":R(),fe+=VD();return;case'"':if(Yl)return R(),ke("string",fe);fe+=R();return;case"'":if(!Yl)return R(),ke("string",fe);fe+=R();return;case`
|
|
53
|
+
`:case"\r":throw Xe(R());case"\u2028":case"\u2029":WD(ve);break;case void 0:throw Xe(R())}fe+=R()},start(){switch(ve){case"{":case"[":return ke("punctuator",R())}De="value"},beforePropertyName(){switch(ve){case"$":case"_":fe=R(),De="identifierName";return;case"\\":R(),De="identifierNameStartEscape";return;case"}":return ke("punctuator",R());case'"':case"'":Yl=R()==='"',De="string";return}if(ut.isIdStartChar(ve)){fe+=R(),De="identifierName";return}throw Xe(R())},afterPropertyName(){if(ve===":")return ke("punctuator",R());throw Xe(R())},beforePropertyValue(){De="value"},afterPropertyValue(){switch(ve){case",":case"}":return ke("punctuator",R())}throw Xe(R())},beforeArrayValue(){if(ve==="]")return ke("punctuator",R());De="value"},afterArrayValue(){switch(ve){case",":case"]":return ke("punctuator",R())}throw Xe(R())},end(){throw Xe(R())}};function ke(n,a){return{type:n,value:a,line:Yu,column:iu}}function An(n){for(const a of n){if(bu()!==a)throw Xe(R());R()}}function VD(){switch(bu()){case"b":return R(),"\b";case"f":return R(),"\f";case"n":return R(),`
|
|
54
|
+
`;case"r":return R(),"\r";case"t":return R()," ";case"v":return R(),"\v";case"0":if(R(),ut.isDigit(bu()))throw Xe(R());return"\0";case"x":return R(),JD();case"u":return R(),xc();case`
|
|
55
|
+
`:case"\u2028":case"\u2029":return R(),"";case"\r":return R(),bu()===`
|
|
56
|
+
`&&R(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Xe(R());case void 0:throw Xe(R())}return R()}function JD(){let n="",a=bu();if(!ut.isHexDigit(a)||(n+=R(),a=bu(),!ut.isHexDigit(a)))throw Xe(R());return n+=R(),String.fromCodePoint(parseInt(n,16))}function xc(){let n="",a=4;for(;a-- >0;){const i=bu();if(!ut.isHexDigit(i))throw Xe(R());n+=R()}return String.fromCodePoint(parseInt(n,16))}const KD={start(){if(ht.type==="eof")throw En();Mc()},beforePropertyName(){switch(ht.type){case"identifier":case"string":Fc=ht.value,St="afterPropertyName";return;case"punctuator":$a();return;case"eof":throw En()}},afterPropertyName(){if(ht.type==="eof")throw En();St="beforePropertyValue"},beforePropertyValue(){if(ht.type==="eof")throw En();Mc()},beforeArrayValue(){if(ht.type==="eof")throw En();if(ht.type==="punctuator"&&ht.value==="]"){$a();return}Mc()},afterPropertyValue(){if(ht.type==="eof")throw En();switch(ht.value){case",":St="beforePropertyName";return;case"}":$a()}},afterArrayValue(){if(ht.type==="eof")throw En();switch(ht.value){case",":St="beforeArrayValue";return;case"]":$a()}},end(){}};function Mc(){let n;switch(ht.type){case"punctuator":switch(ht.value){case"{":n={};break;case"[":n=[];break}break;case"null":case"boolean":case"numeric":case"string":n=ht.value;break}if($l===void 0)$l=n;else{const a=Au[Au.length-1];Array.isArray(a)?a.push(n):Object.defineProperty(a,Fc,{value:n,writable:!0,enumerable:!0,configurable:!0})}if(n!==null&&typeof n=="object")Au.push(n),Array.isArray(n)?St="beforeArrayValue":St="beforePropertyName";else{const a=Au[Au.length-1];a==null?St="end":Array.isArray(a)?St="afterArrayValue":St="afterPropertyValue"}}function $a(){Au.pop();const n=Au[Au.length-1];n==null?St="end":Array.isArray(n)?St="afterArrayValue":St="afterPropertyValue"}function Xe(n){return Ya(n===void 0?`JSON5: invalid end of input at ${Yu}:${iu}`:`JSON5: invalid character '${_f(n)}' at ${Yu}:${iu}`)}function En(){return Ya(`JSON5: invalid end of input at ${Yu}:${iu}`)}function Cf(){return iu-=5,Ya(`JSON5: invalid identifier character at ${Yu}:${iu}`)}function WD(n){console.warn(`JSON5: '${_f(n)}' in strings is not valid ECMAScript; consider escaping`)}function _f(n){const a={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(a[n])return a[n];if(n<" "){const i=n.charCodeAt(0).toString(16);return"\\x"+("00"+i).substring(i.length)}return n}function Ya(n){const a=new SyntaxError(n);return a.lineNumber=Yu,a.columnNumber=iu,a}var ID=function(a,i,o){const f=[];let d="",h,y,D="",m;if(i!=null&&typeof i=="object"&&!Array.isArray(i)&&(o=i.space,m=i.quote,i=i.replacer),typeof i=="function")y=i;else if(Array.isArray(i)){h=[];for(const x of i){let $;typeof x=="string"?$=x:(typeof x=="number"||x instanceof String||x instanceof Number)&&($=String(x)),$!==void 0&&h.indexOf($)<0&&h.push($)}}return o instanceof Number?o=Number(o):o instanceof String&&(o=String(o)),typeof o=="number"?o>0&&(o=Math.min(10,Math.floor(o)),D=" ".substr(0,o)):typeof o=="string"&&(D=o.substr(0,10)),g("",{"":a});function g(x,$){let j=$[x];switch(j!=null&&(typeof j.toJSON5=="function"?j=j.toJSON5(x):typeof j.toJSON=="function"&&(j=j.toJSON(x))),y&&(j=y.call($,x,j)),j instanceof Number?j=Number(j):j instanceof String?j=String(j):j instanceof Boolean&&(j=j.valueOf()),j){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof j=="string")return v(j);if(typeof j=="number")return String(j);if(typeof j=="object")return Array.isArray(j)?H(j):_(j)}function v(x){const $={"'":.1,'"':.2},j={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let k="";for(let G=0;G<x.length;G++){const L=x[G];switch(L){case"'":case'"':$[L]++,k+=L;continue;case"\0":if(ut.isDigit(x[G+1])){k+="\\x00";continue}}if(j[L]){k+=j[L];continue}if(L<" "){let ee=L.charCodeAt(0).toString(16);k+="\\x"+("00"+ee).substring(ee.length);continue}k+=L}const Q=m||Object.keys($).reduce((G,L)=>$[G]<$[L]?G:L);return k=k.replace(new RegExp(Q,"g"),j[Q]),Q+k+Q}function _(x){if(f.indexOf(x)>=0)throw TypeError("Converting circular structure to JSON5");f.push(x);let $=d;d=d+D;let j=h||Object.keys(x),k=[];for(const G of j){const L=g(G,x);if(L!==void 0){let ee=T(G)+":";D!==""&&(ee+=" "),ee+=L,k.push(ee)}}let Q;if(k.length===0)Q="{}";else{let G;if(D==="")G=k.join(","),Q="{"+G+"}";else{let L=`,
|
|
57
|
+
`+d;G=k.join(L),Q=`{
|
|
58
|
+
`+d+G+`,
|
|
59
|
+
`+$+"}"}}return f.pop(),d=$,Q}function T(x){if(x.length===0)return v(x);const $=String.fromCodePoint(x.codePointAt(0));if(!ut.isIdStartChar($))return v(x);for(let j=$.length;j<x.length;j++)if(!ut.isIdContinueChar(String.fromCodePoint(x.codePointAt(j))))return v(x);return x}function H(x){if(f.indexOf(x)>=0)throw TypeError("Converting circular structure to JSON5");f.push(x);let $=d;d=d+D;let j=[];for(let Q=0;Q<x.length;Q++){const G=g(String(Q),x);j.push(G!==void 0?G:"null")}let k;if(j.length===0)k="[]";else if(D==="")k="["+j.join(",")+"]";else{let Q=`,
|
|
60
|
+
`+d,G=j.join(Q);k=`[
|
|
61
|
+
`+d+G+`,
|
|
62
|
+
`+$+"]"}return f.pop(),d=$,k}},PD={parse:QD,stringify:ID};function Z(n,a,i){function o(y,D){if(y._zod||Object.defineProperty(y,"_zod",{value:{def:D,constr:h,traits:new Set},enumerable:!1}),y._zod.traits.has(n))return;y._zod.traits.add(n),a(y,D);const m=h.prototype,g=Object.keys(m);for(let v=0;v<g.length;v++){const _=g[v];_ in y||(y[_]=m[_].bind(y))}}const f=(i==null?void 0:i.Parent)??Object;class d extends f{}Object.defineProperty(d,"name",{value:n});function h(y){var D;const m=i!=null&&i.Parent?new d:this;o(m,y),(D=m._zod).deferred??(D.deferred=[]);for(const g of m._zod.deferred)g();return m}return Object.defineProperty(h,"init",{value:o}),Object.defineProperty(h,Symbol.hasInstance,{value:y=>{var D,m;return i!=null&&i.Parent&&y instanceof i.Parent?!0:(m=(D=y==null?void 0:y._zod)==null?void 0:D.traits)==null?void 0:m.has(n)}}),Object.defineProperty(h,"name",{value:n}),h}class Jn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Sf extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const zf={};function bn(n){return zf}function Bf(n){const a=Object.values(n).filter(o=>typeof o=="number");return Object.entries(n).filter(([o,f])=>a.indexOf(+o)===-1).map(([o,f])=>f)}function Nc(n,a){return typeof a=="bigint"?a.toString():a}function Zc(n){return{get value(){{const a=n();return Object.defineProperty(this,"value",{value:a}),a}}}}function Uc(n){return n==null}function wc(n){const a=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;return n.slice(a,i)}function em(n,a){const i=(n.toString().split(".")[1]||"").length,o=a.toString();let f=(o.split(".")[1]||"").length;if(f===0&&/\d?e-\d?/.test(o)){const D=o.match(/\d?e-(\d?)/);D!=null&&D[1]&&(f=Number.parseInt(D[1]))}const d=i>f?i:f,h=Number.parseInt(n.toFixed(d).replace(".","")),y=Number.parseInt(a.toFixed(d).replace(".",""));return h%y/10**d}const Tf=Symbol("evaluating");function Ne(n,a,i){let o;Object.defineProperty(n,a,{get(){if(o!==Tf)return o===void 0&&(o=Tf,o=i()),o},set(f){Object.defineProperty(n,a,{value:f})},configurable:!0})}function Cn(n,a,i){Object.defineProperty(n,a,{value:i,writable:!0,enumerable:!0,configurable:!0})}function Gu(...n){const a={};for(const i of n){const o=Object.getOwnPropertyDescriptors(i);Object.assign(a,o)}return Object.defineProperties({},a)}function Ff(n){return JSON.stringify(n)}function tm(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Of="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Ga(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const um=Zc(()=>{var n;if(typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)!=null&&n.includes("Cloudflare")))return!1;try{const a=Function;return new a(""),!0}catch{return!1}});function Gl(n){if(Ga(n)===!1)return!1;const a=n.constructor;if(a===void 0||typeof a!="function")return!0;const i=a.prototype;return!(Ga(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function xf(n){return Gl(n)?{...n}:Array.isArray(n)?[...n]:n}const nm=new Set(["string","number","symbol"]);function ka(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ku(n,a,i){const o=new n._zod.constr(a??n._zod.def);return(!a||i!=null&&i.parent)&&(o._zod.parent=n),o}function I(n){const a=n;if(!a)return{};if(typeof a=="string")return{error:()=>a};if((a==null?void 0:a.message)!==void 0){if((a==null?void 0:a.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function lm(n){return Object.keys(n).filter(a=>n[a]._zod.optin==="optional"&&n[a]._zod.optout==="optional")}const am={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]};function im(n,a){const i=n._zod.def,o=i.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=Gu(n._zod.def,{get shape(){const h={};for(const y in a){if(!(y in i.shape))throw new Error(`Unrecognized key: "${y}"`);a[y]&&(h[y]=i.shape[y])}return Cn(this,"shape",h),h},checks:[]});return ku(n,d)}function cm(n,a){const i=n._zod.def,o=i.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=Gu(n._zod.def,{get shape(){const h={...n._zod.def.shape};for(const y in a){if(!(y in i.shape))throw new Error(`Unrecognized key: "${y}"`);a[y]&&delete h[y]}return Cn(this,"shape",h),h},checks:[]});return ku(n,d)}function om(n,a){if(!Gl(a))throw new Error("Invalid input to extend: expected a plain object");const i=n._zod.def.checks;if(i&&i.length>0){const d=n._zod.def.shape;for(const h in a)if(Object.getOwnPropertyDescriptor(d,h)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const f=Gu(n._zod.def,{get shape(){const d={...n._zod.def.shape,...a};return Cn(this,"shape",d),d}});return ku(n,f)}function rm(n,a){if(!Gl(a))throw new Error("Invalid input to safeExtend: expected a plain object");const i=Gu(n._zod.def,{get shape(){const o={...n._zod.def.shape,...a};return Cn(this,"shape",o),o}});return ku(n,i)}function fm(n,a){const i=Gu(n._zod.def,{get shape(){const o={...n._zod.def.shape,...a._zod.def.shape};return Cn(this,"shape",o),o},get catchall(){return a._zod.def.catchall},checks:[]});return ku(n,i)}function sm(n,a,i){const f=a._zod.def.checks;if(f&&f.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const h=Gu(a._zod.def,{get shape(){const y=a._zod.def.shape,D={...y};if(i)for(const m in i){if(!(m in y))throw new Error(`Unrecognized key: "${m}"`);i[m]&&(D[m]=n?new n({type:"optional",innerType:y[m]}):y[m])}else for(const m in y)D[m]=n?new n({type:"optional",innerType:y[m]}):y[m];return Cn(this,"shape",D),D},checks:[]});return ku(a,h)}function dm(n,a,i){const o=Gu(a._zod.def,{get shape(){const f=a._zod.def.shape,d={...f};if(i)for(const h in i){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);i[h]&&(d[h]=new n({type:"nonoptional",innerType:f[h]}))}else for(const h in f)d[h]=new n({type:"nonoptional",innerType:f[h]});return Cn(this,"shape",d),d}});return ku(a,o)}function Kn(n,a=0){var i;if(n.aborted===!0)return!0;for(let o=a;o<n.issues.length;o++)if(((i=n.issues[o])==null?void 0:i.continue)!==!0)return!0;return!1}function jc(n,a){return a.map(i=>{var o;return(o=i).path??(o.path=[]),i.path.unshift(n),i})}function Xa(n){return typeof n=="string"?n:n==null?void 0:n.message}function _n(n,a,i){var f,d,h,y,D,m;const o={...n,path:n.path??[]};if(!n.message){const g=Xa((h=(d=(f=n.inst)==null?void 0:f._zod.def)==null?void 0:d.error)==null?void 0:h.call(d,n))??Xa((y=a==null?void 0:a.error)==null?void 0:y.call(a,n))??Xa((D=i.customError)==null?void 0:D.call(i,n))??Xa((m=i.localeError)==null?void 0:m.call(i,n))??"Invalid input";o.message=g}return delete o.inst,delete o.continue,a!=null&&a.reportInput||delete o.input,o}function Rc(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function kl(...n){const[a,i,o]=n;return typeof a=="string"?{message:a,code:"custom",input:i,inst:o}:{...a}}const Mf=(n,a)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:a,enumerable:!1}),n.message=JSON.stringify(a,Nc,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},Nf=Z("$ZodError",Mf),Zf=Z("$ZodError",Mf,{Parent:Error});function hm(n,a=i=>i.message){const i={},o=[];for(const f of n.issues)f.path.length>0?(i[f.path[0]]=i[f.path[0]]||[],i[f.path[0]].push(a(f))):o.push(a(f));return{formErrors:o,fieldErrors:i}}function Dm(n,a=i=>i.message){const i={_errors:[]},o=f=>{for(const d of f.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(h=>o({issues:h}));else if(d.code==="invalid_key")o({issues:d.issues});else if(d.code==="invalid_element")o({issues:d.issues});else if(d.path.length===0)i._errors.push(a(d));else{let h=i,y=0;for(;y<d.path.length;){const D=d.path[y];y===d.path.length-1?(h[D]=h[D]||{_errors:[]},h[D]._errors.push(a(d))):h[D]=h[D]||{_errors:[]},h=h[D],y++}}};return o(n),i}const Hc=n=>(a,i,o,f)=>{const d=o?Object.assign(o,{async:!1}):{async:!1},h=a._zod.run({value:i,issues:[]},d);if(h instanceof Promise)throw new Jn;if(h.issues.length){const y=new((f==null?void 0:f.Err)??n)(h.issues.map(D=>_n(D,d,bn())));throw Of(y,f==null?void 0:f.callee),y}return h.value},qc=n=>async(a,i,o,f)=>{const d=o?Object.assign(o,{async:!0}):{async:!0};let h=a._zod.run({value:i,issues:[]},d);if(h instanceof Promise&&(h=await h),h.issues.length){const y=new((f==null?void 0:f.Err)??n)(h.issues.map(D=>_n(D,d,bn())));throw Of(y,f==null?void 0:f.callee),y}return h.value},Qa=n=>(a,i,o)=>{const f=o?{...o,async:!1}:{async:!1},d=a._zod.run({value:i,issues:[]},f);if(d instanceof Promise)throw new Jn;return d.issues.length?{success:!1,error:new(n??Nf)(d.issues.map(h=>_n(h,f,bn())))}:{success:!0,data:d.value}},mm=Qa(Zf),La=n=>async(a,i,o)=>{const f=o?Object.assign(o,{async:!0}):{async:!0};let d=a._zod.run({value:i,issues:[]},f);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new n(d.issues.map(h=>_n(h,f,bn())))}:{success:!0,data:d.value}},ym=La(Zf),pm=n=>(a,i,o)=>{const f=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Hc(n)(a,i,f)},gm=n=>(a,i,o)=>Hc(n)(a,i,o),vm=n=>async(a,i,o)=>{const f=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return qc(n)(a,i,f)},Am=n=>async(a,i,o)=>qc(n)(a,i,o),Em=n=>(a,i,o)=>{const f=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Qa(n)(a,i,f)},bm=n=>(a,i,o)=>Qa(n)(a,i,o),Cm=n=>async(a,i,o)=>{const f=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return La(n)(a,i,f)},_m=n=>async(a,i,o)=>La(n)(a,i,o),Sm=/^[cC][^\s-]{8,}$/,zm=/^[0-9a-z]+$/,Bm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tm=/^[0-9a-vA-V]{20}$/,Fm=/^[A-Za-z0-9]{27}$/,Om=/^[a-zA-Z0-9_-]{21}$/,xm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mm=/^([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})$/,Uf=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)$/,Nm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Zm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Um(){return new RegExp(Zm,"u")}const wm=/^(?:(?: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])$/,jm=/^(([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}|:))$/,Rm=/^((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])$/,Hm=/^(([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])$/,qm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wf=/^[A-Za-z0-9_-]*$/,$m=/^\+[1-9]\d{6,14}$/,jf="(?:(?:\\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])))",Ym=new RegExp(`^${jf}$`);function Rf(n){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${a}`:n.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${n.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Gm(n){return new RegExp(`^${Rf(n)}$`)}function km(n){const a=Rf({precision:n.precision}),i=["Z"];n.local&&i.push(""),n.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${a}(?:${i.join("|")})`;return new RegExp(`^${jf}T(?:${o})$`)}const Xm=n=>{const a=n?`[\\s\\S]{${(n==null?void 0:n.minimum)??0},${(n==null?void 0:n.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},Qm=/^-?\d+$/,Lm=/^-?\d+(?:\.\d+)?$/,Vm=/^(?:true|false)$/i,Jm=/^[^A-Z]*$/,Km=/^[^a-z]*$/,Ft=Z("$ZodCheck",(n,a)=>{var i;n._zod??(n._zod={}),n._zod.def=a,(i=n._zod).onattach??(i.onattach=[])}),Hf={number:"number",bigint:"bigint",object:"date"},qf=Z("$ZodCheckLessThan",(n,a)=>{Ft.init(n,a);const i=Hf[typeof a.value];n._zod.onattach.push(o=>{const f=o._zod.bag,d=(a.inclusive?f.maximum:f.exclusiveMaximum)??Number.POSITIVE_INFINITY;a.value<d&&(a.inclusive?f.maximum=a.value:f.exclusiveMaximum=a.value)}),n._zod.check=o=>{(a.inclusive?o.value<=a.value:o.value<a.value)||o.issues.push({origin:i,code:"too_big",maximum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),$f=Z("$ZodCheckGreaterThan",(n,a)=>{Ft.init(n,a);const i=Hf[typeof a.value];n._zod.onattach.push(o=>{const f=o._zod.bag,d=(a.inclusive?f.minimum:f.exclusiveMinimum)??Number.NEGATIVE_INFINITY;a.value>d&&(a.inclusive?f.minimum=a.value:f.exclusiveMinimum=a.value)}),n._zod.check=o=>{(a.inclusive?o.value>=a.value:o.value>a.value)||o.issues.push({origin:i,code:"too_small",minimum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),Wm=Z("$ZodCheckMultipleOf",(n,a)=>{Ft.init(n,a),n._zod.onattach.push(i=>{var o;(o=i._zod.bag).multipleOf??(o.multipleOf=a.value)}),n._zod.check=i=>{if(typeof i.value!=typeof a.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%a.value===BigInt(0):em(i.value,a.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:a.value,input:i.value,inst:n,continue:!a.abort})}}),Im=Z("$ZodCheckNumberFormat",(n,a)=>{var h;Ft.init(n,a),a.format=a.format||"float64";const i=(h=a.format)==null?void 0:h.includes("int"),o=i?"int":"number",[f,d]=am[a.format];n._zod.onattach.push(y=>{const D=y._zod.bag;D.format=a.format,D.minimum=f,D.maximum=d,i&&(D.pattern=Qm)}),n._zod.check=y=>{const D=y.value;if(i){if(!Number.isInteger(D)){y.issues.push({expected:o,format:a.format,code:"invalid_type",continue:!1,input:D,inst:n});return}if(!Number.isSafeInteger(D)){D>0?y.issues.push({input:D,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:o,inclusive:!0,continue:!a.abort}):y.issues.push({input:D,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:o,inclusive:!0,continue:!a.abort});return}}D<f&&y.issues.push({origin:"number",input:D,code:"too_small",minimum:f,inclusive:!0,inst:n,continue:!a.abort}),D>d&&y.issues.push({origin:"number",input:D,code:"too_big",maximum:d,inclusive:!0,inst:n,continue:!a.abort})}}),Pm=Z("$ZodCheckMaxLength",(n,a)=>{var i;Ft.init(n,a),(i=n._zod.def).when??(i.when=o=>{const f=o.value;return!Uc(f)&&f.length!==void 0}),n._zod.onattach.push(o=>{const f=o._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<f&&(o._zod.bag.maximum=a.maximum)}),n._zod.check=o=>{const f=o.value;if(f.length<=a.maximum)return;const h=Rc(f);o.issues.push({origin:h,code:"too_big",maximum:a.maximum,inclusive:!0,input:f,inst:n,continue:!a.abort})}}),e1=Z("$ZodCheckMinLength",(n,a)=>{var i;Ft.init(n,a),(i=n._zod.def).when??(i.when=o=>{const f=o.value;return!Uc(f)&&f.length!==void 0}),n._zod.onattach.push(o=>{const f=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>f&&(o._zod.bag.minimum=a.minimum)}),n._zod.check=o=>{const f=o.value;if(f.length>=a.minimum)return;const h=Rc(f);o.issues.push({origin:h,code:"too_small",minimum:a.minimum,inclusive:!0,input:f,inst:n,continue:!a.abort})}}),t1=Z("$ZodCheckLengthEquals",(n,a)=>{var i;Ft.init(n,a),(i=n._zod.def).when??(i.when=o=>{const f=o.value;return!Uc(f)&&f.length!==void 0}),n._zod.onattach.push(o=>{const f=o._zod.bag;f.minimum=a.length,f.maximum=a.length,f.length=a.length}),n._zod.check=o=>{const f=o.value,d=f.length;if(d===a.length)return;const h=Rc(f),y=d>a.length;o.issues.push({origin:h,...y?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:o.value,inst:n,continue:!a.abort})}}),Va=Z("$ZodCheckStringFormat",(n,a)=>{var i,o;Ft.init(n,a),n._zod.onattach.push(f=>{const d=f._zod.bag;d.format=a.format,a.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(a.pattern))}),a.pattern?(i=n._zod).check??(i.check=f=>{a.pattern.lastIndex=0,!a.pattern.test(f.value)&&f.issues.push({origin:"string",code:"invalid_format",format:a.format,input:f.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:n,continue:!a.abort})}):(o=n._zod).check??(o.check=()=>{})}),u1=Z("$ZodCheckRegex",(n,a)=>{Va.init(n,a),n._zod.check=i=>{a.pattern.lastIndex=0,!a.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:a.pattern.toString(),inst:n,continue:!a.abort})}}),n1=Z("$ZodCheckLowerCase",(n,a)=>{a.pattern??(a.pattern=Jm),Va.init(n,a)}),l1=Z("$ZodCheckUpperCase",(n,a)=>{a.pattern??(a.pattern=Km),Va.init(n,a)}),a1=Z("$ZodCheckIncludes",(n,a)=>{Ft.init(n,a);const i=ka(a.includes),o=new RegExp(typeof a.position=="number"?`^.{${a.position}}${i}`:i);a.pattern=o,n._zod.onattach.push(f=>{const d=f._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(o)}),n._zod.check=f=>{f.value.includes(a.includes,a.position)||f.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:f.value,inst:n,continue:!a.abort})}}),i1=Z("$ZodCheckStartsWith",(n,a)=>{Ft.init(n,a);const i=new RegExp(`^${ka(a.prefix)}.*`);a.pattern??(a.pattern=i),n._zod.onattach.push(o=>{const f=o._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(i)}),n._zod.check=o=>{o.value.startsWith(a.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:o.value,inst:n,continue:!a.abort})}}),c1=Z("$ZodCheckEndsWith",(n,a)=>{Ft.init(n,a);const i=new RegExp(`.*${ka(a.suffix)}$`);a.pattern??(a.pattern=i),n._zod.onattach.push(o=>{const f=o._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(i)}),n._zod.check=o=>{o.value.endsWith(a.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:o.value,inst:n,continue:!a.abort})}}),o1=Z("$ZodCheckOverwrite",(n,a)=>{Ft.init(n,a),n._zod.check=i=>{i.value=a.tx(i.value)}});class r1{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const o=a.split(`
|
|
63
|
+
`).filter(h=>h),f=Math.min(...o.map(h=>h.length-h.trimStart().length)),d=o.map(h=>h.slice(f)).map(h=>" ".repeat(this.indent*2)+h);for(const h of d)this.content.push(h)}compile(){const a=Function,i=this==null?void 0:this.args,f=[...((this==null?void 0:this.content)??[""]).map(d=>` ${d}`)];return new a(...i,f.join(`
|
|
64
|
+
`))}}const f1={major:4,minor:3,patch:6},We=Z("$ZodType",(n,a)=>{var f;var i;n??(n={}),n._zod.def=a,n._zod.bag=n._zod.bag||{},n._zod.version=f1;const o=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&o.unshift(n);for(const d of o)for(const h of d._zod.onattach)h(n);if(o.length===0)(i=n._zod).deferred??(i.deferred=[]),(f=n._zod.deferred)==null||f.push(()=>{n._zod.run=n._zod.parse});else{const d=(y,D,m)=>{let g=Kn(y),v;for(const _ of D){if(_._zod.def.when){if(!_._zod.def.when(y))continue}else if(g)continue;const T=y.issues.length,H=_._zod.check(y);if(H instanceof Promise&&(m==null?void 0:m.async)===!1)throw new Jn;if(v||H instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await H,y.issues.length!==T&&(g||(g=Kn(y,T)))});else{if(y.issues.length===T)continue;g||(g=Kn(y,T))}}return v?v.then(()=>y):y},h=(y,D,m)=>{if(Kn(y))return y.aborted=!0,y;const g=d(D,o,m);if(g instanceof Promise){if(m.async===!1)throw new Jn;return g.then(v=>n._zod.parse(v,m))}return n._zod.parse(g,m)};n._zod.run=(y,D)=>{if(D.skipChecks)return n._zod.parse(y,D);if(D.direction==="backward"){const g=n._zod.parse({value:y.value,issues:[]},{...D,skipChecks:!0});return g instanceof Promise?g.then(v=>h(v,y,D)):h(g,y,D)}const m=n._zod.parse(y,D);if(m instanceof Promise){if(D.async===!1)throw new Jn;return m.then(g=>d(g,o,D))}return d(m,o,D)}}Ne(n,"~standard",()=>({validate:d=>{var h;try{const y=mm(n,d);return y.success?{value:y.data}:{issues:(h=y.error)==null?void 0:h.issues}}catch{return ym(n,d).then(D=>{var m;return D.success?{value:D.data}:{issues:(m=D.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}))}),$c=Z("$ZodString",(n,a)=>{var i;We.init(n,a),n._zod.pattern=[...((i=n==null?void 0:n._zod.bag)==null?void 0:i.patterns)??[]].pop()??Xm(n._zod.bag),n._zod.parse=(o,f)=>{if(a.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}}),Je=Z("$ZodStringFormat",(n,a)=>{Va.init(n,a),$c.init(n,a)}),s1=Z("$ZodGUID",(n,a)=>{a.pattern??(a.pattern=Mm),Je.init(n,a)}),d1=Z("$ZodUUID",(n,a)=>{if(a.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[a.version];if(o===void 0)throw new Error(`Invalid UUID version: "${a.version}"`);a.pattern??(a.pattern=Uf(o))}else a.pattern??(a.pattern=Uf());Je.init(n,a)}),h1=Z("$ZodEmail",(n,a)=>{a.pattern??(a.pattern=Nm),Je.init(n,a)}),D1=Z("$ZodURL",(n,a)=>{Je.init(n,a),n._zod.check=i=>{try{const o=i.value.trim(),f=new URL(o);a.hostname&&(a.hostname.lastIndex=0,a.hostname.test(f.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:a.hostname.source,input:i.value,inst:n,continue:!a.abort})),a.protocol&&(a.protocol.lastIndex=0,a.protocol.test(f.protocol.endsWith(":")?f.protocol.slice(0,-1):f.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:a.protocol.source,input:i.value,inst:n,continue:!a.abort})),a.normalize?i.value=f.href:i.value=o;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:n,continue:!a.abort})}}}),m1=Z("$ZodEmoji",(n,a)=>{a.pattern??(a.pattern=Um()),Je.init(n,a)}),y1=Z("$ZodNanoID",(n,a)=>{a.pattern??(a.pattern=Om),Je.init(n,a)}),p1=Z("$ZodCUID",(n,a)=>{a.pattern??(a.pattern=Sm),Je.init(n,a)}),g1=Z("$ZodCUID2",(n,a)=>{a.pattern??(a.pattern=zm),Je.init(n,a)}),v1=Z("$ZodULID",(n,a)=>{a.pattern??(a.pattern=Bm),Je.init(n,a)}),A1=Z("$ZodXID",(n,a)=>{a.pattern??(a.pattern=Tm),Je.init(n,a)}),E1=Z("$ZodKSUID",(n,a)=>{a.pattern??(a.pattern=Fm),Je.init(n,a)}),b1=Z("$ZodISODateTime",(n,a)=>{a.pattern??(a.pattern=km(a)),Je.init(n,a)}),C1=Z("$ZodISODate",(n,a)=>{a.pattern??(a.pattern=Ym),Je.init(n,a)}),_1=Z("$ZodISOTime",(n,a)=>{a.pattern??(a.pattern=Gm(a)),Je.init(n,a)}),S1=Z("$ZodISODuration",(n,a)=>{a.pattern??(a.pattern=xm),Je.init(n,a)}),z1=Z("$ZodIPv4",(n,a)=>{a.pattern??(a.pattern=wm),Je.init(n,a),n._zod.bag.format="ipv4"}),B1=Z("$ZodIPv6",(n,a)=>{a.pattern??(a.pattern=jm),Je.init(n,a),n._zod.bag.format="ipv6",n._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:n,continue:!a.abort})}}}),T1=Z("$ZodCIDRv4",(n,a)=>{a.pattern??(a.pattern=Rm),Je.init(n,a)}),F1=Z("$ZodCIDRv6",(n,a)=>{a.pattern??(a.pattern=Hm),Je.init(n,a),n._zod.check=i=>{const o=i.value.split("/");try{if(o.length!==2)throw new Error;const[f,d]=o;if(!d)throw new Error;const h=Number(d);if(`${h}`!==d)throw new Error;if(h<0||h>128)throw new Error;new URL(`http://[${f}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:n,continue:!a.abort})}}});function Yf(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const O1=Z("$ZodBase64",(n,a)=>{a.pattern??(a.pattern=qm),Je.init(n,a),n._zod.bag.contentEncoding="base64",n._zod.check=i=>{Yf(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:n,continue:!a.abort})}});function x1(n){if(!wf.test(n))return!1;const a=n.replace(/[-_]/g,o=>o==="-"?"+":"/"),i=a.padEnd(Math.ceil(a.length/4)*4,"=");return Yf(i)}const M1=Z("$ZodBase64URL",(n,a)=>{a.pattern??(a.pattern=wf),Je.init(n,a),n._zod.bag.contentEncoding="base64url",n._zod.check=i=>{x1(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:n,continue:!a.abort})}}),N1=Z("$ZodE164",(n,a)=>{a.pattern??(a.pattern=$m),Je.init(n,a)});function Z1(n,a=null){try{const i=n.split(".");if(i.length!==3)return!1;const[o]=i;if(!o)return!1;const f=JSON.parse(atob(o));return!("typ"in f&&(f==null?void 0:f.typ)!=="JWT"||!f.alg||a&&(!("alg"in f)||f.alg!==a))}catch{return!1}}const U1=Z("$ZodJWT",(n,a)=>{Je.init(n,a),n._zod.check=i=>{Z1(i.value,a.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:n,continue:!a.abort})}}),Gf=Z("$ZodNumber",(n,a)=>{We.init(n,a),n._zod.pattern=n._zod.bag.pattern??Lm,n._zod.parse=(i,o)=>{if(a.coerce)try{i.value=Number(i.value)}catch{}const f=i.value;if(typeof f=="number"&&!Number.isNaN(f)&&Number.isFinite(f))return i;const d=typeof f=="number"?Number.isNaN(f)?"NaN":Number.isFinite(f)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:f,inst:n,...d?{received:d}:{}}),i}}),w1=Z("$ZodNumberFormat",(n,a)=>{Im.init(n,a),Gf.init(n,a)}),j1=Z("$ZodBoolean",(n,a)=>{We.init(n,a),n._zod.pattern=Vm,n._zod.parse=(i,o)=>{if(a.coerce)try{i.value=!!i.value}catch{}const f=i.value;return typeof f=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:f,inst:n}),i}}),R1=Z("$ZodUnknown",(n,a)=>{We.init(n,a),n._zod.parse=i=>i}),H1=Z("$ZodNever",(n,a)=>{We.init(n,a),n._zod.parse=(i,o)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:n}),i)});function kf(n,a,i){n.issues.length&&a.issues.push(...jc(i,n.issues)),a.value[i]=n.value}const q1=Z("$ZodArray",(n,a)=>{We.init(n,a),n._zod.parse=(i,o)=>{const f=i.value;if(!Array.isArray(f))return i.issues.push({expected:"array",code:"invalid_type",input:f,inst:n}),i;i.value=Array(f.length);const d=[];for(let h=0;h<f.length;h++){const y=f[h],D=a.element._zod.run({value:y,issues:[]},o);D instanceof Promise?d.push(D.then(m=>kf(m,i,h))):kf(D,i,h)}return d.length?Promise.all(d).then(()=>i):i}});function Ja(n,a,i,o,f){if(n.issues.length){if(f&&!(i in o))return;a.issues.push(...jc(i,n.issues))}n.value===void 0?i in o&&(a.value[i]=void 0):a.value[i]=n.value}function Xf(n){var o,f,d,h;const a=Object.keys(n.shape);for(const y of a)if(!((h=(d=(f=(o=n.shape)==null?void 0:o[y])==null?void 0:f._zod)==null?void 0:d.traits)!=null&&h.has("$ZodType")))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);const i=lm(n.shape);return{...n,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(i)}}function Qf(n,a,i,o,f,d){const h=[],y=f.keySet,D=f.catchall._zod,m=D.def.type,g=D.optout==="optional";for(const v in a){if(y.has(v))continue;if(m==="never"){h.push(v);continue}const _=D.run({value:a[v],issues:[]},o);_ instanceof Promise?n.push(_.then(T=>Ja(T,i,v,a,g))):Ja(_,i,v,a,g)}return h.length&&i.issues.push({code:"unrecognized_keys",keys:h,input:a,inst:d}),n.length?Promise.all(n).then(()=>i):i}const $1=Z("$ZodObject",(n,a)=>{We.init(n,a);const i=Object.getOwnPropertyDescriptor(a,"shape");if(!(i!=null&&i.get)){const y=a.shape;Object.defineProperty(a,"shape",{get:()=>{const D={...y};return Object.defineProperty(a,"shape",{value:D}),D}})}const o=Zc(()=>Xf(a));Ne(n._zod,"propValues",()=>{const y=a.shape,D={};for(const m in y){const g=y[m]._zod;if(g.values){D[m]??(D[m]=new Set);for(const v of g.values)D[m].add(v)}}return D});const f=Ga,d=a.catchall;let h;n._zod.parse=(y,D)=>{h??(h=o.value);const m=y.value;if(!f(m))return y.issues.push({expected:"object",code:"invalid_type",input:m,inst:n}),y;y.value={};const g=[],v=h.shape;for(const _ of h.keys){const T=v[_],H=T._zod.optout==="optional",x=T._zod.run({value:m[_],issues:[]},D);x instanceof Promise?g.push(x.then($=>Ja($,y,_,m,H))):Ja(x,y,_,m,H)}return d?Qf(g,m,y,D,o.value,n):g.length?Promise.all(g).then(()=>y):y}}),Y1=Z("$ZodObjectJIT",(n,a)=>{$1.init(n,a);const i=n._zod.parse,o=Zc(()=>Xf(a)),f=_=>{var Q;const T=new r1(["shape","payload","ctx"]),H=o.value,x=G=>{const L=Ff(G);return`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`};T.write("const input = payload.value;");const $=Object.create(null);let j=0;for(const G of H.keys)$[G]=`key_${j++}`;T.write("const newResult = {};");for(const G of H.keys){const L=$[G],ee=Ff(G),V=_[G],te=((Q=V==null?void 0:V._zod)==null?void 0:Q.optout)==="optional";T.write(`const ${L} = ${x(G)};`),te?T.write(`
|
|
65
|
+
if (${L}.issues.length) {
|
|
66
|
+
if (${ee} in input) {
|
|
67
|
+
payload.issues = payload.issues.concat(${L}.issues.map(iss => ({
|
|
68
|
+
...iss,
|
|
69
|
+
path: iss.path ? [${ee}, ...iss.path] : [${ee}]
|
|
70
|
+
})));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (${L}.value === undefined) {
|
|
75
|
+
if (${ee} in input) {
|
|
76
|
+
newResult[${ee}] = undefined;
|
|
77
|
+
}
|
|
78
|
+
} else {
|
|
79
|
+
newResult[${ee}] = ${L}.value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
`):T.write(`
|
|
83
|
+
if (${L}.issues.length) {
|
|
84
|
+
payload.issues = payload.issues.concat(${L}.issues.map(iss => ({
|
|
85
|
+
...iss,
|
|
86
|
+
path: iss.path ? [${ee}, ...iss.path] : [${ee}]
|
|
87
|
+
})));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (${L}.value === undefined) {
|
|
91
|
+
if (${ee} in input) {
|
|
92
|
+
newResult[${ee}] = undefined;
|
|
93
|
+
}
|
|
94
|
+
} else {
|
|
95
|
+
newResult[${ee}] = ${L}.value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
`)}T.write("payload.value = newResult;"),T.write("return payload;");const k=T.compile();return(G,L)=>k(_,G,L)};let d;const h=Ga,y=!zf.jitless,m=y&&um.value,g=a.catchall;let v;n._zod.parse=(_,T)=>{v??(v=o.value);const H=_.value;return h(H)?y&&m&&(T==null?void 0:T.async)===!1&&T.jitless!==!0?(d||(d=f(a.shape)),_=d(_,T),g?Qf([],H,_,T,v,n):_):i(_,T):(_.issues.push({expected:"object",code:"invalid_type",input:H,inst:n}),_)}});function Lf(n,a,i,o){for(const d of n)if(d.issues.length===0)return a.value=d.value,a;const f=n.filter(d=>!Kn(d));return f.length===1?(a.value=f[0].value,f[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:i,errors:n.map(d=>d.issues.map(h=>_n(h,o,bn())))}),a)}const G1=Z("$ZodUnion",(n,a)=>{We.init(n,a),Ne(n._zod,"optin",()=>a.options.some(f=>f._zod.optin==="optional")?"optional":void 0),Ne(n._zod,"optout",()=>a.options.some(f=>f._zod.optout==="optional")?"optional":void 0),Ne(n._zod,"values",()=>{if(a.options.every(f=>f._zod.values))return new Set(a.options.flatMap(f=>Array.from(f._zod.values)))}),Ne(n._zod,"pattern",()=>{if(a.options.every(f=>f._zod.pattern)){const f=a.options.map(d=>d._zod.pattern);return new RegExp(`^(${f.map(d=>wc(d.source)).join("|")})$`)}});const i=a.options.length===1,o=a.options[0]._zod.run;n._zod.parse=(f,d)=>{if(i)return o(f,d);let h=!1;const y=[];for(const D of a.options){const m=D._zod.run({value:f.value,issues:[]},d);if(m instanceof Promise)y.push(m),h=!0;else{if(m.issues.length===0)return m;y.push(m)}}return h?Promise.all(y).then(D=>Lf(D,f,n,d)):Lf(y,f,n,d)}}),k1=Z("$ZodIntersection",(n,a)=>{We.init(n,a),n._zod.parse=(i,o)=>{const f=i.value,d=a.left._zod.run({value:f,issues:[]},o),h=a.right._zod.run({value:f,issues:[]},o);return d instanceof Promise||h instanceof Promise?Promise.all([d,h]).then(([D,m])=>Vf(i,D,m)):Vf(i,d,h)}});function Yc(n,a){if(n===a)return{valid:!0,data:n};if(n instanceof Date&&a instanceof Date&&+n==+a)return{valid:!0,data:n};if(Gl(n)&&Gl(a)){const i=Object.keys(a),o=Object.keys(n).filter(d=>i.indexOf(d)!==-1),f={...n,...a};for(const d of o){const h=Yc(n[d],a[d]);if(!h.valid)return{valid:!1,mergeErrorPath:[d,...h.mergeErrorPath]};f[d]=h.data}return{valid:!0,data:f}}if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let o=0;o<n.length;o++){const f=n[o],d=a[o],h=Yc(f,d);if(!h.valid)return{valid:!1,mergeErrorPath:[o,...h.mergeErrorPath]};i.push(h.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function Vf(n,a,i){const o=new Map;let f;for(const y of a.issues)if(y.code==="unrecognized_keys"){f??(f=y);for(const D of y.keys)o.has(D)||o.set(D,{}),o.get(D).l=!0}else n.issues.push(y);for(const y of i.issues)if(y.code==="unrecognized_keys")for(const D of y.keys)o.has(D)||o.set(D,{}),o.get(D).r=!0;else n.issues.push(y);const d=[...o].filter(([,y])=>y.l&&y.r).map(([y])=>y);if(d.length&&f&&n.issues.push({...f,keys:d}),Kn(n))return n;const h=Yc(a.value,i.value);if(!h.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`);return n.value=h.data,n}const X1=Z("$ZodTuple",(n,a)=>{We.init(n,a);const i=a.items;n._zod.parse=(o,f)=>{const d=o.value;if(!Array.isArray(d))return o.issues.push({input:d,inst:n,expected:"tuple",code:"invalid_type"}),o;o.value=[];const h=[],y=[...i].reverse().findIndex(g=>g._zod.optin!=="optional"),D=y===-1?0:i.length-y;if(!a.rest){const g=d.length>i.length,v=d.length<D-1;if(g||v)return o.issues.push({...g?{code:"too_big",maximum:i.length,inclusive:!0}:{code:"too_small",minimum:i.length},input:d,inst:n,origin:"array"}),o}let m=-1;for(const g of i){if(m++,m>=d.length&&m>=D)continue;const v=g._zod.run({value:d[m],issues:[]},f);v instanceof Promise?h.push(v.then(_=>Ka(_,o,m))):Ka(v,o,m)}if(a.rest){const g=d.slice(i.length);for(const v of g){m++;const _=a.rest._zod.run({value:v,issues:[]},f);_ instanceof Promise?h.push(_.then(T=>Ka(T,o,m))):Ka(_,o,m)}}return h.length?Promise.all(h).then(()=>o):o}});function Ka(n,a,i){n.issues.length&&a.issues.push(...jc(i,n.issues)),a.value[i]=n.value}const Q1=Z("$ZodEnum",(n,a)=>{We.init(n,a);const i=Bf(a.entries),o=new Set(i);n._zod.values=o,n._zod.pattern=new RegExp(`^(${i.filter(f=>nm.has(typeof f)).map(f=>typeof f=="string"?ka(f):f.toString()).join("|")})$`),n._zod.parse=(f,d)=>{const h=f.value;return o.has(h)||f.issues.push({code:"invalid_value",values:i,input:h,inst:n}),f}}),L1=Z("$ZodTransform",(n,a)=>{We.init(n,a),n._zod.parse=(i,o)=>{if(o.direction==="backward")throw new Sf(n.constructor.name);const f=a.transform(i.value,i);if(o.async)return(f instanceof Promise?f:Promise.resolve(f)).then(h=>(i.value=h,i));if(f instanceof Promise)throw new Jn;return i.value=f,i}});function Jf(n,a){return n.issues.length&&a===void 0?{issues:[],value:void 0}:n}const Kf=Z("$ZodOptional",(n,a)=>{We.init(n,a),n._zod.optin="optional",n._zod.optout="optional",Ne(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Ne(n._zod,"pattern",()=>{const i=a.innerType._zod.pattern;return i?new RegExp(`^(${wc(i.source)})?$`):void 0}),n._zod.parse=(i,o)=>{if(a.innerType._zod.optin==="optional"){const f=a.innerType._zod.run(i,o);return f instanceof Promise?f.then(d=>Jf(d,i.value)):Jf(f,i.value)}return i.value===void 0?i:a.innerType._zod.run(i,o)}}),V1=Z("$ZodExactOptional",(n,a)=>{Kf.init(n,a),Ne(n._zod,"values",()=>a.innerType._zod.values),Ne(n._zod,"pattern",()=>a.innerType._zod.pattern),n._zod.parse=(i,o)=>a.innerType._zod.run(i,o)}),J1=Z("$ZodNullable",(n,a)=>{We.init(n,a),Ne(n._zod,"optin",()=>a.innerType._zod.optin),Ne(n._zod,"optout",()=>a.innerType._zod.optout),Ne(n._zod,"pattern",()=>{const i=a.innerType._zod.pattern;return i?new RegExp(`^(${wc(i.source)}|null)$`):void 0}),Ne(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),n._zod.parse=(i,o)=>i.value===null?i:a.innerType._zod.run(i,o)}),K1=Z("$ZodDefault",(n,a)=>{We.init(n,a),n._zod.optin="optional",Ne(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(i,o)=>{if(o.direction==="backward")return a.innerType._zod.run(i,o);if(i.value===void 0)return i.value=a.defaultValue,i;const f=a.innerType._zod.run(i,o);return f instanceof Promise?f.then(d=>Wf(d,a)):Wf(f,a)}});function Wf(n,a){return n.value===void 0&&(n.value=a.defaultValue),n}const W1=Z("$ZodPrefault",(n,a)=>{We.init(n,a),n._zod.optin="optional",Ne(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(i,o)=>(o.direction==="backward"||i.value===void 0&&(i.value=a.defaultValue),a.innerType._zod.run(i,o))}),I1=Z("$ZodNonOptional",(n,a)=>{We.init(n,a),Ne(n._zod,"values",()=>{const i=a.innerType._zod.values;return i?new Set([...i].filter(o=>o!==void 0)):void 0}),n._zod.parse=(i,o)=>{const f=a.innerType._zod.run(i,o);return f instanceof Promise?f.then(d=>If(d,n)):If(f,n)}});function If(n,a){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:a}),n}const P1=Z("$ZodCatch",(n,a)=>{We.init(n,a),Ne(n._zod,"optin",()=>a.innerType._zod.optin),Ne(n._zod,"optout",()=>a.innerType._zod.optout),Ne(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(i,o)=>{if(o.direction==="backward")return a.innerType._zod.run(i,o);const f=a.innerType._zod.run(i,o);return f instanceof Promise?f.then(d=>(i.value=d.value,d.issues.length&&(i.value=a.catchValue({...i,error:{issues:d.issues.map(h=>_n(h,o,bn()))},input:i.value}),i.issues=[]),i)):(i.value=f.value,f.issues.length&&(i.value=a.catchValue({...i,error:{issues:f.issues.map(d=>_n(d,o,bn()))},input:i.value}),i.issues=[]),i)}}),ey=Z("$ZodPipe",(n,a)=>{We.init(n,a),Ne(n._zod,"values",()=>a.in._zod.values),Ne(n._zod,"optin",()=>a.in._zod.optin),Ne(n._zod,"optout",()=>a.out._zod.optout),Ne(n._zod,"propValues",()=>a.in._zod.propValues),n._zod.parse=(i,o)=>{if(o.direction==="backward"){const d=a.out._zod.run(i,o);return d instanceof Promise?d.then(h=>Wa(h,a.in,o)):Wa(d,a.in,o)}const f=a.in._zod.run(i,o);return f instanceof Promise?f.then(d=>Wa(d,a.out,o)):Wa(f,a.out,o)}});function Wa(n,a,i){return n.issues.length?(n.aborted=!0,n):a._zod.run({value:n.value,issues:n.issues},i)}const ty=Z("$ZodReadonly",(n,a)=>{We.init(n,a),Ne(n._zod,"propValues",()=>a.innerType._zod.propValues),Ne(n._zod,"values",()=>a.innerType._zod.values),Ne(n._zod,"optin",()=>{var i,o;return(o=(i=a.innerType)==null?void 0:i._zod)==null?void 0:o.optin}),Ne(n._zod,"optout",()=>{var i,o;return(o=(i=a.innerType)==null?void 0:i._zod)==null?void 0:o.optout}),n._zod.parse=(i,o)=>{if(o.direction==="backward")return a.innerType._zod.run(i,o);const f=a.innerType._zod.run(i,o);return f instanceof Promise?f.then(Pf):Pf(f)}});function Pf(n){return n.value=Object.freeze(n.value),n}const uy=Z("$ZodCustom",(n,a)=>{Ft.init(n,a),We.init(n,a),n._zod.parse=(i,o)=>i,n._zod.check=i=>{const o=i.value,f=a.fn(o);if(f instanceof Promise)return f.then(d=>es(d,i,o,n));es(f,i,o,n)}});function es(n,a,i,o){if(!n){const f={code:"custom",input:i,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(f.params=o._zod.def.params),a.issues.push(kl(f))}}var ts;class ny{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...i){const o=i[0];return this._map.set(a,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const i=this._map.get(a);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(a),this}get(a){const i=a._zod.parent;if(i){const o={...this.get(i)??{}};delete o.id;const f={...o,...this._map.get(a)};return Object.keys(f).length?f:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function ly(){return new ny}(ts=globalThis).__zod_globalRegistry??(ts.__zod_globalRegistry=ly());const Xl=globalThis.__zod_globalRegistry;function ay(n,a){return new n({type:"string",...I(a)})}function iy(n,a){return new n({type:"string",format:"email",check:"string_format",abort:!1,...I(a)})}function us(n,a){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...I(a)})}function cy(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...I(a)})}function oy(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(a)})}function ry(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(a)})}function fy(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(a)})}function sy(n,a){return new n({type:"string",format:"url",check:"string_format",abort:!1,...I(a)})}function dy(n,a){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...I(a)})}function hy(n,a){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(a)})}function Dy(n,a){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...I(a)})}function my(n,a){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(a)})}function yy(n,a){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...I(a)})}function py(n,a){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...I(a)})}function gy(n,a){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(a)})}function vy(n,a){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(a)})}function Ay(n,a){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(a)})}function Ey(n,a){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(a)})}function by(n,a){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(a)})}function Cy(n,a){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...I(a)})}function _y(n,a){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...I(a)})}function Sy(n,a){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...I(a)})}function zy(n,a){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...I(a)})}function By(n,a){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(a)})}function Ty(n,a){return new n({type:"string",format:"date",check:"string_format",...I(a)})}function Fy(n,a){return new n({type:"string",format:"time",check:"string_format",precision:null,...I(a)})}function Oy(n,a){return new n({type:"string",format:"duration",check:"string_format",...I(a)})}function xy(n,a){return new n({type:"number",checks:[],...I(a)})}function My(n,a){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...I(a)})}function Ny(n,a){return new n({type:"boolean",...I(a)})}function Zy(n){return new n({type:"unknown"})}function Uy(n,a){return new n({type:"never",...I(a)})}function ns(n,a){return new qf({check:"less_than",...I(a),value:n,inclusive:!1})}function Gc(n,a){return new qf({check:"less_than",...I(a),value:n,inclusive:!0})}function ls(n,a){return new $f({check:"greater_than",...I(a),value:n,inclusive:!1})}function kc(n,a){return new $f({check:"greater_than",...I(a),value:n,inclusive:!0})}function as(n,a){return new Wm({check:"multiple_of",...I(a),value:n})}function is(n,a){return new Pm({check:"max_length",...I(a),maximum:n})}function Ia(n,a){return new e1({check:"min_length",...I(a),minimum:n})}function cs(n,a){return new t1({check:"length_equals",...I(a),length:n})}function wy(n,a){return new u1({check:"string_format",format:"regex",...I(a),pattern:n})}function jy(n){return new n1({check:"string_format",format:"lowercase",...I(n)})}function Ry(n){return new l1({check:"string_format",format:"uppercase",...I(n)})}function Hy(n,a){return new a1({check:"string_format",format:"includes",...I(a),includes:n})}function qy(n,a){return new i1({check:"string_format",format:"starts_with",...I(a),prefix:n})}function $y(n,a){return new c1({check:"string_format",format:"ends_with",...I(a),suffix:n})}function Wn(n){return new o1({check:"overwrite",tx:n})}function Yy(n){return Wn(a=>a.normalize(n))}function Gy(){return Wn(n=>n.trim())}function ky(){return Wn(n=>n.toLowerCase())}function Xy(){return Wn(n=>n.toUpperCase())}function Qy(){return Wn(n=>tm(n))}function Ly(n,a,i){return new n({type:"array",element:a,...I(i)})}function Vy(n,a,i){return new n({type:"custom",check:"custom",fn:a,...I(i)})}function Jy(n){const a=Ky(i=>(i.addIssue=o=>{if(typeof o=="string")i.issues.push(kl(o,i.value,a._zod.def));else{const f=o;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=i.value),f.inst??(f.inst=a),f.continue??(f.continue=!a._zod.def.abort),i.issues.push(kl(f))}},n(i.value,i)));return a}function Ky(n,a){const i=new Ft({check:"custom",...I(a)});return i._zod.check=n,i}function os(n){let a=(n==null?void 0:n.target)??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:n.processors??{},metadataRegistry:(n==null?void 0:n.metadata)??Xl,target:a,unrepresentable:(n==null?void 0:n.unrepresentable)??"throw",override:(n==null?void 0:n.override)??(()=>{}),io:(n==null?void 0:n.io)??"output",counter:0,seen:new Map,cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0}}function st(n,a,i={path:[],schemaPath:[]}){var g,v;var o;const f=n._zod.def,d=a.seen.get(n);if(d)return d.count++,i.schemaPath.includes(n)&&(d.cycle=i.path),d.schema;const h={schema:{},count:1,cycle:void 0,path:i.path};a.seen.set(n,h);const y=(v=(g=n._zod).toJSONSchema)==null?void 0:v.call(g);if(y)h.schema=y;else{const _={...i,schemaPath:[...i.schemaPath,n],path:i.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(a,h.schema,_);else{const H=h.schema,x=a.processors[f.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${f.type}`);x(n,a,H,_)}const T=n._zod.parent;T&&(h.ref||(h.ref=T),st(T,a,_),a.seen.get(T).isParent=!0)}const D=a.metadataRegistry.get(n);return D&&Object.assign(h.schema,D),a.io==="input"&&zt(n)&&(delete h.schema.examples,delete h.schema.default),a.io==="input"&&h.schema._prefault&&((o=h.schema).default??(o.default=h.schema._prefault)),delete h.schema._prefault,a.seen.get(n).schema}function rs(n,a){var h,y,D,m;const i=n.seen.get(a);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const g of n.seen.entries()){const v=(h=n.metadataRegistry.get(g[0]))==null?void 0:h.id;if(v){const _=o.get(v);if(_&&_!==g[0])throw new Error(`Duplicate schema id "${v}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(v,g[0])}}const f=g=>{var x;const v=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const $=(x=n.external.registry.get(g[0]))==null?void 0:x.id,j=n.external.uri??(Q=>Q);if($)return{ref:j($)};const k=g[1].defId??g[1].schema.id??`schema${n.counter++}`;return g[1].defId=k,{defId:k,ref:`${j("__shared")}#/${v}/${k}`}}if(g[1]===i)return{ref:"#"};const T=`#/${v}/`,H=g[1].schema.id??`__schema${n.counter++}`;return{defId:H,ref:T+H}},d=g=>{if(g[1].schema.$ref)return;const v=g[1],{ref:_,defId:T}=f(g);v.def={...v.schema},T&&(v.defId=T);const H=v.schema;for(const x in H)delete H[x];H.$ref=_};if(n.cycles==="throw")for(const g of n.seen.entries()){const v=g[1];if(v.cycle)throw new Error(`Cycle detected: #/${(y=v.cycle)==null?void 0:y.join("/")}/<root>
|
|
99
|
+
|
|
100
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const g of n.seen.entries()){const v=g[1];if(a===g[0]){d(g);continue}if(n.external){const T=(D=n.external.registry.get(g[0]))==null?void 0:D.id;if(a!==g[0]&&T){d(g);continue}}if((m=n.metadataRegistry.get(g[0]))==null?void 0:m.id){d(g);continue}if(v.cycle){d(g);continue}if(v.count>1&&n.reused==="ref"){d(g);continue}}}function fs(n,a){var h,y,D;const i=n.seen.get(a);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=m=>{const g=n.seen.get(m);if(g.ref===null)return;const v=g.def??g.schema,_={...v},T=g.ref;if(g.ref=null,T){o(T);const x=n.seen.get(T),$=x.schema;if($.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(v.allOf=v.allOf??[],v.allOf.push($)):Object.assign(v,$),Object.assign(v,_),m._zod.parent===T)for(const k in v)k==="$ref"||k==="allOf"||k in _||delete v[k];if($.$ref&&x.def)for(const k in v)k==="$ref"||k==="allOf"||k in x.def&&JSON.stringify(v[k])===JSON.stringify(x.def[k])&&delete v[k]}const H=m._zod.parent;if(H&&H!==T){o(H);const x=n.seen.get(H);if(x!=null&&x.schema.$ref&&(v.$ref=x.schema.$ref,x.def))for(const $ in v)$==="$ref"||$==="allOf"||$ in x.def&&JSON.stringify(v[$])===JSON.stringify(x.def[$])&&delete v[$]}n.override({zodSchema:m,jsonSchema:v,path:g.path??[]})};for(const m of[...n.seen.entries()].reverse())o(m[0]);const f={};if(n.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?f.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?f.$schema="http://json-schema.org/draft-04/schema#":n.target,(h=n.external)!=null&&h.uri){const m=(y=n.external.registry.get(a))==null?void 0:y.id;if(!m)throw new Error("Schema is missing an `id` property");f.$id=n.external.uri(m)}Object.assign(f,i.def??i.schema);const d=((D=n.external)==null?void 0:D.defs)??{};for(const m of n.seen.entries()){const g=m[1];g.def&&g.defId&&(d[g.defId]=g.def)}n.external||Object.keys(d).length>0&&(n.target==="draft-2020-12"?f.$defs=d:f.definitions=d);try{const m=JSON.parse(JSON.stringify(f));return Object.defineProperty(m,"~standard",{value:{...a["~standard"],jsonSchema:{input:Pa(a,"input",n.processors),output:Pa(a,"output",n.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function zt(n,a){const i=a??{seen:new Set};if(i.seen.has(n))return!1;i.seen.add(n);const o=n._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return zt(o.element,i);if(o.type==="set")return zt(o.valueType,i);if(o.type==="lazy")return zt(o.getter(),i);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return zt(o.innerType,i);if(o.type==="intersection")return zt(o.left,i)||zt(o.right,i);if(o.type==="record"||o.type==="map")return zt(o.keyType,i)||zt(o.valueType,i);if(o.type==="pipe")return zt(o.in,i)||zt(o.out,i);if(o.type==="object"){for(const f in o.shape)if(zt(o.shape[f],i))return!0;return!1}if(o.type==="union"){for(const f of o.options)if(zt(f,i))return!0;return!1}if(o.type==="tuple"){for(const f of o.items)if(zt(f,i))return!0;return!!(o.rest&&zt(o.rest,i))}return!1}const Wy=(n,a={})=>i=>{const o=os({...i,processors:a});return st(n,o),rs(o,n),fs(o,n)},Pa=(n,a,i={})=>o=>{const{libraryOptions:f,target:d}=o??{},h=os({...f??{},target:d,io:a,processors:i});return st(n,h),rs(h,n),fs(h,n)},Iy={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Py=(n,a,i,o)=>{const f=i;f.type="string";const{minimum:d,maximum:h,format:y,patterns:D,contentEncoding:m}=n._zod.bag;if(typeof d=="number"&&(f.minLength=d),typeof h=="number"&&(f.maxLength=h),y&&(f.format=Iy[y]??y,f.format===""&&delete f.format,y==="time"&&delete f.format),m&&(f.contentEncoding=m),D&&D.size>0){const g=[...D];g.length===1?f.pattern=g[0].source:g.length>1&&(f.allOf=[...g.map(v=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},ep=(n,a,i,o)=>{const f=i,{minimum:d,maximum:h,format:y,multipleOf:D,exclusiveMaximum:m,exclusiveMinimum:g}=n._zod.bag;typeof y=="string"&&y.includes("int")?f.type="integer":f.type="number",typeof g=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(f.minimum=g,f.exclusiveMinimum=!0):f.exclusiveMinimum=g),typeof d=="number"&&(f.minimum=d,typeof g=="number"&&a.target!=="draft-04"&&(g>=d?delete f.minimum:delete f.exclusiveMinimum)),typeof m=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(f.maximum=m,f.exclusiveMaximum=!0):f.exclusiveMaximum=m),typeof h=="number"&&(f.maximum=h,typeof m=="number"&&a.target!=="draft-04"&&(m<=h?delete f.maximum:delete f.exclusiveMaximum)),typeof D=="number"&&(f.multipleOf=D)},tp=(n,a,i,o)=>{i.type="boolean"},up=(n,a,i,o)=>{i.not={}},np=(n,a,i,o)=>{},lp=(n,a,i,o)=>{const f=n._zod.def,d=Bf(f.entries);d.every(h=>typeof h=="number")&&(i.type="number"),d.every(h=>typeof h=="string")&&(i.type="string"),i.enum=d},ap=(n,a,i,o)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ip=(n,a,i,o)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cp=(n,a,i,o)=>{const f=i,d=n._zod.def,{minimum:h,maximum:y}=n._zod.bag;typeof h=="number"&&(f.minItems=h),typeof y=="number"&&(f.maxItems=y),f.type="array",f.items=st(d.element,a,{...o,path:[...o.path,"items"]})},op=(n,a,i,o)=>{var m;const f=i,d=n._zod.def;f.type="object",f.properties={};const h=d.shape;for(const g in h)f.properties[g]=st(h[g],a,{...o,path:[...o.path,"properties",g]});const y=new Set(Object.keys(h)),D=new Set([...y].filter(g=>{const v=d.shape[g]._zod;return a.io==="input"?v.optin===void 0:v.optout===void 0}));D.size>0&&(f.required=Array.from(D)),((m=d.catchall)==null?void 0:m._zod.def.type)==="never"?f.additionalProperties=!1:d.catchall?d.catchall&&(f.additionalProperties=st(d.catchall,a,{...o,path:[...o.path,"additionalProperties"]})):a.io==="output"&&(f.additionalProperties=!1)},rp=(n,a,i,o)=>{const f=n._zod.def,d=f.inclusive===!1,h=f.options.map((y,D)=>st(y,a,{...o,path:[...o.path,d?"oneOf":"anyOf",D]}));d?i.oneOf=h:i.anyOf=h},fp=(n,a,i,o)=>{const f=n._zod.def,d=st(f.left,a,{...o,path:[...o.path,"allOf",0]}),h=st(f.right,a,{...o,path:[...o.path,"allOf",1]}),y=m=>"allOf"in m&&Object.keys(m).length===1,D=[...y(d)?d.allOf:[d],...y(h)?h.allOf:[h]];i.allOf=D},sp=(n,a,i,o)=>{const f=i,d=n._zod.def;f.type="array";const h=a.target==="draft-2020-12"?"prefixItems":"items",y=a.target==="draft-2020-12"||a.target==="openapi-3.0"?"items":"additionalItems",D=d.items.map((_,T)=>st(_,a,{...o,path:[...o.path,h,T]})),m=d.rest?st(d.rest,a,{...o,path:[...o.path,y,...a.target==="openapi-3.0"?[d.items.length]:[]]}):null;a.target==="draft-2020-12"?(f.prefixItems=D,m&&(f.items=m)):a.target==="openapi-3.0"?(f.items={anyOf:D},m&&f.items.anyOf.push(m),f.minItems=D.length,m||(f.maxItems=D.length)):(f.items=D,m&&(f.additionalItems=m));const{minimum:g,maximum:v}=n._zod.bag;typeof g=="number"&&(f.minItems=g),typeof v=="number"&&(f.maxItems=v)},dp=(n,a,i,o)=>{const f=n._zod.def,d=st(f.innerType,a,o),h=a.seen.get(n);a.target==="openapi-3.0"?(h.ref=f.innerType,i.nullable=!0):i.anyOf=[d,{type:"null"}]},hp=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType},Dp=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType,i.default=JSON.parse(JSON.stringify(f.defaultValue))},mp=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType,a.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(f.defaultValue)))},yp=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType;let h;try{h=f.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=h},pp=(n,a,i,o)=>{const f=n._zod.def,d=a.io==="input"?f.in._zod.def.type==="transform"?f.out:f.in:f.out;st(d,a,o);const h=a.seen.get(n);h.ref=d},gp=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType,i.readOnly=!0},ss=(n,a,i,o)=>{const f=n._zod.def;st(f.innerType,a,o);const d=a.seen.get(n);d.ref=f.innerType},vp=Z("ZodISODateTime",(n,a)=>{b1.init(n,a),Ie.init(n,a)});function Ap(n){return By(vp,n)}const Ep=Z("ZodISODate",(n,a)=>{C1.init(n,a),Ie.init(n,a)});function bp(n){return Ty(Ep,n)}const Cp=Z("ZodISOTime",(n,a)=>{_1.init(n,a),Ie.init(n,a)});function _p(n){return Fy(Cp,n)}const Sp=Z("ZodISODuration",(n,a)=>{S1.init(n,a),Ie.init(n,a)});function zp(n){return Oy(Sp,n)}const Qt=Z("ZodError",(n,a)=>{Nf.init(n,a),n.name="ZodError",Object.defineProperties(n,{format:{value:i=>Dm(n,i)},flatten:{value:i=>hm(n,i)},addIssue:{value:i=>{n.issues.push(i),n.message=JSON.stringify(n.issues,Nc,2)}},addIssues:{value:i=>{n.issues.push(...i),n.message=JSON.stringify(n.issues,Nc,2)}},isEmpty:{get(){return n.issues.length===0}}})},{Parent:Error}),Bp=Hc(Qt),Tp=qc(Qt),Fp=Qa(Qt),Op=La(Qt),xp=pm(Qt),Mp=gm(Qt),Np=vm(Qt),Zp=Am(Qt),Up=Em(Qt),wp=bm(Qt),jp=Cm(Qt),Rp=_m(Qt),Pe=Z("ZodType",(n,a)=>(We.init(n,a),Object.assign(n["~standard"],{jsonSchema:{input:Pa(n,"input"),output:Pa(n,"output")}}),n.toJSONSchema=Wy(n,{}),n.def=a,n.type=a.type,Object.defineProperty(n,"_def",{value:a}),n.check=(...i)=>n.clone(Gu(a,{checks:[...a.checks??[],...i.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),n.with=n.check,n.clone=(i,o)=>ku(n,i,o),n.brand=()=>n,n.register=((i,o)=>(i.add(n,o),n)),n.parse=(i,o)=>Bp(n,i,o,{callee:n.parse}),n.safeParse=(i,o)=>Fp(n,i,o),n.parseAsync=async(i,o)=>Tp(n,i,o,{callee:n.parseAsync}),n.safeParseAsync=async(i,o)=>Op(n,i,o),n.spa=n.safeParseAsync,n.encode=(i,o)=>xp(n,i,o),n.decode=(i,o)=>Mp(n,i,o),n.encodeAsync=async(i,o)=>Np(n,i,o),n.decodeAsync=async(i,o)=>Zp(n,i,o),n.safeEncode=(i,o)=>Up(n,i,o),n.safeDecode=(i,o)=>wp(n,i,o),n.safeEncodeAsync=async(i,o)=>jp(n,i,o),n.safeDecodeAsync=async(i,o)=>Rp(n,i,o),n.refine=(i,o)=>n.check(Og(i,o)),n.superRefine=i=>n.check(xg(i)),n.overwrite=i=>n.check(Wn(i)),n.optional=()=>vs(n),n.exactOptional=()=>pg(n),n.nullable=()=>As(n),n.nullish=()=>vs(As(n)),n.nonoptional=i=>Cg(n,i),n.array=()=>Sn(n),n.or=i=>Xc([n,i]),n.and=i=>dg(n,i),n.transform=i=>bs(n,mg(i)),n.default=i=>Ag(n,i),n.prefault=i=>bg(n,i),n.catch=i=>Sg(n,i),n.pipe=i=>bs(n,i),n.readonly=()=>Tg(n),n.describe=i=>{const o=n.clone();return Xl.add(o,{description:i}),o},Object.defineProperty(n,"description",{get(){var i;return(i=Xl.get(n))==null?void 0:i.description},configurable:!0}),n.meta=(...i)=>{if(i.length===0)return Xl.get(n);const o=n.clone();return Xl.add(o,i[0]),o},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=i=>i(n),n)),ds=Z("_ZodString",(n,a)=>{$c.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(o,f,d)=>Py(n,o,f);const i=n._zod.bag;n.format=i.format??null,n.minLength=i.minimum??null,n.maxLength=i.maximum??null,n.regex=(...o)=>n.check(wy(...o)),n.includes=(...o)=>n.check(Hy(...o)),n.startsWith=(...o)=>n.check(qy(...o)),n.endsWith=(...o)=>n.check($y(...o)),n.min=(...o)=>n.check(Ia(...o)),n.max=(...o)=>n.check(is(...o)),n.length=(...o)=>n.check(cs(...o)),n.nonempty=(...o)=>n.check(Ia(1,...o)),n.lowercase=o=>n.check(jy(o)),n.uppercase=o=>n.check(Ry(o)),n.trim=()=>n.check(Gy()),n.normalize=(...o)=>n.check(Yy(...o)),n.toLowerCase=()=>n.check(ky()),n.toUpperCase=()=>n.check(Xy()),n.slugify=()=>n.check(Qy())}),Hp=Z("ZodString",(n,a)=>{$c.init(n,a),ds.init(n,a),n.email=i=>n.check(iy(qp,i)),n.url=i=>n.check(sy($p,i)),n.jwt=i=>n.check(zy(ug,i)),n.emoji=i=>n.check(dy(Yp,i)),n.guid=i=>n.check(us(hs,i)),n.uuid=i=>n.check(cy(ei,i)),n.uuidv4=i=>n.check(oy(ei,i)),n.uuidv6=i=>n.check(ry(ei,i)),n.uuidv7=i=>n.check(fy(ei,i)),n.nanoid=i=>n.check(hy(Gp,i)),n.guid=i=>n.check(us(hs,i)),n.cuid=i=>n.check(Dy(kp,i)),n.cuid2=i=>n.check(my(Xp,i)),n.ulid=i=>n.check(yy(Qp,i)),n.base64=i=>n.check(Cy(Pp,i)),n.base64url=i=>n.check(_y(eg,i)),n.xid=i=>n.check(py(Lp,i)),n.ksuid=i=>n.check(gy(Vp,i)),n.ipv4=i=>n.check(vy(Jp,i)),n.ipv6=i=>n.check(Ay(Kp,i)),n.cidrv4=i=>n.check(Ey(Wp,i)),n.cidrv6=i=>n.check(by(Ip,i)),n.e164=i=>n.check(Sy(tg,i)),n.datetime=i=>n.check(Ap(i)),n.date=i=>n.check(bp(i)),n.time=i=>n.check(_p(i)),n.duration=i=>n.check(zp(i))});function nt(n){return ay(Hp,n)}const Ie=Z("ZodStringFormat",(n,a)=>{Je.init(n,a),ds.init(n,a)}),qp=Z("ZodEmail",(n,a)=>{h1.init(n,a),Ie.init(n,a)}),hs=Z("ZodGUID",(n,a)=>{s1.init(n,a),Ie.init(n,a)}),ei=Z("ZodUUID",(n,a)=>{d1.init(n,a),Ie.init(n,a)}),$p=Z("ZodURL",(n,a)=>{D1.init(n,a),Ie.init(n,a)}),Yp=Z("ZodEmoji",(n,a)=>{m1.init(n,a),Ie.init(n,a)}),Gp=Z("ZodNanoID",(n,a)=>{y1.init(n,a),Ie.init(n,a)}),kp=Z("ZodCUID",(n,a)=>{p1.init(n,a),Ie.init(n,a)}),Xp=Z("ZodCUID2",(n,a)=>{g1.init(n,a),Ie.init(n,a)}),Qp=Z("ZodULID",(n,a)=>{v1.init(n,a),Ie.init(n,a)}),Lp=Z("ZodXID",(n,a)=>{A1.init(n,a),Ie.init(n,a)}),Vp=Z("ZodKSUID",(n,a)=>{E1.init(n,a),Ie.init(n,a)}),Jp=Z("ZodIPv4",(n,a)=>{z1.init(n,a),Ie.init(n,a)}),Kp=Z("ZodIPv6",(n,a)=>{B1.init(n,a),Ie.init(n,a)}),Wp=Z("ZodCIDRv4",(n,a)=>{T1.init(n,a),Ie.init(n,a)}),Ip=Z("ZodCIDRv6",(n,a)=>{F1.init(n,a),Ie.init(n,a)}),Pp=Z("ZodBase64",(n,a)=>{O1.init(n,a),Ie.init(n,a)}),eg=Z("ZodBase64URL",(n,a)=>{M1.init(n,a),Ie.init(n,a)}),tg=Z("ZodE164",(n,a)=>{N1.init(n,a),Ie.init(n,a)}),ug=Z("ZodJWT",(n,a)=>{U1.init(n,a),Ie.init(n,a)}),Ds=Z("ZodNumber",(n,a)=>{Gf.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(o,f,d)=>ep(n,o,f),n.gt=(o,f)=>n.check(ls(o,f)),n.gte=(o,f)=>n.check(kc(o,f)),n.min=(o,f)=>n.check(kc(o,f)),n.lt=(o,f)=>n.check(ns(o,f)),n.lte=(o,f)=>n.check(Gc(o,f)),n.max=(o,f)=>n.check(Gc(o,f)),n.int=o=>n.check(ms(o)),n.safe=o=>n.check(ms(o)),n.positive=o=>n.check(ls(0,o)),n.nonnegative=o=>n.check(kc(0,o)),n.negative=o=>n.check(ns(0,o)),n.nonpositive=o=>n.check(Gc(0,o)),n.multipleOf=(o,f)=>n.check(as(o,f)),n.step=(o,f)=>n.check(as(o,f)),n.finite=()=>n;const i=n._zod.bag;n.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),n.isFinite=!0,n.format=i.format??null});function oe(n){return xy(Ds,n)}const ng=Z("ZodNumberFormat",(n,a)=>{w1.init(n,a),Ds.init(n,a)});function ms(n){return My(ng,n)}const lg=Z("ZodBoolean",(n,a)=>{j1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>tp(n,i,o)});function Xu(n){return Ny(lg,n)}const ag=Z("ZodUnknown",(n,a)=>{R1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>np()});function ys(){return Zy(ag)}const ig=Z("ZodNever",(n,a)=>{H1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>up(n,i,o)});function cg(n){return Uy(ig,n)}const og=Z("ZodArray",(n,a)=>{q1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>cp(n,i,o,f),n.element=a.element,n.min=(i,o)=>n.check(Ia(i,o)),n.nonempty=i=>n.check(Ia(1,i)),n.max=(i,o)=>n.check(is(i,o)),n.length=(i,o)=>n.check(cs(i,o)),n.unwrap=()=>n.element});function Sn(n,a){return Ly(og,n,a)}const rg=Z("ZodObject",(n,a)=>{Y1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>op(n,i,o,f),Ne(n,"shape",()=>a.shape),n.keyof=()=>Pn(Object.keys(n._zod.def.shape)),n.catchall=i=>n.clone({...n._zod.def,catchall:i}),n.passthrough=()=>n.clone({...n._zod.def,catchall:ys()}),n.loose=()=>n.clone({...n._zod.def,catchall:ys()}),n.strict=()=>n.clone({...n._zod.def,catchall:cg()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=i=>om(n,i),n.safeExtend=i=>rm(n,i),n.merge=i=>fm(n,i),n.pick=i=>im(n,i),n.omit=i=>cm(n,i),n.partial=(...i)=>sm(gs,n,i[0]),n.required=(...i)=>dm(Es,n,i[0])});function In(n,a){const i={type:"object",shape:n??{},...I(a)};return new rg(i)}const fg=Z("ZodUnion",(n,a)=>{G1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>rp(n,i,o,f),n.options=a.options});function Xc(n,a){return new fg({type:"union",options:n,...I(a)})}const sg=Z("ZodIntersection",(n,a)=>{k1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>fp(n,i,o,f)});function dg(n,a){return new sg({type:"intersection",left:n,right:a})}const hg=Z("ZodTuple",(n,a)=>{X1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>sp(n,i,o,f),n.rest=i=>n.clone({...n._zod.def,rest:i})});function ps(n,a,i){const o=a instanceof We,f=o?i:a,d=o?a:null;return new hg({type:"tuple",items:n,rest:d,...I(f)})}const Qc=Z("ZodEnum",(n,a)=>{Q1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(o,f,d)=>lp(n,o,f),n.enum=a.entries,n.options=Object.values(a.entries);const i=new Set(Object.keys(a.entries));n.extract=(o,f)=>{const d={};for(const h of o)if(i.has(h))d[h]=a.entries[h];else throw new Error(`Key ${h} not found in enum`);return new Qc({...a,checks:[],...I(f),entries:d})},n.exclude=(o,f)=>{const d={...a.entries};for(const h of o)if(i.has(h))delete d[h];else throw new Error(`Key ${h} not found in enum`);return new Qc({...a,checks:[],...I(f),entries:d})}});function Pn(n,a){const i=Array.isArray(n)?Object.fromEntries(n.map(o=>[o,o])):n;return new Qc({type:"enum",entries:i,...I(a)})}const Dg=Z("ZodTransform",(n,a)=>{L1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>ip(n,i),n._zod.parse=(i,o)=>{if(o.direction==="backward")throw new Sf(n.constructor.name);i.addIssue=d=>{if(typeof d=="string")i.issues.push(kl(d,i.value,a));else{const h=d;h.fatal&&(h.continue=!1),h.code??(h.code="custom"),h.input??(h.input=i.value),h.inst??(h.inst=n),i.issues.push(kl(h))}};const f=a.transform(i.value,i);return f instanceof Promise?f.then(d=>(i.value=d,i)):(i.value=f,i)}});function mg(n){return new Dg({type:"transform",transform:n})}const gs=Z("ZodOptional",(n,a)=>{Kf.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>ss(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function vs(n){return new gs({type:"optional",innerType:n})}const yg=Z("ZodExactOptional",(n,a)=>{V1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>ss(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function pg(n){return new yg({type:"optional",innerType:n})}const gg=Z("ZodNullable",(n,a)=>{J1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>dp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function As(n){return new gg({type:"nullable",innerType:n})}const vg=Z("ZodDefault",(n,a)=>{K1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>Dp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function Ag(n,a){return new vg({type:"default",innerType:n,get defaultValue(){return typeof a=="function"?a():xf(a)}})}const Eg=Z("ZodPrefault",(n,a)=>{W1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>mp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function bg(n,a){return new Eg({type:"prefault",innerType:n,get defaultValue(){return typeof a=="function"?a():xf(a)}})}const Es=Z("ZodNonOptional",(n,a)=>{I1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>hp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function Cg(n,a){return new Es({type:"nonoptional",innerType:n,...I(a)})}const _g=Z("ZodCatch",(n,a)=>{P1.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>yp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function Sg(n,a){return new _g({type:"catch",innerType:n,catchValue:typeof a=="function"?a:()=>a})}const zg=Z("ZodPipe",(n,a)=>{ey.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>pp(n,i,o,f),n.in=a.in,n.out=a.out});function bs(n,a){return new zg({type:"pipe",in:n,out:a})}const Bg=Z("ZodReadonly",(n,a)=>{ty.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>gp(n,i,o,f),n.unwrap=()=>n._zod.def.innerType});function Tg(n){return new Bg({type:"readonly",innerType:n})}const Fg=Z("ZodCustom",(n,a)=>{uy.init(n,a),Pe.init(n,a),n._zod.processJSONSchema=(i,o,f)=>ap(n,i)});function Og(n,a={}){return Vy(Fg,n,a)}function xg(n){return Jy(n)}const Cs={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Mg(n){const a=n.replace("#","");return[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)]}function Ng(n,a,i){n/=255,a/=255,i/=255;const o=Math.max(n,a,i),f=Math.min(n,a,i),d=(o+f)/2;if(o===f)return[0,0,d];const h=o-f,y=d>.5?h/(2-o-f):h/(o+f);let D=0;return o===n?D=((a-i)/h+(a<i?6:0))/6:o===a?D=((i-n)/h+2)/6:D=((n-a)/h+4)/6,[D,y,d]}function Zg(n,a,i){let o,f,d;if(a===0)o=f=d=i;else{const y=(g,v,_)=>(_<0&&(_+=1),_>1&&(_-=1),_<.16666666666666666?g+(v-g)*6*_:_<.5?v:_<.6666666666666666?g+(v-g)*(.6666666666666666-_)*6:g),D=i<.5?i*(1+a):i+a-i*a,m=2*i-D;o=y(m,D,n+1/3),f=y(m,D,n),d=y(m,D,n-1/3)}const h=y=>Math.round(y*255).toString(16).padStart(2,"0");return`#${h(o)}${h(f)}${h(d)}`}function Lc(n){const a=n.toLowerCase().trim();if(Cs[a])return Cs[a];if(/^#[0-9a-f]{6}$/i.test(a))return a;if(/^#[0-9a-f]{3}$/i.test(a)){const[,i,o,f]=a.match(/^#(.)(.)(.)$/);return`#${i}${i}${o}${o}${f}${f}`}return n}function Ug(n){const[a,i,o]=Mg(n),[f,d,h]=Ng(a,i,o);return Zg(f,d*.35,h*.15)}function wg(n){const a={...n};if(a.colour){const i=Lc(a.colour);a.stroke===void 0&&(a.stroke=i),a.fill===void 0&&(a.fill=Ug(i)),delete a.colour}return typeof a.fill=="string"&&!a.fill.startsWith("#")&&(a.fill=Lc(a.fill)),typeof a.stroke=="string"&&!a.stroke.startsWith("#")&&(a.stroke=Lc(a.stroke)),a}const jg=Pn(["center","top","bottom","left","right","topleft","topright","bottomleft","bottomright","N","NE","E","SE","S","SW","W","NW"]),Rg=In({x:oe(),y:oe()}),Vc=Xc([jg,Rg]),Ql=In({x:oe().default(0),y:oe().default(0),opacity:oe().min(0).max(1).default(1),scale:oe().default(1),anchor:Vc.default("center"),colour:nt().optional(),fill:nt().optional(),stroke:nt().optional(),text:nt().optional(),textColor:nt().optional(),textSize:oe().optional(),textOffset:ps([oe(),oe()]).optional(),depth:oe().optional(),visible:Xu().default(!0),follow:nt().optional(),pathProgress:oe().optional()}).passthrough(),Hg=Ql.extend({w:oe().default(120),h:oe().default(40),radius:oe().default(8),strokeWidth:oe().default(1.5),bold:Xu().default(!1)}).passthrough(),qg=Ql.extend({r:oe().default(30),strokeWidth:oe().default(1.5)}).passthrough(),$g=Ql.extend({text:nt(),color:nt().optional(),size:oe().default(14),bold:Xu().default(!1),align:Pn(["start","middle","end"]).default("middle")}).passthrough(),Yg=In({from:nt().optional(),to:nt().optional(),fromAnchor:Vc.optional(),toAnchor:Vc.optional(),x1:oe().optional(),y1:oe().optional(),x2:oe().optional(),y2:oe().optional(),stroke:nt().optional(),strokeWidth:oe().default(1.5),dashed:Xu().default(!1),arrow:Xu().default(!0),label:nt().optional(),labelColor:nt().optional(),labelSize:oe().default(11),labelRotation:oe().default(0),opacity:oe().min(0).max(1).default(1),progress:oe().min(0).max(1).default(1),bend:Xc([oe(),Sn(In({x:oe(),y:oe()}))]).optional(),closed:Xu().default(!1),colour:nt().optional(),textOffset:ps([oe(),oe()]).optional()}).passthrough(),Gg=Ql.extend({cols:Sn(nt()),rows:Sn(Sn(nt())).default([]),colWidth:oe().default(100),rowHeight:oe().default(30),headerFill:nt().optional(),headerColor:nt().optional(),strokeWidth:oe().default(1)}).passthrough(),kg=In({points:Sn(In({x:oe(),y:oe()})),closed:Xu().default(!1),stroke:nt().optional(),strokeWidth:oe().default(1),visible:Xu().default(!1),opacity:oe().min(0).max(1).default(1),colour:nt().optional()}).passthrough(),Xg=Ql.extend({children:Sn(nt()).default([]),direction:Pn(["row","column"]).optional(),gap:oe().default(0),justify:Pn(["start","center","end","spread"]).default("center"),align:Pn(["start","center","end"]).default("center"),padding:oe().default(0),rotation:oe().default(0),strokeWidth:oe().default(2),radius:oe().default(0)}).passthrough(),Qg={box:Hg,circle:qg,label:$g,line:Yg,table:Gg,path:kg,group:Xg};function Lg(n,a){const i=Qg[n];if(!i)return a;const o=i.parse(a);return wg(o)}const Ll=new Set(["box","circle","label","table","line","path","group"]);[...Ll];function Vg(n,a){const i=n.props;let o,f;switch(n.type){case"circle":{const d=i.r||20;o=d*2,f=d*2;break}case"table":{const d=i.cols||[],h=i.rows||[],y=i.colWidth||100,D=i.rowHeight||30;o=d.length*y,f=(h.length+1)*D;break}case"group":{o=i.w||i._layoutW||100,f=i.h||i._layoutH||50;break}default:{o=i.w||100,f=i.h||50;break}}return a?{main:o,cross:f}:{main:f,cross:o}}function Jg(n){const a=new Set,i=[],o=new Map(n.map(d=>[d.id,d]));function f(d){if(a.has(d))return;a.add(d);const h=o.get(d);if(h)for(const y of h.childGroupIds)f(y);i.push(d)}for(const d of n)f(d.id);return i}function Kg(n){const a=[];for(const[o,f]of Object.entries(n)){const d=f.props,h=d.children;if(!h||!h.length||!d.direction)continue;const y=h.filter(D=>{var g,v;const m=(g=n[D])==null?void 0:g.props;return m&&((v=m.children)==null?void 0:v.length)&&m.direction});a.push({id:o,childGroupIds:y})}if(a.length===0)return;const i=Jg(a);for(const o of i){const d=n[o].props,h=d.direction,y=d.gap||0,D=d.justify||"center",m=d.align||"center",g=d.padding||0,v=h==="row",_=(d.children||[]).filter(j=>n[j]);if(_.length===0)continue;const T=_.map(j=>Vg(n[j],v)),H=T.reduce((j,k)=>j+k.main,0)+y*(T.length-1)+g*2,x=Math.max(...T.map(j=>j.cross)),$=[];if(D==="spread"&&_.length>1){const j=T.reduce((L,ee)=>L+ee.main,0),Q=(H-j)/(T.length-1);let G=-H/2+g+T[0].main/2;for(let L=0;L<T.length;L++)$.push({main:G,cross:0}),L<T.length-1&&(G+=T[L].main/2+Q+T[L+1].main/2)}else{let j=T[0].main/2;for(let G=0;G<T.length;G++)$.push({main:j,cross:0}),G<T.length-1&&(j+=T[G].main/2+y+T[G+1].main/2);const k=j+T[T.length-1].main/2;let Q;D==="start"?Q=-k/2+g:D==="end"?(Q=k/2-g,Q=Q-k):Q=-k/2;for(const G of $)G.main+=Q}for(let j=0;j<T.length;j++){const k=T[j];m==="start"?$[j].cross=-(x/2)+k.cross/2:m==="end"&&($[j].cross=x/2-k.cross/2)}for(let j=0;j<_.length;j++){const k=n[_[j]],Q=k.props,G=$[j];v?(Q.x=G.main,Q.y=G.cross):(Q.x=G.cross,Q.y=G.main),k.groupId=o}d._layoutW=v?H:x+g*2,d._layoutH=v?x+g*2:H}for(const[o,f]of Object.entries(n)){const h=f.props.children||[];if(h.length)for(const y of h)n[y]&&(n[y].groupId=o)}}function Wg(n){if(!n||typeof n!="object")return n;const a=n;if(Array.isArray(a.objects)&&(a.objects=a.objects.map(i=>_s(i))),a.animate&&typeof a.animate=="object"){const i=a.animate;i.keyframes!==void 0&&(i.keyframes=Ig(i.keyframes))}return a}function _s(n){if(!n||typeof n!="object"||Array.isArray(n))return n;const a={...n};if(a.type){for(const i of Object.keys(a))if(i!=="type"&&Ll.has(i)&&typeof a[i]=="string"&&i!=="label")throw new Error(`Ambiguous object: has both "type: ${a.type}" and "${i}: ${a[i]}". Use one or the other.`)}else for(const i of Object.keys(a))if(Ll.has(i)&&typeof a[i]=="string"){a.type=i,a.id=a[i],delete a[i];break}if(Array.isArray(a.at)){const[i,o]=a.at;if(a.x!==void 0||a.y!==void 0)throw new Error('Cannot use "at" shorthand alongside "x" or "y" properties.');a.x=i,a.y=o,delete a.at}if(Array.isArray(a.size)){const[i,o]=a.size;if(a.w!==void 0||a.h!==void 0)throw new Error('Cannot use "size" shorthand alongside "w" or "h" properties.');a.w=i,a.h=o,delete a.size}return Array.isArray(a.children)&&(a.children=a.children.map(i=>typeof i=="object"&&i!==null?_s(i):i)),a}function Ig(n){if(n&&typeof n=="object"&&!Array.isArray(n)){const i=[];for(const[o,f]of Object.entries(n)){if(!Array.isArray(f))throw new Error(`Keyframes for target "${o}" must be an array.`);for(const d of f){if(!Array.isArray(d))throw new Error(`Each keyframe for target "${o}" must be a tuple array.`);const[h,y,D,m]=d;i.push({time:h,target:o,prop:y,value:D,...m!==void 0?{easing:m}:{}})}}return i}if(!Array.isArray(n))return[];if(n.length===0)return[];const a=n[0];return Array.isArray(a)?n.map(i=>{const[o,f,d,h,y]=i;return{time:o,target:f,prop:d,value:h,...y!==void 0?{easing:y}:{}}}):n}function Ss(n,a,i){const{type:o,id:f,children:d,...h}=n;if(!o||!f)throw new Error('Object missing required "type" or "id" field');if(!Ll.has(o))throw new Error(`Unknown object type: "${o}". Valid types: ${[...Ll].join(", ")}`);if(a[f])throw new Error(`Duplicate object ID: "${f}"`);const y=[];if(d&&Array.isArray(d))for(const _ of d)typeof _=="string"?y.push(_):_&&typeof _=="object"&&_.id&&(y.push(_.id),Ss(_,a,f));const D={...h};y.length>0&&(D.children=y,o!=="group"&&!D.direction&&(D.direction="column"));const m=new Set(Object.keys(D)),g=Lg(o,D),v={type:o,id:f,props:g,_inputKeys:m};i&&(v.groupId=i),a[f]=v}function Pg(n){var f,d,h,y;let a;try{a=Wg(PD.parse(n))}catch(D){throw new Error(`JSON5 parse error: ${D.message}`)}const i={};if(a.objects&&Array.isArray(a.objects))for(const D of a.objects)Ss(D,i);const o={duration:((f=a.animate)==null?void 0:f.duration)??5,loop:((d=a.animate)==null?void 0:d.loop)??!0,keyframes:[],chapters:[]};if((h=a.animate)!=null&&h.keyframes)for(const D of a.animate.keyframes)o.keyframes.push({time:D.time,target:D.target,prop:D.prop,value:D.value,easing:D.easing||"linear"});if((y=a.animate)!=null&&y.chapters)for(const D of a.animate.chapters)o.chapters.push({id:D.id||D.title.toLowerCase().replace(/\s+/g,"-"),time:D.time,title:D.title,description:D.description});return Kg(i),{objects:i,animConfig:o}}function ev(n,a){var o;const i={};for(const f of n.keyframes){const d=`${f.target}.${f.prop}`;i[d]||(i[d]=[]),i[d].push({time:f.time,value:f.value,easing:f.easing||"linear"})}for(const f of Object.keys(i))if(i[f].sort((d,h)=>d.time-h.time),a&&i[f][0].time>0){const d=f.indexOf("."),h=f.slice(0,d),y=f.slice(d+1),D=a[h];if((o=D==null?void 0:D._inputKeys)!=null&&o.has(y)){const m=D.props[y];m!==void 0&&i[f].unshift({time:0,value:m,easing:"linear"})}}return i}const tv={linear:n=>n,easeIn:n=>n*n,easeOut:n=>n*(2-n),easeInOut:n=>n<.5?2*n*n:-1+(4-2*n)*n,easeInCubic:n=>n*n*n,easeOutCubic:n=>{const a=n-1;return a*a*a+1},easeInOutCubic:n=>n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1,easeInQuart:n=>n*n*n*n,easeOutQuart:n=>{const a=n-1;return 1-a*a*a*a},easeInOutQuart:n=>{const a=n-1;return n<.5?8*n*n*n*n:1-8*a*a*a*a},easeOutBack:n=>1+(1.70158+1)*Math.pow(n-1,3)+1.70158*Math.pow(n-1,2),easeInBack:n=>(1.70158+1)*n*n*n-1.70158*n*n,bounce:n=>{if(n<1/2.75)return 7.5625*n*n;if(n<2/2.75){const i=n-.5454545454545454;return 7.5625*i*i+.75}if(n<2.5/2.75){const i=n-.8181818181818182;return 7.5625*i*i+.9375}const a=n-2.625/2.75;return 7.5625*a*a+.984375},elastic:n=>n===0||n===1?n:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI),spring:n=>1-Math.cos(n*4.5*Math.PI)*Math.exp(-n*6),snap:n=>{const a=n*n*(3-2*n);return a*a*(3-2*a)},step:n=>n<1?0:1};function uv(n,a){if(!a||a==="linear")return n;const i=tv[a];return i?i(n):n}function nv(n,a,i){const o=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,f=o.exec(n),d=o.exec(a);if(!f||!d)return i<.5?n:a;const h=Math.round(parseInt(f[1],16)*(1-i)+parseInt(d[1],16)*i),y=Math.round(parseInt(f[2],16)*(1-i)+parseInt(d[2],16)*i),D=Math.round(parseInt(f[3],16)*(1-i)+parseInt(d[3],16)*i);return`#${h.toString(16).padStart(2,"0")}${y.toString(16).padStart(2,"0")}${D.toString(16).padStart(2,"0")}`}function lv(n,a){if(n.length!==0){if(a<=n[0].time)return n[0].value;if(a>=n[n.length-1].time)return n[n.length-1].value;for(let i=0;i<n.length-1;i++)if(a>=n[i].time&&a<=n[i+1].time){const o=(a-n[i].time)/(n[i+1].time-n[i].time),f=uv(o,n[i+1].easing),d=n[i].value,h=n[i+1].value;return typeof d=="number"&&typeof h=="number"?d+(h-d)*f:typeof d=="string"&&d.startsWith("#")&&typeof h=="string"&&h.startsWith("#")?nv(d,h,f):f<.5?d:h}return n[n.length-1].value}}function zs(n){if(!n||n==="center")return null;if(typeof n=="object"&&"x"in n){const d=n.x-.5,h=n.y-.5,y=Math.sqrt(d*d+h*h)||1;return{dx:d/y,dy:h/y}}const i={N:"top",NE:"topright",E:"right",SE:"bottomright",S:"bottom",SW:"bottomleft",W:"left",NW:"topleft"}[n]??n;let o=0,f=0;if(i.includes("left")&&(o=-1),i.includes("right")&&(o=1),i.includes("top")&&(f=-1),i.includes("bottom")&&(f=1),o!==0&&f!==0){const d=Math.sqrt(o*o+f*f);o/=d,f/=d}return o===0&&f===0?null:{dx:o,dy:f}}function av(n,a,i,o,f,d,h,y,D){if(D>=1)return`M ${n} ${a} C ${i} ${o} ${f} ${d} ${h} ${y}`;const m=zn(n,a,i,o,f,d,h,y,D),g=n+(i-n)*D,v=a+(o-a)*D,_=i+(f-i)*D,T=o+(d-o)*D,H=g+(_-g)*D,x=v+(T-v)*D;return`M ${n} ${a} C ${g} ${v} ${H} ${x} ${m.x} ${m.y}`}function iv(n,a,i,o,f){const d=i-n,h=o-a,y=Math.abs(d),D=Math.abs(h),m=Math.min(y,D),g=Math.max(y,D);if(g===0||m/g<.2)return null;const v=d>=0?"right":"left",_=h>=0?"bottom":"top",T=d>=0?"left":"right",H=h>=0?"top":"bottom",x=d*h>0;return f<0?x?{exitAnchor:_,entryAnchor:T}:{exitAnchor:v,entryAnchor:H}:x?{exitAnchor:v,entryAnchor:H}:{exitAnchor:_,entryAnchor:T}}function Bs(n,a){const i=n.length;if(i<3)return n[0]??{x:0,y:0};const f=(a%1+1)%1*i,d=Math.min(Math.floor(f),i-1),h=f-d,y=n[(d-1+i)%i],D=n[d],m=n[(d+1)%i],g=n[(d+2)%i],v=D.x+(m.x-y.x)/6,_=D.y+(m.y-y.y)/6,T=m.x-(g.x-D.x)/6,H=m.y-(g.y-D.y)/6;return zn(D.x,D.y,v,_,T,H,m.x,m.y,h)}function cv(n,a,i,o,f,d,h){const y=1-h;return{x:y*y*n+2*y*h*i+h*h*f,y:y*y*a+2*y*h*o+h*h*d}}function zn(n,a,i,o,f,d,h,y,D){const m=1-D;return{x:m*m*m*n+3*m*m*D*i+3*m*D*D*f+D*D*D*h,y:m*m*m*a+3*m*m*D*o+3*m*D*D*d+D*D*D*y}}function Ts(n,a,i,o,f,d,h,y,D){const m=1-D,g=3*m*m*(i-n)+6*m*D*(f-i)+3*D*D*(h-f),v=3*m*m*(o-a)+6*m*D*(d-o)+3*D*D*(y-d),_=Math.sqrt(g*g+v*v)||1;return{tx:g/_,ty:v/_}}function ov(n,a,i,o,f){const d=(n+i)/2,h=(a+o)/2,y=i-n,D=o-a,m=Math.sqrt(y*y+D*D)||1,g=D/m,v=-y/m;return{cx:d+g*f,cy:h+v*f}}function rv(n,a=1){const i=n.length;if(i<3)return"";const o=[];for(let D=0;D<i;D++){const m=n[(D-1+i)%i],g=n[D],v=n[(D+1)%i],_=n[(D+2)%i];o.push({p0:g,c1:{x:g.x+(v.x-m.x)/6,y:g.y+(v.y-m.y)/6},c2:{x:v.x-(_.x-g.x)/6,y:v.y-(_.y-g.y)/6},p1:v})}const f=a*i,d=Math.floor(f),h=f-d;let y=`M ${o[0].p0.x} ${o[0].p0.y}`;for(let D=0;D<Math.min(d,i);D++){const m=o[D];y+=` C ${m.c1.x} ${m.c1.y} ${m.c2.x} ${m.c2.y} ${m.p1.x} ${m.p1.y}`}if(d<i&&h>0){const D=o[d],m=zn(D.p0.x,D.p0.y,D.c1.x,D.c1.y,D.c2.x,D.c2.y,D.p1.x,D.p1.y,h),g=D.p0.x+(D.c1.x-D.p0.x)*h,v=D.p0.y+(D.c1.y-D.p0.y)*h,_=D.c1.x+(D.c2.x-D.c1.x)*h,T=D.c1.y+(D.c2.y-D.c1.y)*h,H=g+(_-g)*h,x=v+(T-v)*h;y+=` C ${g} ${v} ${H} ${x} ${m.x} ${m.y}`}return y}function fv(n,a){if(n.length<2)return"";if(n.length===2){const D={x:n[0].x+(n[1].x-n[0].x)*a,y:n[0].y+(n[1].y-n[0].y)*a};return`M ${n[0].x} ${n[0].y} L ${D.x} ${D.y}`}const i=[];for(let D=0;D<n.length-1;D++){const m=n[Math.max(0,D-1)],g=n[D],v=n[D+1],_=n[Math.min(n.length-1,D+2)];i.push({p0:g,c1:{x:g.x+(v.x-m.x)/6,y:g.y+(v.y-m.y)/6},c2:{x:v.x-(_.x-g.x)/6,y:v.y-(_.y-g.y)/6},p1:v})}const o=i.length,f=a*o,d=Math.floor(f),h=f-d;let y=`M ${i[0].p0.x} ${i[0].p0.y}`;for(let D=0;D<Math.min(d,o);D++){const m=i[D];y+=` C ${m.c1.x} ${m.c1.y} ${m.c2.x} ${m.c2.y} ${m.p1.x} ${m.p1.y}`}if(d<o&&h>0){const D=i[d],m=zn(D.p0.x,D.p0.y,D.c1.x,D.c1.y,D.c2.x,D.c2.y,D.p1.x,D.p1.y,h),g=D.p0.x+(D.c1.x-D.p0.x)*h,v=D.p0.y+(D.c1.y-D.p0.y)*h,_=D.c1.x+(D.c2.x-D.c1.x)*h,T=D.c1.y+(D.c2.y-D.c1.y)*h,H=g+(_-g)*h,x=v+(T-v)*h;y+=` C ${g} ${v} ${H} ${x} ${m.x} ${m.y}`}return y}function ti(n,a){if(n.length<2)return{x:0,y:0,tx:1,ty:0};if(n.length===2){const g=n[1].x-n[0].x,v=n[1].y-n[0].y,_=Math.sqrt(g*g+v*v)||1;return{x:n[0].x+g*a,y:n[0].y+v*a,tx:g/_,ty:v/_}}const i=[];for(let g=0;g<n.length-1;g++){const v=n[Math.max(0,g-1)],_=n[g],T=n[g+1],H=n[Math.min(n.length-1,g+2)];i.push({p0:_,c1:{x:_.x+(T.x-v.x)/6,y:_.y+(T.y-v.y)/6},c2:{x:T.x-(H.x-_.x)/6,y:T.y-(H.y-_.y)/6},p1:T})}const o=i.length,f=a*o,d=Math.min(Math.floor(f),o-1),h=o===1?a:Math.min(f-d,1),y=i[d],D=zn(y.p0.x,y.p0.y,y.c1.x,y.c1.y,y.c2.x,y.c2.y,y.p1.x,y.p1.y,h),m=Ts(y.p0.x,y.p0.y,y.c1.x,y.c1.y,y.c2.x,y.c2.y,y.p1.x,y.p1.y,h);return{x:D.x,y:D.y,tx:m.tx,ty:m.ty}}function sv(n,a,i){const o={};for(const[f,d]of Object.entries(n))o[f]={...d.props};for(const[f,d]of Object.entries(a)){const h=f.indexOf("."),y=f.slice(0,h),D=f.slice(h+1);if(o[y]){const m=lv(d,i);m!==void 0&&(o[y][D]=m)}}for(const f of Object.keys(n)){const d=o[f],h=d.follow;if(!h||!n[h])continue;const y=d.pathProgress??0,D=n[h],m=o[h],g=dv(D,m,o,y);g&&(d.x=g.x,d.y=g.y)}return o}function dv(n,a,i,o){if(n.type==="path"){const f=a.points;if(!f||f.length<2)return null;const d=a.closed;if(a.smooth&&d&&f.length>=3)return Bs(f,o);if(d){const D=f.length,g=(o%1+1)%1*D,v=Math.min(Math.floor(g),D-1),_=g-v,T=f[v],H=f[(v+1)%D];return{x:T.x+(H.x-T.x)*_,y:T.y+(H.y-T.y)*_}}const y=ti(f,Math.max(0,Math.min(1,o)));return{x:y.x,y:y.y}}if(n.type==="line"){const f=a.bend;if(a.closed&&Array.isArray(f))return Bs(f,o);const h=Math.max(0,Math.min(1,o));let y,D,m,g;const v=a.from,_=a.to;if(v&&_&&i[v]&&i[_]?(y=i[v].x??0,D=i[v].y??0,m=i[_].x??0,g=i[_].y??0):(y=a.x1??0,D=a.y1??0,m=a.x2??0,g=a.y2??0),typeof f=="number"&&f!==0){const{cx:T,cy:H}=ov(y,D,m,g,f);return cv(y,D,T,H,m,g,h)}if(Array.isArray(f)){const T=[{x:y,y:D},...f,{x:m,y:g}],H=ti(T,h);return{x:H.x,y:H.y}}return{x:y+(m-y)*h,y:D+(g-D)*h}}return null}function Jc(n,a){if(!n||n.length===0)return;const i=[...n].sort((f,d)=>f.time-d.time);let o;for(const f of i)if(a>=f.time)o=f;else break;return o}function Fs({children:n,width:a="100%",height:i="100%"}){return re.jsxs("svg",{width:a,height:i,style:{background:"#0e1117",display:"block"},children:[re.jsx("defs",{children:re.jsx("pattern",{id:"starch-grid",width:"40",height:"40",patternUnits:"userSpaceOnUse",children:re.jsx("path",{d:"M 40 0 L 0 0 0 40",fill:"none",stroke:"#ffffff04",strokeWidth:"1"})})}),re.jsx("rect",{width:"100%",height:"100%",fill:"url(#starch-grid)"}),n]})}function hv(n){return typeof n=="object"&&"x"in n&&"y"in n}const Dv={N:"top",NE:"topright",E:"right",SE:"bottomright",S:"bottom",SW:"bottomleft",W:"left",NW:"topleft"};function Kc(n,a,i){if(!n||n==="center")return{ax:0,ay:0};if(hv(n))return{ax:(n.x-.5)*2*a,ay:(n.y-.5)*2*i};const o=Dv[n]??n;let f=0,d=0;return o.includes("top")&&(d=-i),o.includes("bottom")&&(d=i),o.includes("left")&&(f=-a),o.includes("right")&&(f=a),{ax:f,ay:d}}function ui(n,a,i,o,f,d){const{ax:h,ay:y}=Kc(o,f,d);return{outerTranslate:`translate(${n}, ${a})`,innerTransform:`translate(${h*(1-i)}, ${y*(1-i)}) scale(${i})`}}function ni(n,a,i,o,f,d){const{ax:h,ay:y}=Kc(o,f,d);return{cx:n+h*(1-i),cy:a+y*(1-i)}}function mv(n,a,i,o,f,d,h){const{cx:y,cy:D}=ni(n,a,i,o,d,h),{ax:m,ay:g}=Kc(f,d*i,h*i);return{x:y+m,y:D+g}}const el="'JetBrains Mono', 'Fira Code', monospace";function yv({props:n}){const{x:a=0,y:i=0,w:o=140,h:f=50,fill:d="#1a1d24",stroke:h="#22d3ee",strokeWidth:y=1.5,radius:D=8,text:m,textColor:g="#e2e5ea",textSize:v=13,opacity:_=1,scale:T=1,bold:H=!1,anchor:x="center",textOffset:$}=n,{outerTranslate:j,innerTransform:k}=ui(a,i,T,x,o/2,f/2);return re.jsx("g",{transform:j,opacity:_,children:re.jsxs("g",{transform:k,children:[re.jsx("rect",{x:-o/2,y:-f/2,width:o,height:f,rx:D,fill:d,stroke:h,strokeWidth:y}),m&&re.jsx("text",{x:0+(($==null?void 0:$[0])||0),y:1+(($==null?void 0:$[1])||0),textAnchor:"middle",dominantBaseline:"middle",fill:g,fontSize:v,fontFamily:el,fontWeight:H?700:400,children:m})]})})}function pv({props:n}){const{x:a=0,y:i=0,r:o=20,fill:f="#1a1d24",stroke:d="#22d3ee",strokeWidth:h=1.5,text:y,textColor:D="#e2e5ea",textSize:m=12,opacity:g=1,scale:v=1,anchor:_="center",textOffset:T}=n,{outerTranslate:H,innerTransform:x}=ui(a,i,v,_,o,o);return re.jsx("g",{transform:H,opacity:g,children:re.jsxs("g",{transform:x,children:[re.jsx("circle",{cx:0,cy:0,r:o,fill:f,stroke:d,strokeWidth:h}),y&&re.jsx("text",{x:0+((T==null?void 0:T[0])||0),y:1+((T==null?void 0:T[1])||0),textAnchor:"middle",dominantBaseline:"middle",fill:D,fontSize:m,fontFamily:el,children:y})]})})}function gv({props:n}){const{x:a=0,y:i=0,text:o="",color:f="#e2e5ea",size:d=14,bold:h=!1,opacity:y=1,align:D="middle",textOffset:m}=n;return re.jsx("text",{x:a+((m==null?void 0:m[0])||0),y:i+((m==null?void 0:m[1])||0),textAnchor:D,dominantBaseline:"middle",fill:f,fontSize:d,fontFamily:el,fontWeight:h?700:400,opacity:y,children:o})}function vv({props:n}){const{x:a=0,y:i=0,cols:o=[],rows:f=[],fill:d="#1a1d24",stroke:h="#2a2d35",headerFill:y="#14161c",textColor:D="#c9cdd4",headerColor:m="#e2e5ea",textSize:g=12,colWidth:v=100,rowHeight:_=30,opacity:T=1,scale:H=1,strokeWidth:x=1,anchor:$="center"}=n,j=o,k=f,Q=v,G=_,L=j.length*Q,ee=(k.length+1)*G,{outerTranslate:V,innerTransform:te}=ui(a,i,H,$,L/2,ee/2);return re.jsx("g",{transform:V,opacity:T,children:re.jsxs("g",{transform:te,children:[re.jsx("rect",{x:-L/2,y:-ee/2,width:L,height:G,rx:6,fill:y,stroke:h,strokeWidth:x}),j.map((ye,Se)=>re.jsx("text",{x:-L/2+Se*Q+Q/2,y:-ee/2+G/2+1,textAnchor:"middle",dominantBaseline:"middle",fill:m,fontSize:g,fontWeight:700,fontFamily:el,children:ye},Se)),k.map((ye,Se)=>re.jsxs("g",{children:[re.jsx("rect",{x:-L/2,y:-ee/2+(Se+1)*G,width:L,height:G,fill:d,stroke:h,strokeWidth:x,rx:Se===k.length-1?6:0}),ye.map((Ae,ne)=>re.jsx("text",{x:-L/2+ne*Q+Q/2,y:-ee/2+(Se+1)*G+G/2+1,textAnchor:"middle",dominantBaseline:"middle",fill:D,fontSize:g,fontFamily:el,children:Ae},ne))]},Se)),re.jsx("rect",{x:-L/2,y:-ee/2,width:L,height:ee,rx:6,fill:"none",stroke:h,strokeWidth:x+.5})]})})}function li(n,a,i){const o=a[n],f=i[n];if(!o||!f)return{x:0,y:0,hw:0,hh:0,type:"box"};const d=o.type,h=f.scale||1,y=f.anchor;let D=f.x||0,m=f.y||0,g=o.groupId;for(;g&&a[g];){const x=i[g]||a[g].props;D+=x.x||0,m+=x.y||0,g=a[g].groupId}if(d==="circle"){const x=f.r||20,{cx:$,cy:j}=ni(D,m,h,y,x,x);return{x:$,y:j,hw:x*h+4,hh:x*h+4,type:"circle"}}if(d==="table"){const x=f.cols||[],$=f.rows||[],j=f.colWidth||100,k=f.rowHeight||30,Q=x.length*j/2,G=($.length+1)*k/2,{cx:L,cy:ee}=ni(D,m,h,y,Q,G);return{x:L,y:ee,hw:Q*h+4,hh:G*h+4,type:"box"}}const v=(f.w||140)/2,_=(f.h||50)/2,{cx:T,cy:H}=ni(D,m,h,y,v,_);return{x:T,y:H,hw:v*h+4,hh:_*h+4,type:"box"}}function Os(n,a){const{hw:i,hh:o,type:f}=n;if(f==="circle")return{x:n.x+Math.cos(a)*i,y:n.y+Math.sin(a)*o};const d=Math.tan(a),h=[];let y=d*i;Math.abs(y)<=o&&h.push({x:n.x+i,y:n.y+y,d:Math.abs(Math.cos(a))>0?i/Math.abs(Math.cos(a)):1/0}),y=-d*i,Math.abs(y)<=o&&h.push({x:n.x-i,y:n.y+y,d:Math.abs(Math.cos(a))>0?i/Math.abs(Math.cos(a)):1/0});const D=o/(d||.001);Math.abs(D)<=i&&h.push({x:n.x+D,y:n.y+o,d:o/Math.abs(Math.sin(a)||.001)});const m=-o/(d||.001);if(Math.abs(m)<=i&&h.push({x:n.x+m,y:n.y-o,d:o/Math.abs(Math.sin(a)||.001)}),h.length===0)return{x:n.x+Math.cos(a)*i,y:n.y+Math.sin(a)*o};const g=Math.cos(a),v=Math.sin(a),_=h.filter(T=>{const H=T.x-n.x,x=T.y-n.y;return H*g+x*v>-.01});return _.length===0?h[0]:(_.sort((T,H)=>T.d-H.d),_[0])}function xs(n,a,i,o){const f=i[n],d=o[n];if(!f||!d)return{x:0,y:0};let h=d.x||0,y=d.y||0,D=f.groupId;for(;D&&i[D];){const T=o[D]||i[D].props;h+=T.x||0,y+=T.y||0,D=i[D].groupId}const m=d.scale||1,g=d.anchor;let v,_;if(f.type==="circle"){const T=d.r||20;v=T,_=T}else if(f.type==="table"){const T=d.cols||[],H=d.rows||[];v=T.length*(d.colWidth||100)/2,_=(H.length+1)*(d.rowHeight||30)/2}else v=(d.w||140)/2,_=(d.h||50)/2;return mv(h,y,m,g,a,v,_)}const Av="#ef4444";function Ev({props:n,objects:a,allProps:i,debug:o=!1}){const{from:f,to:d,fromAnchor:h,toAnchor:y,x1:D,y1:m,x2:g,y2:v,stroke:_="#4a4f59",strokeWidth:T=1.5,dashed:H=!1,label:x,labelColor:$="#8a8f98",labelSize:j=11,labelRotation:k=0,opacity:Q=1,progress:G=1,arrow:L=!0,textOffset:ee,bend:V,closed:te=!1,visible:ye=!0}=n,Se=!ye&&o,Ae=V,ne=!!te&&Array.isArray(Ae),Qe=Array.isArray(Ae)&&!ne,He=!Qe&&!ne&&typeof Ae=="number"&&Ae!==0;let _e=h,O=y;if(He&&f&&d&&a[f]&&a[d]){const Ge=li(f,a,i),qe=li(d,a,i);if(!_e||!O){const Oe=iv(Ge.x,Ge.y,qe.x,qe.y,Ae);Oe&&(_e||(_e=Oe.exitAnchor),O||(O=Oe.entryAnchor))}}let q,X,le,ae;if(f&&d&&a[f]&&a[d]){const Ge=li(f,a,i),qe=li(d,a,i),Oe=_e?xs(f,_e,a,i):null,_t=O?xs(d,O,a,i):null,cu=Oe||{x:Ge.x,y:Ge.y},Qu=_t||{x:qe.x,y:qe.y},yt=Math.atan2(Qu.y-cu.y,Qu.x-cu.x);if(Oe)q=Oe.x,X=Oe.y;else{const Be=Os(Ge,yt);q=Be.x,X=Be.y}if(_t)le=_t.x,ae=_t.y;else{const Be=Os(qe,yt+Math.PI);le=Be.x,ae=Be.y}}else q=D||0,X=m||0,le=g||100,ae=v||100;const E=Math.max(0,Math.min(1,G)),U=8,Y=ee||[0,0],J=zs(_e),ie=zs(O),me=J!==null||ie!==null;let de,Ye,ze,Ct,Rt,Lt,Cu=null;if(ne)Cu=rv(Ae,E),de=0,Ye=0,ze=0,Ct=0,Rt=0,Lt=0;else if(Qe){const Ge=[{x:q,y:X},...Ae,{x:le,y:ae}];Cu=fv(Ge,E);const qe=ti(Ge,E);de=qe.x,Ye=qe.y,ze=qe.tx,Ct=qe.ty;const Oe=ti(Ge,.5);Rt=Oe.x+Y[0],Lt=Oe.y+Y[1]}else if(me){const Ge=le-q,qe=ae-X,Oe=Math.sqrt(Ge*Ge+qe*qe)||1,_t=J||{dx:Ge/Oe,dy:qe/Oe},cu=ie||{dx:-Ge/Oe,dy:-qe/Oe},yt=He&&(!h||!y)?Oe/3:typeof Ae=="number"&&Ae!==0?Math.abs(Ae):Oe/3,Be=q+_t.dx*yt,Bn=X+_t.dy*yt,Ot=le+cu.dx*yt,ou=ae+cu.dy*yt;Cu=av(q,X,Be,Bn,Ot,ou,le,ae,E);const ru=zn(q,X,Be,Bn,Ot,ou,le,ae,E),Tn=Ts(q,X,Be,Bn,Ot,ou,le,ae,E);de=ru.x,Ye=ru.y,ze=Tn.tx,Ct=Tn.ty;const Lu=zn(q,X,Be,Bn,Ot,ou,le,ae,.5);Rt=Lu.x+Y[0],Lt=Lu.y+Y[1]}else if(He){const Ge=le-q,qe=ae-X,Oe=Math.sqrt(Ge*Ge+qe*qe)||1,_t=qe/Oe,cu=-Ge/Oe,Qu=Ae,yt=(q+le)/2+_t*Qu,Be=(X+ae)/2+cu*Qu;Cu=(Vt=>{if(Vt>=1)return`M ${q} ${X} Q ${yt} ${Be} ${le} ${ae}`;const Wc=q+(yt-q)*Vt,Fn=X+(Be-X)*Vt,it=1-Vt,mu=it*it*q+2*it*Vt*yt+Vt*Vt*le,Bt=it*it*X+2*it*Vt*Be+Vt*Vt*ae;return`M ${q} ${X} Q ${Wc} ${Fn} ${mu} ${Bt}`})(E);const Ot=1-E;de=Ot*Ot*q+2*Ot*E*yt+E*E*le,Ye=Ot*Ot*X+2*Ot*E*Be+E*E*ae;const ou=2*(1-E)*(yt-q)+2*E*(le-yt),ru=2*(1-E)*(Be-X)+2*E*(ae-Be),Tn=Math.sqrt(ou*ou+ru*ru)||1;ze=ou/Tn,Ct=ru/Tn;const Lu={x:.25*q+.5*yt+.25*le,y:.25*X+.5*Be+.25*ae};Rt=Lu.x+Y[0],Lt=Lu.y+Y[1]}else{const Ge=le-q,qe=ae-X,Oe=Math.sqrt(Ge*Ge+qe*qe);ze=Oe>0?Ge/Oe:0,Ct=Oe>0?qe/Oe:0;const _t=Oe*E;de=q+ze*_t,Ye=X+Ct*_t,Rt=(q+de)/2+Y[0],Lt=(X+Ye)/2+Y[1]}const Du=Se?Av:_,Vl=Se?.5:Q,tl=Se?"4 4":H?"6 4":"none";return re.jsxs("g",{opacity:Vl,children:[Cu?re.jsx("path",{d:Cu,fill:"none",stroke:Du,strokeWidth:T,strokeDasharray:tl}):re.jsx("line",{x1:q,y1:X,x2:de,y2:Ye,stroke:Du,strokeWidth:T,strokeDasharray:tl}),!Se&&!!L&&!ne&&E>.1&&re.jsx("polygon",{points:`${de},${Ye} ${de-ze*U-Ct*4},${Ye-Ct*U+ze*4} ${de-ze*U+Ct*4},${Ye-Ct*U-ze*4}`,fill:_}),!Se&&!!x&&E>.4&&re.jsxs("g",{transform:`rotate(${k}, ${Rt}, ${Lt})`,children:[re.jsx("rect",{x:Rt-x.length*3.3-6,y:Lt-9,width:x.length*6.6+12,height:18,rx:4,fill:"#0e1117",opacity:.85}),re.jsx("text",{x:Rt,y:Lt,textAnchor:"middle",dominantBaseline:"middle",fill:$,fontSize:j,fontFamily:el,children:x})]})]})}const bv="#ef4444";function Cv({props:n,debug:a}){const{points:i=[],closed:o=!1,stroke:f="#4a4f59",strokeWidth:d=1,visible:h=!1,opacity:y=1}=n,D=!h&&a,m=i;if(m.length<2)return null;const g=n.smooth??!1;let v;if(g&&o&&m.length>=3){const H=m.length,x=[`M ${m[0].x} ${m[0].y}`];for(let $=0;$<H;$++){const j=m[($-1+H)%H],k=m[$],Q=m[($+1)%H],G=m[($+2)%H],L=k.x+(Q.x-j.x)/6,ee=k.y+(Q.y-j.y)/6,V=Q.x-(G.x-k.x)/6,te=Q.y-(G.y-k.y)/6;x.push(`C ${L} ${ee}, ${V} ${te}, ${Q.x} ${Q.y}`)}v=x.join(" ")}else v=m.map((H,x)=>`${x===0?"M":"L"} ${H.x} ${H.y}`).join(" ")+(o?" Z":"");const _=D?bv:f,T=D?.5:y;return re.jsx("path",{d:v,fill:"none",stroke:_,strokeWidth:d,strokeDasharray:"4 4",opacity:T})}function Ms({props:n,objects:a,allProps:i,renderObject:o}){const{x:f=0,y:d=0,opacity:h=1,scale:y=1,anchor:D="center",children:m=[],rotation:g=0,fill:v,stroke:_,strokeWidth:T=2,radius:H=0,_layoutW:x,_layoutH:$}=n,j=m,k=(x||0)/2,Q=($||0)/2,{outerTranslate:G,innerTransform:L}=ui(f,d,y,D,k,Q),ee=g!==0?` rotate(${g})`:"",V=!!(v||_);return re.jsx("g",{transform:G,opacity:h,children:re.jsxs("g",{transform:`${L}${ee}`,children:[V&&x>0&&$>0&&re.jsx("rect",{x:-k,y:-Q,width:x,height:$,rx:H,ry:H,fill:v||"none",stroke:_||"none",strokeWidth:_?T:0}),j.map(te=>{const ye=a[te];return ye?o(te,ye):null})]})})}function Ns(n,a,i){const o=(f,d)=>{const h=n[f]||d.props;if(!(h.visible??!0)&&!i)return null;const D=h.children;if(D&&D.length>0&&d.type!=="group")return re.jsx(Ms,{props:h,objects:a,allProps:n,renderObject:o},f);switch(d.type){case"box":return re.jsx(yv,{props:h},f);case"circle":return re.jsx(pv,{props:h},f);case"label":return re.jsx(gv,{props:h},f);case"table":return re.jsx(vv,{props:h},f);case"line":return re.jsx(Ev,{id:f,props:h,objects:a,allProps:n,debug:i},f);case"path":return re.jsx(Cv,{props:h,debug:i},f);case"group":return re.jsx(Ms,{props:h,objects:a,allProps:n,renderObject:o},f);default:return null}};return o}function Zs(n){const a=Me.useRef({objects:{},animConfig:{duration:5,loop:!0,keyframes:[],chapters:[]}}),i=Me.useMemo(()=>{try{let V;return n.scene?V={objects:n.scene.getObjects(),animConfig:n.scene.getAnimConfig()}:n.dsl?V=Pg(n.dsl):V=a.current,a.current=V,V}catch{return a.current}},[n.scene,n.dsl]),{objects:o,animConfig:f}=i,d=Me.useMemo(()=>ev(f,o),[f,o]),h=f.duration,y=f.chapters,[D,m]=Me.useState(0),[g,v]=Me.useState(n.autoplay??!1),[_,T]=Me.useState(n.speed??1),H=Me.useRef(null),x=Me.useRef(0),$=Me.useRef(void 0);Me.useEffect(()=>{T(n.speed??1)},[n.speed]),Me.useEffect(()=>{var ye,Se,Ae,ne,Qe,He;const V=Jc(y,D),te=$.current;if(V&&V!==te){if(te){const O={type:"chapterExit",chapter:te,time:D};(ye=n.onChapterExit)==null||ye.call(n,O),(Se=n.onEvent)==null||Se.call(n,O),(Ae=n.scene)==null||Ae.emit(O)}const _e={type:"chapterEnter",chapter:V,time:D};(ne=n.onChapterEnter)==null||ne.call(n,_e),(Qe=n.onEvent)==null||Qe.call(n,_e),(He=n.scene)==null||He.emit(_e),g&&te!==void 0&&v(!1),$.current=V}},[D,y,g,n]),Me.useEffect(()=>{if(!g){H.current&&cancelAnimationFrame(H.current);return}x.current=performance.now();const V=te=>{const ye=(te-x.current)/1e3*_;x.current=te,m(Se=>{let Ae=Se+ye;return Ae>=h&&(f.loop?Ae=Ae%h:(Ae=h,v(!1))),Ae}),H.current=requestAnimationFrame(V)};return H.current=requestAnimationFrame(V),()=>{H.current&&cancelAnimationFrame(H.current)}},[g,_,h,f.loop]);const j=Me.useCallback(V=>{m(V),$.current=Jc(y,V)},[y]),k=Me.useCallback(()=>{const te=[...y].sort((ye,Se)=>ye.time-Se.time).find(ye=>ye.time>D+.01);te&&(j(te.time),v(!0))},[y,D,j]),Q=Me.useCallback(()=>{const te=[...y].sort((ye,Se)=>Se.time-ye.time).find(ye=>ye.time<D-.1);te&&(j(te.time),v(!0))},[y,D,j]),G=Me.useCallback(V=>{const te=y.find(ye=>ye.id===V);te&&(j(te.time),v(!0))},[y,j]),L=Me.useMemo(()=>sv(o,d,D),[o,d,D]),ee=Me.useMemo(()=>{const V=Object.entries(o).filter(([,ne])=>!ne.groupId),te={},ye=ne=>{if(te[ne]!==void 0)return te[ne];const Qe=o[ne];if(!Qe)return 0;const _e=Qe.props.children;if(_e&&_e.length>0){const O=Math.max(0,..._e.map(ye));te[ne]=O+1}else te[ne]=0;return te[ne]};for(const ne of Object.keys(o))ye(ne);const Se=([ne,Qe])=>{const He=Qe.props;if(typeof He.depth=="number")return He.depth;if(Qe.type==="line"){const _e=He.from,O=He.to;let q=0;if(_e&&o[_e]){const X=o[_e].groupId;q=Math.max(q,X?te[X]??0:0)}if(O&&o[O]){const X=o[O].groupId;q=Math.max(q,X?te[X]??0:0)}return q}return te[ne]??0},Ae=ne=>{const Qe=ne.props,He=Array.isArray(Qe.children)&&Qe.children.length>0;return ne.type==="path"?0:ne.type==="label"?1:ne.type==="group"||He?2:ne.type==="line"?4:3};return V.sort((ne,Qe)=>{const He=Se(ne),_e=Se(Qe);return He!==_e?He-_e:Ae(ne[1])-Ae(Qe[1])})},[o]);return{time:D,duration:h,playing:g,speed:_,chapters:y,activeChapter:Jc(y,D),objects:o,animatedProps:L,renderOrder:ee,pct:h>0?D/h*100:0,seek:j,setPlaying:v,setSpeed:T,play:Me.useCallback(()=>v(!0),[]),pause:Me.useCallback(()=>v(!1),[]),nextChapter:k,prevChapter:Q,goToChapter:G}}function _v(n){return Zs(n)}Me.forwardRef(function(a,i){const o=Zs(a),f=a.debug??!1;Me.useImperativeHandle(i,()=>({play:o.play,pause:o.pause,seek:o.seek,nextChapter:o.nextChapter,prevChapter:o.prevChapter,goToChapter:o.goToChapter}),[o.play,o.pause,o.seek,o.nextChapter,o.prevChapter,o.goToChapter]);const d=Me.useMemo(()=>Ns(o.animatedProps,o.objects,f),[o.animatedProps,o.objects,f]);return re.jsx(Fs,{children:o.renderOrder.map(([h,y])=>d(h,y))})});function Sv({element:n,...a}){const i=_v(a),o=a.debug??!1;Me.useEffect(()=>{n._handle={play:i.play,pause:i.pause,seek:i.seek,nextChapter:i.nextChapter,prevChapter:i.prevChapter,goToChapter:i.goToChapter}},[n,i.play,i.pause,i.seek,i.nextChapter,i.prevChapter,i.goToChapter]),Me.useEffect(()=>{n._state={time:i.time,duration:i.duration,playing:i.playing,speed:i.speed,chapters:i.chapters,activeChapter:i.activeChapter}},[n,i.time,i.duration,i.playing,i.speed,i.chapters,i.activeChapter]);const f=Me.useRef(i.activeChapter);Me.useEffect(()=>{const h=f.current,y=i.activeChapter;if(y!==h){if(h){const D={type:"chapterExit",chapter:h,time:i.time};n.dispatchEvent(new CustomEvent("starch:chapterexit",{detail:D,bubbles:!0})),n.dispatchEvent(new CustomEvent("starch:event",{detail:D,bubbles:!0}))}if(y){const D={type:"chapterEnter",chapter:y,time:i.time};n.dispatchEvent(new CustomEvent("starch:chapterenter",{detail:D,bubbles:!0})),n.dispatchEvent(new CustomEvent("starch:event",{detail:D,bubbles:!0}))}f.current=y}},[i.activeChapter,i.time,n]);const d=Me.useMemo(()=>Ns(i.animatedProps,i.objects,o),[i.animatedProps,i.objects,o]);return re.jsx(Fs,{children:i.renderOrder.map(([h,y])=>d(h,y))})}class Us extends HTMLElement{constructor(){super(...arguments);Vn(this,"_root",null);Vn(this,"_handle",null);Vn(this,"_state",{time:0,duration:0,playing:!1,speed:1,chapters:[],activeChapter:void 0});Vn(this,"_dsl","");Vn(this,"_container",null)}connectedCallback(){var d;let i=this.shadowRoot;if(!i){i=this.attachShadow({mode:"open"});const h=document.createElement("style");h.textContent=":host { display: block; width: 100%; height: 400px; }",i.appendChild(h);const y=document.createElement("div");y.style.width="100%",y.style.height="100%",i.appendChild(y),this._container=y}const o=this._container||i.querySelector("div");if(!o)return;const f=this.getAttribute("src");f?this._fetchAndMount(f,o):(this._dsl=((d=this.textContent)==null?void 0:d.trim())||"",this._mount(o))}disconnectedCallback(){var i;(i=this._root)==null||i.unmount(),this._root=null,this._handle=null}attributeChangedCallback(i,o,f){var d;if(this._root){if(i==="src"&&f&&f!==o){const h=this._container||((d=this.shadowRoot)==null?void 0:d.querySelector("div"));h&&this._fetchAndMount(f,h);return}this._render()}}_fetchAndMount(i,o){fetch(i).then(f=>f.text()).then(f=>{this._dsl=f,this._mount(o)}).catch(f=>console.error("[starch-diagram] Failed to fetch src:",f))}_mount(i){this._root||(this._root=YD.createRoot(i)),this._render()}_render(){if(!this._root)return;const i={dsl:this._dsl,autoplay:this.hasAttribute("autoplay"),speed:parseFloat(this.getAttribute("speed")||"1")||1,debug:this.hasAttribute("debug")};this._root.render(UD.createElement(Sv,{...i,element:this}))}play(){var i;(i=this._handle)==null||i.play()}pause(){var i;(i=this._handle)==null||i.pause()}seek(i){var o;(o=this._handle)==null||o.seek(i)}nextChapter(){var i;(i=this._handle)==null||i.nextChapter()}prevChapter(){var i;(i=this._handle)==null||i.prevChapter()}goToChapter(i){var o;(o=this._handle)==null||o.goToChapter(i)}get time(){return this._state.time}get duration(){return this._state.duration}get playing(){return this._state.playing}get speed(){return this._state.speed}get chapters(){return this._state.chapters}get activeChapter(){return this._state.activeChapter}}Vn(Us,"observedAttributes",["src","autoplay","speed","debug"]),customElements.get("starch-diagram")||customElements.define("starch-diagram",Us)})();
|