@devmoods/postgres-admin 0.8.0 → 0.10.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/dist/client/.vite/manifest.json +2 -2
- package/dist/client/_index.html +2 -2
- package/dist/client/assets/index-BY5KOOpr.js +86 -0
- package/dist/client/assets/index-Dw1OxeYy.css +1 -0
- package/dist/index.js +2 -2
- package/package.json +16 -16
- package/dist/client/assets/index-Bt3yyG-e.css +0 -1
- package/dist/client/assets/index-d5ZRUuNE.js +0 -87
- package/dist/client/assets/index-d5ZRUuNE.js.map +0 -1
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
var jb=e=>{throw TypeError(e)};var Ah=(e,n,a)=>n.has(e)||jb("Cannot "+a);var L=(e,n,a)=>(Ah(e,n,"read from private field"),a?a.call(e):n.get(e)),De=(e,n,a)=>n.has(e)?jb("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),me=(e,n,a,i)=>(Ah(e,n,"write to private field"),i?i.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(Ah(e,n,"access private method"),a);var oc=(e,n,a,i)=>({set _(s){me(e,n,s,a)},get _(){return L(e,n,i)}});function Uw(e,n){for(var a=0;a<n.length;a++){const i=n[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(i,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const f of o.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=a(s);fetch(s.href,o)}})();function Zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh={exports:{}},us={};/**
|
|
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 _b;function $w(){if(_b)return us;_b=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(i,s,o){var f=null;if(o!==void 0&&(f=""+o),s.key!==void 0&&(f=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:i,key:f,ref:s!==void 0?s:null,props:o}}return us.Fragment=n,us.jsx=a,us.jsxs=a,us}var Nb;function Bw(){return Nb||(Nb=1,Mh.exports=$w()),Mh.exports}var D=Bw(),jh={exports:{}},ls={},_h={exports:{}},Nh={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.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 zb;function Pw(){return zb||(zb=1,function(e){function n($,I){var ae=$.length;$.push(I);e:for(;0<ae;){var G=ae-1>>>1,M=$[G];if(0<s(M,I))$[G]=I,$[ae]=M,ae=G;else break e}}function a($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var I=$[0],ae=$.pop();if(ae!==I){$[0]=ae;e:for(var G=0,M=$.length,V=M>>>1;G<V;){var ce=2*(G+1)-1,de=$[ce],fe=ce+1,ve=$[fe];if(0>s(de,ae))fe<M&&0>s(ve,de)?($[G]=ve,$[fe]=ae,G=fe):($[G]=de,$[ce]=ae,G=ce);else if(fe<M&&0>s(ve,ae))$[G]=ve,$[fe]=ae,G=fe;else break e}}return I}function s($,I){var ae=$.sortIndex-I.sortIndex;return ae!==0?ae:$.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var h=[],p=[],g=1,b=null,y=3,v=!1,E=!1,x=!1,O=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function j($){for(var I=a(p);I!==null;){if(I.callback===null)i(p);else if(I.startTime<=$)i(p),I.sortIndex=I.expirationTime,n(h,I);else break;I=a(p)}}function _($){if(x=!1,j($),!E)if(a(h)!==null)E=!0,re();else{var I=a(p);I!==null&&ne(_,I.startTime-$)}}var C=!1,q=-1,U=5,k=-1;function z(){return!(e.unstable_now()-k<U)}function K(){if(C){var $=e.unstable_now();k=$;var I=!0;try{e:{E=!1,x&&(x=!1,T(q),q=-1),v=!0;var ae=y;try{t:{for(j($),b=a(h);b!==null&&!(b.expirationTime>$&&z());){var G=b.callback;if(typeof G=="function"){b.callback=null,y=b.priorityLevel;var M=G(b.expirationTime<=$);if($=e.unstable_now(),typeof M=="function"){b.callback=M,j($),I=!0;break t}b===a(h)&&i(h),j($)}else i(h);b=a(h)}if(b!==null)I=!0;else{var V=a(p);V!==null&&ne(_,V.startTime-$),I=!1}}break e}finally{b=null,y=ae,v=!1}I=void 0}}finally{I?ee():C=!1}}}var ee;if(typeof A=="function")ee=function(){A(K)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,X=oe.port2;oe.port1.onmessage=K,ee=function(){X.postMessage(null)}}else ee=function(){O(K,0)};function re(){C||(C=!0,ee())}function ne($,I){q=O(function(){$(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){E||v||(E=!0,re())},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return a(h)},e.unstable_next=function($){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var ae=y;y=I;try{return $()}finally{y=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,I){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ae=y;y=$;try{return I()}finally{y=ae}},e.unstable_scheduleCallback=function($,I,ae){var G=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?G+ae:G):ae=G,$){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=ae+M,$={id:g++,callback:I,priorityLevel:$,startTime:ae,expirationTime:M,sortIndex:-1},ae>G?($.sortIndex=ae,n(p,$),a(h)===null&&$===a(p)&&(x?(T(q),q=-1):x=!0,ne(_,ae-G))):($.sortIndex=M,n(h,$),E||v||(E=!0,re())),$},e.unstable_shouldYield=z,e.unstable_wrapCallback=function($){var I=y;return function(){var ae=y;y=I;try{return $.apply(this,arguments)}finally{y=ae}}}}(Nh)),Nh}var Lb;function qw(){return Lb||(Lb=1,_h.exports=Pw()),_h.exports}var zh={exports:{}},He={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.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 Hb;function kw(){if(Hb)return He;Hb=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function y(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function O(M,V,ce){this.props=M,this.context=V,this.refs=x,this.updater=ce||v}O.prototype.isReactComponent={},O.prototype.setState=function(M,V){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,V,"setState")},O.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=O.prototype;function A(M,V,ce){this.props=M,this.context=V,this.refs=x,this.updater=ce||v}var j=A.prototype=new T;j.constructor=A,E(j,O.prototype),j.isPureReactComponent=!0;var _=Array.isArray,C={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function U(M,V,ce,de,fe,ve){return ce=ve.ref,{$$typeof:e,type:M,key:V,ref:ce!==void 0?ce:null,props:ve}}function k(M,V){return U(M.type,V,void 0,void 0,void 0,M.props)}function z(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function K(M){var V={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ce){return V[ce]})}var ee=/\/+/g;function oe(M,V){return typeof M=="object"&&M!==null&&M.key!=null?K(""+M.key):V.toString(36)}function X(){}function re(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(X,X):(M.status="pending",M.then(function(V){M.status==="pending"&&(M.status="fulfilled",M.value=V)},function(V){M.status==="pending"&&(M.status="rejected",M.reason=V)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ne(M,V,ce,de,fe){var ve=typeof M;(ve==="undefined"||ve==="boolean")&&(M=null);var Te=!1;if(M===null)Te=!0;else switch(ve){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(M.$$typeof){case e:case n:Te=!0;break;case g:return Te=M._init,ne(Te(M._payload),V,ce,de,fe)}}if(Te)return fe=fe(M),Te=de===""?"."+oe(M,0):de,_(fe)?(ce="",Te!=null&&(ce=Te.replace(ee,"$&/")+"/"),ne(fe,V,ce,"",function(je){return je})):fe!=null&&(z(fe)&&(fe=k(fe,ce+(fe.key==null||M&&M.key===fe.key?"":(""+fe.key).replace(ee,"$&/")+"/")+Te)),V.push(fe)),1;Te=0;var mt=de===""?".":de+":";if(_(M))for(var _e=0;_e<M.length;_e++)de=M[_e],ve=mt+oe(de,_e),Te+=ne(de,V,ce,ve,fe);else if(_e=y(M),typeof _e=="function")for(M=_e.call(M),_e=0;!(de=M.next()).done;)de=de.value,ve=mt+oe(de,_e++),Te+=ne(de,V,ce,ve,fe);else if(ve==="object"){if(typeof M.then=="function")return ne(re(M),V,ce,de,fe);throw V=String(M),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Te}function $(M,V,ce){if(M==null)return M;var de=[],fe=0;return ne(M,de,"","",function(ve){return V.call(ce,ve,fe++)}),de}function I(M){if(M._status===-1){var V=M._result;V=V(),V.then(function(ce){(M._status===0||M._status===-1)&&(M._status=1,M._result=ce)},function(ce){(M._status===0||M._status===-1)&&(M._status=2,M._result=ce)}),M._status===-1&&(M._status=0,M._result=V)}if(M._status===1)return M._result.default;throw M._result}var ae=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function G(){}return He.Children={map:$,forEach:function(M,V,ce){$(M,function(){V.apply(this,arguments)},ce)},count:function(M){var V=0;return $(M,function(){V++}),V},toArray:function(M){return $(M,function(V){return V})||[]},only:function(M){if(!z(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},He.Component=O,He.Fragment=a,He.Profiler=s,He.PureComponent=A,He.StrictMode=i,He.Suspense=h,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,He.act=function(){throw Error("act(...) is not supported in production builds of React.")},He.cache=function(M){return function(){return M.apply(null,arguments)}},He.cloneElement=function(M,V,ce){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var de=E({},M.props),fe=M.key,ve=void 0;if(V!=null)for(Te in V.ref!==void 0&&(ve=void 0),V.key!==void 0&&(fe=""+V.key),V)!q.call(V,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&V.ref===void 0||(de[Te]=V[Te]);var Te=arguments.length-2;if(Te===1)de.children=ce;else if(1<Te){for(var mt=Array(Te),_e=0;_e<Te;_e++)mt[_e]=arguments[_e+2];de.children=mt}return U(M.type,fe,void 0,void 0,ve,de)},He.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:o,_context:M},M},He.createElement=function(M,V,ce){var de,fe={},ve=null;if(V!=null)for(de in V.key!==void 0&&(ve=""+V.key),V)q.call(V,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(fe[de]=V[de]);var Te=arguments.length-2;if(Te===1)fe.children=ce;else if(1<Te){for(var mt=Array(Te),_e=0;_e<Te;_e++)mt[_e]=arguments[_e+2];fe.children=mt}if(M&&M.defaultProps)for(de in Te=M.defaultProps,Te)fe[de]===void 0&&(fe[de]=Te[de]);return U(M,ve,void 0,void 0,null,fe)},He.createRef=function(){return{current:null}},He.forwardRef=function(M){return{$$typeof:d,render:M}},He.isValidElement=z,He.lazy=function(M){return{$$typeof:g,_payload:{_status:-1,_result:M},_init:I}},He.memo=function(M,V){return{$$typeof:p,type:M,compare:V===void 0?null:V}},He.startTransition=function(M){var V=C.T,ce={};C.T=ce;try{var de=M(),fe=C.S;fe!==null&&fe(ce,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(G,ae)}catch(ve){ae(ve)}finally{C.T=V}},He.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},He.use=function(M){return C.H.use(M)},He.useActionState=function(M,V,ce){return C.H.useActionState(M,V,ce)},He.useCallback=function(M,V){return C.H.useCallback(M,V)},He.useContext=function(M){return C.H.useContext(M)},He.useDebugValue=function(){},He.useDeferredValue=function(M,V){return C.H.useDeferredValue(M,V)},He.useEffect=function(M,V){return C.H.useEffect(M,V)},He.useId=function(){return C.H.useId()},He.useImperativeHandle=function(M,V,ce){return C.H.useImperativeHandle(M,V,ce)},He.useInsertionEffect=function(M,V){return C.H.useInsertionEffect(M,V)},He.useLayoutEffect=function(M,V){return C.H.useLayoutEffect(M,V)},He.useMemo=function(M,V){return C.H.useMemo(M,V)},He.useOptimistic=function(M,V){return C.H.useOptimistic(M,V)},He.useReducer=function(M,V,ce){return C.H.useReducer(M,V,ce)},He.useRef=function(M){return C.H.useRef(M)},He.useState=function(M){return C.H.useState(M)},He.useSyncExternalStore=function(M,V,ce){return C.H.useSyncExternalStore(M,V,ce)},He.useTransition=function(){return C.H.useTransition()},He.version="19.0.0",He}var Ub;function Ns(){return Ub||(Ub=1,zh.exports=kw()),zh.exports}var Lh={exports:{}},an={};/**
|
|
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 $b;function Fw(){if($b)return an;$b=1;var e=Ns();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:h,containerInfo:p,implementation:g}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return an.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,an.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return o(h,p,null,g)},an.flushSync=function(h){var p=f.T,g=i.p;try{if(f.T=null,i.p=2,h)return h()}finally{f.T=p,i.p=g,i.d.f()}},an.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},an.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},an.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,b=d(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:v}):g==="script"&&i.d.X(h,{crossOrigin:b,integrity:y,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},an.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},an.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=d(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},an.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},an.requestFormReset=function(h){i.d.r(h)},an.unstable_batchedUpdates=function(h,p){return h(p)},an.useFormState=function(h,p,g){return f.H.useFormState(h,p,g)},an.useFormStatus=function(){return f.H.useHostTransitionStatus()},an.version="19.0.0",an}var Bb;function N0(){if(Bb)return Lh.exports;Bb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Lh.exports=Fw(),Lh.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 Pb;function Vw(){if(Pb)return ls;Pb=1;var e=qw(),n=Ns(),a=N0();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)r+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var o=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),_=Symbol.for("react.memo_cache_sentinel"),C=Symbol.iterator;function q(t){return t===null||typeof t!="object"?null:(t=C&&t[C]||t["@@iterator"],typeof t=="function"?t:null)}var U=Symbol.for("react.client.reference");function k(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===U?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case h:return"Fragment";case d:return"Portal";case g:return"Profiler";case p:return"StrictMode";case x:return"Suspense";case O:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case v:return(t.displayName||"Context")+".Provider";case y:return(t._context.displayName||"Context")+".Consumer";case E:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case T:return r=t.displayName||null,r!==null?r:k(t.type)||"Memo";case A:r=t._payload,t=t._init;try{return k(t(r))}catch{}}return null}var z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.assign,ee,oe;function X(t){if(ee===void 0)try{throw Error()}catch(u){var r=u.stack.trim().match(/\n( *(at )?)/);ee=r&&r[1]||"",oe=-1<u.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ee+t+oe}var re=!1;function ne(t,r){if(!t||re)return"";re=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(W){var Z=W}Reflect.construct(t,[],ue)}else{try{ue.call()}catch(W){Z=W}t.call(ue.prototype)}}else{try{throw Error()}catch(W){Z=W}(ue=t())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(W){if(W&&Z&&typeof W.stack=="string")return[W.stack,Z.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 m=l.DetermineComponentFrameRoot(),S=m[0],R=m[1];if(S&&R){var N=S.split(`
|
|
44
|
-
`),P=R.split(`
|
|
45
|
-
`);for(c=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;c<P.length&&!P[c].includes("DetermineComponentFrameRoot");)c++;if(l===N.length||c===P.length)for(l=N.length-1,c=P.length-1;1<=l&&0<=c&&N[l]!==P[c];)c--;for(;1<=l&&0<=c;l--,c--)if(N[l]!==P[c]){if(l!==1||c!==1)do if(l--,c--,0>c||N[l]!==P[c]){var te=`
|
|
46
|
-
`+N[l].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=l&&0<=c);break}}}finally{re=!1,Error.prepareStackTrace=u}return(u=t?t.displayName||t.name:"")?X(u):""}function $(t){switch(t.tag){case 26:case 27:case 5:return X(t.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return t=ne(t.type,!1),t;case 11:return t=ne(t.type.render,!1),t;case 1:return t=ne(t.type,!0),t;default:return""}}function I(t){try{var r="";do r+=$(t),t=t.return;while(t);return r}catch(u){return`
|
|
47
|
-
Error generating stack: `+u.message+`
|
|
48
|
-
`+u.stack}}function ae(t){var r=t,u=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,r.flags&4098&&(u=r.return),t=r.return;while(t)}return r.tag===3?u:null}function G(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function M(t){if(ae(t)!==t)throw Error(i(188))}function V(t){var r=t.alternate;if(!r){if(r=ae(t),r===null)throw Error(i(188));return r!==t?null:t}for(var u=t,l=r;;){var c=u.return;if(c===null)break;var m=c.alternate;if(m===null){if(l=c.return,l!==null){u=l;continue}break}if(c.child===m.child){for(m=c.child;m;){if(m===u)return M(c),t;if(m===l)return M(c),r;m=m.sibling}throw Error(i(188))}if(u.return!==l.return)u=c,l=m;else{for(var S=!1,R=c.child;R;){if(R===u){S=!0,u=c,l=m;break}if(R===l){S=!0,l=c,u=m;break}R=R.sibling}if(!S){for(R=m.child;R;){if(R===u){S=!0,u=m,l=c;break}if(R===l){S=!0,l=m,u=c;break}R=R.sibling}if(!S)throw Error(i(189))}}if(u.alternate!==l)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?t:r}function ce(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=ce(t),r!==null)return r;t=t.sibling}return null}var de=Array.isArray,fe=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},Te=[],mt=-1;function _e(t){return{current:t}}function je(t){0>mt||(t.current=Te[mt],Te[mt]=null,mt--)}function Ne(t,r){mt++,Te[mt]=t.current,t.current=r}var Mt=_e(null),Sn=_e(null),ft=_e(null),ln=_e(null);function Tn(t,r){switch(Ne(ft,r),Ne(Sn,t),Ne(Mt,null),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)&&(r=r.namespaceURI)?ub(r):0;break;default:if(t=t===8?r.parentNode:r,r=t.tagName,t=t.namespaceURI)t=ub(t),r=lb(t,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}je(Mt),Ne(Mt,r)}function tn(){je(Mt),je(Sn),je(ft)}function Pn(t){t.memoizedState!==null&&Ne(ln,t);var r=Mt.current,u=lb(r,t.type);r!==u&&(Ne(Sn,t),Ne(Mt,u))}function be(t){Sn.current===t&&(je(Mt),je(Sn)),ln.current===t&&(je(ln),ts._currentValue=ve)}var Fe=Object.prototype.hasOwnProperty,xt=e.unstable_scheduleCallback,Le=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,sn=e.unstable_requestPaint,jt=e.unstable_now,on=e.unstable_getCurrentPriorityLevel,cn=e.unstable_ImmediatePriority,dl=e.unstable_UserBlockingPriority,Ca=e.unstable_NormalPriority,wf=e.unstable_LowPriority,rr=e.unstable_IdlePriority,Is=e.log,Js=e.unstable_setDisableYieldValue,Ta=null,fn=null;function Ws(t){if(fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(Ta,t,void 0,(t.current.flags&128)===128)}catch{}}function Rn(t){if(typeof Is=="function"&&Js(t),fn&&typeof fn.setStrictMode=="function")try{fn.setStrictMode(Ta,t)}catch{}}var nn=Math.clz32?Math.clz32:eo,hl=Math.log,Of=Math.LN2;function eo(t){return t>>>=0,t===0?32:31-(hl(t)/Of|0)|0}var iu=128,bi=4194304;function qn(t){var r=t&42;if(r!==0)return r;switch(t&-t){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: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Yr(t,r){var u=t.pendingLanes;if(u===0)return 0;var l=0,c=t.suspendedLanes,m=t.pingedLanes,S=t.warmLanes;t=t.finishedLanes!==0;var R=u&134217727;return R!==0?(u=R&~c,u!==0?l=qn(u):(m&=R,m!==0?l=qn(m):t||(S=R&~S,S!==0&&(l=qn(S))))):(R=u&~c,R!==0?l=qn(R):m!==0?l=qn(m):t||(S=u&~S,S!==0&&(l=qn(S)))),l===0?0:r!==0&&r!==l&&!(r&c)&&(c=l&-l,S=r&-r,c>=S||c===32&&(S&4194176)!==0)?r:l}function Si(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Cf(t,r){switch(t){case 1:case 2:case 4:case 8:return r+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function H(){var t=iu;return iu<<=1,!(iu&4194176)&&(iu=128),t}function Y(){var t=bi;return bi<<=1,!(bi&62914560)&&(bi=4194304),t}function J(t){for(var r=[],u=0;31>u;u++)r.push(t);return r}function le(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pe(t,r,u,l,c,m){var S=t.pendingLanes;t.pendingLanes=u,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=u,t.entangledLanes&=u,t.errorRecoveryDisabledLanes&=u,t.shellSuspendCounter=0;var R=t.entanglements,N=t.expirationTimes,P=t.hiddenUpdates;for(u=S&~u;0<u;){var te=31-nn(u),ue=1<<te;R[te]=0,N[te]=-1;var Z=P[te];if(Z!==null)for(P[te]=null,te=0;te<Z.length;te++){var W=Z[te];W!==null&&(W.lane&=-536870913)}u&=~ue}l!==0&&Ee(t,l,0),m!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=m&~(S&~r))}function Ee(t,r,u){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-nn(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|u&4194218}function Me(t,r){var u=t.entangledLanes|=r;for(t=t.entanglements;u;){var l=31-nn(u),c=1<<l;c&r|t[l]&r&&(t[l]|=r),u&=~c}}function ye(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function Se(){var t=fe.p;return t!==0?t:(t=window.event,t===void 0?32:Cb(t.type))}function he(t,r){var u=fe.p;try{return fe.p=t,r()}finally{fe.p=u}}var Re=Math.random().toString(36).slice(2),Ce="__reactFiber$"+Re,Be="__reactProps$"+Re,pt="__reactContainer$"+Re,lt="__reactEvents$"+Re,st="__reactListeners$"+Re,Dt="__reactHandles$"+Re,Qr="__reactResources$"+Re,ar="__reactMarker$"+Re;function Dn(t){delete t[Ce],delete t[Be],delete t[lt],delete t[st],delete t[Dt]}function kt(t){var r=t[Ce];if(r)return r;for(var u=t.parentNode;u;){if(r=u[pt]||u[Ce]){if(u=r.alternate,r.child!==null||u!==null&&u.child!==null)for(t=cb(t);t!==null;){if(u=t[Ce])return u;t=cb(t)}return r}t=u,u=t.parentNode}return null}function Or(t){if(t=t[Ce]||t[pt]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function ir(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function xn(t){var r=t[Qr];return r||(r=t[Qr]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function vt(t){t[ar]=!0}var xi=new Set,rt={};function yt(t,r){ur(t,r),ur(t+"Capture",r)}function ur(t,r){for(rt[t]=r,t=0;t<r.length;t++)xi.add(r[t])}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Et=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]*$"),Gr={},ml={};function Tf(t){return Fe.call(ml,t)?!0:Fe.call(Gr,t)?!1:Et.test(t)?ml[t]=!0:(Gr[t]=!0,!1)}function to(t,r,u){if(Tf(r))if(u===null)t.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+u)}}function no(t,r,u){if(u===null)t.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+u)}}function Kr(t,r,u,l){if(l===null)t.removeAttribute(u);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(u);return}t.setAttributeNS(r,u,""+l)}}function kn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function oy(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function _2(t){var r=oy(t)?"checked":"value",u=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var c=u.get,m=u.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(S){l=""+S,m.call(this,S)}}),Object.defineProperty(t,r,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ro(t){t._valueTracker||(t._valueTracker=_2(t))}function cy(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var u=r.getValue(),l="";return t&&(l=oy(t)?t.checked?"true":"false":t.value),t=l,t!==u?(r.setValue(t),!0):!1}function ao(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var N2=/[\n"\\]/g;function Fn(t){return t.replace(N2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Rf(t,r,u,l,c,m,S,R){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),r!=null?S==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+kn(r)):t.value!==""+kn(r)&&(t.value=""+kn(r)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),r!=null?Df(t,S,kn(r)):u!=null?Df(t,S,kn(u)):l!=null&&t.removeAttribute("value"),c==null&&m!=null&&(t.defaultChecked=!!m),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+kn(R):t.removeAttribute("name")}function fy(t,r,u,l,c,m,S,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||u!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;u=u!=null?""+kn(u):"",r=r!=null?""+kn(r):u,R||r===t.value||(t.value=r),t.defaultValue=r}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=R?t.checked:!!l,t.defaultChecked=!!l,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function Df(t,r,u){r==="number"&&ao(t.ownerDocument)===t||t.defaultValue===""+u||(t.defaultValue=""+u)}function uu(t,r,u,l){if(t=t.options,r){r={};for(var c=0;c<u.length;c++)r["$"+u[c]]=!0;for(u=0;u<t.length;u++)c=r.hasOwnProperty("$"+t[u].value),t[u].selected!==c&&(t[u].selected=c),c&&l&&(t[u].defaultSelected=!0)}else{for(u=""+kn(u),r=null,c=0;c<t.length;c++){if(t[c].value===u){t[c].selected=!0,l&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function dy(t,r,u){if(r!=null&&(r=""+kn(r),r!==t.value&&(t.value=r),u==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=u!=null?""+kn(u):""}function hy(t,r,u,l){if(r==null){if(l!=null){if(u!=null)throw Error(i(92));if(de(l)){if(1<l.length)throw Error(i(93));l=l[0]}u=l}u==null&&(u=""),r=u}u=kn(r),t.defaultValue=u,l=t.textContent,l===u&&l!==""&&l!==null&&(t.value=l)}function lu(t,r){if(r){var u=t.firstChild;if(u&&u===t.lastChild&&u.nodeType===3){u.nodeValue=r;return}}t.textContent=r}var z2=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 my(t,r,u){var l=r.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,u):typeof u!="number"||u===0||z2.has(r)?r==="float"?t.cssFloat=u:t[r]=(""+u).trim():t[r]=u+"px"}function py(t,r,u){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,u!=null){for(var l in u)!u.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var c in r)l=r[c],r.hasOwnProperty(c)&&u[c]!==l&&my(t,c,l)}else for(var m in r)r.hasOwnProperty(m)&&my(t,m,r[m])}function Af(t){if(t.indexOf("-")===-1)return!1;switch(t){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 L2=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"]]),H2=/^[\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 io(t){return H2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Mf=null;function jf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var su=null,ou=null;function yy(t){var r=Or(t);if(r&&(t=r.stateNode)){var u=t[Be]||null;e:switch(t=r.stateNode,r.type){case"input":if(Rf(t,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),r=u.name,u.type==="radio"&&r!=null){for(u=t;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Fn(""+r)+'"][type="radio"]'),r=0;r<u.length;r++){var l=u[r];if(l!==t&&l.form===t.form){var c=l[Be]||null;if(!c)throw Error(i(90));Rf(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(r=0;r<u.length;r++)l=u[r],l.form===t.form&&cy(l)}break e;case"textarea":dy(t,u.value,u.defaultValue);break e;case"select":r=u.value,r!=null&&uu(t,!!u.multiple,r,!1)}}}var _f=!1;function gy(t,r,u){if(_f)return t(r,u);_f=!0;try{var l=t(r);return l}finally{if(_f=!1,(su!==null||ou!==null)&&(Fo(),su&&(r=su,t=ou,ou=su=null,yy(r),t)))for(r=0;r<t.length;r++)yy(t[r])}}function pl(t,r){var u=t.stateNode;if(u===null)return null;var l=u[Be]||null;if(l===null)return null;u=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(u&&typeof u!="function")throw Error(i(231,r,typeof u));return u}var Nf=!1;if(dn)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){Nf=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{Nf=!1}var Ra=null,zf=null,uo=null;function vy(){if(uo)return uo;var t,r=zf,u=r.length,l,c="value"in Ra?Ra.value:Ra.textContent,m=c.length;for(t=0;t<u&&r[t]===c[t];t++);var S=u-t;for(l=1;l<=S&&r[u-l]===c[m-l];l++);return uo=c.slice(t,1<l?1-l:void 0)}function lo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function so(){return!0}function by(){return!1}function En(t){function r(u,l,c,m,S){this._reactName=u,this._targetInst=c,this.type=l,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(u=t[R],this[R]=u?u(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?so:by,this.isPropagationStopped=by,this}return K(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=so)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=so)},persist:function(){},isPersistent:so}),r}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oo=En(Ei),gl=K({},Ei,{view:0,detail:0}),U2=En(gl),Lf,Hf,vl,co=K({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vl&&(vl&&t.type==="mousemove"?(Lf=t.screenX-vl.screenX,Hf=t.screenY-vl.screenY):Hf=Lf=0,vl=t),Lf)},movementY:function(t){return"movementY"in t?t.movementY:Hf}}),Sy=En(co),$2=K({},co,{dataTransfer:0}),B2=En($2),P2=K({},gl,{relatedTarget:0}),Uf=En(P2),q2=K({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),k2=En(q2),F2=K({},Ei,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),V2=En(F2),Y2=K({},Ei,{data:0}),xy=En(Y2),Q2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G2={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"},K2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X2(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=K2[t])?!!r[t]:!1}function $f(){return X2}var Z2=K({},gl,{key:function(t){if(t.key){var r=Q2[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=lo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?G2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(t){return t.type==="keypress"?lo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?lo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),I2=En(Z2),J2=K({},co,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ey=En(J2),W2=K({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),eE=En(W2),tE=K({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),nE=En(tE),rE=K({},co,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),aE=En(rE),iE=K({},Ei,{newState:0,oldState:0}),uE=En(iE),lE=[9,13,27,32],Bf=dn&&"CompositionEvent"in window,bl=null;dn&&"documentMode"in document&&(bl=document.documentMode);var sE=dn&&"TextEvent"in window&&!bl,wy=dn&&(!Bf||bl&&8<bl&&11>=bl),Oy=" ",Cy=!1;function Ty(t,r){switch(t){case"keyup":return lE.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ry(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var cu=!1;function oE(t,r){switch(t){case"compositionend":return Ry(r);case"keypress":return r.which!==32?null:(Cy=!0,Oy);case"textInput":return t=r.data,t===Oy&&Cy?null:t;default:return null}}function cE(t,r){if(cu)return t==="compositionend"||!Bf&&Ty(t,r)?(t=vy(),uo=zf=Ra=null,cu=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return wy&&r.locale!=="ko"?null:r.data;default:return null}}var fE={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 Dy(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!fE[t.type]:r==="textarea"}function Ay(t,r,u,l){su?ou?ou.push(l):ou=[l]:su=l,r=Ko(r,"onChange"),0<r.length&&(u=new oo("onChange","change",null,u,l),t.push({event:u,listeners:r}))}var Sl=null,xl=null;function dE(t){tb(t,0)}function fo(t){var r=ir(t);if(cy(r))return t}function My(t,r){if(t==="change")return r}var jy=!1;if(dn){var Pf;if(dn){var qf="oninput"in document;if(!qf){var _y=document.createElement("div");_y.setAttribute("oninput","return;"),qf=typeof _y.oninput=="function"}Pf=qf}else Pf=!1;jy=Pf&&(!document.documentMode||9<document.documentMode)}function Ny(){Sl&&(Sl.detachEvent("onpropertychange",zy),xl=Sl=null)}function zy(t){if(t.propertyName==="value"&&fo(xl)){var r=[];Ay(r,xl,t,jf(t)),gy(dE,r)}}function hE(t,r,u){t==="focusin"?(Ny(),Sl=r,xl=u,Sl.attachEvent("onpropertychange",zy)):t==="focusout"&&Ny()}function mE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fo(xl)}function pE(t,r){if(t==="click")return fo(r)}function yE(t,r){if(t==="input"||t==="change")return fo(r)}function gE(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var An=typeof Object.is=="function"?Object.is:gE;function El(t,r){if(An(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var u=Object.keys(t),l=Object.keys(r);if(u.length!==l.length)return!1;for(l=0;l<u.length;l++){var c=u[l];if(!Fe.call(r,c)||!An(t[c],r[c]))return!1}return!0}function Ly(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hy(t,r){var u=Ly(t);t=0;for(var l;u;){if(u.nodeType===3){if(l=t+u.textContent.length,t<=r&&l>=r)return{node:u,offset:r-t};t=l}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Ly(u)}}function Uy(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Uy(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function $y(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=ao(t.document);r instanceof t.HTMLIFrameElement;){try{var u=typeof r.contentWindow.location.href=="string"}catch{u=!1}if(u)t=r.contentWindow;else break;r=ao(t.document)}return r}function kf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function vE(t,r){var u=$y(r);r=t.focusedElem;var l=t.selectionRange;if(u!==r&&r&&r.ownerDocument&&Uy(r.ownerDocument.documentElement,r)){if(l!==null&&kf(r)){if(t=l.start,u=l.end,u===void 0&&(u=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(u,r.value.length);else if(u=(t=r.ownerDocument||document)&&t.defaultView||window,u.getSelection){u=u.getSelection();var c=r.textContent.length,m=Math.min(l.start,c);l=l.end===void 0?m:Math.min(l.end,c),!u.extend&&m>l&&(c=l,l=m,m=c),c=Hy(r,m);var S=Hy(r,l);c&&S&&(u.rangeCount!==1||u.anchorNode!==c.node||u.anchorOffset!==c.offset||u.focusNode!==S.node||u.focusOffset!==S.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),u.removeAllRanges(),m>l?(u.addRange(t),u.extend(S.node,S.offset)):(t.setEnd(S.node,S.offset),u.addRange(t)))}}for(t=[],u=r;u=u.parentNode;)u.nodeType===1&&t.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)u=t[r],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var bE=dn&&"documentMode"in document&&11>=document.documentMode,fu=null,Ff=null,wl=null,Vf=!1;function By(t,r,u){var l=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Vf||fu==null||fu!==ao(l)||(l=fu,"selectionStart"in l&&kf(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}),wl&&El(wl,l)||(wl=l,l=Ko(Ff,"onSelect"),0<l.length&&(r=new oo("onSelect","select",null,r,u),t.push({event:r,listeners:l}),r.target=fu)))}function wi(t,r){var u={};return u[t.toLowerCase()]=r.toLowerCase(),u["Webkit"+t]="webkit"+r,u["Moz"+t]="moz"+r,u}var du={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionrun:wi("Transition","TransitionRun"),transitionstart:wi("Transition","TransitionStart"),transitioncancel:wi("Transition","TransitionCancel"),transitionend:wi("Transition","TransitionEnd")},Yf={},Py={};dn&&(Py=document.createElement("div").style,"AnimationEvent"in window||(delete du.animationend.animation,delete du.animationiteration.animation,delete du.animationstart.animation),"TransitionEvent"in window||delete du.transitionend.transition);function Oi(t){if(Yf[t])return Yf[t];if(!du[t])return t;var r=du[t],u;for(u in r)if(r.hasOwnProperty(u)&&u in Py)return Yf[t]=r[u];return t}var qy=Oi("animationend"),ky=Oi("animationiteration"),Fy=Oi("animationstart"),SE=Oi("transitionrun"),xE=Oi("transitionstart"),EE=Oi("transitioncancel"),Vy=Oi("transitionend"),Yy=new Map,Qy="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 scrollEnd toggle touchMove waiting wheel".split(" ");function lr(t,r){Yy.set(t,r),yt(r,[t])}var Vn=[],hu=0,Qf=0;function ho(){for(var t=hu,r=Qf=hu=0;r<t;){var u=Vn[r];Vn[r++]=null;var l=Vn[r];Vn[r++]=null;var c=Vn[r];Vn[r++]=null;var m=Vn[r];if(Vn[r++]=null,l!==null&&c!==null){var S=l.pending;S===null?c.next=c:(c.next=S.next,S.next=c),l.pending=c}m!==0&&Gy(u,c,m)}}function mo(t,r,u,l){Vn[hu++]=t,Vn[hu++]=r,Vn[hu++]=u,Vn[hu++]=l,Qf|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Gf(t,r,u,l){return mo(t,r,u,l),po(t)}function Da(t,r){return mo(t,null,null,r),po(t)}function Gy(t,r,u){t.lanes|=u;var l=t.alternate;l!==null&&(l.lanes|=u);for(var c=!1,m=t.return;m!==null;)m.childLanes|=u,l=m.alternate,l!==null&&(l.childLanes|=u),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(c=!0)),t=m,m=m.return;c&&r!==null&&t.tag===3&&(m=t.stateNode,c=31-nn(u),m=m.hiddenUpdates,t=m[c],t===null?m[c]=[r]:t.push(r),r.lane=u|536870912)}function po(t){if(50<Kl)throw Kl=0,Wd=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var mu={},Ky=new WeakMap;function Yn(t,r){if(typeof t=="object"&&t!==null){var u=Ky.get(t);return u!==void 0?u:(r={value:t,source:r,stack:I(r)},Ky.set(t,r),r)}return{value:t,source:r,stack:I(r)}}var pu=[],yu=0,yo=null,go=0,Qn=[],Gn=0,Ci=null,Xr=1,Zr="";function Ti(t,r){pu[yu++]=go,pu[yu++]=yo,yo=t,go=r}function Xy(t,r,u){Qn[Gn++]=Xr,Qn[Gn++]=Zr,Qn[Gn++]=Ci,Ci=t;var l=Xr;t=Zr;var c=32-nn(l)-1;l&=~(1<<c),u+=1;var m=32-nn(r)+c;if(30<m){var S=c-c%5;m=(l&(1<<S)-1).toString(32),l>>=S,c-=S,Xr=1<<32-nn(r)+c|u<<c|l,Zr=m+t}else Xr=1<<m|u<<c|l,Zr=t}function Kf(t){t.return!==null&&(Ti(t,1),Xy(t,1,0))}function Xf(t){for(;t===yo;)yo=pu[--yu],pu[yu]=null,go=pu[--yu],pu[yu]=null;for(;t===Ci;)Ci=Qn[--Gn],Qn[Gn]=null,Zr=Qn[--Gn],Qn[Gn]=null,Xr=Qn[--Gn],Qn[Gn]=null}var hn=null,Gt=null,Je=!1,sr=null,Cr=!1,Zf=Error(i(519));function Ri(t){var r=Error(i(418,""));throw Tl(Yn(r,t)),Zf}function Zy(t){var r=t.stateNode,u=t.type,l=t.memoizedProps;switch(r[Ce]=t,r[Be]=l,u){case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":case"embed":Qe("load",r);break;case"video":case"audio":for(u=0;u<Zl.length;u++)Qe(Zl[u],r);break;case"source":Qe("error",r);break;case"img":case"image":case"link":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"input":Qe("invalid",r),fy(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ro(r);break;case"select":Qe("invalid",r);break;case"textarea":Qe("invalid",r),hy(r,l.value,l.defaultValue,l.children),ro(r)}u=l.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||r.textContent===""+u||l.suppressHydrationWarning===!0||ib(r.textContent,u)?(l.popover!=null&&(Qe("beforetoggle",r),Qe("toggle",r)),l.onScroll!=null&&Qe("scroll",r),l.onScrollEnd!=null&&Qe("scrollend",r),l.onClick!=null&&(r.onclick=Xo),r=!0):r=!1,r||Ri(t)}function Iy(t){for(hn=t.return;hn;)switch(hn.tag){case 3:case 27:Cr=!0;return;case 5:case 13:Cr=!1;return;default:hn=hn.return}}function Ol(t){if(t!==hn)return!1;if(!Je)return Iy(t),Je=!0,!1;var r=!1,u;if((u=t.tag!==3&&t.tag!==27)&&((u=t.tag===5)&&(u=t.type,u=!(u!=="form"&&u!=="button")||yh(t.type,t.memoizedProps)),u=!u),u&&(r=!0),r&&Gt&&Ri(t),Iy(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(u=t.data,u==="/$"){if(r===0){Gt=cr(t.nextSibling);break e}r--}else u!=="$"&&u!=="$!"&&u!=="$?"||r++;t=t.nextSibling}Gt=null}}else Gt=hn?cr(t.stateNode.nextSibling):null;return!0}function Cl(){Gt=hn=null,Je=!1}function Tl(t){sr===null?sr=[t]:sr.push(t)}var Rl=Error(i(460)),Jy=Error(i(474)),If={then:function(){}};function Wy(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vo(){}function eg(t,r,u){switch(u=t[u],u===void 0?t.push(r):u!==r&&(r.then(vo,vo),r=u),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,t===Rl?Error(i(483)):t;default:if(typeof r.status=="string")r.then(vo,vo);else{if(t=dt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var c=r;c.status="fulfilled",c.value=l}},function(l){if(r.status==="pending"){var c=r;c.status="rejected",c.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,t===Rl?Error(i(483)):t}throw Dl=r,Rl}}var Dl=null;function tg(){if(Dl===null)throw Error(i(459));var t=Dl;return Dl=null,t}var gu=null,Al=0;function bo(t){var r=Al;return Al+=1,gu===null&&(gu=[]),eg(gu,t,r)}function Ml(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function So(t,r){throw r.$$typeof===o?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function ng(t){var r=t._init;return r(t._payload)}function rg(t){function r(F,B){if(t){var Q=F.deletions;Q===null?(F.deletions=[B],F.flags|=16):Q.push(B)}}function u(F,B){if(!t)return null;for(;B!==null;)r(F,B),B=B.sibling;return null}function l(F){for(var B=new Map;F!==null;)F.key!==null?B.set(F.key,F):B.set(F.index,F),F=F.sibling;return B}function c(F,B){return F=Pa(F,B),F.index=0,F.sibling=null,F}function m(F,B,Q){return F.index=Q,t?(Q=F.alternate,Q!==null?(Q=Q.index,Q<B?(F.flags|=33554434,B):Q):(F.flags|=33554434,B)):(F.flags|=1048576,B)}function S(F){return t&&F.alternate===null&&(F.flags|=33554434),F}function R(F,B,Q,ie){return B===null||B.tag!==6?(B=Yd(Q,F.mode,ie),B.return=F,B):(B=c(B,Q),B.return=F,B)}function N(F,B,Q,ie){var ge=Q.type;return ge===h?te(F,B,Q.props.children,ie,Q.key):B!==null&&(B.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===A&&ng(ge)===B.type)?(B=c(B,Q.props),Ml(B,Q),B.return=F,B):(B=$o(Q.type,Q.key,Q.props,null,F.mode,ie),Ml(B,Q),B.return=F,B)}function P(F,B,Q,ie){return B===null||B.tag!==4||B.stateNode.containerInfo!==Q.containerInfo||B.stateNode.implementation!==Q.implementation?(B=Qd(Q,F.mode,ie),B.return=F,B):(B=c(B,Q.children||[]),B.return=F,B)}function te(F,B,Q,ie,ge){return B===null||B.tag!==7?(B=Ui(Q,F.mode,ie,ge),B.return=F,B):(B=c(B,Q),B.return=F,B)}function ue(F,B,Q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Yd(""+B,F.mode,Q),B.return=F,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case f:return Q=$o(B.type,B.key,B.props,null,F.mode,Q),Ml(Q,B),Q.return=F,Q;case d:return B=Qd(B,F.mode,Q),B.return=F,B;case A:var ie=B._init;return B=ie(B._payload),ue(F,B,Q)}if(de(B)||q(B))return B=Ui(B,F.mode,Q,null),B.return=F,B;if(typeof B.then=="function")return ue(F,bo(B),Q);if(B.$$typeof===v)return ue(F,Lo(F,B),Q);So(F,B)}return null}function Z(F,B,Q,ie){var ge=B!==null?B.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ge!==null?null:R(F,B,""+Q,ie);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case f:return Q.key===ge?N(F,B,Q,ie):null;case d:return Q.key===ge?P(F,B,Q,ie):null;case A:return ge=Q._init,Q=ge(Q._payload),Z(F,B,Q,ie)}if(de(Q)||q(Q))return ge!==null?null:te(F,B,Q,ie,null);if(typeof Q.then=="function")return Z(F,B,bo(Q),ie);if(Q.$$typeof===v)return Z(F,B,Lo(F,Q),ie);So(F,Q)}return null}function W(F,B,Q,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return F=F.get(Q)||null,R(B,F,""+ie,ge);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case f:return F=F.get(ie.key===null?Q:ie.key)||null,N(B,F,ie,ge);case d:return F=F.get(ie.key===null?Q:ie.key)||null,P(B,F,ie,ge);case A:var ke=ie._init;return ie=ke(ie._payload),W(F,B,Q,ie,ge)}if(de(ie)||q(ie))return F=F.get(Q)||null,te(B,F,ie,ge,null);if(typeof ie.then=="function")return W(F,B,Q,bo(ie),ge);if(ie.$$typeof===v)return W(F,B,Q,Lo(B,ie),ge);So(B,ie)}return null}function xe(F,B,Q,ie){for(var ge=null,ke=null,Oe=B,Ae=B=0,Yt=null;Oe!==null&&Ae<Q.length;Ae++){Oe.index>Ae?(Yt=Oe,Oe=null):Yt=Oe.sibling;var We=Z(F,Oe,Q[Ae],ie);if(We===null){Oe===null&&(Oe=Yt);break}t&&Oe&&We.alternate===null&&r(F,Oe),B=m(We,B,Ae),ke===null?ge=We:ke.sibling=We,ke=We,Oe=Yt}if(Ae===Q.length)return u(F,Oe),Je&&Ti(F,Ae),ge;if(Oe===null){for(;Ae<Q.length;Ae++)Oe=ue(F,Q[Ae],ie),Oe!==null&&(B=m(Oe,B,Ae),ke===null?ge=Oe:ke.sibling=Oe,ke=Oe);return Je&&Ti(F,Ae),ge}for(Oe=l(Oe);Ae<Q.length;Ae++)Yt=W(Oe,F,Ae,Q[Ae],ie),Yt!==null&&(t&&Yt.alternate!==null&&Oe.delete(Yt.key===null?Ae:Yt.key),B=m(Yt,B,Ae),ke===null?ge=Yt:ke.sibling=Yt,ke=Yt);return t&&Oe.forEach(function(Ga){return r(F,Ga)}),Je&&Ti(F,Ae),ge}function ze(F,B,Q,ie){if(Q==null)throw Error(i(151));for(var ge=null,ke=null,Oe=B,Ae=B=0,Yt=null,We=Q.next();Oe!==null&&!We.done;Ae++,We=Q.next()){Oe.index>Ae?(Yt=Oe,Oe=null):Yt=Oe.sibling;var Ga=Z(F,Oe,We.value,ie);if(Ga===null){Oe===null&&(Oe=Yt);break}t&&Oe&&Ga.alternate===null&&r(F,Oe),B=m(Ga,B,Ae),ke===null?ge=Ga:ke.sibling=Ga,ke=Ga,Oe=Yt}if(We.done)return u(F,Oe),Je&&Ti(F,Ae),ge;if(Oe===null){for(;!We.done;Ae++,We=Q.next())We=ue(F,We.value,ie),We!==null&&(B=m(We,B,Ae),ke===null?ge=We:ke.sibling=We,ke=We);return Je&&Ti(F,Ae),ge}for(Oe=l(Oe);!We.done;Ae++,We=Q.next())We=W(Oe,F,Ae,We.value,ie),We!==null&&(t&&We.alternate!==null&&Oe.delete(We.key===null?Ae:We.key),B=m(We,B,Ae),ke===null?ge=We:ke.sibling=We,ke=We);return t&&Oe.forEach(function(Hw){return r(F,Hw)}),Je&&Ti(F,Ae),ge}function Ct(F,B,Q,ie){if(typeof Q=="object"&&Q!==null&&Q.type===h&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case f:e:{for(var ge=Q.key;B!==null;){if(B.key===ge){if(ge=Q.type,ge===h){if(B.tag===7){u(F,B.sibling),ie=c(B,Q.props.children),ie.return=F,F=ie;break e}}else if(B.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===A&&ng(ge)===B.type){u(F,B.sibling),ie=c(B,Q.props),Ml(ie,Q),ie.return=F,F=ie;break e}u(F,B);break}else r(F,B);B=B.sibling}Q.type===h?(ie=Ui(Q.props.children,F.mode,ie,Q.key),ie.return=F,F=ie):(ie=$o(Q.type,Q.key,Q.props,null,F.mode,ie),Ml(ie,Q),ie.return=F,F=ie)}return S(F);case d:e:{for(ge=Q.key;B!==null;){if(B.key===ge)if(B.tag===4&&B.stateNode.containerInfo===Q.containerInfo&&B.stateNode.implementation===Q.implementation){u(F,B.sibling),ie=c(B,Q.children||[]),ie.return=F,F=ie;break e}else{u(F,B);break}else r(F,B);B=B.sibling}ie=Qd(Q,F.mode,ie),ie.return=F,F=ie}return S(F);case A:return ge=Q._init,Q=ge(Q._payload),Ct(F,B,Q,ie)}if(de(Q))return xe(F,B,Q,ie);if(q(Q)){if(ge=q(Q),typeof ge!="function")throw Error(i(150));return Q=ge.call(Q),ze(F,B,Q,ie)}if(typeof Q.then=="function")return Ct(F,B,bo(Q),ie);if(Q.$$typeof===v)return Ct(F,B,Lo(F,Q),ie);So(F,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,B!==null&&B.tag===6?(u(F,B.sibling),ie=c(B,Q),ie.return=F,F=ie):(u(F,B),ie=Yd(Q,F.mode,ie),ie.return=F,F=ie),S(F)):u(F,B)}return function(F,B,Q,ie){try{Al=0;var ge=Ct(F,B,Q,ie);return gu=null,ge}catch(Oe){if(Oe===Rl)throw Oe;var ke=In(29,Oe,null,F.mode);return ke.lanes=ie,ke.return=F,ke}finally{}}}var Di=rg(!0),ag=rg(!1),vu=_e(null),xo=_e(0);function ig(t,r){t=la,Ne(xo,t),Ne(vu,r),la=t|r.baseLanes}function Jf(){Ne(xo,la),Ne(vu,vu.current)}function Wf(){la=xo.current,je(vu),je(xo)}var Kn=_e(null),Tr=null;function Aa(t){var r=t.alternate;Ne($t,$t.current&1),Ne(Kn,t),Tr===null&&(r===null||vu.current!==null||r.memoizedState!==null)&&(Tr=t)}function ug(t){if(t.tag===22){if(Ne($t,$t.current),Ne(Kn,t),Tr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Tr=t)}}else Ma()}function Ma(){Ne($t,$t.current),Ne(Kn,Kn.current)}function Ir(t){je(Kn),Tr===t&&(Tr=null),je($t)}var $t=_e(0);function Eo(t){for(var r=t;r!==null;){if(r.tag===13){var u=r.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var wE=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(u,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(u){return u()})}},OE=e.unstable_scheduleCallback,CE=e.unstable_NormalPriority,Bt={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ed(){return{controller:new wE,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&OE(CE,function(){t.controller.abort()})}var _l=null,td=0,bu=0,Su=null;function TE(t,r){if(_l===null){var u=_l=[];td=0,bu=lh(),Su={status:"pending",value:void 0,then:function(l){u.push(l)}}}return td++,r.then(lg,lg),r}function lg(){if(--td===0&&_l!==null){Su!==null&&(Su.status="fulfilled");var t=_l;_l=null,bu=0,Su=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function RE(t,r){var u=[],l={status:"pending",value:null,reason:null,then:function(c){u.push(c)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var c=0;c<u.length;c++)(0,u[c])(r)},function(c){for(l.status="rejected",l.reason=c,c=0;c<u.length;c++)(0,u[c])(void 0)}),l}var sg=z.S;z.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&TE(t,r),sg!==null&&sg(t,r)};var Ai=_e(null);function nd(){var t=Ai.current;return t!==null?t:dt.pooledCache}function wo(t,r){r===null?Ne(Ai,Ai.current):Ne(Ai,r.pool)}function og(){var t=nd();return t===null?null:{parent:Bt._currentValue,pool:t}}var ja=0,Pe=null,at=null,_t=null,Oo=!1,xu=!1,Mi=!1,Co=0,Nl=0,Eu=null,DE=0;function At(){throw Error(i(321))}function rd(t,r){if(r===null)return!1;for(var u=0;u<r.length&&u<t.length;u++)if(!An(t[u],r[u]))return!1;return!0}function ad(t,r,u,l,c,m){return ja=m,Pe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=t===null||t.memoizedState===null?ji:_a,Mi=!1,m=u(l,c),Mi=!1,xu&&(m=fg(r,u,l,c)),cg(t),m}function cg(t){z.H=Rr;var r=at!==null&&at.next!==null;if(ja=0,_t=at=Pe=null,Oo=!1,Nl=0,Eu=null,r)throw Error(i(300));t===null||Ft||(t=t.dependencies,t!==null&&zo(t)&&(Ft=!0))}function fg(t,r,u,l){Pe=t;var c=0;do{if(xu&&(Eu=null),Nl=0,xu=!1,25<=c)throw Error(i(301));if(c+=1,_t=at=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}z.H=_i,m=r(u,l)}while(xu);return m}function AE(){var t=z.H,r=t.useState()[0];return r=typeof r.then=="function"?zl(r):r,t=t.useState()[0],(at!==null?at.memoizedState:null)!==t&&(Pe.flags|=1024),r}function id(){var t=Co!==0;return Co=0,t}function ud(t,r,u){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~u}function ld(t){if(Oo){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Oo=!1}ja=0,_t=at=Pe=null,xu=!1,Nl=Co=0,Eu=null}function wn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Pe.memoizedState=_t=t:_t=_t.next=t,_t}function Nt(){if(at===null){var t=Pe.alternate;t=t!==null?t.memoizedState:null}else t=at.next;var r=_t===null?Pe.memoizedState:_t.next;if(r!==null)_t=r,at=t;else{if(t===null)throw Pe.alternate===null?Error(i(467)):Error(i(310));at=t,t={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},_t===null?Pe.memoizedState=_t=t:_t=_t.next=t}return _t}var To;To=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function zl(t){var r=Nl;return Nl+=1,Eu===null&&(Eu=[]),t=eg(Eu,t,r),r=Pe,(_t===null?r.memoizedState:_t.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?ji:_a),t}function Ro(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return zl(t);if(t.$$typeof===v)return rn(t)}throw Error(i(438,String(t)))}function sd(t){var r=null,u=Pe.updateQueue;if(u!==null&&(r=u.memoCache),r==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(c){return c.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),u===null&&(u=To(),Pe.updateQueue=u),u.memoCache=r,u=r.data[r.index],u===void 0)for(u=r.data[r.index]=Array(t),l=0;l<t;l++)u[l]=_;return r.index++,u}function Jr(t,r){return typeof r=="function"?r(t):r}function Do(t){var r=Nt();return od(r,at,t)}function od(t,r,u){var l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=u;var c=t.baseQueue,m=l.pending;if(m!==null){if(c!==null){var S=c.next;c.next=m.next,m.next=S}r.baseQueue=c=m,l.pending=null}if(m=t.baseState,c===null)t.memoizedState=m;else{r=c.next;var R=S=null,N=null,P=r,te=!1;do{var ue=P.lane&-536870913;if(ue!==P.lane?(Ze&ue)===ue:(ja&ue)===ue){var Z=P.revertLane;if(Z===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ue===bu&&(te=!0);else if((ja&Z)===Z){P=P.next,Z===bu&&(te=!0);continue}else ue={lane:0,revertLane:P.revertLane,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},N===null?(R=N=ue,S=m):N=N.next=ue,Pe.lanes|=Z,qa|=Z;ue=P.action,Mi&&u(m,ue),m=P.hasEagerState?P.eagerState:u(m,ue)}else Z={lane:ue,revertLane:P.revertLane,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},N===null?(R=N=Z,S=m):N=N.next=Z,Pe.lanes|=ue,qa|=ue;P=P.next}while(P!==null&&P!==r);if(N===null?S=m:N.next=R,!An(m,t.memoizedState)&&(Ft=!0,te&&(u=Su,u!==null)))throw u;t.memoizedState=m,t.baseState=S,t.baseQueue=N,l.lastRenderedState=m}return c===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function cd(t){var r=Nt(),u=r.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=t;var l=u.dispatch,c=u.pending,m=r.memoizedState;if(c!==null){u.pending=null;var S=c=c.next;do m=t(m,S.action),S=S.next;while(S!==c);An(m,r.memoizedState)||(Ft=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),u.lastRenderedState=m}return[m,l]}function dg(t,r,u){var l=Pe,c=Nt(),m=Je;if(m){if(u===void 0)throw Error(i(407));u=u()}else u=r();var S=!An((at||c).memoizedState,u);if(S&&(c.memoizedState=u,Ft=!0),c=c.queue,hd(pg.bind(null,l,c,t),[t]),c.getSnapshot!==r||S||_t!==null&&_t.memoizedState.tag&1){if(l.flags|=2048,wu(9,mg.bind(null,l,c,u,r),{destroy:void 0},null),dt===null)throw Error(i(349));m||ja&60||hg(l,r,u)}return u}function hg(t,r,u){t.flags|=16384,t={getSnapshot:r,value:u},r=Pe.updateQueue,r===null?(r=To(),Pe.updateQueue=r,r.stores=[t]):(u=r.stores,u===null?r.stores=[t]:u.push(t))}function mg(t,r,u,l){r.value=u,r.getSnapshot=l,yg(r)&&gg(t)}function pg(t,r,u){return u(function(){yg(r)&&gg(t)})}function yg(t){var r=t.getSnapshot;t=t.value;try{var u=r();return!An(t,u)}catch{return!0}}function gg(t){var r=Da(t,2);r!==null&&mn(r,t,2)}function fd(t){var r=wn();if(typeof t=="function"){var u=t;if(t=u(),Mi){Rn(!0);try{u()}finally{Rn(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:t},r}function vg(t,r,u,l){return t.baseState=u,od(t,at,typeof l=="function"?l:Jr)}function ME(t,r,u,l,c){if(jo(t))throw Error(i(485));if(t=r.action,t!==null){var m={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};z.T!==null?u(!0):m.isTransition=!1,l(m),u=r.pending,u===null?(m.next=r.pending=m,bg(r,m)):(m.next=u.next,r.pending=u.next=m)}}function bg(t,r){var u=r.action,l=r.payload,c=t.state;if(r.isTransition){var m=z.T,S={};z.T=S;try{var R=u(c,l),N=z.S;N!==null&&N(S,R),Sg(t,r,R)}catch(P){dd(t,r,P)}finally{z.T=m}}else try{m=u(c,l),Sg(t,r,m)}catch(P){dd(t,r,P)}}function Sg(t,r,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(l){xg(t,r,l)},function(l){return dd(t,r,l)}):xg(t,r,u)}function xg(t,r,u){r.status="fulfilled",r.value=u,Eg(r),t.state=u,r=t.pending,r!==null&&(u=r.next,u===r?t.pending=null:(u=u.next,r.next=u,bg(t,u)))}function dd(t,r,u){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=u,Eg(r),r=r.next;while(r!==l)}t.action=null}function Eg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function wg(t,r){return r}function Og(t,r){if(Je){var u=dt.formState;if(u!==null){e:{var l=Pe;if(Je){if(Gt){t:{for(var c=Gt,m=Cr;c.nodeType!==8;){if(!m){c=null;break t}if(c=cr(c.nextSibling),c===null){c=null;break t}}m=c.data,c=m==="F!"||m==="F"?c:null}if(c){Gt=cr(c.nextSibling),l=c.data==="F!";break e}}Ri(l)}l=!1}l&&(r=u[0])}}return u=wn(),u.memoizedState=u.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wg,lastRenderedState:r},u.queue=l,u=kg.bind(null,Pe,l),l.dispatch=u,l=fd(!1),m=vd.bind(null,Pe,!1,l.queue),l=wn(),c={state:r,dispatch:null,action:t,pending:null},l.queue=c,u=ME.bind(null,Pe,c,m,u),c.dispatch=u,l.memoizedState=t,[r,u,!1]}function Cg(t){var r=Nt();return Tg(r,at,t)}function Tg(t,r,u){r=od(t,r,wg)[0],t=Do(Jr)[0],r=typeof r=="object"&&r!==null&&typeof r.then=="function"?zl(r):r;var l=Nt(),c=l.queue,m=c.dispatch;return u!==l.memoizedState&&(Pe.flags|=2048,wu(9,jE.bind(null,c,u),{destroy:void 0},null)),[r,m,t]}function jE(t,r){t.action=r}function Rg(t){var r=Nt(),u=at;if(u!==null)return Tg(r,u,t);Nt(),r=r.memoizedState,u=Nt();var l=u.queue.dispatch;return u.memoizedState=t,[r,l,!1]}function wu(t,r,u,l){return t={tag:t,create:r,inst:u,deps:l,next:null},r=Pe.updateQueue,r===null&&(r=To(),Pe.updateQueue=r),u=r.lastEffect,u===null?r.lastEffect=t.next=t:(l=u.next,u.next=t,t.next=l,r.lastEffect=t),t}function Dg(){return Nt().memoizedState}function Ao(t,r,u,l){var c=wn();Pe.flags|=t,c.memoizedState=wu(1|r,u,{destroy:void 0},l===void 0?null:l)}function Mo(t,r,u,l){var c=Nt();l=l===void 0?null:l;var m=c.memoizedState.inst;at!==null&&l!==null&&rd(l,at.memoizedState.deps)?c.memoizedState=wu(r,u,m,l):(Pe.flags|=t,c.memoizedState=wu(1|r,u,m,l))}function Ag(t,r){Ao(8390656,8,t,r)}function hd(t,r){Mo(2048,8,t,r)}function Mg(t,r){return Mo(4,2,t,r)}function jg(t,r){return Mo(4,4,t,r)}function _g(t,r){if(typeof r=="function"){t=t();var u=r(t);return function(){typeof u=="function"?u():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Ng(t,r,u){u=u!=null?u.concat([t]):null,Mo(4,4,_g.bind(null,r,t),u)}function md(){}function zg(t,r){var u=Nt();r=r===void 0?null:r;var l=u.memoizedState;return r!==null&&rd(r,l[1])?l[0]:(u.memoizedState=[t,r],t)}function Lg(t,r){var u=Nt();r=r===void 0?null:r;var l=u.memoizedState;if(r!==null&&rd(r,l[1]))return l[0];if(l=t(),Mi){Rn(!0);try{t()}finally{Rn(!1)}}return u.memoizedState=[l,r],l}function pd(t,r,u){return u===void 0||ja&1073741824?t.memoizedState=r:(t.memoizedState=u,t=Uv(),Pe.lanes|=t,qa|=t,u)}function Hg(t,r,u,l){return An(u,r)?u:vu.current!==null?(t=pd(t,u,l),An(t,r)||(Ft=!0),t):ja&42?(t=Uv(),Pe.lanes|=t,qa|=t,r):(Ft=!0,t.memoizedState=u)}function Ug(t,r,u,l,c){var m=fe.p;fe.p=m!==0&&8>m?m:8;var S=z.T,R={};z.T=R,vd(t,!1,r,u);try{var N=c(),P=z.S;if(P!==null&&P(R,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var te=RE(N,l);Ll(t,r,te,Nn(t))}else Ll(t,r,l,Nn(t))}catch(ue){Ll(t,r,{then:function(){},status:"rejected",reason:ue},Nn())}finally{fe.p=m,z.T=S}}function _E(){}function yd(t,r,u,l){if(t.tag!==5)throw Error(i(476));var c=$g(t).queue;Ug(t,c,r,ve,u===null?_E:function(){return Bg(t),u(l)})}function $g(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:ve},next:null};var u={};return r.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:u},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Bg(t){var r=$g(t).next.queue;Ll(t,r,{},Nn())}function gd(){return rn(ts)}function Pg(){return Nt().memoizedState}function qg(){return Nt().memoizedState}function NE(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var u=Nn();t=La(u);var l=Ha(r,t,u);l!==null&&(mn(l,r,u),$l(l,r,u)),r={cache:ed()},t.payload=r;return}r=r.return}}function zE(t,r,u){var l=Nn();u={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},jo(t)?Fg(r,u):(u=Gf(t,r,u,l),u!==null&&(mn(u,t,l),Vg(u,r,l)))}function kg(t,r,u){var l=Nn();Ll(t,r,u,l)}function Ll(t,r,u,l){var c={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(jo(t))Fg(r,c);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var S=r.lastRenderedState,R=m(S,u);if(c.hasEagerState=!0,c.eagerState=R,An(R,S))return mo(t,r,c,0),dt===null&&ho(),!1}catch{}finally{}if(u=Gf(t,r,c,l),u!==null)return mn(u,t,l),Vg(u,r,l),!0}return!1}function vd(t,r,u,l){if(l={lane:2,revertLane:lh(),action:l,hasEagerState:!1,eagerState:null,next:null},jo(t)){if(r)throw Error(i(479))}else r=Gf(t,u,l,2),r!==null&&mn(r,t,2)}function jo(t){var r=t.alternate;return t===Pe||r!==null&&r===Pe}function Fg(t,r){xu=Oo=!0;var u=t.pending;u===null?r.next=r:(r.next=u.next,u.next=r),t.pending=r}function Vg(t,r,u){if(u&4194176){var l=r.lanes;l&=t.pendingLanes,u|=l,r.lanes=u,Me(t,u)}}var Rr={readContext:rn,use:Ro,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At};Rr.useCacheRefresh=At,Rr.useMemoCache=At,Rr.useHostTransitionStatus=At,Rr.useFormState=At,Rr.useActionState=At,Rr.useOptimistic=At;var ji={readContext:rn,use:Ro,useCallback:function(t,r){return wn().memoizedState=[t,r===void 0?null:r],t},useContext:rn,useEffect:Ag,useImperativeHandle:function(t,r,u){u=u!=null?u.concat([t]):null,Ao(4194308,4,_g.bind(null,r,t),u)},useLayoutEffect:function(t,r){return Ao(4194308,4,t,r)},useInsertionEffect:function(t,r){Ao(4,2,t,r)},useMemo:function(t,r){var u=wn();r=r===void 0?null:r;var l=t();if(Mi){Rn(!0);try{t()}finally{Rn(!1)}}return u.memoizedState=[l,r],l},useReducer:function(t,r,u){var l=wn();if(u!==void 0){var c=u(r);if(Mi){Rn(!0);try{u(r)}finally{Rn(!1)}}}else c=r;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=zE.bind(null,Pe,t),[l.memoizedState,t]},useRef:function(t){var r=wn();return t={current:t},r.memoizedState=t},useState:function(t){t=fd(t);var r=t.queue,u=kg.bind(null,Pe,r);return r.dispatch=u,[t.memoizedState,u]},useDebugValue:md,useDeferredValue:function(t,r){var u=wn();return pd(u,t,r)},useTransition:function(){var t=fd(!1);return t=Ug.bind(null,Pe,t.queue,!0,!1),wn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,u){var l=Pe,c=wn();if(Je){if(u===void 0)throw Error(i(407));u=u()}else{if(u=r(),dt===null)throw Error(i(349));Ze&60||hg(l,r,u)}c.memoizedState=u;var m={value:u,getSnapshot:r};return c.queue=m,Ag(pg.bind(null,l,m,t),[t]),l.flags|=2048,wu(9,mg.bind(null,l,m,u,r),{destroy:void 0},null),u},useId:function(){var t=wn(),r=dt.identifierPrefix;if(Je){var u=Zr,l=Xr;u=(l&~(1<<32-nn(l)-1)).toString(32)+u,r=":"+r+"R"+u,u=Co++,0<u&&(r+="H"+u.toString(32)),r+=":"}else u=DE++,r=":"+r+"r"+u.toString(32)+":";return t.memoizedState=r},useCacheRefresh:function(){return wn().memoizedState=NE.bind(null,Pe)}};ji.useMemoCache=sd,ji.useHostTransitionStatus=gd,ji.useFormState=Og,ji.useActionState=Og,ji.useOptimistic=function(t){var r=wn();r.memoizedState=r.baseState=t;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=u,r=vd.bind(null,Pe,!0,u),u.dispatch=r,[t,r]};var _a={readContext:rn,use:Ro,useCallback:zg,useContext:rn,useEffect:hd,useImperativeHandle:Ng,useInsertionEffect:Mg,useLayoutEffect:jg,useMemo:Lg,useReducer:Do,useRef:Dg,useState:function(){return Do(Jr)},useDebugValue:md,useDeferredValue:function(t,r){var u=Nt();return Hg(u,at.memoizedState,t,r)},useTransition:function(){var t=Do(Jr)[0],r=Nt().memoizedState;return[typeof t=="boolean"?t:zl(t),r]},useSyncExternalStore:dg,useId:Pg};_a.useCacheRefresh=qg,_a.useMemoCache=sd,_a.useHostTransitionStatus=gd,_a.useFormState=Cg,_a.useActionState=Cg,_a.useOptimistic=function(t,r){var u=Nt();return vg(u,at,t,r)};var _i={readContext:rn,use:Ro,useCallback:zg,useContext:rn,useEffect:hd,useImperativeHandle:Ng,useInsertionEffect:Mg,useLayoutEffect:jg,useMemo:Lg,useReducer:cd,useRef:Dg,useState:function(){return cd(Jr)},useDebugValue:md,useDeferredValue:function(t,r){var u=Nt();return at===null?pd(u,t,r):Hg(u,at.memoizedState,t,r)},useTransition:function(){var t=cd(Jr)[0],r=Nt().memoizedState;return[typeof t=="boolean"?t:zl(t),r]},useSyncExternalStore:dg,useId:Pg};_i.useCacheRefresh=qg,_i.useMemoCache=sd,_i.useHostTransitionStatus=gd,_i.useFormState=Rg,_i.useActionState=Rg,_i.useOptimistic=function(t,r){var u=Nt();return at!==null?vg(u,at,t,r):(u.baseState=t,[t,u.queue.dispatch])};function bd(t,r,u,l){r=t.memoizedState,u=u(l,r),u=u==null?r:K({},r,u),t.memoizedState=u,t.lanes===0&&(t.updateQueue.baseState=u)}var Sd={isMounted:function(t){return(t=t._reactInternals)?ae(t)===t:!1},enqueueSetState:function(t,r,u){t=t._reactInternals;var l=Nn(),c=La(l);c.payload=r,u!=null&&(c.callback=u),r=Ha(t,c,l),r!==null&&(mn(r,t,l),$l(r,t,l))},enqueueReplaceState:function(t,r,u){t=t._reactInternals;var l=Nn(),c=La(l);c.tag=1,c.payload=r,u!=null&&(c.callback=u),r=Ha(t,c,l),r!==null&&(mn(r,t,l),$l(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var u=Nn(),l=La(u);l.tag=2,r!=null&&(l.callback=r),r=Ha(t,l,u),r!==null&&(mn(r,t,u),$l(r,t,u))}};function Yg(t,r,u,l,c,m,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,m,S):r.prototype&&r.prototype.isPureReactComponent?!El(u,l)||!El(c,m):!0}function Qg(t,r,u,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(u,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(u,l),r.state!==t&&Sd.enqueueReplaceState(r,r.state,null)}function Ni(t,r){var u=r;if("ref"in r){u={};for(var l in r)l!=="ref"&&(u[l]=r[l])}if(t=t.defaultProps){u===r&&(u=K({},u));for(var c in t)u[c]===void 0&&(u[c]=t[c])}return u}var _o=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Gg(t){_o(t)}function Kg(t){console.error(t)}function Xg(t){_o(t)}function No(t,r){try{var u=t.onUncaughtError;u(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function Zg(t,r,u){try{var l=t.onCaughtError;l(u.value,{componentStack:u.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function xd(t,r,u){return u=La(u),u.tag=3,u.payload={element:null},u.callback=function(){No(t,r)},u}function Ig(t){return t=La(t),t.tag=3,t}function Jg(t,r,u,l){var c=u.type.getDerivedStateFromError;if(typeof c=="function"){var m=l.value;t.payload=function(){return c(m)},t.callback=function(){Zg(r,u,l)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Zg(r,u,l),typeof c!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function LE(t,r,u,l,c){if(u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=u.alternate,r!==null&&Ul(r,u,c,!0),u=Kn.current,u!==null){switch(u.tag){case 13:return Tr===null?nh():u.alternate===null&&Ot===0&&(Ot=3),u.flags&=-257,u.flags|=65536,u.lanes=c,l===If?u.flags|=16384:(r=u.updateQueue,r===null?u.updateQueue=new Set([l]):r.add(l),ah(t,l,c)),!1;case 22:return u.flags|=65536,l===If?u.flags|=16384:(r=u.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},u.updateQueue=r):(u=r.retryQueue,u===null?r.retryQueue=new Set([l]):u.add(l)),ah(t,l,c)),!1}throw Error(i(435,u.tag))}return ah(t,l,c),nh(),!1}if(Je)return r=Kn.current,r!==null?(!(r.flags&65536)&&(r.flags|=256),r.flags|=65536,r.lanes=c,l!==Zf&&(t=Error(i(422),{cause:l}),Tl(Yn(t,u)))):(l!==Zf&&(r=Error(i(423),{cause:l}),Tl(Yn(r,u))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,l=Yn(l,u),c=xd(t.stateNode,l,c),Hd(t,c),Ot!==4&&(Ot=2)),!1;var m=Error(i(520),{cause:l});if(m=Yn(m,u),Ql===null?Ql=[m]:Ql.push(m),Ot!==4&&(Ot=2),r===null)return!0;l=Yn(l,u),u=r;do{switch(u.tag){case 3:return u.flags|=65536,t=c&-c,u.lanes|=t,t=xd(u.stateNode,l,t),Hd(u,t),!1;case 1:if(r=u.type,m=u.stateNode,(u.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ka===null||!ka.has(m))))return u.flags|=65536,c&=-c,u.lanes|=c,c=Ig(c),Jg(c,t,u,l),Hd(u,c),!1}u=u.return}while(u!==null);return!1}var Wg=Error(i(461)),Ft=!1;function Kt(t,r,u,l){r.child=t===null?ag(r,null,u,l):Di(r,t.child,u,l)}function ev(t,r,u,l,c){u=u.render;var m=r.ref;if("ref"in l){var S={};for(var R in l)R!=="ref"&&(S[R]=l[R])}else S=l;return Li(r),l=ad(t,r,u,S,m,c),R=id(),t!==null&&!Ft?(ud(t,r,c),Wr(t,r,c)):(Je&&R&&Kf(r),r.flags|=1,Kt(t,r,l,c),r.child)}function tv(t,r,u,l,c){if(t===null){var m=u.type;return typeof m=="function"&&!Vd(m)&&m.defaultProps===void 0&&u.compare===null?(r.tag=15,r.type=m,nv(t,r,m,l,c)):(t=$o(u.type,null,l,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!Md(t,c)){var S=m.memoizedProps;if(u=u.compare,u=u!==null?u:El,u(S,l)&&t.ref===r.ref)return Wr(t,r,c)}return r.flags|=1,t=Pa(m,l),t.ref=r.ref,t.return=r,r.child=t}function nv(t,r,u,l,c){if(t!==null){var m=t.memoizedProps;if(El(m,l)&&t.ref===r.ref)if(Ft=!1,r.pendingProps=l=m,Md(t,c))t.flags&131072&&(Ft=!0);else return r.lanes=t.lanes,Wr(t,r,c)}return Ed(t,r,u,l,c)}function rv(t,r,u){var l=r.pendingProps,c=l.children,m=(r.stateNode._pendingVisibility&2)!==0,S=t!==null?t.memoizedState:null;if(Hl(t,r),l.mode==="hidden"||m){if(r.flags&128){if(l=S!==null?S.baseLanes|u:u,t!==null){for(c=r.child=t.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;r.childLanes=m&~l}else r.childLanes=0,r.child=null;return av(t,r,l,u)}if(u&536870912)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&wo(r,S!==null?S.cachePool:null),S!==null?ig(r,S):Jf(),ug(r);else return r.lanes=r.childLanes=536870912,av(t,r,S!==null?S.baseLanes|u:u,u)}else S!==null?(wo(r,S.cachePool),ig(r,S),Ma(),r.memoizedState=null):(t!==null&&wo(r,null),Jf(),Ma());return Kt(t,r,c,u),r.child}function av(t,r,u,l){var c=nd();return c=c===null?null:{parent:Bt._currentValue,pool:c},r.memoizedState={baseLanes:u,cachePool:c},t!==null&&wo(r,null),Jf(),ug(r),t!==null&&Ul(t,r,l,!0),null}function Hl(t,r){var u=r.ref;if(u===null)t!==null&&t.ref!==null&&(r.flags|=2097664);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(t===null||t.ref!==u)&&(r.flags|=2097664)}}function Ed(t,r,u,l,c){return Li(r),u=ad(t,r,u,l,void 0,c),l=id(),t!==null&&!Ft?(ud(t,r,c),Wr(t,r,c)):(Je&&l&&Kf(r),r.flags|=1,Kt(t,r,u,c),r.child)}function iv(t,r,u,l,c,m){return Li(r),r.updateQueue=null,u=fg(r,l,u,c),cg(t),l=id(),t!==null&&!Ft?(ud(t,r,m),Wr(t,r,m)):(Je&&l&&Kf(r),r.flags|=1,Kt(t,r,u,m),r.child)}function uv(t,r,u,l,c){if(Li(r),r.stateNode===null){var m=mu,S=u.contextType;typeof S=="object"&&S!==null&&(m=rn(S)),m=new u(l,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Sd,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=l,m.state=r.memoizedState,m.refs={},zd(r),S=u.contextType,m.context=typeof S=="object"&&S!==null?rn(S):mu,m.state=r.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(bd(r,u,S,l),m.state=r.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&Sd.enqueueReplaceState(m,m.state,null),Pl(r,l,m,c),Bl(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){m=r.stateNode;var R=r.memoizedProps,N=Ni(u,R);m.props=N;var P=m.context,te=u.contextType;S=mu,typeof te=="object"&&te!==null&&(S=rn(te));var ue=u.getDerivedStateFromProps;te=typeof ue=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=r.pendingProps!==R,te||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||P!==S)&&Qg(r,m,l,S),za=!1;var Z=r.memoizedState;m.state=Z,Pl(r,l,m,c),Bl(),P=r.memoizedState,R||Z!==P||za?(typeof ue=="function"&&(bd(r,u,ue,l),P=r.memoizedState),(N=za||Yg(r,u,N,l,Z,P,S))?(te||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=P),m.props=l,m.state=P,m.context=S,l=N):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{m=r.stateNode,Ld(t,r),S=r.memoizedProps,te=Ni(u,S),m.props=te,ue=r.pendingProps,Z=m.context,P=u.contextType,N=mu,typeof P=="object"&&P!==null&&(N=rn(P)),R=u.getDerivedStateFromProps,(P=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==ue||Z!==N)&&Qg(r,m,l,N),za=!1,Z=r.memoizedState,m.state=Z,Pl(r,l,m,c),Bl();var W=r.memoizedState;S!==ue||Z!==W||za||t!==null&&t.dependencies!==null&&zo(t.dependencies)?(typeof R=="function"&&(bd(r,u,R,l),W=r.memoizedState),(te=za||Yg(r,u,te,l,Z,W,N)||t!==null&&t.dependencies!==null&&zo(t.dependencies))?(P||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,W,N),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,W,N)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&Z===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Z===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=W),m.props=l,m.state=W,m.context=N,l=te):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&Z===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Z===t.memoizedState||(r.flags|=1024),l=!1)}return m=l,Hl(t,r),l=(r.flags&128)!==0,m||l?(m=r.stateNode,u=l&&typeof u.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&l?(r.child=Di(r,t.child,null,c),r.child=Di(r,null,u,c)):Kt(t,r,u,c),r.memoizedState=m.state,t=r.child):t=Wr(t,r,c),t}function lv(t,r,u,l){return Cl(),r.flags|=256,Kt(t,r,u,l),r.child}var wd={dehydrated:null,treeContext:null,retryLane:0};function Od(t){return{baseLanes:t,cachePool:og()}}function Cd(t,r,u){return t=t!==null?t.childLanes&~u:0,r&&(t|=Jn),t}function sv(t,r,u){var l=r.pendingProps,c=!1,m=(r.flags&128)!==0,S;if((S=m)||(S=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),S&&(c=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,t===null){if(Je){if(c?Aa(r):Ma(),Je){var R=Gt,N;if(N=R){e:{for(N=R,R=Cr;N.nodeType!==8;){if(!R){R=null;break e}if(N=cr(N.nextSibling),N===null){R=null;break e}}R=N}R!==null?(r.memoizedState={dehydrated:R,treeContext:Ci!==null?{id:Xr,overflow:Zr}:null,retryLane:536870912},N=In(18,null,null,0),N.stateNode=R,N.return=r,r.child=N,hn=r,Gt=null,N=!0):N=!1}N||Ri(r)}if(R=r.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return R.data==="$!"?r.lanes=16:r.lanes=536870912,null;Ir(r)}return R=l.children,l=l.fallback,c?(Ma(),c=r.mode,R=Rd({mode:"hidden",children:R},c),l=Ui(l,c,u,null),R.return=r,l.return=r,R.sibling=l,r.child=R,c=r.child,c.memoizedState=Od(u),c.childLanes=Cd(t,S,u),r.memoizedState=wd,l):(Aa(r),Td(r,R))}if(N=t.memoizedState,N!==null&&(R=N.dehydrated,R!==null)){if(m)r.flags&256?(Aa(r),r.flags&=-257,r=Dd(t,r,u)):r.memoizedState!==null?(Ma(),r.child=t.child,r.flags|=128,r=null):(Ma(),c=l.fallback,R=r.mode,l=Rd({mode:"visible",children:l.children},R),c=Ui(c,R,u,null),c.flags|=2,l.return=r,c.return=r,l.sibling=c,r.child=l,Di(r,t.child,null,u),l=r.child,l.memoizedState=Od(u),l.childLanes=Cd(t,S,u),r.memoizedState=wd,r=c);else if(Aa(r),R.data==="$!"){if(S=R.nextSibling&&R.nextSibling.dataset,S)var P=S.dgst;S=P,l=Error(i(419)),l.stack="",l.digest=S,Tl({value:l,source:null,stack:null}),r=Dd(t,r,u)}else if(Ft||Ul(t,r,u,!1),S=(u&t.childLanes)!==0,Ft||S){if(S=dt,S!==null){if(l=u&-u,l&42)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=l&(S.suspendedLanes|u)?0:l,l!==0&&l!==N.retryLane)throw N.retryLane=l,Da(t,l),mn(S,t,l),Wg}R.data==="$?"||nh(),r=Dd(t,r,u)}else R.data==="$?"?(r.flags|=128,r.child=t.child,r=ZE.bind(null,t),R._reactRetry=r,r=null):(t=N.treeContext,Gt=cr(R.nextSibling),hn=r,Je=!0,sr=null,Cr=!1,t!==null&&(Qn[Gn++]=Xr,Qn[Gn++]=Zr,Qn[Gn++]=Ci,Xr=t.id,Zr=t.overflow,Ci=r),r=Td(r,l.children),r.flags|=4096);return r}return c?(Ma(),c=l.fallback,R=r.mode,N=t.child,P=N.sibling,l=Pa(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&31457280,P!==null?c=Pa(P,c):(c=Ui(c,R,u,null),c.flags|=2),c.return=r,l.return=r,l.sibling=c,r.child=l,l=c,c=r.child,R=t.child.memoizedState,R===null?R=Od(u):(N=R.cachePool,N!==null?(P=Bt._currentValue,N=N.parent!==P?{parent:P,pool:P}:N):N=og(),R={baseLanes:R.baseLanes|u,cachePool:N}),c.memoizedState=R,c.childLanes=Cd(t,S,u),r.memoizedState=wd,l):(Aa(r),u=t.child,t=u.sibling,u=Pa(u,{mode:"visible",children:l.children}),u.return=r,u.sibling=null,t!==null&&(S=r.deletions,S===null?(r.deletions=[t],r.flags|=16):S.push(t)),r.child=u,r.memoizedState=null,u)}function Td(t,r){return r=Rd({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Rd(t,r){return zv(t,r,0,null)}function Dd(t,r,u){return Di(r,t.child,null,u),t=Td(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function ov(t,r,u){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),_d(t.return,r,u)}function Ad(t,r,u,l,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:u,tailMode:c}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=u,m.tailMode=c)}function cv(t,r,u){var l=r.pendingProps,c=l.revealOrder,m=l.tail;if(Kt(t,r,l.children,u),l=$t.current,l&2)l=l&1|2,r.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ov(t,u,r);else if(t.tag===19)ov(t,u,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(Ne($t,l),c){case"forwards":for(u=r.child,c=null;u!==null;)t=u.alternate,t!==null&&Eo(t)===null&&(c=u),u=u.sibling;u=c,u===null?(c=r.child,r.child=null):(c=u.sibling,u.sibling=null),Ad(r,!1,c,u,m);break;case"backwards":for(u=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&Eo(t)===null){r.child=c;break}t=c.sibling,c.sibling=u,u=c,c=t}Ad(r,!0,u,null,m);break;case"together":Ad(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Wr(t,r,u){if(t!==null&&(r.dependencies=t.dependencies),qa|=r.lanes,!(u&r.childLanes))if(t!==null){if(Ul(t,r,u,!1),(u&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,u=Pa(t,t.pendingProps),r.child=u,u.return=r;t.sibling!==null;)t=t.sibling,u=u.sibling=Pa(t,t.pendingProps),u.return=r;u.sibling=null}return r.child}function Md(t,r){return t.lanes&r?!0:(t=t.dependencies,!!(t!==null&&zo(t)))}function HE(t,r,u){switch(r.tag){case 3:Tn(r,r.stateNode.containerInfo),Na(r,Bt,t.memoizedState.cache),Cl();break;case 27:case 5:Pn(r);break;case 4:Tn(r,r.stateNode.containerInfo);break;case 10:Na(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Aa(r),r.flags|=128,null):u&r.child.childLanes?sv(t,r,u):(Aa(r),t=Wr(t,r,u),t!==null?t.sibling:null);Aa(r);break;case 19:var c=(t.flags&128)!==0;if(l=(u&r.childLanes)!==0,l||(Ul(t,r,u,!1),l=(u&r.childLanes)!==0),c){if(l)return cv(t,r,u);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ne($t,$t.current),l)break;return null;case 22:case 23:return r.lanes=0,rv(t,r,u);case 24:Na(r,Bt,t.memoizedState.cache)}return Wr(t,r,u)}function fv(t,r,u){if(t!==null)if(t.memoizedProps!==r.pendingProps)Ft=!0;else{if(!Md(t,u)&&!(r.flags&128))return Ft=!1,HE(t,r,u);Ft=!!(t.flags&131072)}else Ft=!1,Je&&r.flags&1048576&&Xy(r,go,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,c=l._init;if(l=c(l._payload),r.type=l,typeof l=="function")Vd(l)?(t=Ni(l,t),r.tag=1,r=uv(null,r,l,t,u)):(r.tag=0,r=Ed(null,r,l,t,u));else{if(l!=null){if(c=l.$$typeof,c===E){r.tag=11,r=ev(null,r,l,t,u);break e}else if(c===T){r.tag=14,r=tv(null,r,l,t,u);break e}}throw r=k(l)||l,Error(i(306,r,""))}}return r;case 0:return Ed(t,r,r.type,r.pendingProps,u);case 1:return l=r.type,c=Ni(l,r.pendingProps),uv(t,r,l,c,u);case 3:e:{if(Tn(r,r.stateNode.containerInfo),t===null)throw Error(i(387));var m=r.pendingProps;c=r.memoizedState,l=c.element,Ld(t,r),Pl(r,m,null,u);var S=r.memoizedState;if(m=S.cache,Na(r,Bt,m),m!==c.cache&&Nd(r,[Bt],u,!0),Bl(),m=S.element,c.isDehydrated)if(c={element:m,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=c,r.memoizedState=c,r.flags&256){r=lv(t,r,m,u);break e}else if(m!==l){l=Yn(Error(i(424)),r),Tl(l),r=lv(t,r,m,u);break e}else for(Gt=cr(r.stateNode.containerInfo.firstChild),hn=r,Je=!0,sr=null,Cr=!0,u=ag(r,null,m,u),r.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Cl(),m===l){r=Wr(t,r,u);break e}Kt(t,r,m,u)}r=r.child}return r;case 26:return Hl(t,r),t===null?(u=mb(r.type,null,r.pendingProps,null))?r.memoizedState=u:Je||(u=r.type,t=r.pendingProps,l=Zo(ft.current).createElement(u),l[Ce]=r,l[Be]=t,Xt(l,u,t),vt(l),r.stateNode=l):r.memoizedState=mb(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Pn(r),t===null&&Je&&(l=r.stateNode=fb(r.type,r.pendingProps,ft.current),hn=r,Cr=!0,Gt=cr(l.firstChild)),l=r.pendingProps.children,t!==null||Je?Kt(t,r,l,u):r.child=Di(r,null,l,u),Hl(t,r),r.child;case 5:return t===null&&Je&&((c=l=Gt)&&(l=dw(l,r.type,r.pendingProps,Cr),l!==null?(r.stateNode=l,hn=r,Gt=cr(l.firstChild),Cr=!1,c=!0):c=!1),c||Ri(r)),Pn(r),c=r.type,m=r.pendingProps,S=t!==null?t.memoizedProps:null,l=m.children,yh(c,m)?l=null:S!==null&&yh(c,S)&&(r.flags|=32),r.memoizedState!==null&&(c=ad(t,r,AE,null,null,u),ts._currentValue=c),Hl(t,r),Kt(t,r,l,u),r.child;case 6:return t===null&&Je&&((t=u=Gt)&&(u=hw(u,r.pendingProps,Cr),u!==null?(r.stateNode=u,hn=r,Gt=null,t=!0):t=!1),t||Ri(r)),null;case 13:return sv(t,r,u);case 4:return Tn(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Di(r,null,l,u):Kt(t,r,l,u),r.child;case 11:return ev(t,r,r.type,r.pendingProps,u);case 7:return Kt(t,r,r.pendingProps,u),r.child;case 8:return Kt(t,r,r.pendingProps.children,u),r.child;case 12:return Kt(t,r,r.pendingProps.children,u),r.child;case 10:return l=r.pendingProps,Na(r,r.type,l.value),Kt(t,r,l.children,u),r.child;case 9:return c=r.type._context,l=r.pendingProps.children,Li(r),c=rn(c),l=l(c),r.flags|=1,Kt(t,r,l,u),r.child;case 14:return tv(t,r,r.type,r.pendingProps,u);case 15:return nv(t,r,r.type,r.pendingProps,u);case 19:return cv(t,r,u);case 22:return rv(t,r,u);case 24:return Li(r),l=rn(Bt),t===null?(c=nd(),c===null&&(c=dt,m=ed(),c.pooledCache=m,m.refCount++,m!==null&&(c.pooledCacheLanes|=u),c=m),r.memoizedState={parent:l,cache:c},zd(r),Na(r,Bt,c)):(t.lanes&u&&(Ld(t,r),Pl(r,null,null,u),Bl()),c=t.memoizedState,m=r.memoizedState,c.parent!==l?(c={parent:l,cache:l},r.memoizedState=c,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=c),Na(r,Bt,l)):(l=m.cache,Na(r,Bt,l),l!==c.cache&&Nd(r,[Bt],u,!0))),Kt(t,r,r.pendingProps.children,u),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}var jd=_e(null),zi=null,ea=null;function Na(t,r,u){Ne(jd,r._currentValue),r._currentValue=u}function ta(t){t._currentValue=jd.current,je(jd)}function _d(t,r,u){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===u)break;t=t.return}}function Nd(t,r,u,l){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var m=c.dependencies;if(m!==null){var S=c.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=c;for(var N=0;N<r.length;N++)if(R.context===r[N]){m.lanes|=u,R=m.alternate,R!==null&&(R.lanes|=u),_d(m.return,u,t),l||(S=null);break e}m=R.next}}else if(c.tag===18){if(S=c.return,S===null)throw Error(i(341));S.lanes|=u,m=S.alternate,m!==null&&(m.lanes|=u),_d(S,u,t),S=null}else S=c.child;if(S!==null)S.return=c;else for(S=c;S!==null;){if(S===t){S=null;break}if(c=S.sibling,c!==null){c.return=S.return,S=c;break}S=S.return}c=S}}function Ul(t,r,u,l){t=null;for(var c=r,m=!1;c!==null;){if(!m){if(c.flags&524288)m=!0;else if(c.flags&262144)break}if(c.tag===10){var S=c.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var R=c.type;An(c.pendingProps.value,S.value)||(t!==null?t.push(R):t=[R])}}else if(c===ln.current){if(S=c.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(ts):t=[ts])}c=c.return}t!==null&&Nd(r,t,u,l),r.flags|=262144}function zo(t){for(t=t.firstContext;t!==null;){if(!An(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Li(t){zi=t,ea=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function rn(t){return dv(zi,t)}function Lo(t,r){return zi===null&&Li(t),dv(t,r)}function dv(t,r){var u=r._currentValue;if(r={context:r,memoizedValue:u,next:null},ea===null){if(t===null)throw Error(i(308));ea=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else ea=ea.next=r;return u}var za=!1;function zd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ld(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function La(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ha(t,r,u){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,St&2){var c=l.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),l.pending=r,r=po(t),Gy(t,null,u),r}return mo(t,l,r,u),po(t)}function $l(t,r,u){if(r=r.updateQueue,r!==null&&(r=r.shared,(u&4194176)!==0)){var l=r.lanes;l&=t.pendingLanes,u|=l,r.lanes=u,Me(t,u)}}function Hd(t,r){var u=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,u===l)){var c=null,m=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};m===null?c=m=S:m=m.next=S,u=u.next}while(u!==null);m===null?c=m=r:m=m.next=r}else c=m=r;u={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},t.updateQueue=u;return}t=u.lastBaseUpdate,t===null?u.firstBaseUpdate=r:t.next=r,u.lastBaseUpdate=r}var Ud=!1;function Bl(){if(Ud){var t=Su;if(t!==null)throw t}}function Pl(t,r,u,l){Ud=!1;var c=t.updateQueue;za=!1;var m=c.firstBaseUpdate,S=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var N=R,P=N.next;N.next=null,S===null?m=P:S.next=P,S=N;var te=t.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==S&&(R===null?te.firstBaseUpdate=P:R.next=P,te.lastBaseUpdate=N))}if(m!==null){var ue=c.baseState;S=0,te=P=N=null,R=m;do{var Z=R.lane&-536870913,W=Z!==R.lane;if(W?(Ze&Z)===Z:(l&Z)===Z){Z!==0&&Z===bu&&(Ud=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var xe=t,ze=R;Z=r;var Ct=u;switch(ze.tag){case 1:if(xe=ze.payload,typeof xe=="function"){ue=xe.call(Ct,ue,Z);break e}ue=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=ze.payload,Z=typeof xe=="function"?xe.call(Ct,ue,Z):xe,Z==null)break e;ue=K({},ue,Z);break e;case 2:za=!0}}Z=R.callback,Z!==null&&(t.flags|=64,W&&(t.flags|=8192),W=c.callbacks,W===null?c.callbacks=[Z]:W.push(Z))}else W={lane:Z,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(P=te=W,N=ue):te=te.next=W,S|=Z;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;W=R,R=W.next,W.next=null,c.lastBaseUpdate=W,c.shared.pending=null}}while(!0);te===null&&(N=ue),c.baseState=N,c.firstBaseUpdate=P,c.lastBaseUpdate=te,m===null&&(c.shared.lanes=0),qa|=S,t.lanes=S,t.memoizedState=ue}}function hv(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function mv(t,r){var u=t.callbacks;if(u!==null)for(t.callbacks=null,t=0;t<u.length;t++)hv(u[t],r)}function ql(t,r){try{var u=r.updateQueue,l=u!==null?u.lastEffect:null;if(l!==null){var c=l.next;u=c;do{if((u.tag&t)===t){l=void 0;var m=u.create,S=u.inst;l=m(),S.destroy=l}u=u.next}while(u!==c)}}catch(R){ot(r,r.return,R)}}function Ua(t,r,u){try{var l=r.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&t)===t){var S=l.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,c=r;var N=u;try{R()}catch(P){ot(c,N,P)}}}l=l.next}while(l!==m)}}catch(P){ot(r,r.return,P)}}function pv(t){var r=t.updateQueue;if(r!==null){var u=t.stateNode;try{mv(r,u)}catch(l){ot(t,t.return,l)}}}function yv(t,r,u){u.props=Ni(t.type,t.memoizedProps),u.state=t.memoizedState;try{u.componentWillUnmount()}catch(l){ot(t,r,l)}}function Hi(t,r){try{var u=t.ref;if(u!==null){var l=t.stateNode;switch(t.tag){case 26:case 27:case 5:var c=l;break;default:c=l}typeof u=="function"?t.refCleanup=u(c):u.current=c}}catch(m){ot(t,r,m)}}function Mn(t,r){var u=t.ref,l=t.refCleanup;if(u!==null)if(typeof l=="function")try{l()}catch(c){ot(t,r,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(c){ot(t,r,c)}else u.current=null}function gv(t){var r=t.type,u=t.memoizedProps,l=t.stateNode;try{e:switch(r){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){ot(t,t.return,c)}}function vv(t,r,u){try{var l=t.stateNode;lw(l,t.type,u,r),l[Be]=r}catch(c){ot(t,t.return,c)}}function bv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function $d(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||bv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bd(t,r,u){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?u.nodeType===8?u.parentNode.insertBefore(t,r):u.insertBefore(t,r):(u.nodeType===8?(r=u.parentNode,r.insertBefore(t,u)):(r=u,r.appendChild(t)),u=u._reactRootContainer,u!=null||r.onclick!==null||(r.onclick=Xo));else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Bd(t,r,u),t=t.sibling;t!==null;)Bd(t,r,u),t=t.sibling}function Ho(t,r,u){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?u.insertBefore(t,r):u.appendChild(t);else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Ho(t,r,u),t=t.sibling;t!==null;)Ho(t,r,u),t=t.sibling}var na=!1,wt=!1,Pd=!1,Sv=typeof WeakSet=="function"?WeakSet:Set,Vt=null,xv=!1;function UE(t,r){if(t=t.containerInfo,mh=nc,t=$y(t),kf(t)){if("selectionStart"in t)var u={start:t.selectionStart,end:t.selectionEnd};else e:{u=(u=t.ownerDocument)&&u.defaultView||window;var l=u.getSelection&&u.getSelection();if(l&&l.rangeCount!==0){u=l.anchorNode;var c=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{u.nodeType,m.nodeType}catch{u=null;break e}var S=0,R=-1,N=-1,P=0,te=0,ue=t,Z=null;t:for(;;){for(var W;ue!==u||c!==0&&ue.nodeType!==3||(R=S+c),ue!==m||l!==0&&ue.nodeType!==3||(N=S+l),ue.nodeType===3&&(S+=ue.nodeValue.length),(W=ue.firstChild)!==null;)Z=ue,ue=W;for(;;){if(ue===t)break t;if(Z===u&&++P===c&&(R=S),Z===m&&++te===l&&(N=S),(W=ue.nextSibling)!==null)break;ue=Z,Z=ue.parentNode}ue=W}u=R===-1||N===-1?null:{start:R,end:N}}else u=null}u=u||{start:0,end:0}}else u=null;for(ph={focusedElem:t,selectionRange:u},nc=!1,Vt=r;Vt!==null;)if(r=Vt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Vt=t;else for(;Vt!==null;){switch(r=Vt,m=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&m!==null){t=void 0,u=r,c=m.memoizedProps,m=m.memoizedState,l=u.stateNode;try{var xe=Ni(u.type,c,u.elementType===u.type);t=l.getSnapshotBeforeUpdate(xe,m),l.__reactInternalSnapshotBeforeUpdate=t}catch(ze){ot(u,u.return,ze)}}break;case 3:if(t&1024){if(t=r.stateNode.containerInfo,u=t.nodeType,u===9)bh(t);else if(u===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,Vt=t;break}Vt=r.return}return xe=xv,xv=!1,xe}function Ev(t,r,u){var l=u.flags;switch(u.tag){case 0:case 11:case 15:aa(t,u),l&4&&ql(5,u);break;case 1:if(aa(t,u),l&4)if(t=u.stateNode,r===null)try{t.componentDidMount()}catch(R){ot(u,u.return,R)}else{var c=Ni(u.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(c,r,t.__reactInternalSnapshotBeforeUpdate)}catch(R){ot(u,u.return,R)}}l&64&&pv(u),l&512&&Hi(u,u.return);break;case 3:if(aa(t,u),l&64&&(l=u.updateQueue,l!==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{mv(l,t)}catch(R){ot(u,u.return,R)}}break;case 26:aa(t,u),l&512&&Hi(u,u.return);break;case 27:case 5:aa(t,u),r===null&&l&4&&gv(u),l&512&&Hi(u,u.return);break;case 12:aa(t,u);break;case 13:aa(t,u),l&4&&Cv(t,u);break;case 22:if(c=u.memoizedState!==null||na,!c){r=r!==null&&r.memoizedState!==null||wt;var m=na,S=wt;na=c,(wt=r)&&!S?$a(t,u,(u.subtreeFlags&8772)!==0):aa(t,u),na=m,wt=S}l&512&&(u.memoizedProps.mode==="manual"?Hi(u,u.return):Mn(u,u.return));break;default:aa(t,u)}}function wv(t){var r=t.alternate;r!==null&&(t.alternate=null,wv(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Dn(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var zt=null,jn=!1;function ra(t,r,u){for(u=u.child;u!==null;)Ov(t,r,u),u=u.sibling}function Ov(t,r,u){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(Ta,u)}catch{}switch(u.tag){case 26:wt||Mn(u,r),ra(t,r,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:wt||Mn(u,r);var l=zt,c=jn;for(zt=u.stateNode,ra(t,r,u),u=u.stateNode,r=u.attributes;r.length;)u.removeAttributeNode(r[0]);Dn(u),zt=l,jn=c;break;case 5:wt||Mn(u,r);case 6:c=zt;var m=jn;if(zt=null,ra(t,r,u),zt=c,jn=m,zt!==null)if(jn)try{t=zt,l=u.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)}catch(S){ot(u,r,S)}else try{zt.removeChild(u.stateNode)}catch(S){ot(u,r,S)}break;case 18:zt!==null&&(jn?(r=zt,u=u.stateNode,r.nodeType===8?vh(r.parentNode,u):r.nodeType===1&&vh(r,u),is(r)):vh(zt,u.stateNode));break;case 4:l=zt,c=jn,zt=u.stateNode.containerInfo,jn=!0,ra(t,r,u),zt=l,jn=c;break;case 0:case 11:case 14:case 15:wt||Ua(2,u,r),wt||Ua(4,u,r),ra(t,r,u);break;case 1:wt||(Mn(u,r),l=u.stateNode,typeof l.componentWillUnmount=="function"&&yv(u,r,l)),ra(t,r,u);break;case 21:ra(t,r,u);break;case 22:wt||Mn(u,r),wt=(l=wt)||u.memoizedState!==null,ra(t,r,u),wt=l;break;default:ra(t,r,u)}}function Cv(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{is(t)}catch(u){ot(r,r.return,u)}}function $E(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Sv),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Sv),r;default:throw Error(i(435,t.tag))}}function qd(t,r){var u=$E(t);r.forEach(function(l){var c=IE.bind(null,t,l);u.has(l)||(u.add(l),l.then(c,c))})}function Xn(t,r){var u=r.deletions;if(u!==null)for(var l=0;l<u.length;l++){var c=u[l],m=t,S=r,R=S;e:for(;R!==null;){switch(R.tag){case 27:case 5:zt=R.stateNode,jn=!1;break e;case 3:zt=R.stateNode.containerInfo,jn=!0;break e;case 4:zt=R.stateNode.containerInfo,jn=!0;break e}R=R.return}if(zt===null)throw Error(i(160));Ov(m,S,c),zt=null,jn=!1,m=c.alternate,m!==null&&(m.return=null),c.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Tv(r,t),r=r.sibling}var or=null;function Tv(t,r){var u=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Xn(r,t),Zn(t),l&4&&(Ua(3,t,t.return),ql(3,t),Ua(5,t,t.return));break;case 1:Xn(r,t),Zn(t),l&512&&(wt||u===null||Mn(u,u.return)),l&64&&na&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(u=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=u===null?l:u.concat(l))));break;case 26:var c=or;if(Xn(r,t),Zn(t),l&512&&(wt||u===null||Mn(u,u.return)),l&4){var m=u!==null?u.memoizedState:null;if(l=t.memoizedState,u===null)if(l===null)if(t.stateNode===null){e:{l=t.type,u=t.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":m=c.getElementsByTagName("title")[0],(!m||m[ar]||m[Ce]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=c.createElement(l),c.head.insertBefore(m,c.querySelector("head > title"))),Xt(m,l,u),m[Ce]=t,vt(m),l=m;break e;case"link":var S=gb("link","href",c).get(l+(u.href||""));if(S){for(var R=0;R<S.length;R++)if(m=S[R],m.getAttribute("href")===(u.href==null?null:u.href)&&m.getAttribute("rel")===(u.rel==null?null:u.rel)&&m.getAttribute("title")===(u.title==null?null:u.title)&&m.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(R,1);break t}}m=c.createElement(l),Xt(m,l,u),c.head.appendChild(m);break;case"meta":if(S=gb("meta","content",c).get(l+(u.content||""))){for(R=0;R<S.length;R++)if(m=S[R],m.getAttribute("content")===(u.content==null?null:""+u.content)&&m.getAttribute("name")===(u.name==null?null:u.name)&&m.getAttribute("property")===(u.property==null?null:u.property)&&m.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&m.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(R,1);break t}}m=c.createElement(l),Xt(m,l,u),c.head.appendChild(m);break;default:throw Error(i(468,l))}m[Ce]=t,vt(m),l=m}t.stateNode=l}else vb(c,t.type,t.stateNode);else t.stateNode=yb(c,l,t.memoizedProps);else m!==l?(m===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):m.count--,l===null?vb(c,t.type,t.stateNode):yb(c,l,t.memoizedProps)):l===null&&t.stateNode!==null&&vv(t,t.memoizedProps,u.memoizedProps)}break;case 27:if(l&4&&t.alternate===null){c=t.stateNode,m=t.memoizedProps;try{for(var N=c.firstChild;N;){var P=N.nextSibling,te=N.nodeName;N[ar]||te==="HEAD"||te==="BODY"||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&N.rel.toLowerCase()==="stylesheet"||c.removeChild(N),N=P}for(var ue=t.type,Z=c.attributes;Z.length;)c.removeAttributeNode(Z[0]);Xt(c,ue,m),c[Ce]=t,c[Be]=m}catch(xe){ot(t,t.return,xe)}}case 5:if(Xn(r,t),Zn(t),l&512&&(wt||u===null||Mn(u,u.return)),t.flags&32){c=t.stateNode;try{lu(c,"")}catch(xe){ot(t,t.return,xe)}}l&4&&t.stateNode!=null&&(c=t.memoizedProps,vv(t,c,u!==null?u.memoizedProps:c)),l&1024&&(Pd=!0);break;case 6:if(Xn(r,t),Zn(t),l&4){if(t.stateNode===null)throw Error(i(162));l=t.memoizedProps,u=t.stateNode;try{u.nodeValue=l}catch(xe){ot(t,t.return,xe)}}break;case 3:if(Wo=null,c=or,or=Io(r.containerInfo),Xn(r,t),or=c,Zn(t),l&4&&u!==null&&u.memoizedState.isDehydrated)try{is(r.containerInfo)}catch(xe){ot(t,t.return,xe)}Pd&&(Pd=!1,Rv(t));break;case 4:l=or,or=Io(t.stateNode.containerInfo),Xn(r,t),Zn(t),or=l;break;case 12:Xn(r,t),Zn(t);break;case 13:Xn(r,t),Zn(t),t.child.flags&8192&&t.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Zd=jt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,qd(t,l)));break;case 22:if(l&512&&(wt||u===null||Mn(u,u.return)),N=t.memoizedState!==null,P=u!==null&&u.memoizedState!==null,te=na,ue=wt,na=te||N,wt=ue||P,Xn(r,t),wt=ue,na=te,Zn(t),r=t.stateNode,r._current=t,r._visibility&=-3,r._visibility|=r._pendingVisibility&2,l&8192&&(r._visibility=N?r._visibility&-2:r._visibility|1,N&&(r=na||wt,u===null||P||r||Ou(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(u=null,r=t;;){if(r.tag===5||r.tag===26||r.tag===27){if(u===null){P=u=r;try{if(c=P.stateNode,N)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{S=P.stateNode,R=P.memoizedProps.style;var W=R!=null&&R.hasOwnProperty("display")?R.display:null;S.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(xe){ot(P,P.return,xe)}}}else if(r.tag===6){if(u===null){P=r;try{P.stateNode.nodeValue=N?"":P.memoizedProps}catch(xe){ot(P,P.return,xe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;u===r&&(u=null),r=r.return}u===r&&(u=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(u=l.retryQueue,u!==null&&(l.retryQueue=null,qd(t,u))));break;case 19:Xn(r,t),Zn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,qd(t,l)));break;case 21:break;default:Xn(r,t),Zn(t)}}function Zn(t){var r=t.flags;if(r&2){try{if(t.tag!==27){e:{for(var u=t.return;u!==null;){if(bv(u)){var l=u;break e}u=u.return}throw Error(i(160))}switch(l.tag){case 27:var c=l.stateNode,m=$d(t);Ho(t,m,c);break;case 5:var S=l.stateNode;l.flags&32&&(lu(S,""),l.flags&=-33);var R=$d(t);Ho(t,R,S);break;case 3:case 4:var N=l.stateNode.containerInfo,P=$d(t);Bd(t,P,N);break;default:throw Error(i(161))}}}catch(te){ot(t,t.return,te)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Rv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;Rv(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function aa(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Ev(t,r.alternate,r),r=r.sibling}function Ou(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ua(4,r,r.return),Ou(r);break;case 1:Mn(r,r.return);var u=r.stateNode;typeof u.componentWillUnmount=="function"&&yv(r,r.return,u),Ou(r);break;case 26:case 27:case 5:Mn(r,r.return),Ou(r);break;case 22:Mn(r,r.return),r.memoizedState===null&&Ou(r);break;default:Ou(r)}t=t.sibling}}function $a(t,r,u){for(u=u&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,c=t,m=r,S=m.flags;switch(m.tag){case 0:case 11:case 15:$a(c,m,u),ql(4,m);break;case 1:if($a(c,m,u),l=m,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(P){ot(l,l.return,P)}if(l=m,c=l.updateQueue,c!==null){var R=l.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)hv(N[c],R)}catch(P){ot(l,l.return,P)}}u&&S&64&&pv(m),Hi(m,m.return);break;case 26:case 27:case 5:$a(c,m,u),u&&l===null&&S&4&&gv(m),Hi(m,m.return);break;case 12:$a(c,m,u);break;case 13:$a(c,m,u),u&&S&4&&Cv(c,m);break;case 22:m.memoizedState===null&&$a(c,m,u),Hi(m,m.return);break;default:$a(c,m,u)}r=r.sibling}}function kd(t,r){var u=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==u&&(t!=null&&t.refCount++,u!=null&&jl(u))}function Fd(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&jl(t))}function Ba(t,r,u,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Dv(t,r,u,l),r=r.sibling}function Dv(t,r,u,l){var c=r.flags;switch(r.tag){case 0:case 11:case 15:Ba(t,r,u,l),c&2048&&ql(9,r);break;case 3:Ba(t,r,u,l),c&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&jl(t)));break;case 12:if(c&2048){Ba(t,r,u,l),t=r.stateNode;try{var m=r.memoizedProps,S=m.id,R=m.onPostCommit;typeof R=="function"&&R(S,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){ot(r,r.return,N)}}else Ba(t,r,u,l);break;case 23:break;case 22:m=r.stateNode,r.memoizedState!==null?m._visibility&4?Ba(t,r,u,l):kl(t,r):m._visibility&4?Ba(t,r,u,l):(m._visibility|=4,Cu(t,r,u,l,(r.subtreeFlags&10256)!==0)),c&2048&&kd(r.alternate,r);break;case 24:Ba(t,r,u,l),c&2048&&Fd(r.alternate,r);break;default:Ba(t,r,u,l)}}function Cu(t,r,u,l,c){for(c=c&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var m=t,S=r,R=u,N=l,P=S.flags;switch(S.tag){case 0:case 11:case 15:Cu(m,S,R,N,c),ql(8,S);break;case 23:break;case 22:var te=S.stateNode;S.memoizedState!==null?te._visibility&4?Cu(m,S,R,N,c):kl(m,S):(te._visibility|=4,Cu(m,S,R,N,c)),c&&P&2048&&kd(S.alternate,S);break;case 24:Cu(m,S,R,N,c),c&&P&2048&&Fd(S.alternate,S);break;default:Cu(m,S,R,N,c)}r=r.sibling}}function kl(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var u=t,l=r,c=l.flags;switch(l.tag){case 22:kl(u,l),c&2048&&kd(l.alternate,l);break;case 24:kl(u,l),c&2048&&Fd(l.alternate,l);break;default:kl(u,l)}r=r.sibling}}var Fl=8192;function Tu(t){if(t.subtreeFlags&Fl)for(t=t.child;t!==null;)Av(t),t=t.sibling}function Av(t){switch(t.tag){case 26:Tu(t),t.flags&Fl&&t.memoizedState!==null&&Tw(or,t.memoizedState,t.memoizedProps);break;case 5:Tu(t);break;case 3:case 4:var r=or;or=Io(t.stateNode.containerInfo),Tu(t),or=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=Fl,Fl=16777216,Tu(t),Fl=r):Tu(t));break;default:Tu(t)}}function Mv(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Vl(t){var r=t.deletions;if(t.flags&16){if(r!==null)for(var u=0;u<r.length;u++){var l=r[u];Vt=l,_v(l,t)}Mv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jv(t),t=t.sibling}function jv(t){switch(t.tag){case 0:case 11:case 15:Vl(t),t.flags&2048&&Ua(9,t,t.return);break;case 3:Vl(t);break;case 12:Vl(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&4&&(t.return===null||t.return.tag!==13)?(r._visibility&=-5,Uo(t)):Vl(t);break;default:Vl(t)}}function Uo(t){var r=t.deletions;if(t.flags&16){if(r!==null)for(var u=0;u<r.length;u++){var l=r[u];Vt=l,_v(l,t)}Mv(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ua(8,r,r.return),Uo(r);break;case 22:u=r.stateNode,u._visibility&4&&(u._visibility&=-5,Uo(r));break;default:Uo(r)}t=t.sibling}}function _v(t,r){for(;Vt!==null;){var u=Vt;switch(u.tag){case 0:case 11:case 15:Ua(8,u,r);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:jl(u.memoizedState.cache)}if(l=u.child,l!==null)l.return=u,Vt=l;else e:for(u=t;Vt!==null;){l=Vt;var c=l.sibling,m=l.return;if(wv(l),l===u){Vt=null;break e}if(c!==null){c.return=m,Vt=c;break e}Vt=m}}}function BE(t,r,u,l){this.tag=t,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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(t,r,u,l){return new BE(t,r,u,l)}function Vd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pa(t,r){var u=t.alternate;return u===null?(u=In(t.tag,r,t.key,t.mode),u.elementType=t.elementType,u.type=t.type,u.stateNode=t.stateNode,u.alternate=t,t.alternate=u):(u.pendingProps=r,u.type=t.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=t.flags&31457280,u.childLanes=t.childLanes,u.lanes=t.lanes,u.child=t.child,u.memoizedProps=t.memoizedProps,u.memoizedState=t.memoizedState,u.updateQueue=t.updateQueue,r=t.dependencies,u.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},u.sibling=t.sibling,u.index=t.index,u.ref=t.ref,u.refCleanup=t.refCleanup,u}function Nv(t,r){t.flags&=31457282;var u=t.alternate;return u===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=u.childLanes,t.lanes=u.lanes,t.child=u.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=u.memoizedProps,t.memoizedState=u.memoizedState,t.updateQueue=u.updateQueue,t.type=u.type,r=u.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function $o(t,r,u,l,c,m){var S=0;if(l=t,typeof t=="function")Vd(t)&&(S=1);else if(typeof t=="string")S=Ow(t,u,Mt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case h:return Ui(u.children,c,m,r);case p:S=8,c|=24;break;case g:return t=In(12,u,r,c|2),t.elementType=g,t.lanes=m,t;case x:return t=In(13,u,r,c),t.elementType=x,t.lanes=m,t;case O:return t=In(19,u,r,c),t.elementType=O,t.lanes=m,t;case j:return zv(u,c,m,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case b:case v:S=10;break e;case y:S=9;break e;case E:S=11;break e;case T:S=14;break e;case A:S=16,l=null;break e}S=29,u=Error(i(130,t===null?"null":typeof t,"")),l=null}return r=In(S,u,r,c),r.elementType=t,r.type=l,r.lanes=m,r}function Ui(t,r,u,l){return t=In(7,t,l,r),t.lanes=u,t}function zv(t,r,u,l){t=In(22,t,l,r),t.elementType=j,t.lanes=u;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var m=c._current;if(m===null)throw Error(i(456));if(!(c._pendingVisibility&2)){var S=Da(m,2);S!==null&&(c._pendingVisibility|=2,mn(S,m,2))}},attach:function(){var m=c._current;if(m===null)throw Error(i(456));if(c._pendingVisibility&2){var S=Da(m,2);S!==null&&(c._pendingVisibility&=-3,mn(S,m,2))}}};return t.stateNode=c,t}function Yd(t,r,u){return t=In(6,t,null,r),t.lanes=u,t}function Qd(t,r,u){return r=In(4,t.children!==null?t.children:[],t.key,r),r.lanes=u,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function ia(t){t.flags|=4}function Lv(t,r){if(r.type!=="stylesheet"||r.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!bb(r)){if(r=Kn.current,r!==null&&((Ze&4194176)===Ze?Tr!==null:(Ze&62914560)!==Ze&&!(Ze&536870912)||r!==Tr))throw Dl=If,Jy;t.flags|=8192}}function Bo(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Y():536870912,t.lanes|=r,Du|=r)}function Yl(t,r){if(!Je)switch(t.tailMode){case"hidden":r=t.tail;for(var u=null;r!==null;)r.alternate!==null&&(u=r),r=r.sibling;u===null?t.tail=null:u.sibling=null;break;case"collapsed":u=t.tail;for(var l=null;u!==null;)u.alternate!==null&&(l=u),u=u.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function bt(t){var r=t.alternate!==null&&t.alternate.child===t.child,u=0,l=0;if(r)for(var c=t.child;c!==null;)u|=c.lanes|c.childLanes,l|=c.subtreeFlags&31457280,l|=c.flags&31457280,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)u|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=u,r}function PE(t,r,u){var l=r.pendingProps;switch(Xf(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(r),null;case 1:return bt(r),null;case 3:return u=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),ta(Bt),tn(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(t===null||t.child===null)&&(Ol(r)?ia(r):t===null||t.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,sr!==null&&(eh(sr),sr=null))),bt(r),null;case 26:return u=r.memoizedState,t===null?(ia(r),u!==null?(bt(r),Lv(r,u)):(bt(r),r.flags&=-16777217)):u?u!==t.memoizedState?(ia(r),bt(r),Lv(r,u)):(bt(r),r.flags&=-16777217):(t.memoizedProps!==l&&ia(r),bt(r),r.flags&=-16777217),null;case 27:be(r),u=ft.current;var c=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&ia(r);else{if(!l){if(r.stateNode===null)throw Error(i(166));return bt(r),null}t=Mt.current,Ol(r)?Zy(r):(t=fb(c,l,u),r.stateNode=t,ia(r))}return bt(r),null;case 5:if(be(r),u=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&ia(r);else{if(!l){if(r.stateNode===null)throw Error(i(166));return bt(r),null}if(t=Mt.current,Ol(r))Zy(r);else{switch(c=Zo(ft.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?c.createElement(u,{is:l.is}):c.createElement(u)}}t[Ce]=r,t[Be]=l;e:for(c=r.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r.stateNode=t;e:switch(Xt(t,u,l),u){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&ia(r)}}return bt(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&ia(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(i(166));if(t=ft.current,Ol(r)){if(t=r.stateNode,u=r.memoizedProps,l=null,c=hn,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[Ce]=r,t=!!(t.nodeValue===u||l!==null&&l.suppressHydrationWarning===!0||ib(t.nodeValue,u)),t||Ri(r)}else t=Zo(t).createTextNode(l),t[Ce]=r,r.stateNode=t}return bt(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Ol(r),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(i(318));if(c=r.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Ce]=r}else Cl(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;bt(r),c=!1}else sr!==null&&(eh(sr),sr=null),c=!0;if(!c)return r.flags&256?(Ir(r),r):(Ir(r),null)}if(Ir(r),r.flags&128)return r.lanes=u,r;if(u=l!==null,t=t!==null&&t.memoizedState!==null,u){l=r.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==c&&(l.flags|=2048)}return u!==t&&u&&(r.child.flags|=8192),Bo(r,r.updateQueue),bt(r),null;case 4:return tn(),t===null&&fh(r.stateNode.containerInfo),bt(r),null;case 10:return ta(r.type),bt(r),null;case 19:if(je($t),c=r.memoizedState,c===null)return bt(r),null;if(l=(r.flags&128)!==0,m=c.rendering,m===null)if(l)Yl(c,!1);else{if(Ot!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(m=Eo(t),m!==null){for(r.flags|=128,Yl(c,!1),t=m.updateQueue,r.updateQueue=t,Bo(r,t),r.subtreeFlags=0,t=u,u=r.child;u!==null;)Nv(u,t),u=u.sibling;return Ne($t,$t.current&1|2),r.child}t=t.sibling}c.tail!==null&&jt()>Po&&(r.flags|=128,l=!0,Yl(c,!1),r.lanes=4194304)}else{if(!l)if(t=Eo(m),t!==null){if(r.flags|=128,l=!0,t=t.updateQueue,r.updateQueue=t,Bo(r,t),Yl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Je)return bt(r),null}else 2*jt()-c.renderingStartTime>Po&&u!==536870912&&(r.flags|=128,l=!0,Yl(c,!1),r.lanes=4194304);c.isBackwards?(m.sibling=r.child,r.child=m):(t=c.last,t!==null?t.sibling=m:r.child=m,c.last=m)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=jt(),r.sibling=null,t=$t.current,Ne($t,l?t&1|2:t&1),r):(bt(r),null);case 22:case 23:return Ir(r),Wf(),l=r.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?u&536870912&&!(r.flags&128)&&(bt(r),r.subtreeFlags&6&&(r.flags|=8192)):bt(r),u=r.updateQueue,u!==null&&Bo(r,u.retryQueue),u=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==u&&(r.flags|=2048),t!==null&&je(Ai),null;case 24:return u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),ta(Bt),bt(r),null;case 25:return null}throw Error(i(156,r.tag))}function qE(t,r){switch(Xf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ta(Bt),tn(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return be(r),null;case 13:if(Ir(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Cl()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return je($t),null;case 4:return tn(),null;case 10:return ta(r.type),null;case 22:case 23:return Ir(r),Wf(),t!==null&&je(Ai),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ta(Bt),null;case 25:return null;default:return null}}function Hv(t,r){switch(Xf(r),r.tag){case 3:ta(Bt),tn();break;case 26:case 27:case 5:be(r);break;case 4:tn();break;case 13:Ir(r);break;case 19:je($t);break;case 10:ta(r.type);break;case 22:case 23:Ir(r),Wf(),t!==null&&je(Ai);break;case 24:ta(Bt)}}var kE={getCacheForType:function(t){var r=rn(Bt),u=r.data.get(t);return u===void 0&&(u=t(),r.data.set(t,u)),u}},FE=typeof WeakMap=="function"?WeakMap:Map,St=0,dt=null,Ve=null,Ze=0,ht=0,_n=null,ua=!1,Ru=!1,Gd=!1,la=0,Ot=0,qa=0,$i=0,Kd=0,Jn=0,Du=0,Ql=null,Dr=null,Xd=!1,Zd=0,Po=1/0,qo=null,ka=null,ko=!1,Bi=null,Gl=0,Id=0,Jd=null,Kl=0,Wd=null;function Nn(){if(St&2&&Ze!==0)return Ze&-Ze;if(z.T!==null){var t=bu;return t!==0?t:lh()}return Se()}function Uv(){Jn===0&&(Jn=!(Ze&536870912)||Je?H():536870912);var t=Kn.current;return t!==null&&(t.flags|=32),Jn}function mn(t,r,u){(t===dt&&ht===2||t.cancelPendingCommit!==null)&&(Au(t,0),sa(t,Ze,Jn,!1)),le(t,u),(!(St&2)||t!==dt)&&(t===dt&&(!(St&2)&&($i|=u),Ot===4&&sa(t,Ze,Jn,!1)),Ar(t))}function $v(t,r,u){if(St&6)throw Error(i(327));var l=!u&&(r&60)===0&&(r&t.expiredLanes)===0||Si(t,r),c=l?QE(t,r):rh(t,r,!0),m=l;do{if(c===0){Ru&&!l&&sa(t,r,0,!1);break}else if(c===6)sa(t,r,0,!ua);else{if(u=t.current.alternate,m&&!VE(u)){c=rh(t,r,!1),m=!1;continue}if(c===2){if(m=r,t.errorRecoveryDisabledLanes&m)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var R=t;c=Ql;var N=R.current.memoizedState.isDehydrated;if(N&&(Au(R,S).flags|=256),S=rh(R,S,!1),S!==2){if(Gd&&!N){R.errorRecoveryDisabledLanes|=m,$i|=m,c=4;break e}m=Dr,Dr=c,m!==null&&eh(m)}c=S}if(m=!1,c!==2)continue}}if(c===1){Au(t,0),sa(t,r,0,!0);break}e:{switch(l=t,c){case 0:case 1:throw Error(i(345));case 4:if((r&4194176)===r){sa(l,r,Jn,!ua);break e}break;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(l.finishedWork=u,l.finishedLanes=r,(r&62914560)===r&&(m=Zd+300-jt(),10<m)){if(sa(l,r,Jn,!ua),Yr(l,0)!==0)break e;l.timeoutHandle=sb(Bv.bind(null,l,u,Dr,qo,Xd,r,Jn,$i,Du,ua,2,-0,0),m);break e}Bv(l,u,Dr,qo,Xd,r,Jn,$i,Du,ua,0,-0,0)}}break}while(!0);Ar(t)}function eh(t){Dr===null?Dr=t:Dr.push.apply(Dr,t)}function Bv(t,r,u,l,c,m,S,R,N,P,te,ue,Z){var W=r.subtreeFlags;if((W&8192||(W&16785408)===16785408)&&(es={stylesheets:null,count:0,unsuspend:Cw},Av(r),r=Rw(),r!==null)){t.cancelPendingCommit=r(Qv.bind(null,t,u,l,c,S,R,N,1,ue,Z)),sa(t,m,S,!P);return}Qv(t,u,l,c,S,R,N,te,ue,Z)}function VE(t){for(var r=t;;){var u=r.tag;if((u===0||u===11||u===15)&&r.flags&16384&&(u=r.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var l=0;l<u.length;l++){var c=u[l],m=c.getSnapshot;c=c.value;try{if(!An(m(),c))return!1}catch{return!1}}if(u=r.child,r.subtreeFlags&16384&&u!==null)u.return=r,r=u;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function sa(t,r,u,l){r&=~Kd,r&=~$i,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var c=r;0<c;){var m=31-nn(c),S=1<<m;l[m]=-1,c&=~S}u!==0&&Ee(t,u,r)}function Fo(){return St&6?!0:(Xl(0),!1)}function th(){if(Ve!==null){if(ht===0)var t=Ve.return;else t=Ve,ea=zi=null,ld(t),gu=null,Al=0,t=Ve;for(;t!==null;)Hv(t.alternate,t),t=t.return;Ve=null}}function Au(t,r){t.finishedWork=null,t.finishedLanes=0;var u=t.timeoutHandle;u!==-1&&(t.timeoutHandle=-1,ow(u)),u=t.cancelPendingCommit,u!==null&&(t.cancelPendingCommit=null,u()),th(),dt=t,Ve=u=Pa(t.current,null),Ze=r,ht=0,_n=null,ua=!1,Ru=Si(t,r),Gd=!1,Du=Jn=Kd=$i=qa=Ot=0,Dr=Ql=null,Xd=!1,r&8&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var c=31-nn(l),m=1<<c;r|=t[c],l&=~m}return la=r,ho(),u}function Pv(t,r){Pe=null,z.H=Rr,r===Rl?(r=tg(),ht=3):r===Jy?(r=tg(),ht=4):ht=r===Wg?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,_n=r,Ve===null&&(Ot=1,No(t,Yn(r,t.current)))}function qv(){var t=z.H;return z.H=Rr,t===null?Rr:t}function kv(){var t=z.A;return z.A=kE,t}function nh(){Ot=4,ua||(Ze&4194176)!==Ze&&Kn.current!==null||(Ru=!0),!(qa&134217727)&&!($i&134217727)||dt===null||sa(dt,Ze,Jn,!1)}function rh(t,r,u){var l=St;St|=2;var c=qv(),m=kv();(dt!==t||Ze!==r)&&(qo=null,Au(t,r)),r=!1;var S=Ot;e:do try{if(ht!==0&&Ve!==null){var R=Ve,N=_n;switch(ht){case 8:th(),S=6;break e;case 3:case 2:case 6:Kn.current===null&&(r=!0);var P=ht;if(ht=0,_n=null,Mu(t,R,N,P),u&&Ru){S=0;break e}break;default:P=ht,ht=0,_n=null,Mu(t,R,N,P)}}YE(),S=Ot;break}catch(te){Pv(t,te)}while(!0);return r&&t.shellSuspendCounter++,ea=zi=null,St=l,z.H=c,z.A=m,Ve===null&&(dt=null,Ze=0,ho()),S}function YE(){for(;Ve!==null;)Fv(Ve)}function QE(t,r){var u=St;St|=2;var l=qv(),c=kv();dt!==t||Ze!==r?(qo=null,Po=jt()+500,Au(t,r)):Ru=Si(t,r);e:do try{if(ht!==0&&Ve!==null){r=Ve;var m=_n;t:switch(ht){case 1:ht=0,_n=null,Mu(t,r,m,1);break;case 2:if(Wy(m)){ht=0,_n=null,Vv(r);break}r=function(){ht===2&&dt===t&&(ht=7),Ar(t)},m.then(r,r);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Wy(m)?(ht=0,_n=null,Vv(r)):(ht=0,_n=null,Mu(t,r,m,7));break;case 5:var S=null;switch(Ve.tag){case 26:S=Ve.memoizedState;case 5:case 27:var R=Ve;if(!S||bb(S)){ht=0,_n=null;var N=R.sibling;if(N!==null)Ve=N;else{var P=R.return;P!==null?(Ve=P,Vo(P)):Ve=null}break t}}ht=0,_n=null,Mu(t,r,m,5);break;case 6:ht=0,_n=null,Mu(t,r,m,6);break;case 8:th(),Ot=6;break e;default:throw Error(i(462))}}GE();break}catch(te){Pv(t,te)}while(!0);return ea=zi=null,z.H=l,z.A=c,St=u,Ve!==null?0:(dt=null,Ze=0,ho(),Ot)}function GE(){for(;Ve!==null&&!Rt();)Fv(Ve)}function Fv(t){var r=fv(t.alternate,t,la);t.memoizedProps=t.pendingProps,r===null?Vo(t):Ve=r}function Vv(t){var r=t,u=r.alternate;switch(r.tag){case 15:case 0:r=iv(u,r,r.pendingProps,r.type,void 0,Ze);break;case 11:r=iv(u,r,r.pendingProps,r.type.render,r.ref,Ze);break;case 5:ld(r);default:Hv(u,r),r=Ve=Nv(r,la),r=fv(u,r,la)}t.memoizedProps=t.pendingProps,r===null?Vo(t):Ve=r}function Mu(t,r,u,l){ea=zi=null,ld(r),gu=null,Al=0;var c=r.return;try{if(LE(t,c,r,u,Ze)){Ot=1,No(t,Yn(u,t.current)),Ve=null;return}}catch(m){if(c!==null)throw Ve=c,m;Ot=1,No(t,Yn(u,t.current)),Ve=null;return}r.flags&32768?(Je||l===1?t=!0:Ru||Ze&536870912?t=!1:(ua=t=!0,(l===2||l===3||l===6)&&(l=Kn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Yv(r,t)):Vo(r)}function Vo(t){var r=t;do{if(r.flags&32768){Yv(r,ua);return}t=r.return;var u=PE(r.alternate,r,la);if(u!==null){Ve=u;return}if(r=r.sibling,r!==null){Ve=r;return}Ve=r=t}while(r!==null);Ot===0&&(Ot=5)}function Yv(t,r){do{var u=qE(t.alternate,t);if(u!==null){u.flags&=32767,Ve=u;return}if(u=t.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!r&&(t=t.sibling,t!==null)){Ve=t;return}Ve=t=u}while(t!==null);Ot=6,Ve=null}function Qv(t,r,u,l,c,m,S,R,N,P){var te=z.T,ue=fe.p;try{fe.p=2,z.T=null,KE(t,r,u,l,ue,c,m,S,R,N,P)}finally{z.T=te,fe.p=ue}}function KE(t,r,u,l,c,m,S,R){do ju();while(Bi!==null);if(St&6)throw Error(i(327));var N=t.finishedWork;if(l=t.finishedLanes,N===null)return null;if(t.finishedWork=null,t.finishedLanes=0,N===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var P=N.lanes|N.childLanes;if(P|=Qf,pe(t,l,P,m,S,R),t===dt&&(Ve=dt=null,Ze=0),!(N.subtreeFlags&10256)&&!(N.flags&10256)||ko||(ko=!0,Id=P,Jd=u,JE(Ca,function(){return ju(),null})),u=(N.flags&15990)!==0,N.subtreeFlags&15990||u?(u=z.T,z.T=null,m=fe.p,fe.p=2,S=St,St|=4,UE(t,N),Tv(N,t),vE(ph,t.containerInfo),nc=!!mh,ph=mh=null,t.current=N,Ev(t,N.alternate,N),sn(),St=S,fe.p=m,z.T=u):t.current=N,ko?(ko=!1,Bi=t,Gl=l):Gv(t,P),P=t.pendingLanes,P===0&&(ka=null),Ws(N.stateNode),Ar(t),r!==null)for(c=t.onRecoverableError,N=0;N<r.length;N++)P=r[N],c(P.value,{componentStack:P.stack});return Gl&3&&ju(),P=t.pendingLanes,l&4194218&&P&42?t===Wd?Kl++:(Kl=0,Wd=t):Kl=0,Xl(0),null}function Gv(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,jl(r)))}function ju(){if(Bi!==null){var t=Bi,r=Id;Id=0;var u=ye(Gl),l=z.T,c=fe.p;try{if(fe.p=32>u?32:u,z.T=null,Bi===null)var m=!1;else{u=Jd,Jd=null;var S=Bi,R=Gl;if(Bi=null,Gl=0,St&6)throw Error(i(331));var N=St;if(St|=4,jv(S.current),Dv(S,S.current,R,u),St=N,Xl(0,!1),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(Ta,S)}catch{}m=!0}return m}finally{fe.p=c,z.T=l,Gv(t,r)}}return!1}function Kv(t,r,u){r=Yn(u,r),r=xd(t.stateNode,r,2),t=Ha(t,r,2),t!==null&&(le(t,2),Ar(t))}function ot(t,r,u){if(t.tag===3)Kv(t,t,u);else for(;r!==null;){if(r.tag===3){Kv(r,t,u);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ka===null||!ka.has(l))){t=Yn(u,t),u=Ig(2),l=Ha(r,u,2),l!==null&&(Jg(u,l,r,t),le(l,2),Ar(l));break}}r=r.return}}function ah(t,r,u){var l=t.pingCache;if(l===null){l=t.pingCache=new FE;var c=new Set;l.set(r,c)}else c=l.get(r),c===void 0&&(c=new Set,l.set(r,c));c.has(u)||(Gd=!0,c.add(u),t=XE.bind(null,t,r,u),r.then(t,t))}function XE(t,r,u){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&u,t.warmLanes&=~u,dt===t&&(Ze&u)===u&&(Ot===4||Ot===3&&(Ze&62914560)===Ze&&300>jt()-Zd?!(St&2)&&Au(t,0):Kd|=u,Du===Ze&&(Du=0)),Ar(t)}function Xv(t,r){r===0&&(r=Y()),t=Da(t,r),t!==null&&(le(t,r),Ar(t))}function ZE(t){var r=t.memoizedState,u=0;r!==null&&(u=r.retryLane),Xv(t,u)}function IE(t,r){var u=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(u=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(r),Xv(t,u)}function JE(t,r){return xt(t,r)}var Yo=null,_u=null,ih=!1,Qo=!1,uh=!1,Pi=0;function Ar(t){t!==_u&&t.next===null&&(_u===null?Yo=_u=t:_u=_u.next=t),Qo=!0,ih||(ih=!0,ew(WE))}function Xl(t,r){if(!uh&&Qo){uh=!0;do for(var u=!1,l=Yo;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var m=0;else{var S=l.suspendedLanes,R=l.pingedLanes;m=(1<<31-nn(42|t)+1)-1,m&=c&~(S&~R),m=m&201326677?m&201326677|1:m?m|2:0}m!==0&&(u=!0,Jv(l,m))}else m=Ze,m=Yr(l,l===dt?m:0),!(m&3)||Si(l,m)||(u=!0,Jv(l,m));l=l.next}while(u);uh=!1}}function WE(){Qo=ih=!1;var t=0;Pi!==0&&(sw()&&(t=Pi),Pi=0);for(var r=jt(),u=null,l=Yo;l!==null;){var c=l.next,m=Zv(l,r);m===0?(l.next=null,u===null?Yo=c:u.next=c,c===null&&(_u=u)):(u=l,(t!==0||m&3)&&(Qo=!0)),l=c}Xl(t)}function Zv(t,r){for(var u=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var S=31-nn(m),R=1<<S,N=c[S];N===-1?(!(R&u)||R&l)&&(c[S]=Cf(R,r)):N<=r&&(t.expiredLanes|=R),m&=~R}if(r=dt,u=Ze,u=Yr(t,t===r?u:0),l=t.callbackNode,u===0||t===r&&ht===2||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Le(l),t.callbackNode=null,t.callbackPriority=0;if(!(u&3)||Si(t,u)){if(r=u&-u,r===t.callbackPriority)return r;switch(l!==null&&Le(l),ye(u)){case 2:case 8:u=dl;break;case 32:u=Ca;break;case 268435456:u=rr;break;default:u=Ca}return l=Iv.bind(null,t),u=xt(u,l),t.callbackPriority=r,t.callbackNode=u,r}return l!==null&&l!==null&&Le(l),t.callbackPriority=2,t.callbackNode=null,2}function Iv(t,r){var u=t.callbackNode;if(ju()&&t.callbackNode!==u)return null;var l=Ze;return l=Yr(t,t===dt?l:0),l===0?null:($v(t,l,r),Zv(t,jt()),t.callbackNode!=null&&t.callbackNode===u?Iv.bind(null,t):null)}function Jv(t,r){if(ju())return null;$v(t,r,!0)}function ew(t){cw(function(){St&6?xt(cn,t):t()})}function lh(){return Pi===0&&(Pi=H()),Pi}function Wv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:io(""+t)}function eb(t,r){var u=r.ownerDocument.createElement("input");return u.name=r.name,u.value=r.value,t.id&&u.setAttribute("form",t.id),r.parentNode.insertBefore(u,r),t=new FormData(t),u.parentNode.removeChild(u),t}function tw(t,r,u,l,c){if(r==="submit"&&u&&u.stateNode===c){var m=Wv((c[Be]||null).action),S=l.submitter;S&&(r=(r=S[Be]||null)?Wv(r.formAction):S.getAttribute("formAction"),r!==null&&(m=r,S=null));var R=new oo("action","action",null,l,c);t.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Pi!==0){var N=S?eb(c,S):new FormData(c);yd(u,{pending:!0,data:N,method:c.method,action:m},null,N)}}else typeof m=="function"&&(R.preventDefault(),N=S?eb(c,S):new FormData(c),yd(u,{pending:!0,data:N,method:c.method,action:m},m,N))},currentTarget:c}]})}}for(var sh=0;sh<Qy.length;sh++){var oh=Qy[sh],nw=oh.toLowerCase(),rw=oh[0].toUpperCase()+oh.slice(1);lr(nw,"on"+rw)}lr(qy,"onAnimationEnd"),lr(ky,"onAnimationIteration"),lr(Fy,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(SE,"onTransitionRun"),lr(xE,"onTransitionStart"),lr(EE,"onTransitionCancel"),lr(Vy,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function tb(t,r){r=(r&4)!==0;for(var u=0;u<t.length;u++){var l=t[u],c=l.event;l=l.listeners;e:{var m=void 0;if(r)for(var S=l.length-1;0<=S;S--){var R=l[S],N=R.instance,P=R.currentTarget;if(R=R.listener,N!==m&&c.isPropagationStopped())break e;m=R,c.currentTarget=P;try{m(c)}catch(te){_o(te)}c.currentTarget=null,m=N}else for(S=0;S<l.length;S++){if(R=l[S],N=R.instance,P=R.currentTarget,R=R.listener,N!==m&&c.isPropagationStopped())break e;m=R,c.currentTarget=P;try{m(c)}catch(te){_o(te)}c.currentTarget=null,m=N}}}}function Qe(t,r){var u=r[lt];u===void 0&&(u=r[lt]=new Set);var l=t+"__bubble";u.has(l)||(nb(r,t,2,!1),u.add(l))}function ch(t,r,u){var l=0;r&&(l|=4),nb(u,t,l,r)}var Go="_reactListening"+Math.random().toString(36).slice(2);function fh(t){if(!t[Go]){t[Go]=!0,xi.forEach(function(u){u!=="selectionchange"&&(aw.has(u)||ch(u,!1,t),ch(u,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Go]||(r[Go]=!0,ch("selectionchange",!1,r))}}function nb(t,r,u,l){switch(Cb(r)){case 2:var c=Mw;break;case 8:c=jw;break;default:c=Oh}u=c.bind(null,r,u,t),c=void 0,!Nf||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),l?c!==void 0?t.addEventListener(r,u,{capture:!0,passive:c}):t.addEventListener(r,u,!0):c!==void 0?t.addEventListener(r,u,{passive:c}):t.addEventListener(r,u,!1)}function dh(t,r,u,l,c){var m=l;if(!(r&1)&&!(r&2)&&l!==null)e:for(;;){if(l===null)return;var S=l.tag;if(S===3||S===4){var R=l.stateNode.containerInfo;if(R===c||R.nodeType===8&&R.parentNode===c)break;if(S===4)for(S=l.return;S!==null;){var N=S.tag;if((N===3||N===4)&&(N=S.stateNode.containerInfo,N===c||N.nodeType===8&&N.parentNode===c))return;S=S.return}for(;R!==null;){if(S=kt(R),S===null)return;if(N=S.tag,N===5||N===6||N===26||N===27){l=m=S;continue e}R=R.parentNode}}l=l.return}gy(function(){var P=m,te=jf(u),ue=[];e:{var Z=Yy.get(t);if(Z!==void 0){var W=oo,xe=t;switch(t){case"keypress":if(lo(u)===0)break e;case"keydown":case"keyup":W=I2;break;case"focusin":xe="focus",W=Uf;break;case"focusout":xe="blur",W=Uf;break;case"beforeblur":case"afterblur":W=Uf;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":W=Sy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=B2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=eE;break;case qy:case ky:case Fy:W=k2;break;case Vy:W=nE;break;case"scroll":case"scrollend":W=U2;break;case"wheel":W=aE;break;case"copy":case"cut":case"paste":W=V2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Ey;break;case"toggle":case"beforetoggle":W=uE}var ze=(r&4)!==0,Ct=!ze&&(t==="scroll"||t==="scrollend"),F=ze?Z!==null?Z+"Capture":null:Z;ze=[];for(var B=P,Q;B!==null;){var ie=B;if(Q=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||Q===null||F===null||(ie=pl(B,F),ie!=null&&ze.push(Il(B,ie,Q))),Ct)break;B=B.return}0<ze.length&&(Z=new W(Z,xe,null,u,te),ue.push({event:Z,listeners:ze}))}}if(!(r&7)){e:{if(Z=t==="mouseover"||t==="pointerover",W=t==="mouseout"||t==="pointerout",Z&&u!==Mf&&(xe=u.relatedTarget||u.fromElement)&&(kt(xe)||xe[pt]))break e;if((W||Z)&&(Z=te.window===te?te:(Z=te.ownerDocument)?Z.defaultView||Z.parentWindow:window,W?(xe=u.relatedTarget||u.toElement,W=P,xe=xe?kt(xe):null,xe!==null&&(Ct=ae(xe),ze=xe.tag,xe!==Ct||ze!==5&&ze!==27&&ze!==6)&&(xe=null)):(W=null,xe=P),W!==xe)){if(ze=Sy,ie="onMouseLeave",F="onMouseEnter",B="mouse",(t==="pointerout"||t==="pointerover")&&(ze=Ey,ie="onPointerLeave",F="onPointerEnter",B="pointer"),Ct=W==null?Z:ir(W),Q=xe==null?Z:ir(xe),Z=new ze(ie,B+"leave",W,u,te),Z.target=Ct,Z.relatedTarget=Q,ie=null,kt(te)===P&&(ze=new ze(F,B+"enter",xe,u,te),ze.target=Q,ze.relatedTarget=Ct,ie=ze),Ct=ie,W&&xe)t:{for(ze=W,F=xe,B=0,Q=ze;Q;Q=Nu(Q))B++;for(Q=0,ie=F;ie;ie=Nu(ie))Q++;for(;0<B-Q;)ze=Nu(ze),B--;for(;0<Q-B;)F=Nu(F),Q--;for(;B--;){if(ze===F||F!==null&&ze===F.alternate)break t;ze=Nu(ze),F=Nu(F)}ze=null}else ze=null;W!==null&&rb(ue,Z,W,ze,!1),xe!==null&&Ct!==null&&rb(ue,Ct,xe,ze,!0)}}e:{if(Z=P?ir(P):window,W=Z.nodeName&&Z.nodeName.toLowerCase(),W==="select"||W==="input"&&Z.type==="file")var ge=My;else if(Dy(Z))if(jy)ge=yE;else{ge=mE;var ke=hE}else W=Z.nodeName,!W||W.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?P&&Af(P.elementType)&&(ge=My):ge=pE;if(ge&&(ge=ge(t,P))){Ay(ue,ge,u,te);break e}ke&&ke(t,Z,P),t==="focusout"&&P&&Z.type==="number"&&P.memoizedProps.value!=null&&Df(Z,"number",Z.value)}switch(ke=P?ir(P):window,t){case"focusin":(Dy(ke)||ke.contentEditable==="true")&&(fu=ke,Ff=P,wl=null);break;case"focusout":wl=Ff=fu=null;break;case"mousedown":Vf=!0;break;case"contextmenu":case"mouseup":case"dragend":Vf=!1,By(ue,u,te);break;case"selectionchange":if(bE)break;case"keydown":case"keyup":By(ue,u,te)}var Oe;if(Bf)e:{switch(t){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else cu?Ty(t,u)&&(Ae="onCompositionEnd"):t==="keydown"&&u.keyCode===229&&(Ae="onCompositionStart");Ae&&(wy&&u.locale!=="ko"&&(cu||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&cu&&(Oe=vy()):(Ra=te,zf="value"in Ra?Ra.value:Ra.textContent,cu=!0)),ke=Ko(P,Ae),0<ke.length&&(Ae=new xy(Ae,t,null,u,te),ue.push({event:Ae,listeners:ke}),Oe?Ae.data=Oe:(Oe=Ry(u),Oe!==null&&(Ae.data=Oe)))),(Oe=sE?oE(t,u):cE(t,u))&&(Ae=Ko(P,"onBeforeInput"),0<Ae.length&&(ke=new xy("onBeforeInput","beforeinput",null,u,te),ue.push({event:ke,listeners:Ae}),ke.data=Oe)),tw(ue,t,P,u,te)}tb(ue,r)})}function Il(t,r,u){return{instance:t,listener:r,currentTarget:u}}function Ko(t,r){for(var u=r+"Capture",l=[];t!==null;){var c=t,m=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||m===null||(c=pl(t,u),c!=null&&l.unshift(Il(t,c,m)),c=pl(t,r),c!=null&&l.push(Il(t,c,m))),t=t.return}return l}function Nu(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rb(t,r,u,l,c){for(var m=r._reactName,S=[];u!==null&&u!==l;){var R=u,N=R.alternate,P=R.stateNode;if(R=R.tag,N!==null&&N===l)break;R!==5&&R!==26&&R!==27||P===null||(N=P,c?(P=pl(u,m),P!=null&&S.unshift(Il(u,P,N))):c||(P=pl(u,m),P!=null&&S.push(Il(u,P,N)))),u=u.return}S.length!==0&&t.push({event:r,listeners:S})}var iw=/\r\n?/g,uw=/\u0000|\uFFFD/g;function ab(t){return(typeof t=="string"?t:""+t).replace(iw,`
|
|
49
|
-
`).replace(uw,"")}function ib(t,r){return r=ab(r),ab(t)===r}function Xo(){}function it(t,r,u,l,c,m){switch(u){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||lu(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&lu(t,""+l);break;case"className":no(t,"class",l);break;case"tabIndex":no(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":no(t,u,l);break;case"style":py(t,l,m);break;case"data":if(r!=="object"){no(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||u!=="href")){t.removeAttribute(u);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(u);break}l=io(""+l),t.setAttribute(u,l);break;case"action":case"formAction":if(typeof l=="function"){t.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 m=="function"&&(u==="formAction"?(r!=="input"&&it(t,r,"name",c.name,c,null),it(t,r,"formEncType",c.formEncType,c,null),it(t,r,"formMethod",c.formMethod,c,null),it(t,r,"formTarget",c.formTarget,c,null)):(it(t,r,"encType",c.encType,c,null),it(t,r,"method",c.method,c,null),it(t,r,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(u);break}l=io(""+l),t.setAttribute(u,l);break;case"onClick":l!=null&&(t.onclick=Xo);break;case"onScroll":l!=null&&Qe("scroll",t);break;case"onScrollEnd":l!=null&&Qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(c.children!=null)throw Error(i(60));t.innerHTML=u}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}u=io(""+l),t.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"?t.setAttribute(u,""+l):t.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"?t.setAttribute(u,""):t.removeAttribute(u);break;case"capture":case"download":l===!0?t.setAttribute(u,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(u,l):t.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(u,l):t.removeAttribute(u);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(u):t.setAttribute(u,l);break;case"popover":Qe("beforetoggle",t),Qe("toggle",t),to(t,"popover",l);break;case"xlinkActuate":Kr(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kr(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kr(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kr(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kr(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kr(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kr(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":to(t,"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=L2.get(u)||u,to(t,u,l))}}function hh(t,r,u,l,c,m){switch(u){case"style":py(t,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(c.children!=null)throw Error(i(60));t.innerHTML=u}}break;case"children":typeof l=="string"?lu(t,l):(typeof l=="number"||typeof l=="bigint")&&lu(t,""+l);break;case"onScroll":l!=null&&Qe("scroll",t);break;case"onScrollEnd":l!=null&&Qe("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Xo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rt.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(c=u.endsWith("Capture"),r=u.slice(2,c?u.length-7:void 0),m=t[Be]||null,m=m!=null?m[u]:null,typeof m=="function"&&t.removeEventListener(r,m,c),typeof l=="function")){typeof m!="function"&&m!==null&&(u in t?t[u]=null:t.hasAttribute(u)&&t.removeAttribute(u)),t.addEventListener(r,l,c);break e}u in t?t[u]=l:l===!0?t.setAttribute(u,""):to(t,u,l)}}}function Xt(t,r,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",t),Qe("load",t);var l=!1,c=!1,m;for(m in u)if(u.hasOwnProperty(m)){var S=u[m];if(S!=null)switch(m){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:it(t,r,m,S,u,null)}}c&&it(t,r,"srcSet",u.srcSet,u,null),l&&it(t,r,"src",u.src,u,null);return;case"input":Qe("invalid",t);var R=m=S=c=null,N=null,P=null;for(l in u)if(u.hasOwnProperty(l)){var te=u[l];if(te!=null)switch(l){case"name":c=te;break;case"type":S=te;break;case"checked":N=te;break;case"defaultChecked":P=te;break;case"value":m=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,r));break;default:it(t,r,l,te,u,null)}}fy(t,m,R,N,P,S,c,!1),ro(t);return;case"select":Qe("invalid",t),l=S=m=null;for(c in u)if(u.hasOwnProperty(c)&&(R=u[c],R!=null))switch(c){case"value":m=R;break;case"defaultValue":S=R;break;case"multiple":l=R;default:it(t,r,c,R,u,null)}r=m,u=S,t.multiple=!!l,r!=null?uu(t,!!l,r,!1):u!=null&&uu(t,!!l,u,!0);return;case"textarea":Qe("invalid",t),m=c=l=null;for(S in u)if(u.hasOwnProperty(S)&&(R=u[S],R!=null))switch(S){case"value":l=R;break;case"defaultValue":c=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:it(t,r,S,R,u,null)}hy(t,l,c,m),ro(t);return;case"option":for(N in u)if(u.hasOwnProperty(N)&&(l=u[N],l!=null))switch(N){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:it(t,r,N,l,u,null)}return;case"dialog":Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":Qe("load",t);break;case"video":case"audio":for(l=0;l<Zl.length;l++)Qe(Zl[l],t);break;case"image":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"embed":case"source":case"link":Qe("error",t),Qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in u)if(u.hasOwnProperty(P)&&(l=u[P],l!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:it(t,r,P,l,u,null)}return;default:if(Af(r)){for(te in u)u.hasOwnProperty(te)&&(l=u[te],l!==void 0&&hh(t,r,te,l,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(l=u[R],l!=null&&it(t,r,R,l,u,null))}function lw(t,r,u,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,m=null,S=null,R=null,N=null,P=null,te=null;for(W in u){var ue=u[W];if(u.hasOwnProperty(W)&&ue!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":N=ue;default:l.hasOwnProperty(W)||it(t,r,W,null,l,ue)}}for(var Z in l){var W=l[Z];if(ue=u[Z],l.hasOwnProperty(Z)&&(W!=null||ue!=null))switch(Z){case"type":m=W;break;case"name":c=W;break;case"checked":P=W;break;case"defaultChecked":te=W;break;case"value":S=W;break;case"defaultValue":R=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,r));break;default:W!==ue&&it(t,r,Z,W,l,ue)}}Rf(t,S,R,N,P,te,m,c);return;case"select":W=S=R=Z=null;for(m in u)if(N=u[m],u.hasOwnProperty(m)&&N!=null)switch(m){case"value":break;case"multiple":W=N;default:l.hasOwnProperty(m)||it(t,r,m,null,l,N)}for(c in l)if(m=l[c],N=u[c],l.hasOwnProperty(c)&&(m!=null||N!=null))switch(c){case"value":Z=m;break;case"defaultValue":R=m;break;case"multiple":S=m;default:m!==N&&it(t,r,c,m,l,N)}r=R,u=S,l=W,Z!=null?uu(t,!!u,Z,!1):!!l!=!!u&&(r!=null?uu(t,!!u,r,!0):uu(t,!!u,u?[]:"",!1));return;case"textarea":W=Z=null;for(R in u)if(c=u[R],u.hasOwnProperty(R)&&c!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:it(t,r,R,null,l,c)}for(S in l)if(c=l[S],m=u[S],l.hasOwnProperty(S)&&(c!=null||m!=null))switch(S){case"value":Z=c;break;case"defaultValue":W=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==m&&it(t,r,S,c,l,m)}dy(t,Z,W);return;case"option":for(var xe in u)if(Z=u[xe],u.hasOwnProperty(xe)&&Z!=null&&!l.hasOwnProperty(xe))switch(xe){case"selected":t.selected=!1;break;default:it(t,r,xe,null,l,Z)}for(N in l)if(Z=l[N],W=u[N],l.hasOwnProperty(N)&&Z!==W&&(Z!=null||W!=null))switch(N){case"selected":t.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:it(t,r,N,Z,l,W)}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 ze in u)Z=u[ze],u.hasOwnProperty(ze)&&Z!=null&&!l.hasOwnProperty(ze)&&it(t,r,ze,null,l,Z);for(P in l)if(Z=l[P],W=u[P],l.hasOwnProperty(P)&&Z!==W&&(Z!=null||W!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,r));break;default:it(t,r,P,Z,l,W)}return;default:if(Af(r)){for(var Ct in u)Z=u[Ct],u.hasOwnProperty(Ct)&&Z!==void 0&&!l.hasOwnProperty(Ct)&&hh(t,r,Ct,void 0,l,Z);for(te in l)Z=l[te],W=u[te],!l.hasOwnProperty(te)||Z===W||Z===void 0&&W===void 0||hh(t,r,te,Z,l,W);return}}for(var F in u)Z=u[F],u.hasOwnProperty(F)&&Z!=null&&!l.hasOwnProperty(F)&&it(t,r,F,null,l,Z);for(ue in l)Z=l[ue],W=u[ue],!l.hasOwnProperty(ue)||Z===W||Z==null&&W==null||it(t,r,ue,Z,l,W)}var mh=null,ph=null;function Zo(t){return t.nodeType===9?t:t.ownerDocument}function ub(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lb(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function yh(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var gh=null;function sw(){var t=window.event;return t&&t.type==="popstate"?t===gh?!1:(gh=t,!0):(gh=null,!1)}var sb=typeof setTimeout=="function"?setTimeout:void 0,ow=typeof clearTimeout=="function"?clearTimeout:void 0,ob=typeof Promise=="function"?Promise:void 0,cw=typeof queueMicrotask=="function"?queueMicrotask:typeof ob<"u"?function(t){return ob.resolve(null).then(t).catch(fw)}:sb;function fw(t){setTimeout(function(){throw t})}function vh(t,r){var u=r,l=0;do{var c=u.nextSibling;if(t.removeChild(u),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(l===0){t.removeChild(c),is(r);return}l--}else u!=="$"&&u!=="$?"&&u!=="$!"||l++;u=c}while(u);is(r)}function bh(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var u=r;switch(r=r.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":bh(u),Dn(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}t.removeChild(u)}}function dw(t,r,u,l){for(;t.nodeType===1;){var c=u;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ar])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==c.rel||t.getAttribute("href")!==(c.href==null?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=cr(t.nextSibling),t===null)break}return null}function hw(t,r,u){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!u||(t=cr(t.nextSibling),t===null))return null;return t}function cr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}function cb(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var u=t.data;if(u==="$"||u==="$!"||u==="$?"){if(r===0)return t;r--}else u==="/$"&&r++}t=t.previousSibling}return null}function fb(t,r,u){switch(r=Zo(u),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}var Wn=new Map,db=new Set;function Io(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var oa=fe.d;fe.d={f:mw,r:pw,D:yw,C:gw,L:vw,m:bw,X:xw,S:Sw,M:Ew};function mw(){var t=oa.f(),r=Fo();return t||r}function pw(t){var r=Or(t);r!==null&&r.tag===5&&r.type==="form"?Bg(r):oa.r(t)}var zu=typeof document>"u"?null:document;function hb(t,r,u){var l=zu;if(l&&typeof r=="string"&&r){var c=Fn(r);c='link[rel="'+t+'"][href="'+c+'"]',typeof u=="string"&&(c+='[crossorigin="'+u+'"]'),db.has(c)||(db.add(c),t={rel:t,crossOrigin:u,href:r},l.querySelector(c)===null&&(r=l.createElement("link"),Xt(r,"link",t),vt(r),l.head.appendChild(r)))}}function yw(t){oa.D(t),hb("dns-prefetch",t,null)}function gw(t,r){oa.C(t,r),hb("preconnect",t,r)}function vw(t,r,u){oa.L(t,r,u);var l=zu;if(l&&t&&r){var c='link[rel="preload"][as="'+Fn(r)+'"]';r==="image"&&u&&u.imageSrcSet?(c+='[imagesrcset="'+Fn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(c+='[imagesizes="'+Fn(u.imageSizes)+'"]')):c+='[href="'+Fn(t)+'"]';var m=c;switch(r){case"style":m=Lu(t);break;case"script":m=Hu(t)}Wn.has(m)||(t=K({rel:"preload",href:r==="image"&&u&&u.imageSrcSet?void 0:t,as:r},u),Wn.set(m,t),l.querySelector(c)!==null||r==="style"&&l.querySelector(Jl(m))||r==="script"&&l.querySelector(Wl(m))||(r=l.createElement("link"),Xt(r,"link",t),vt(r),l.head.appendChild(r)))}}function bw(t,r){oa.m(t,r);var u=zu;if(u&&t){var l=r&&typeof r.as=="string"?r.as:"script",c='link[rel="modulepreload"][as="'+Fn(l)+'"][href="'+Fn(t)+'"]',m=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Hu(t)}if(!Wn.has(m)&&(t=K({rel:"modulepreload",href:t},r),Wn.set(m,t),u.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Wl(m)))return}l=u.createElement("link"),Xt(l,"link",t),vt(l),u.head.appendChild(l)}}}function Sw(t,r,u){oa.S(t,r,u);var l=zu;if(l&&t){var c=xn(l).hoistableStyles,m=Lu(t);r=r||"default";var S=c.get(m);if(!S){var R={loading:0,preload:null};if(S=l.querySelector(Jl(m)))R.loading=5;else{t=K({rel:"stylesheet",href:t,"data-precedence":r},u),(u=Wn.get(m))&&Sh(t,u);var N=S=l.createElement("link");vt(N),Xt(N,"link",t),N._p=new Promise(function(P,te){N.onload=P,N.onerror=te}),N.addEventListener("load",function(){R.loading|=1}),N.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Jo(S,r,l)}S={type:"stylesheet",instance:S,count:1,state:R},c.set(m,S)}}}function xw(t,r){oa.X(t,r);var u=zu;if(u&&t){var l=xn(u).hoistableScripts,c=Hu(t),m=l.get(c);m||(m=u.querySelector(Wl(c)),m||(t=K({src:t,async:!0},r),(r=Wn.get(c))&&xh(t,r),m=u.createElement("script"),vt(m),Xt(m,"link",t),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(c,m))}}function Ew(t,r){oa.M(t,r);var u=zu;if(u&&t){var l=xn(u).hoistableScripts,c=Hu(t),m=l.get(c);m||(m=u.querySelector(Wl(c)),m||(t=K({src:t,async:!0,type:"module"},r),(r=Wn.get(c))&&xh(t,r),m=u.createElement("script"),vt(m),Xt(m,"link",t),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(c,m))}}function mb(t,r,u,l){var c=(c=ft.current)?Io(c):null;if(!c)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(r=Lu(u.href),u=xn(c).hoistableStyles,l=u.get(r),l||(l={type:"style",instance:null,count:0,state:null},u.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){t=Lu(u.href);var m=xn(c).hoistableStyles,S=m.get(t);if(S||(c=c.ownerDocument||c,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,S),(m=c.querySelector(Jl(t)))&&!m._p&&(S.instance=m,S.state.loading=5),Wn.has(t)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Wn.set(t,u),m||ww(c,t,u,S.state))),r&&l===null)throw Error(i(528,""));return S}if(r&&l!==null)throw Error(i(529,""));return null;case"script":return r=u.async,u=u.src,typeof u=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Hu(u),u=xn(c).hoistableScripts,l=u.get(r),l||(l={type:"script",instance:null,count:0,state:null},u.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Lu(t){return'href="'+Fn(t)+'"'}function Jl(t){return'link[rel="stylesheet"]['+t+"]"}function pb(t){return K({},t,{"data-precedence":t.precedence,precedence:null})}function ww(t,r,u,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Xt(r,"link",u),vt(r),t.head.appendChild(r))}function Hu(t){return'[src="'+Fn(t)+'"]'}function Wl(t){return"script[async]"+t}function yb(t,r,u){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+Fn(u.href)+'"]');if(l)return r.instance=l,vt(l),l;var c=K({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),vt(l),Xt(l,"style",c),Jo(l,u.precedence,t),r.instance=l;case"stylesheet":c=Lu(u.href);var m=t.querySelector(Jl(c));if(m)return r.state.loading|=4,r.instance=m,vt(m),m;l=pb(u),(c=Wn.get(c))&&Sh(l,c),m=(t.ownerDocument||t).createElement("link"),vt(m);var S=m;return S._p=new Promise(function(R,N){S.onload=R,S.onerror=N}),Xt(m,"link",l),r.state.loading|=4,Jo(m,u.precedence,t),r.instance=m;case"script":return m=Hu(u.src),(c=t.querySelector(Wl(m)))?(r.instance=c,vt(c),c):(l=u,(c=Wn.get(m))&&(l=K({},u),xh(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),vt(c),Xt(c,"link",l),t.head.appendChild(c),r.instance=c);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&!(r.state.loading&4)&&(l=r.instance,r.state.loading|=4,Jo(l,u.precedence,t));return r.instance}function Jo(t,r,u){for(var l=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,m=c,S=0;S<l.length;S++){var R=l[S];if(R.dataset.precedence===r)m=R;else if(m!==c)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=u.nodeType===9?u.head:u,r.insertBefore(t,r.firstChild))}function Sh(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function xh(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Wo=null;function gb(t,r,u){if(Wo===null){var l=new Map,c=Wo=new Map;c.set(u,l)}else c=Wo,l=c.get(u),l||(l=new Map,c.set(u,l));if(l.has(t))return l;for(l.set(t,null),u=u.getElementsByTagName(t),c=0;c<u.length;c++){var m=u[c];if(!(m[ar]||m[Ce]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(r)||"";S=t+S;var R=l.get(S);R?R.push(m):l.set(S,[m])}}return l}function vb(t,r,u){t=t.ownerDocument||t,t.head.insertBefore(u,r==="title"?t.querySelector("head > title"):null)}function Ow(t,r,u){if(u===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function bb(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var es=null;function Cw(){}function Tw(t,r,u){if(es===null)throw Error(i(475));var l=es;if(r.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var c=Lu(u.href),m=t.querySelector(Jl(c));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ec.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=m,vt(m);return}m=t.ownerDocument||t,u=pb(u),(c=Wn.get(c))&&Sh(u,c),m=m.createElement("link"),vt(m);var S=m;S._p=new Promise(function(R,N){S.onload=R,S.onerror=N}),Xt(m,"link",u),r.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(l.count++,r=ec.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function Rw(){if(es===null)throw Error(i(475));var t=es;return t.stylesheets&&t.count===0&&Eh(t,t.stylesheets),0<t.count?function(r){var u=setTimeout(function(){if(t.stylesheets&&Eh(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(u)}}:null}function ec(){if(this.count--,this.count===0){if(this.stylesheets)Eh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var tc=null;function Eh(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,tc=new Map,r.forEach(Dw,t),tc=null,ec.call(t))}function Dw(t,r){if(!(r.state.loading&4)){var u=tc.get(t);if(u)var l=u.get(null);else{u=new Map,tc.set(t,u);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<c.length;m++){var S=c[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),l=S)}l&&u.set(null,l)}c=r.instance,S=c.getAttribute("data-precedence"),m=u.get(S)||l,m===l&&u.set(null,c),u.set(S,c),this.count++,l=ec.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),m?m.parentNode.insertBefore(c,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),r.state.loading|=4}}var ts={$$typeof:v,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function Aw(t,r,u,l,c,m,S,R){this.tag=1,this.containerInfo=t,this.finishedWork=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=J(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J(0),this.hiddenUpdates=J(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Sb(t,r,u,l,c,m,S,R,N,P,te,ue){return t=new Aw(t,r,u,S,R,N,P,ue),r=1,m===!0&&(r|=24),m=In(3,null,null,r),t.current=m,m.stateNode=t,r=ed(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:l,isDehydrated:u,cache:r},zd(m),t}function xb(t){return t?(t=mu,t):mu}function Eb(t,r,u,l,c,m){c=xb(c),l.context===null?l.context=c:l.pendingContext=c,l=La(r),l.payload={element:u},m=m===void 0?null:m,m!==null&&(l.callback=m),u=Ha(t,l,r),u!==null&&(mn(u,t,r),$l(u,t,r))}function wb(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var u=t.retryLane;t.retryLane=u!==0&&u<r?u:r}}function wh(t,r){wb(t,r),(t=t.alternate)&&wb(t,r)}function Ob(t){if(t.tag===13){var r=Da(t,67108864);r!==null&&mn(r,t,67108864),wh(t,67108864)}}var nc=!0;function Mw(t,r,u,l){var c=z.T;z.T=null;var m=fe.p;try{fe.p=2,Oh(t,r,u,l)}finally{fe.p=m,z.T=c}}function jw(t,r,u,l){var c=z.T;z.T=null;var m=fe.p;try{fe.p=8,Oh(t,r,u,l)}finally{fe.p=m,z.T=c}}function Oh(t,r,u,l){if(nc){var c=Ch(l);if(c===null)dh(t,r,l,rc,u),Tb(t,l);else if(Nw(c,t,r,u,l))l.stopPropagation();else if(Tb(t,l),r&4&&-1<_w.indexOf(t)){for(;c!==null;){var m=Or(c);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=qn(m.pendingLanes);if(S!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var N=1<<31-nn(S);R.entanglements[1]|=N,S&=~N}Ar(m),!(St&6)&&(Po=jt()+500,Xl(0))}}break;case 13:R=Da(m,2),R!==null&&mn(R,m,2),Fo(),wh(m,2)}if(m=Ch(l),m===null&&dh(t,r,l,rc,u),m===c)break;c=m}c!==null&&l.stopPropagation()}else dh(t,r,l,null,u)}}function Ch(t){return t=jf(t),Th(t)}var rc=null;function Th(t){if(rc=null,t=kt(t),t!==null){var r=ae(t);if(r===null)t=null;else{var u=r.tag;if(u===13){if(t=G(r),t!==null)return t;t=null}else if(u===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return rc=t,null}function Cb(t){switch(t){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(on()){case cn:return 2;case dl:return 8;case Ca:case wf:return 32;case rr:return 268435456;default:return 32}default:return 32}}var Rh=!1,Fa=null,Va=null,Ya=null,ns=new Map,rs=new Map,Qa=[],_w="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 Tb(t,r){switch(t){case"focusin":case"focusout":Fa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":ns.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(r.pointerId)}}function as(t,r,u,l,c,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:u,eventSystemFlags:l,nativeEvent:m,targetContainers:[c]},r!==null&&(r=Or(r),r!==null&&Ob(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function Nw(t,r,u,l,c){switch(r){case"focusin":return Fa=as(Fa,t,r,u,l,c),!0;case"dragenter":return Va=as(Va,t,r,u,l,c),!0;case"mouseover":return Ya=as(Ya,t,r,u,l,c),!0;case"pointerover":var m=c.pointerId;return ns.set(m,as(ns.get(m)||null,t,r,u,l,c)),!0;case"gotpointercapture":return m=c.pointerId,rs.set(m,as(rs.get(m)||null,t,r,u,l,c)),!0}return!1}function Rb(t){var r=kt(t.target);if(r!==null){var u=ae(r);if(u!==null){if(r=u.tag,r===13){if(r=G(u),r!==null){t.blockedOn=r,he(t.priority,function(){if(u.tag===13){var l=Nn(),c=Da(u,l);c!==null&&mn(c,u,l),wh(u,l)}});return}}else if(r===3&&u.stateNode.current.memoizedState.isDehydrated){t.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ac(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var u=Ch(t.nativeEvent);if(u===null){u=t.nativeEvent;var l=new u.constructor(u.type,u);Mf=l,u.target.dispatchEvent(l),Mf=null}else return r=Or(u),r!==null&&Ob(r),t.blockedOn=u,!1;r.shift()}return!0}function Db(t,r,u){ac(t)&&u.delete(r)}function zw(){Rh=!1,Fa!==null&&ac(Fa)&&(Fa=null),Va!==null&&ac(Va)&&(Va=null),Ya!==null&&ac(Ya)&&(Ya=null),ns.forEach(Db),rs.forEach(Db)}function ic(t,r){t.blockedOn===r&&(t.blockedOn=null,Rh||(Rh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,zw)))}var uc=null;function Ab(t){uc!==t&&(uc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){uc===t&&(uc=null);for(var r=0;r<t.length;r+=3){var u=t[r],l=t[r+1],c=t[r+2];if(typeof l!="function"){if(Th(l||u)===null)continue;break}var m=Or(u);m!==null&&(t.splice(r,3),r-=3,yd(m,{pending:!0,data:c,method:u.method,action:l},l,c))}}))}function is(t){function r(N){return ic(N,t)}Fa!==null&&ic(Fa,t),Va!==null&&ic(Va,t),Ya!==null&&ic(Ya,t),ns.forEach(r),rs.forEach(r);for(var u=0;u<Qa.length;u++){var l=Qa[u];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Qa.length&&(u=Qa[0],u.blockedOn===null);)Rb(u),u.blockedOn===null&&Qa.shift();if(u=(t.ownerDocument||t).$$reactFormReplay,u!=null)for(l=0;l<u.length;l+=3){var c=u[l],m=u[l+1],S=c[Be]||null;if(typeof m=="function")S||Ab(u);else if(S){var R=null;if(m&&m.hasAttribute("formAction")){if(c=m,S=m[Be]||null)R=S.formAction;else if(Th(c)!==null)continue}else R=S.action;typeof R=="function"?u[l+1]=R:(u.splice(l,3),l-=3),Ab(u)}}}function Dh(t){this._internalRoot=t}lc.prototype.render=Dh.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var u=r.current,l=Nn();Eb(u,l,t,r,null,null)},lc.prototype.unmount=Dh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;t.tag===0&&ju(),Eb(t.current,2,null,t,null,null),Fo(),r[pt]=null}};function lc(t){this._internalRoot=t}lc.prototype.unstable_scheduleHydration=function(t){if(t){var r=Se();t={blockedOn:null,target:t,priority:r};for(var u=0;u<Qa.length&&r!==0&&r<Qa[u].priority;u++);Qa.splice(u,0,t),u===0&&Rb(t)}};var Mb=n.version;if(Mb!=="19.0.0")throw Error(i(527,Mb,"19.0.0"));fe.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=V(r),t=t!==null?ce(t):null,t=t===null?null:t.stateNode,t};var Lw={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:z,findFiberByHostInstance:kt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{Ta=sc.inject(Lw),fn=sc}catch{}}return ls.createRoot=function(t,r){if(!s(t))throw Error(i(299));var u=!1,l="",c=Gg,m=Kg,S=Xg,R=null;return r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(R=r.unstable_transitionCallbacks)),r=Sb(t,1,!1,null,null,u,l,c,m,S,R,null),t[pt]=r.current,fh(t.nodeType===8?t.parentNode:t),new Dh(r)},ls.hydrateRoot=function(t,r,u){if(!s(t))throw Error(i(299));var l=!1,c="",m=Gg,S=Kg,R=Xg,N=null,P=null;return u!=null&&(u.unstable_strictMode===!0&&(l=!0),u.identifierPrefix!==void 0&&(c=u.identifierPrefix),u.onUncaughtError!==void 0&&(m=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(N=u.unstable_transitionCallbacks),u.formState!==void 0&&(P=u.formState)),r=Sb(t,1,!0,r,u??null,l,c,m,S,R,N,P),r.context=xb(null),u=r.current,l=Nn(),c=La(l),c.callback=null,Ha(u,c,l),r.current.lanes=l,le(r,l),Ar(r),t[pt]=r.current,fh(t),new lc(r)},ls.version="19.0.0",ls}var qb;function Yw(){if(qb)return jh.exports;qb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),jh.exports=Vw(),jh.exports}var Qw=Yw(),w=Ns();const Hr=Zc(w),Gw=Uw({__proto__:null,default:Hr},[w]);var ss={},kb;function Kw(){if(kb)return ss;kb=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.parse=f,ss.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function f(y,v){const E=new o,x=y.length;if(x<2)return E;const O=(v==null?void 0:v.decode)||g;let T=0;do{const A=y.indexOf("=",T);if(A===-1)break;const j=y.indexOf(";",T),_=j===-1?x:j;if(A>_){T=y.lastIndexOf(";",A-1)+1;continue}const C=d(y,T,A),q=h(y,A,C),U=y.slice(C,q);if(E[U]===void 0){let k=d(y,A+1,_),z=h(y,_,k);const K=O(y.slice(k,z));E[U]=K}T=_+1}while(T<x);return E}function d(y,v,E){do{const x=y.charCodeAt(v);if(x!==32&&x!==9)return v}while(++v<E);return E}function h(y,v,E){for(;v>E;){const x=y.charCodeAt(--v);if(x!==32&&x!==9)return v+1}return E}function p(y,v,E){const x=(E==null?void 0:E.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const O=x(v);if(!n.test(O))throw new TypeError(`argument val is invalid: ${v}`);let T=y+"="+O;if(!E)return T;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);T+="; Max-Age="+E.maxAge}if(E.domain){if(!a.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);T+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);T+="; Path="+E.path}if(E.expires){if(!b(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);T+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(T+="; HttpOnly"),E.secure&&(T+="; Secure"),E.partitioned&&(T+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return T}function g(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function b(y){return s.call(y)==="[object Date]"}return ss}Kw();/**
|
|
50
|
-
* react-router v7.1.2
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Fb="popstate";function Xw(e={}){function n(i,s){let{pathname:o,search:f,hash:d}=i.location;return ws("",{pathname:o,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function a(i,s){return typeof s=="string"?s:fi(s)}return Iw(n,a,null,e)}function qe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Jt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Zw(){return Math.random().toString(36).substring(2,10)}function Vb(e,n){return{usr:e.state,key:e.key,idx:n}}function ws(e,n,a=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Sa(n):n,state:a,key:n&&n.key||i||Zw()}}function fi({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Sa(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function Iw(e,n,a,i={}){let{window:s=document.defaultView,v5Compat:o=!1}=i,f=s.history,d="POP",h=null,p=g();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function g(){return(f.state||{idx:null}).idx}function b(){d="POP";let O=g(),T=O==null?null:O-p;p=O,h&&h({action:d,location:x.location,delta:T})}function y(O,T){d="PUSH";let A=ws(x.location,O,T);p=g()+1;let j=Vb(A,p),_=x.createHref(A);try{f.pushState(j,"",_)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(_)}o&&h&&h({action:d,location:x.location,delta:1})}function v(O,T){d="REPLACE";let A=ws(x.location,O,T);p=g();let j=Vb(A,p),_=x.createHref(A);f.replaceState(j,"",_),o&&h&&h({action:d,location:x.location,delta:0})}function E(O){let T=s.location.origin!=="null"?s.location.origin:s.location.href,A=typeof O=="string"?O:fi(O);return A=A.replace(/ $/,"%20"),qe(T,`No window.location.(origin|href) available to create URL for href: ${A}`),new URL(A,T)}let x={get action(){return d},get location(){return e(s,f)},listen(O){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Fb,b),h=O,()=>{s.removeEventListener(Fb,b),h=null}},createHref(O){return n(s,O)},createURL:E,encodeLocation(O){let T=E(O);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:y,replace:v,go(O){return f.go(O)}};return x}var Jw=new Set(["lazy","caseSensitive","path","id","index","children"]);function Ww(e){return e.index===!0}function Nc(e,n,a=[],i={}){return e.map((s,o)=>{let f=[...a,String(o)],d=typeof s.id=="string"?s.id:f.join("-");if(qe(s.index!==!0||!s.children,"Cannot specify children on an index route"),qe(!i[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),Ww(s)){let h={...s,...n(s),id:d};return i[d]=h,h}else{let h={...s,...n(s),id:d,children:void 0};return i[d]=h,s.children&&(h.children=Nc(s.children,n,f,i)),h}})}function Wa(e,n,a="/"){return Oc(e,n,a,!1)}function Oc(e,n,a,i){let s=typeof n=="string"?Sa(n):n,o=br(s.pathname||"/",a);if(o==null)return null;let f=z0(e);tO(f);let d=null;for(let h=0;d==null&&h<f.length;++h){let p=dO(o);d=cO(f[h],p,i)}return d}function eO(e,n){let{route:a,pathname:i,params:s}=e;return{id:a.id,pathname:i,params:s,data:n[a.id],handle:a.handle}}function z0(e,n=[],a=[],i=""){let s=(o,f,d)=>{let h={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:f,route:o};h.relativePath.startsWith("/")&&(qe(h.relativePath.startsWith(i),`Absolute route path "${h.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(i.length));let p=Ur([i,h.relativePath]),g=a.concat(h);o.children&&o.children.length>0&&(qe(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),z0(o.children,n,g,p)),!(o.path==null&&!o.index)&&n.push({path:p,score:sO(p,o.index),routesMeta:g})};return e.forEach((o,f)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))s(o,f);else for(let h of L0(o.path))s(o,f,h)}),n}function L0(e){let n=e.split("/");if(n.length===0)return[];let[a,...i]=n,s=a.endsWith("?"),o=a.replace(/\?$/,"");if(i.length===0)return s?[o,""]:[o];let f=L0(i.join("/")),d=[];return d.push(...f.map(h=>h===""?o:[o,h].join("/"))),s&&d.push(...f),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function tO(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:oO(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var nO=/^:[\w-]+$/,rO=3,aO=2,iO=1,uO=10,lO=-2,Yb=e=>e==="*";function sO(e,n){let a=e.split("/"),i=a.length;return a.some(Yb)&&(i+=lO),n&&(i+=aO),a.filter(s=>!Yb(s)).reduce((s,o)=>s+(nO.test(o)?rO:o===""?iO:uO),i)}function oO(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function cO(e,n,a=!1){let{routesMeta:i}=e,s={},o="/",f=[];for(let d=0;d<i.length;++d){let h=i[d],p=d===i.length-1,g=o==="/"?n:n.slice(o.length)||"/",b=zc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),y=h.route;if(!b&&p&&a&&!i[i.length-1].route.index&&(b=zc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!b)return null;Object.assign(s,b.params),f.push({params:s,pathname:Ur([o,b.pathname]),pathnameBase:pO(Ur([o,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(o=Ur([o,b.pathnameBase]))}return f}function zc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=fO(e.path,e.caseSensitive,e.end),s=n.match(a);if(!s)return null;let o=s[0],f=o.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:b},y)=>{if(g==="*"){let E=d[y]||"";f=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const v=d[y];return b&&!v?p[g]=void 0:p[g]=(v||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:f,pattern:e}}function fO(e,n=!1,a=!0){Jt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function dO(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Jt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function br(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}function hO(e,n="/"){let{pathname:a,search:i="",hash:s=""}=typeof e=="string"?Sa(e):e;return{pathname:a?a.startsWith("/")?a:mO(a,n):n,search:yO(i),hash:gO(s)}}function mO(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function Hh(e,n,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H0(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Xm(e){let n=H0(e);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function Zm(e,n,a,i=!1){let s;typeof e=="string"?s=Sa(e):(s={...e},qe(!s.pathname||!s.pathname.includes("?"),Hh("?","pathname","search",s)),qe(!s.pathname||!s.pathname.includes("#"),Hh("#","pathname","hash",s)),qe(!s.search||!s.search.includes("#"),Hh("#","search","hash",s)));let o=e===""||s.pathname==="",f=o?"/":s.pathname,d;if(f==null)d=a;else{let b=n.length-1;if(!i&&f.startsWith("..")){let y=f.split("/");for(;y[0]==="..";)y.shift(),b-=1;s.pathname=y.join("/")}d=b>=0?n[b]:"/"}let h=hO(s,d),p=f&&f!=="/"&&f.endsWith("/"),g=(o||f===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Ur=e=>e.join("/").replace(/\/\/+/g,"/"),pO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Lc=class{constructor(e,n,a,i=!1){this.status=e,this.statusText=n||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function Ic(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var U0=["POST","PUT","PATCH","DELETE"],vO=new Set(U0),bO=["GET",...U0],SO=new Set(bO),xO=new Set([301,302,303,307,308]),EO=new Set([307,308]),Uh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},os={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Im=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OO=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$0="remix-router-transitions",B0=Symbol("ResetLoaderData");function CO(e){const n=e.window?e.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=e.mapRouteProperties||OO,s={},o=Nc(e.routes,i,void 0,s),f,d=e.basename||"/",h=e.dataStrategy||MO,p=e.patchRoutesOnNavigation,g={...e.future},b=null,y=new Set,v=null,E=null,x=null,O=e.hydrationData!=null,T=Wa(o,e.history.location,d),A=null;if(T==null&&!p){let H=tr(404,{pathname:e.history.location.pathname}),{matches:Y,route:J}=n1(o);T=Y,A={[J.id]:H}}T&&!e.hydrationData&&qn(T,o,e.history.location.pathname).active&&(T=null);let j;if(T)if(T.some(H=>H.route.lazy))j=!1;else if(!T.some(H=>H.route.loader))j=!0;else{let H=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null;if(Y){let J=T.findIndex(le=>Y[le.route.id]!==void 0);j=T.slice(0,J+1).every(le=>!dm(le.route,H,Y))}else j=T.every(J=>!dm(J.route,H,Y))}else{j=!1,T=[];let H=qn(null,o,e.history.location.pathname);H.active&&H.matches&&(T=H.matches)}let _,C={historyAction:e.history.action,location:e.history.location,matches:T,initialized:j,navigation:Uh,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},q="POP",U=!1,k,z=!1,K=new Map,ee=null,oe=!1,X=!1,re=new Set,ne=new Map,$=0,I=-1,ae=new Map,G=new Set,M=new Map,V=new Map,ce=new Set,de=new Map,fe,ve=null;function Te(){if(b=e.history.listen(({action:H,location:Y,delta:J})=>{if(fe){fe(),fe=void 0;return}Jt(de.size===0||J!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=nn({currentLocation:C.location,nextLocation:Y,historyAction:H});if(le&&J!=null){let pe=new Promise(Ee=>{fe=Ee});e.history.go(J*-1),Rn(le,{state:"blocked",location:Y,proceed(){Rn(le,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),pe.then(()=>e.history.go(J))},reset(){let Ee=new Map(C.blockers);Ee.set(le,os),je({blockers:Ee})}});return}return ft(H,Y)}),a){qO(n,K);let H=()=>kO(n,K);n.addEventListener("pagehide",H),ee=()=>n.removeEventListener("pagehide",H)}return C.initialized||ft("POP",C.location,{initialHydration:!0}),_}function mt(){b&&b(),ee&&ee(),y.clear(),k&&k.abort(),C.fetchers.forEach((H,Y)=>Ca(Y)),C.blockers.forEach((H,Y)=>Ws(Y))}function _e(H){return y.add(H),()=>y.delete(H)}function je(H,Y={}){C={...C,...H};let J=[],le=[];C.fetchers.forEach((pe,Ee)=>{pe.state==="idle"&&(ce.has(Ee)?J.push(Ee):le.push(Ee))}),ce.forEach(pe=>{!C.fetchers.has(pe)&&!ne.has(pe)&&J.push(pe)}),[...y].forEach(pe=>pe(C,{deletedFetchers:J,viewTransitionOpts:Y.viewTransitionOpts,flushSync:Y.flushSync===!0})),J.forEach(pe=>Ca(pe)),le.forEach(pe=>C.fetchers.delete(pe))}function Ne(H,Y,{flushSync:J}={}){var he,Re;let le=C.actionData!=null&&C.navigation.formMethod!=null&&pr(C.navigation.formMethod)&&C.navigation.state==="loading"&&((he=H.state)==null?void 0:he._isRedirect)!==!0,pe;Y.actionData?Object.keys(Y.actionData).length>0?pe=Y.actionData:pe=null:le?pe=C.actionData:pe=null;let Ee=Y.loaderData?e1(C.loaderData,Y.loaderData,Y.matches||[],Y.errors):C.loaderData,Me=C.blockers;Me.size>0&&(Me=new Map(Me),Me.forEach((Ce,Be)=>Me.set(Be,os)));let ye=U===!0||C.navigation.formMethod!=null&&pr(C.navigation.formMethod)&&((Re=H.state)==null?void 0:Re._isRedirect)!==!0;f&&(o=f,f=void 0),oe||q==="POP"||(q==="PUSH"?e.history.push(H,H.state):q==="REPLACE"&&e.history.replace(H,H.state));let Se;if(q==="POP"){let Ce=K.get(C.location.pathname);Ce&&Ce.has(H.pathname)?Se={currentLocation:C.location,nextLocation:H}:K.has(H.pathname)&&(Se={currentLocation:H,nextLocation:C.location})}else if(z){let Ce=K.get(C.location.pathname);Ce?Ce.add(H.pathname):(Ce=new Set([H.pathname]),K.set(C.location.pathname,Ce)),Se={currentLocation:C.location,nextLocation:H}}je({...Y,actionData:pe,loaderData:Ee,historyAction:q,location:H,initialized:!0,navigation:Uh,revalidation:"idle",restoreScrollPosition:bi(H,Y.matches||C.matches),preventScrollReset:ye,blockers:Me},{viewTransitionOpts:Se,flushSync:J===!0}),q="POP",U=!1,z=!1,oe=!1,X=!1,ve==null||ve.resolve(),ve=null}async function Mt(H,Y){if(typeof H=="number"){e.history.go(H);return}let J=fm(C.location,C.matches,d,H,Y==null?void 0:Y.fromRouteId,Y==null?void 0:Y.relative),{path:le,submission:pe,error:Ee}=Qb(!1,J,Y),Me=C.location,ye=ws(C.location,le,Y&&Y.state);ye={...ye,...e.history.encodeLocation(ye)};let Se=Y&&Y.replace!=null?Y.replace:void 0,he="PUSH";Se===!0?he="REPLACE":Se===!1||pe!=null&&pr(pe.formMethod)&&pe.formAction===C.location.pathname+C.location.search&&(he="REPLACE");let Re=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,Ce=(Y&&Y.flushSync)===!0,Be=nn({currentLocation:Me,nextLocation:ye,historyAction:he});if(Be){Rn(Be,{state:"blocked",location:ye,proceed(){Rn(Be,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),Mt(H,Y)},reset(){let pt=new Map(C.blockers);pt.set(Be,os),je({blockers:pt})}});return}await ft(he,ye,{submission:pe,pendingError:Ee,preventScrollReset:Re,replace:Y&&Y.replace,enableViewTransition:Y&&Y.viewTransition,flushSync:Ce})}function Sn(){ve||(ve=FO()),jt(),je({revalidation:"loading"});let H=ve.promise;return C.navigation.state==="submitting"?H:C.navigation.state==="idle"?(ft(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),H):(ft(q||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:z===!0}),H)}async function ft(H,Y,J){k&&k.abort(),k=null,q=H,oe=(J&&J.startUninterruptedRevalidation)===!0,iu(C.location,C.matches),U=(J&&J.preventScrollReset)===!0,z=(J&&J.enableViewTransition)===!0;let le=f||o,pe=J&&J.overrideNavigation,Ee=Wa(le,Y,d),Me=(J&&J.flushSync)===!0,ye=qn(Ee,le,Y.pathname);if(ye.active&&ye.matches&&(Ee=ye.matches),!Ee){let{error:lt,notFoundMatches:st,route:Dt}=hl(Y.pathname);Ne(Y,{matches:st,loaderData:{},errors:{[Dt.id]:lt}},{flushSync:Me});return}if(C.initialized&&!X&&HO(C.location,Y)&&!(J&&J.submission&&pr(J.submission.formMethod))){Ne(Y,{matches:Ee},{flushSync:Me});return}k=new AbortController;let Se=Uu(e.history,Y,k.signal,J&&J.submission),he;if(J&&J.pendingError)he=[qi(Ee).route.id,{type:"error",error:J.pendingError}];else if(J&&J.submission&&pr(J.submission.formMethod)){let lt=await ln(Se,Y,J.submission,Ee,ye.active,{replace:J.replace,flushSync:Me});if(lt.shortCircuited)return;if(lt.pendingActionResult){let[st,Dt]=lt.pendingActionResult;if(zn(Dt)&&Ic(Dt.error)&&Dt.error.status===404){k=null,Ne(Y,{matches:lt.matches,loaderData:{},errors:{[st]:Dt.error}});return}}Ee=lt.matches||Ee,he=lt.pendingActionResult,pe=$h(Y,J.submission),Me=!1,ye.active=!1,Se=Uu(e.history,Se.url,Se.signal)}let{shortCircuited:Re,matches:Ce,loaderData:Be,errors:pt}=await Tn(Se,Y,Ee,ye.active,pe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,J&&J.initialHydration===!0,Me,he);Re||(k=null,Ne(Y,{matches:Ce||Ee,...t1(he),loaderData:Be,errors:pt}))}async function ln(H,Y,J,le,pe,Ee={}){jt();let Me=BO(Y,J);if(je({navigation:Me},{flushSync:Ee.flushSync===!0}),pe){let he=await Yr(le,Y.pathname,H.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let Re=qi(he.partialMatches).route.id;return{matches:he.partialMatches,pendingActionResult:[Re,{type:"error",error:he.error}]}}else if(he.matches)le=he.matches;else{let{notFoundMatches:Re,error:Ce,route:Be}=hl(Y.pathname);return{matches:Re,pendingActionResult:[Be.id,{type:"error",error:Ce}]}}}let ye,Se=vs(le,Y);if(!Se.route.action&&!Se.route.lazy)ye={type:"error",error:tr(405,{method:H.method,pathname:Y.pathname,routeId:Se.route.id})};else if(ye=(await Rt("action",C,H,[Se],le,null))[Se.route.id],H.signal.aborted)return{shortCircuited:!0};if(ki(ye)){let he;return Ee&&Ee.replace!=null?he=Ee.replace:he=Ib(ye.response.headers.get("Location"),new URL(H.url),d)===C.location.pathname+C.location.search,await Le(H,ye,!0,{submission:J,replace:he}),{shortCircuited:!0}}if(zn(ye)){let he=qi(le,Se.route.id);return(Ee&&Ee.replace)!==!0&&(q="PUSH"),{matches:le,pendingActionResult:[he.route.id,ye]}}return{matches:le,pendingActionResult:[Se.route.id,ye]}}async function Tn(H,Y,J,le,pe,Ee,Me,ye,Se,he,Re){let Ce=pe||$h(Y,Ee),Be=Ee||Me||a1(Ce),pt=!oe&&!Se;if(le){if(pt){let yt=tn(Re);je({navigation:Ce,...yt!==void 0?{actionData:yt}:{}},{flushSync:he})}let rt=await Yr(J,Y.pathname,H.signal);if(rt.type==="aborted")return{shortCircuited:!0};if(rt.type==="error"){let yt=qi(rt.partialMatches).route.id;return{matches:rt.partialMatches,loaderData:{},errors:{[yt]:rt.error}}}else if(rt.matches)J=rt.matches;else{let{error:yt,notFoundMatches:ur,route:dn}=hl(Y.pathname);return{matches:ur,loaderData:{},errors:{[dn.id]:yt}}}}let lt=f||o,[st,Dt]=Kb(e.history,C,J,Be,Y,Se===!0,X,re,ce,M,G,lt,d,Re);if(I=++$,st.length===0&&Dt.length===0){let rt=Js();return Ne(Y,{matches:J,loaderData:{},errors:Re&&zn(Re[1])?{[Re[0]]:Re[1].error}:null,...t1(Re),...rt?{fetchers:new Map(C.fetchers)}:{}},{flushSync:he}),{shortCircuited:!0}}if(pt){let rt={};if(!le){rt.navigation=Ce;let yt=tn(Re);yt!==void 0&&(rt.actionData=yt)}Dt.length>0&&(rt.fetchers=Pn(Dt)),je(rt,{flushSync:he})}Dt.forEach(rt=>{rr(rt.key),rt.controller&&ne.set(rt.key,rt.controller)});let Qr=()=>Dt.forEach(rt=>rr(rt.key));k&&k.signal.addEventListener("abort",Qr);let{loaderResults:ar,fetcherResults:Dn}=await sn(C,J,st,Dt,H);if(H.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Qr),Dt.forEach(rt=>ne.delete(rt.key));let kt=cc(ar);if(kt)return await Le(H,kt.result,!0,{replace:ye}),{shortCircuited:!0};if(kt=cc(Dn),kt)return G.add(kt.key),await Le(H,kt.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Or,errors:ir}=Wb(C,J,ar,Re,Dt,Dn);Se&&C.errors&&(ir={...C.errors,...ir});let xn=Js(),vt=Ta(I),xi=xn||vt||Dt.length>0;return{matches:J,loaderData:Or,errors:ir,...xi?{fetchers:new Map(C.fetchers)}:{}}}function tn(H){if(H&&!zn(H[1]))return{[H[0]]:H[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Pn(H){return H.forEach(Y=>{let J=C.fetchers.get(Y.key),le=cs(void 0,J?J.data:void 0);C.fetchers.set(Y.key,le)}),new Map(C.fetchers)}async function be(H,Y,J,le){rr(H);let pe=(le&&le.flushSync)===!0,Ee=f||o,Me=fm(C.location,C.matches,d,J,Y,le==null?void 0:le.relative),ye=Wa(Ee,Me,d),Se=qn(ye,Ee,Me);if(Se.active&&Se.matches&&(ye=Se.matches),!ye){cn(H,Y,tr(404,{pathname:Me}),{flushSync:pe});return}let{path:he,submission:Re,error:Ce}=Qb(!0,Me,le);if(Ce){cn(H,Y,Ce,{flushSync:pe});return}let Be=vs(ye,he),pt=(le&&le.preventScrollReset)===!0;if(Re&&pr(Re.formMethod)){await Fe(H,Y,he,Be,ye,Se.active,pe,pt,Re);return}M.set(H,{routeId:Y,path:he}),await xt(H,Y,he,Be,ye,Se.active,pe,pt,Re)}async function Fe(H,Y,J,le,pe,Ee,Me,ye,Se){jt(),M.delete(H);function he(Et){if(!Et.route.action&&!Et.route.lazy){let Gr=tr(405,{method:Se.formMethod,pathname:J,routeId:Y});return cn(H,Y,Gr,{flushSync:Me}),!0}return!1}if(!Ee&&he(le))return;let Re=C.fetchers.get(H);on(H,PO(Se,Re),{flushSync:Me});let Ce=new AbortController,Be=Uu(e.history,J,Ce.signal,Se);if(Ee){let Et=await Yr(pe,J,Be.signal);if(Et.type==="aborted")return;if(Et.type==="error"){cn(H,Y,Et.error,{flushSync:Me});return}else if(Et.matches){if(pe=Et.matches,le=vs(pe,J),he(le))return}else{cn(H,Y,tr(404,{pathname:J}),{flushSync:Me});return}}ne.set(H,Ce);let pt=$,st=(await Rt("action",C,Be,[le],pe,H))[le.route.id];if(Be.signal.aborted){ne.get(H)===Ce&&ne.delete(H);return}if(ce.has(H)){if(ki(st)||zn(st)){on(H,Za(void 0));return}}else{if(ki(st))if(ne.delete(H),I>pt){on(H,Za(void 0));return}else return G.add(H),on(H,cs(Se)),Le(Be,st,!1,{fetcherSubmission:Se,preventScrollReset:ye});if(zn(st)){cn(H,Y,st.error);return}}let Dt=C.navigation.location||C.location,Qr=Uu(e.history,Dt,Ce.signal),ar=f||o,Dn=C.navigation.state!=="idle"?Wa(ar,C.navigation.location,d):C.matches;qe(Dn,"Didn't find any matches after fetcher action");let kt=++$;ae.set(H,kt);let Or=cs(Se,st.data);C.fetchers.set(H,Or);let[ir,xn]=Kb(e.history,C,Dn,Se,Dt,!1,X,re,ce,M,G,ar,d,[le.route.id,st]);xn.filter(Et=>Et.key!==H).forEach(Et=>{let Gr=Et.key,ml=C.fetchers.get(Gr),Tf=cs(void 0,ml?ml.data:void 0);C.fetchers.set(Gr,Tf),rr(Gr),Et.controller&&ne.set(Gr,Et.controller)}),je({fetchers:new Map(C.fetchers)});let vt=()=>xn.forEach(Et=>rr(Et.key));Ce.signal.addEventListener("abort",vt);let{loaderResults:xi,fetcherResults:rt}=await sn(C,Dn,ir,xn,Qr);if(Ce.signal.aborted)return;Ce.signal.removeEventListener("abort",vt),ae.delete(H),ne.delete(H),xn.forEach(Et=>ne.delete(Et.key));let yt=cc(xi);if(yt)return Le(Qr,yt.result,!1,{preventScrollReset:ye});if(yt=cc(rt),yt)return G.add(yt.key),Le(Qr,yt.result,!1,{preventScrollReset:ye});let{loaderData:ur,errors:dn}=Wb(C,Dn,xi,void 0,xn,rt);if(C.fetchers.has(H)){let Et=Za(st.data);C.fetchers.set(H,Et)}Ta(kt),C.navigation.state==="loading"&&kt>I?(qe(q,"Expected pending action"),k&&k.abort(),Ne(C.navigation.location,{matches:Dn,loaderData:ur,errors:dn,fetchers:new Map(C.fetchers)})):(je({errors:dn,loaderData:e1(C.loaderData,ur,Dn,dn),fetchers:new Map(C.fetchers)}),X=!1)}async function xt(H,Y,J,le,pe,Ee,Me,ye,Se){let he=C.fetchers.get(H);on(H,cs(Se,he?he.data:void 0),{flushSync:Me});let Re=new AbortController,Ce=Uu(e.history,J,Re.signal);if(Ee){let st=await Yr(pe,J,Ce.signal);if(st.type==="aborted")return;if(st.type==="error"){cn(H,Y,st.error,{flushSync:Me});return}else if(st.matches)pe=st.matches,le=vs(pe,J);else{cn(H,Y,tr(404,{pathname:J}),{flushSync:Me});return}}ne.set(H,Re);let Be=$,lt=(await Rt("loader",C,Ce,[le],pe,H))[le.route.id];if(ne.get(H)===Re&&ne.delete(H),!Ce.signal.aborted){if(ce.has(H)){on(H,Za(void 0));return}if(ki(lt))if(I>Be){on(H,Za(void 0));return}else{G.add(H),await Le(Ce,lt,!1,{preventScrollReset:ye});return}if(zn(lt)){cn(H,Y,lt.error);return}on(H,Za(lt.data))}}async function Le(H,Y,J,{submission:le,fetcherSubmission:pe,preventScrollReset:Ee,replace:Me}={}){Y.response.headers.has("X-Remix-Revalidate")&&(X=!0);let ye=Y.response.headers.get("Location");qe(ye,"Expected a Location header on the redirect Response"),ye=Ib(ye,new URL(H.url),d);let Se=ws(C.location,ye,{_isRedirect:!0});if(a){let lt=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))lt=!0;else if(Im.test(ye)){const st=e.history.createURL(ye);lt=st.origin!==n.location.origin||br(st.pathname,d)==null}if(lt){Me?n.location.replace(ye):n.location.assign(ye);return}}k=null;let he=Me===!0||Y.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Re,formAction:Ce,formEncType:Be}=C.navigation;!le&&!pe&&Re&&Ce&&Be&&(le=a1(C.navigation));let pt=le||pe;if(EO.has(Y.response.status)&&pt&&pr(pt.formMethod))await ft(he,Se,{submission:{...pt,formAction:ye},preventScrollReset:Ee||U,enableViewTransition:J?z:void 0});else{let lt=$h(Se,le);await ft(he,Se,{overrideNavigation:lt,fetcherSubmission:pe,preventScrollReset:Ee||U,enableViewTransition:J?z:void 0})}}async function Rt(H,Y,J,le,pe,Ee){let Me,ye={};try{Me=await jO(h,H,Y,J,le,pe,Ee,s,i)}catch(Se){return le.forEach(he=>{ye[he.route.id]={type:"error",error:Se}}),ye}for(let[Se,he]of Object.entries(Me))if(UO(he)){let Re=he.result;ye[Se]={type:"redirect",response:zO(Re,J,Se,pe,d)}}else ye[Se]=await NO(he);return ye}async function sn(H,Y,J,le,pe){let Ee=Rt("loader",H,pe,J,Y,null),Me=Promise.all(le.map(async he=>{if(he.matches&&he.match&&he.controller){let Ce=(await Rt("loader",H,Uu(e.history,he.path,he.controller.signal),[he.match],he.matches,he.key))[he.match.route.id];return{[he.key]:Ce}}else return Promise.resolve({[he.key]:{type:"error",error:tr(404,{pathname:he.path})}})})),ye=await Ee,Se=(await Me).reduce((he,Re)=>Object.assign(he,Re),{});return{loaderResults:ye,fetcherResults:Se}}function jt(){X=!0,M.forEach((H,Y)=>{ne.has(Y)&&re.add(Y),rr(Y)})}function on(H,Y,J={}){C.fetchers.set(H,Y),je({fetchers:new Map(C.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function cn(H,Y,J,le={}){let pe=qi(C.matches,Y);Ca(H),je({errors:{[pe.route.id]:J},fetchers:new Map(C.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function dl(H){return V.set(H,(V.get(H)||0)+1),ce.has(H)&&ce.delete(H),C.fetchers.get(H)||wO}function Ca(H){let Y=C.fetchers.get(H);ne.has(H)&&!(Y&&Y.state==="loading"&&ae.has(H))&&rr(H),M.delete(H),ae.delete(H),G.delete(H),ce.delete(H),re.delete(H),C.fetchers.delete(H)}function wf(H){let Y=(V.get(H)||0)-1;Y<=0?(V.delete(H),ce.add(H)):V.set(H,Y),je({fetchers:new Map(C.fetchers)})}function rr(H){let Y=ne.get(H);Y&&(Y.abort(),ne.delete(H))}function Is(H){for(let Y of H){let J=dl(Y),le=Za(J.data);C.fetchers.set(Y,le)}}function Js(){let H=[],Y=!1;for(let J of G){let le=C.fetchers.get(J);qe(le,`Expected fetcher: ${J}`),le.state==="loading"&&(G.delete(J),H.push(J),Y=!0)}return Is(H),Y}function Ta(H){let Y=[];for(let[J,le]of ae)if(le<H){let pe=C.fetchers.get(J);qe(pe,`Expected fetcher: ${J}`),pe.state==="loading"&&(rr(J),ae.delete(J),Y.push(J))}return Is(Y),Y.length>0}function fn(H,Y){let J=C.blockers.get(H)||os;return de.get(H)!==Y&&de.set(H,Y),J}function Ws(H){C.blockers.delete(H),de.delete(H)}function Rn(H,Y){let J=C.blockers.get(H)||os;qe(J.state==="unblocked"&&Y.state==="blocked"||J.state==="blocked"&&Y.state==="blocked"||J.state==="blocked"&&Y.state==="proceeding"||J.state==="blocked"&&Y.state==="unblocked"||J.state==="proceeding"&&Y.state==="unblocked",`Invalid blocker state transition: ${J.state} -> ${Y.state}`);let le=new Map(C.blockers);le.set(H,Y),je({blockers:le})}function nn({currentLocation:H,nextLocation:Y,historyAction:J}){if(de.size===0)return;de.size>1&&Jt(!1,"A router only supports one blocker at a time");let le=Array.from(de.entries()),[pe,Ee]=le[le.length-1],Me=C.blockers.get(pe);if(!(Me&&Me.state==="proceeding")&&Ee({currentLocation:H,nextLocation:Y,historyAction:J}))return pe}function hl(H){let Y=tr(404,{pathname:H}),J=f||o,{matches:le,route:pe}=n1(J);return{notFoundMatches:le,route:pe,error:Y}}function Of(H,Y,J){if(v=H,x=Y,E=J||null,!O&&C.navigation===Uh){O=!0;let le=bi(C.location,C.matches);le!=null&&je({restoreScrollPosition:le})}return()=>{v=null,x=null,E=null}}function eo(H,Y){return E&&E(H,Y.map(le=>eO(le,C.loaderData)))||H.key}function iu(H,Y){if(v&&x){let J=eo(H,Y);v[J]=x()}}function bi(H,Y){if(v){let J=eo(H,Y),le=v[J];if(typeof le=="number")return le}return null}function qn(H,Y,J){if(p)if(H){if(Object.keys(H[0].params).length>0)return{active:!0,matches:Oc(Y,J,d,!0)}}else return{active:!0,matches:Oc(Y,J,d,!0)||[]};return{active:!1,matches:null}}async function Yr(H,Y,J){if(!p)return{type:"success",matches:H};let le=H;for(;;){let pe=f==null,Ee=f||o,Me=s;try{await p({path:Y,matches:le,patch:(he,Re)=>{J.aborted||Zb(he,Re,Ee,Me,i)}})}catch(he){return{type:"error",error:he,partialMatches:le}}finally{pe&&!J.aborted&&(o=[...o])}if(J.aborted)return{type:"aborted"};let ye=Wa(Ee,Y,d);if(ye)return{type:"success",matches:ye};let Se=Oc(Ee,Y,d,!0);if(!Se||le.length===Se.length&&le.every((he,Re)=>he.route.id===Se[Re].route.id))return{type:"success",matches:null};le=Se}}function Si(H){s={},f=Nc(H,i,void 0,s)}function Cf(H,Y){let J=f==null;Zb(H,Y,f||o,s,i),J&&(o=[...o],je({}))}return _={get basename(){return d},get future(){return g},get state(){return C},get routes(){return o},get window(){return n},initialize:Te,subscribe:_e,enableScrollRestoration:Of,navigate:Mt,fetch:be,revalidate:Sn,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:dl,deleteFetcher:wf,dispose:mt,getBlocker:fn,deleteBlocker:Ws,patchRoutes:Cf,_internalFetchControllers:ne,_internalSetRoutes:Si},_}function TO(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function fm(e,n,a,i,s,o){let f,d;if(s){f=[];for(let p of n)if(f.push(p),p.route.id===s){d=p;break}}else f=n,d=n[n.length-1];let h=Zm(i||".",Xm(f),br(e.pathname,a)||e.pathname,o==="path");if(i==null&&(h.search=e.search,h.hash=e.hash),(i==null||i===""||i===".")&&d){let p=Jm(h.search);if(d.route.index&&!p)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&p){let g=new URLSearchParams(h.search),b=g.getAll("index");g.delete("index"),b.filter(v=>v).forEach(v=>g.append("index",v));let y=g.toString();h.search=y?`?${y}`:""}}return a!=="/"&&(h.pathname=h.pathname==="/"?a:Ur([a,h.pathname])),fi(h)}function Qb(e,n,a){if(!a||!TO(a))return{path:n};if(a.formMethod&&!$O(a.formMethod))return{path:n,error:tr(405,{method:a.formMethod})};let i=()=>({path:n,error:tr(400,{type:"invalid-body"})}),o=(a.formMethod||"get").toUpperCase(),f=q0(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!pr(o))return i();let b=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((y,[v,E])=>`${y}${v}=${E}
|
|
59
|
-
`,""):String(a.body);return{path:n,submission:{formMethod:o,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:b}}}else if(a.formEncType==="application/json"){if(!pr(o))return i();try{let b=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:o,formAction:f,formEncType:a.formEncType,formData:void 0,json:b,text:void 0}}}catch{return i()}}}qe(typeof FormData=="function","FormData is not available in this environment");let d,h;if(a.formData)d=hm(a.formData),h=a.formData;else if(a.body instanceof FormData)d=hm(a.body),h=a.body;else if(a.body instanceof URLSearchParams)d=a.body,h=Jb(d);else if(a.body==null)d=new URLSearchParams,h=new FormData;else try{d=new URLSearchParams(a.body),h=Jb(d)}catch{return i()}let p={formMethod:o,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(pr(p.formMethod))return{path:n,submission:p};let g=Sa(n);return e&&g.search&&Jm(g.search)&&d.append("index",""),g.search=`?${d}`,{path:fi(g),submission:p}}function Gb(e,n,a=!1){let i=e.findIndex(s=>s.route.id===n);return i>=0?e.slice(0,a?i+1:i):e}function Kb(e,n,a,i,s,o,f,d,h,p,g,b,y,v){let E=v?zn(v[1])?v[1].error:v[1].data:void 0,x=e.createURL(n.location),O=e.createURL(s),T=a;o&&n.errors?T=Gb(a,Object.keys(n.errors)[0],!0):v&&zn(v[1])&&(T=Gb(a,v[0]));let A=v?v[1].statusCode:void 0,j=A&&A>=400,_=T.filter((q,U)=>{let{route:k}=q;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return dm(k,n.loaderData,n.errors);if(RO(n.loaderData,n.matches[U],q))return!0;let z=n.matches[U],K=q;return Xb(q,{currentUrl:x,currentParams:z.params,nextUrl:O,nextParams:K.params,...i,actionResult:E,actionStatus:A,defaultShouldRevalidate:j?!1:f||x.pathname+x.search===O.pathname+O.search||x.search!==O.search||DO(z,K)})}),C=[];return p.forEach((q,U)=>{if(o||!a.some(oe=>oe.route.id===q.routeId)||h.has(U))return;let k=Wa(b,q.path,y);if(!k){C.push({key:U,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let z=n.fetchers.get(U),K=vs(k,q.path),ee=!1;g.has(U)?ee=!1:d.has(U)?(d.delete(U),ee=!0):z&&z.state!=="idle"&&z.data===void 0?ee=f:ee=Xb(K,{currentUrl:x,currentParams:n.matches[n.matches.length-1].params,nextUrl:O,nextParams:a[a.length-1].params,...i,actionResult:E,actionStatus:A,defaultShouldRevalidate:j?!1:f}),ee&&C.push({key:U,routeId:q.routeId,path:q.path,matches:k,match:K,controller:new AbortController})}),[_,C]}function dm(e,n,a){if(e.lazy)return!0;if(!e.loader)return!1;let i=n!=null&&n[e.id]!==void 0,s=a!=null&&a[e.id]!==void 0;return!i&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!s}function RO(e,n,a){let i=!n||a.route.id!==n.route.id,s=!e.hasOwnProperty(a.route.id);return i||s}function DO(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function Xb(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function Zb(e,n,a,i,s){let o;if(e){let h=i[e];qe(h,`No route found to patch children into: routeId = ${e}`),h.children||(h.children=[]),o=h.children}else o=a;let f=n.filter(h=>!o.some(p=>P0(h,p))),d=Nc(f,s,[e||"_","patch",String((o==null?void 0:o.length)||"0")],i);o.push(...d)}function P0(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((a,i)=>{var s;return(s=n.children)==null?void 0:s.some(o=>P0(a,o))}):!1}async function AO(e,n,a){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let s=a[e.id];qe(s,"No route found in manifest");let o={};for(let f in i){let h=s[f]!==void 0&&f!=="hasErrorBoundary";Jt(!h,`Route "${s.id}" has a static property "${f}" defined but its lazy function is also returning a value for this property. The lazy route property "${f}" will be ignored.`),!h&&!Jw.has(f)&&(o[f]=i[f])}Object.assign(s,o),Object.assign(s,{...n(s),lazy:void 0})}async function MO({matches:e}){let n=e.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,s,o)=>Object.assign(i,{[n[o].route.id]:s}),{})}async function jO(e,n,a,i,s,o,f,d,h,p){let g=o.map(v=>v.route.lazy?AO(v.route,h,d):void 0),b=o.map((v,E)=>{let x=g[E],O=s.some(A=>A.route.id===v.route.id);return{...v,shouldLoad:O,resolve:async A=>(A&&i.method==="GET"&&(v.route.lazy||v.route.loader)&&(O=!0),O?_O(n,i,v,x,A,p):Promise.resolve({type:"data",result:void 0}))}}),y=await e({matches:b,request:i,params:o[0].params,fetcherKey:f,context:p});try{await Promise.all(g)}catch{}return y}async function _O(e,n,a,i,s,o){let f,d,h=p=>{let g,b=new Promise((E,x)=>g=x);d=()=>g(),n.signal.addEventListener("abort",d);let y=E=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${a.route.id}]`)):p({request:n,params:a.params,context:o},...E!==void 0?[E]:[]),v=(async()=>{try{return{type:"data",result:await(s?s(x=>y(x)):y())}}catch(E){return{type:"error",result:E}}})();return Promise.race([v,b])};try{let p=a.route[e];if(i)if(p){let g,[b]=await Promise.all([h(p).catch(y=>{g=y}),i]);if(g!==void 0)throw g;f=b}else if(await i,p=a.route[e],p)f=await h(p);else if(e==="action"){let g=new URL(n.url),b=g.pathname+g.search;throw tr(405,{method:n.method,pathname:b,routeId:a.route.id})}else return{type:"data",result:void 0};else if(p)f=await h(p);else{let g=new URL(n.url),b=g.pathname+g.search;throw tr(404,{pathname:b})}}catch(p){return{type:"error",result:p}}finally{d&&n.signal.removeEventListener("abort",d)}return f}async function NO(e){var i,s,o,f;let{result:n,type:a}=e;if(k0(n)){let d;try{let h=n.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?n.body==null?d=null:d=await n.json():d=await n.text()}catch(h){return{type:"error",error:h}}return a==="error"?{type:"error",error:new Lc(n.status,n.statusText,d),statusCode:n.status,headers:n.headers}:{type:"data",data:d,statusCode:n.status,headers:n.headers}}if(a==="error"){if(r1(n)){if(n.data instanceof Error)return{type:"error",error:n.data,statusCode:(i=n.init)==null?void 0:i.status};n=new Lc(((s=n.init)==null?void 0:s.status)||500,void 0,n.data)}return{type:"error",error:n,statusCode:Ic(n)?n.status:void 0}}return r1(n)?{type:"data",data:n.data,statusCode:(o=n.init)==null?void 0:o.status,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function zO(e,n,a,i,s){let o=e.headers.get("Location");if(qe(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Im.test(o)){let f=i.slice(0,i.findIndex(d=>d.route.id===a)+1);o=fm(new URL(n.url),f,s,o),e.headers.set("Location",o)}return e}function Ib(e,n,a){if(Im.test(e)){let i=e,s=i.startsWith("//")?new URL(n.protocol+i):new URL(i),o=br(s.pathname,a)!=null;if(s.origin===n.origin&&o)return s.pathname+s.search+s.hash}return e}function Uu(e,n,a,i){let s=e.createURL(q0(n)).toString(),o={signal:a};if(i&&pr(i.formMethod)){let{formMethod:f,formEncType:d}=i;o.method=f.toUpperCase(),d==="application/json"?(o.headers=new Headers({"Content-Type":d}),o.body=JSON.stringify(i.json)):d==="text/plain"?o.body=i.text:d==="application/x-www-form-urlencoded"&&i.formData?o.body=hm(i.formData):o.body=i.formData}return new Request(s,o)}function hm(e){let n=new URLSearchParams;for(let[a,i]of e.entries())n.append(a,typeof i=="string"?i:i.name);return n}function Jb(e){let n=new FormData;for(let[a,i]of e.entries())n.append(a,i);return n}function LO(e,n,a,i=!1,s=!1){let o={},f=null,d,h=!1,p={},g=a&&zn(a[1])?a[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in n))return;let y=b.route.id,v=n[y];if(qe(!ki(v),"Cannot handle redirect results in processLoaderData"),zn(v)){let E=v.error;if(g!==void 0&&(E=g,g=void 0),f=f||{},s)f[y]=E;else{let x=qi(e,y);f[x.route.id]==null&&(f[x.route.id]=E)}i||(o[y]=B0),h||(h=!0,d=Ic(v.error)?v.error.status:500),v.headers&&(p[y]=v.headers)}else o[y]=v.data,v.statusCode&&v.statusCode!==200&&!h&&(d=v.statusCode),v.headers&&(p[y]=v.headers)}),g!==void 0&&a&&(f={[a[0]]:g},o[a[0]]=void 0),{loaderData:o,errors:f,statusCode:d||200,loaderHeaders:p}}function Wb(e,n,a,i,s,o){let{loaderData:f,errors:d}=LO(n,a,i);return s.forEach(h=>{let{key:p,match:g,controller:b}=h,y=o[p];if(qe(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(zn(y)){let v=qi(e.matches,g==null?void 0:g.route.id);d&&d[v.route.id]||(d={...d,[v.route.id]:y.error}),e.fetchers.delete(p)}else if(ki(y))qe(!1,"Unhandled fetcher revalidation redirect");else{let v=Za(y.data);e.fetchers.set(p,v)}}),{loaderData:f,errors:d}}function e1(e,n,a,i){let s=Object.entries(n).filter(([,o])=>o!==B0).reduce((o,[f,d])=>(o[f]=d,o),{});for(let o of a){let f=o.route.id;if(!n.hasOwnProperty(f)&&e.hasOwnProperty(f)&&o.route.loader&&(s[f]=e[f]),i&&i.hasOwnProperty(f))break}return s}function t1(e){return e?zn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function qi(e,n){return(n?e.slice(0,e.findIndex(i=>i.route.id===n)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function n1(e){let n=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function tr(e,{pathname:n,routeId:a,method:i,type:s,message:o}={}){let f="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(f="Bad Request",i&&n&&a?d=`You made a ${i} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:s==="invalid-body"&&(d="Unable to encode submission body")):e===403?(f="Forbidden",d=`Route "${a}" does not match URL "${n}"`):e===404?(f="Not Found",d=`No route matches URL "${n}"`):e===405&&(f="Method Not Allowed",i&&n&&a?d=`You made a ${i.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:i&&(d=`Invalid request method "${i.toUpperCase()}"`)),new Lc(e||500,f,new Error(d),!0)}function cc(e){let n=Object.entries(e);for(let a=n.length-1;a>=0;a--){let[i,s]=n[a];if(ki(s))return{key:i,result:s}}}function q0(e){let n=typeof e=="string"?Sa(e):e;return fi({...n,hash:""})}function HO(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function UO(e){return k0(e.result)&&xO.has(e.result.status)}function zn(e){return e.type==="error"}function ki(e){return(e&&e.type)==="redirect"}function r1(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function k0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $O(e){return SO.has(e.toUpperCase())}function pr(e){return vO.has(e.toUpperCase())}function Jm(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function vs(e,n){let a=typeof n=="string"?Sa(n).search:n.search;if(e[e.length-1].route.index&&Jm(a||""))return e[e.length-1];let i=H0(e);return i[i.length-1]}function a1(e){let{formMethod:n,formAction:a,formEncType:i,text:s,formData:o,json:f}=e;if(!(!n||!a||!i)){if(s!=null)return{formMethod:n,formAction:a,formEncType:i,formData:void 0,json:void 0,text:s};if(o!=null)return{formMethod:n,formAction:a,formEncType:i,formData:o,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:i,formData:void 0,json:f,text:void 0}}}function $h(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function BO(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function cs(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function PO(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Za(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qO(e,n){try{let a=e.sessionStorage.getItem($0);if(a){let i=JSON.parse(a);for(let[s,o]of Object.entries(i||{}))o&&Array.isArray(o)&&n.set(s,new Set(o||[]))}}catch{}}function kO(e,n){if(n.size>0){let a={};for(let[i,s]of n)a[i]=[...s];try{e.sessionStorage.setItem($0,JSON.stringify(a))}catch(i){Jt(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function FO(){let e,n,a=new Promise((i,s)=>{e=async o=>{i(o);try{await a}catch{}},n=async o=>{s(o);try{await a}catch{}}});return{promise:a,resolve:e,reject:n}}var eu=w.createContext(null);eu.displayName="DataRouter";var zs=w.createContext(null);zs.displayName="DataRouterState";var Wm=w.createContext({isTransitioning:!1});Wm.displayName="ViewTransition";var F0=w.createContext(new Map);F0.displayName="Fetchers";var VO=w.createContext(null);VO.displayName="Await";var Fr=w.createContext(null);Fr.displayName="Navigation";var Ls=w.createContext(null);Ls.displayName="Location";var wr=w.createContext({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var ep=w.createContext(null);ep.displayName="RouteError";function YO(e,{relative:n}={}){qe(Hs(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=w.useContext(Fr),{hash:s,pathname:o,search:f}=Us(e,{relative:n}),d=o;return a!=="/"&&(d=o==="/"?a:Ur([a,o])),i.createHref({pathname:d,search:f,hash:s})}function Hs(){return w.useContext(Ls)!=null}function tu(){return qe(Hs(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Ls).location}var V0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Y0(e){w.useContext(Fr).static||w.useLayoutEffect(e)}function tp(){let{isDataRoute:e}=w.useContext(wr);return e?iC():QO()}function QO(){qe(Hs(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(eu),{basename:n,navigator:a}=w.useContext(Fr),{matches:i}=w.useContext(wr),{pathname:s}=tu(),o=JSON.stringify(Xm(i)),f=w.useRef(!1);return Y0(()=>{f.current=!0}),w.useCallback((h,p={})=>{if(Jt(f.current,V0),!f.current)return;if(typeof h=="number"){a.go(h);return}let g=Zm(h,JSON.parse(o),s,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Ur([n,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[n,a,o,s,e])}var GO=w.createContext(null);function KO(e){let n=w.useContext(wr).outlet;return n&&w.createElement(GO.Provider,{value:e},n)}function Q0(){let{matches:e}=w.useContext(wr),n=e[e.length-1];return n?n.params:{}}function Us(e,{relative:n}={}){let{matches:a}=w.useContext(wr),{pathname:i}=tu(),s=JSON.stringify(Xm(a));return w.useMemo(()=>Zm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function XO(e,n){return G0(e,n)}function G0(e,n,a,i){var T;qe(Hs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=w.useContext(Fr),{matches:o}=w.useContext(wr),f=o[o.length-1],d=f?f.params:{},h=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let A=g&&g.path||"";X0(h,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
-
|
|
61
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=tu(),y;if(n){let A=typeof n=="string"?Sa(n):n;qe(p==="/"||((T=A.pathname)==null?void 0:T.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=b;let v=y.pathname||"/",E=v;if(p!=="/"){let A=p.replace(/^\//,"").split("/");E="/"+v.replace(/^\//,"").split("/").slice(A.length).join("/")}let x=Wa(e,{pathname:E});Jt(g||x!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Jt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=eC(x&&x.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Ur([p,s.encodeLocation?s.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:Ur([p,s.encodeLocation?s.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,a,i);return n&&O?w.createElement(Ls.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},O):O}function ZO(){let e=K0(),n=Ic(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:o},"ErrorBoundary")," or"," ",w.createElement("code",{style:o},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},n),a?w.createElement("pre",{style:s},a):null,f)}var IO=w.createElement(ZO,null),JO=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?w.createElement(wr.Provider,{value:this.props.routeContext},w.createElement(ep.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function WO({routeContext:e,match:n,children:a}){let i=w.useContext(eu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(wr.Provider,{value:e},a)}function eC(e,n=[],a=null,i=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,o=a==null?void 0:a.errors;if(o!=null){let h=s.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);qe(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,d=-1;if(a)for(let h=0;h<s.length;h++){let p=s[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=h),p.route.id){let{loaderData:g,errors:b}=a,y=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||y){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,p,g)=>{let b,y=!1,v=null,E=null;a&&(b=o&&p.route.id?o[p.route.id]:void 0,v=p.route.errorElement||IO,f&&(d<0&&g===0?(X0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,E=null):d===g&&(y=!0,E=p.route.hydrateFallbackElement||null)));let x=n.concat(s.slice(0,g+1)),O=()=>{let T;return b?T=v:y?T=E:p.route.Component?T=w.createElement(p.route.Component,null):p.route.element?T=p.route.element:T=h,w.createElement(WO,{match:p,routeContext:{outlet:h,matches:x,isDataRoute:a!=null},children:T})};return a&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?w.createElement(JO,{location:a.location,revalidation:a.revalidation,component:v,error:b,children:O(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):O()},null)}function np(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tC(e){let n=w.useContext(eu);return qe(n,np(e)),n}function nC(e){let n=w.useContext(zs);return qe(n,np(e)),n}function rC(e){let n=w.useContext(wr);return qe(n,np(e)),n}function rp(e){let n=rC(e),a=n.matches[n.matches.length-1];return qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function aC(){return rp("useRouteId")}function K0(){var i;let e=w.useContext(ep),n=nC("useRouteError"),a=rp("useRouteError");return e!==void 0?e:(i=n.errors)==null?void 0:i[a]}function iC(){let{router:e}=tC("useNavigate"),n=rp("useNavigate"),a=w.useRef(!1);return Y0(()=>{a.current=!0}),w.useCallback(async(s,o={})=>{Jt(a.current,V0),a.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...o}))},[e,n])}var i1={};function X0(e,n,a){!n&&!i1[e]&&(i1[e]=!0,Jt(!1,a))}var u1={};function l1(e,n){!e&&!u1[n]&&(u1[n]=!0,console.warn(n))}function uC(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Jt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:w.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Jt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Jt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var lC=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function sC({router:e,flushSync:n}){let[a,i]=w.useState(e.state),[s,o]=w.useState(),[f,d]=w.useState({isTransitioning:!1}),[h,p]=w.useState(),[g,b]=w.useState(),[y,v]=w.useState(),E=w.useRef(new Map),x=w.useCallback((j,{deletedFetchers:_,flushSync:C,viewTransitionOpts:q})=>{j.fetchers.forEach((k,z)=>{k.data!==void 0&&E.current.set(z,k.data)}),_.forEach(k=>E.current.delete(k)),l1(C===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let U=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(l1(q==null||U,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!q||!U){n&&C?n(()=>i(j)):w.startTransition(()=>i(j));return}if(n&&C){n(()=>{g&&(h&&h.resolve(),g.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let k=e.window.document.startViewTransition(()=>{n(()=>i(j))});k.finished.finally(()=>{n(()=>{p(void 0),b(void 0),o(void 0),d({isTransitioning:!1})})}),n(()=>b(k));return}g?(h&&h.resolve(),g.skipTransition(),v({state:j,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(o(j),d({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[e.window,n,g,h]);w.useLayoutEffect(()=>e.subscribe(x),[e,x]),w.useEffect(()=>{f.isTransitioning&&!f.flushSync&&p(new lC)},[f]),w.useEffect(()=>{if(h&&s&&e.window){let j=s,_=h.promise,C=e.window.document.startViewTransition(async()=>{w.startTransition(()=>i(j)),await _});C.finished.finally(()=>{p(void 0),b(void 0),o(void 0),d({isTransitioning:!1})}),b(C)}},[s,h,e.window]),w.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,g,a.location,s]),w.useEffect(()=>{!f.isTransitioning&&y&&(o(y.state),d({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[f.isTransitioning,y]);let O=w.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:j=>e.navigate(j),push:(j,_,C)=>e.navigate(j,{state:_,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(j,_,C)=>e.navigate(j,{replace:!0,state:_,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[e]),T=e.basename||"/",A=w.useMemo(()=>({router:e,navigator:O,static:!1,basename:T}),[e,O,T]);return w.createElement(w.Fragment,null,w.createElement(eu.Provider,{value:A},w.createElement(zs.Provider,{value:a},w.createElement(F0.Provider,{value:E.current},w.createElement(Wm.Provider,{value:f},w.createElement(dC,{basename:T,location:a.location,navigationType:a.historyAction,navigator:O},w.createElement(oC,{routes:e.routes,future:e.future,state:a})))))),null)}var oC=w.memo(cC);function cC({routes:e,future:n,state:a}){return G0(e,void 0,a,n)}function fC(e){return KO(e.context)}function Cc(e){qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function dC({basename:e="/",children:n=null,location:a,navigationType:i="POP",navigator:s,static:o=!1}){qe(!Hs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=w.useMemo(()=>({basename:f,navigator:s,static:o,future:{}}),[f,s,o]);typeof a=="string"&&(a=Sa(a));let{pathname:h="/",search:p="",hash:g="",state:b=null,key:y="default"}=a,v=w.useMemo(()=>{let E=br(h,f);return E==null?null:{location:{pathname:E,search:p,hash:g,state:b,key:y},navigationType:i}},[f,h,p,g,b,y,i]);return Jt(v!=null,`<Router basename="${f}"> is not able to match the URL "${h}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:w.createElement(Fr.Provider,{value:d},w.createElement(Ls.Provider,{children:n,value:v}))}function hC({children:e,location:n}){return XO(mm(e),n)}function mm(e,n=[]){let a=[];return w.Children.forEach(e,(i,s)=>{if(!w.isValidElement(i))return;let o=[...n,s];if(i.type===w.Fragment){a.push.apply(a,mm(i.props.children,o));return}qe(i.type===Cc,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),qe(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(f.children=mm(i.props.children,o)),a.push(f)}),a}var Tc="get",Rc="application/x-www-form-urlencoded";function Jc(e){return e!=null&&typeof e.tagName=="string"}function mC(e){return Jc(e)&&e.tagName.toLowerCase()==="button"}function pC(e){return Jc(e)&&e.tagName.toLowerCase()==="form"}function yC(e){return Jc(e)&&e.tagName.toLowerCase()==="input"}function gC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vC(e,n){return e.button===0&&(!n||n==="_self")&&!gC(e)}var fc=null;function bC(){if(fc===null)try{new FormData(document.createElement("form"),0),fc=!1}catch{fc=!0}return fc}var SC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bh(e){return e!=null&&!SC.has(e)?(Jt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rc}"`),null):e}function xC(e,n){let a,i,s,o,f;if(pC(e)){let d=e.getAttribute("action");i=d?br(d,n):null,a=e.getAttribute("method")||Tc,s=Bh(e.getAttribute("enctype"))||Rc,o=new FormData(e)}else if(mC(e)||yC(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(i=h?br(h,n):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||Tc,s=Bh(e.getAttribute("formenctype"))||Bh(d.getAttribute("enctype"))||Rc,o=new FormData(d,e),!bC()){let{name:p,type:g,value:b}=e;if(g==="image"){let y=p?`${p}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else p&&o.append(p,b)}}else{if(Jc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Tc,i=null,s=Rc,f=e}return o&&s==="text/plain"&&(f=o,o=void 0),{action:i,method:a.toLowerCase(),encType:s,formData:o,body:f}}function ap(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function EC(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function wC(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function OC(e,n,a){let i=await Promise.all(e.map(async s=>{let o=n.routes[s.route.id];if(o){let f=await EC(o,a);return f.links?f.links():[]}return[]}));return DC(i.flat(1).filter(wC).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function s1(e,n,a,i,s,o){let f=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var g;return a[p].pathname!==h.pathname||((g=a[p].route.path)==null?void 0:g.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return o==="assets"?n.filter((h,p)=>f(h,p)||d(h,p)):o==="data"?n.filter((h,p)=>{var b;let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(f(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=a[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function CC(e,n){return TC(e.map(a=>{let i=n.routes[a.route.id];if(!i)return[];let s=[i.module];return i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function TC(e){return[...new Set(e)]}function RC(e){let n={},a=Object.keys(e).sort();for(let i of a)n[i]=e[i];return n}function DC(e,n){let a=new Set;return new Set(n),e.reduce((i,s)=>{let o=JSON.stringify(RC(s));return a.has(o)||(a.add(o),i.push({key:o,link:s})),i},[])}function AC(e){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function MC(){let e=w.useContext(eu);return ap(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jC(){let e=w.useContext(zs);return ap(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ip=w.createContext(void 0);ip.displayName="FrameworkContext";function Z0(){let e=w.useContext(ip);return ap(e,"You must render this element inside a <HydratedRouter> element"),e}function _C(e,n){let a=w.useContext(ip),[i,s]=w.useState(!1),[o,f]=w.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:b}=n,y=w.useRef(null);w.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let x=T=>{T.forEach(A=>{f(A.isIntersecting)})},O=new IntersectionObserver(x,{threshold:.5});return y.current&&O.observe(y.current),()=>{O.disconnect()}}},[e]),w.useEffect(()=>{if(i){let x=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(x)}}},[i]);let v=()=>{s(!0)},E=()=>{s(!1),f(!1)};return a?e!=="intent"?[o,y,{}]:[o,y,{onFocus:fs(d,v),onBlur:fs(h,E),onMouseEnter:fs(p,v),onMouseLeave:fs(g,E),onTouchStart:fs(b,v)}]:[!1,y,{}]}function fs(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function NC({page:e,...n}){let{router:a}=MC(),i=w.useMemo(()=>Wa(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?w.createElement(LC,{page:e,matches:i,...n}):null}function zC(e){let{manifest:n,routeModules:a}=Z0(),[i,s]=w.useState([]);return w.useEffect(()=>{let o=!1;return OC(e,n,a).then(f=>{o||s(f)}),()=>{o=!0}},[e,n,a]),i}function LC({page:e,matches:n,...a}){let i=tu(),{manifest:s,routeModules:o}=Z0(),{loaderData:f,matches:d}=jC(),h=w.useMemo(()=>s1(e,n,d,s,i,"data"),[e,n,d,s,i]),p=w.useMemo(()=>s1(e,n,d,s,i,"assets"),[e,n,d,s,i]),g=w.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let v=new Set,E=!1;if(n.forEach(O=>{var A;let T=s.routes[O.route.id];!T||!T.hasLoader||(!h.some(j=>j.route.id===O.route.id)&&O.route.id in f&&((A=o[O.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?E=!0:v.add(O.route.id))}),v.size===0)return[];let x=AC(e);return E&&v.size>0&&x.searchParams.set("_routes",n.filter(O=>v.has(O.route.id)).map(O=>O.route.id).join(",")),[x.pathname+x.search]},[f,i,s,h,n,e,o]),b=w.useMemo(()=>CC(p,s),[p,s]),y=zC(p);return w.createElement(w.Fragment,null,g.map(v=>w.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...a})),b.map(v=>w.createElement("link",{key:v,rel:"modulepreload",href:v,...a})),y.map(({key:v,link:E})=>w.createElement("link",{key:v,...E})))}function HC(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var I0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I0&&(window.__reactRouterVersion="7.1.2")}catch{}function UC(e,n){return CO({basename:n==null?void 0:n.basename,future:n==null?void 0:n.future,history:Xw({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||$C(),routes:e,mapRouteProperties:uC,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function $C(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:BC(e.errors)}),e}function BC(e){if(!e)return null;let n=Object.entries(e),a={};for(let[i,s]of n)if(s&&s.__type==="RouteErrorResponse")a[i]=new Lc(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let f=new o(s.message);f.stack="",a[i]=f}catch{}}if(a[i]==null){let o=new Error(s.message);o.stack="",a[i]=o}}else a[i]=s;return a}var J0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,al=w.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:s,reloadDocument:o,replace:f,state:d,target:h,to:p,preventScrollReset:g,viewTransition:b,...y},v){let{basename:E}=w.useContext(Fr),x=typeof p=="string"&&J0.test(p),O,T=!1;if(typeof p=="string"&&x&&(O=p,I0))try{let z=new URL(window.location.href),K=p.startsWith("//")?new URL(z.protocol+p):new URL(p),ee=br(K.pathname,E);K.origin===z.origin&&ee!=null?p=ee+K.search+K.hash:T=!0}catch{Jt(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=YO(p,{relative:s}),[j,_,C]=_C(i,y),q=kC(p,{replace:f,state:d,target:h,preventScrollReset:g,relative:s,viewTransition:b});function U(z){n&&n(z),z.defaultPrevented||q(z)}let k=w.createElement("a",{...y,...C,href:O||A,onClick:T||o?n:U,ref:HC(v,_),target:h,"data-discover":!x&&a==="render"?"true":void 0});return j&&!x?w.createElement(w.Fragment,null,k,w.createElement(NC,{page:A})):k});al.displayName="Link";var W0=w.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:o,to:f,viewTransition:d,children:h,...p},g){let b=Us(f,{relative:p.relative}),y=tu(),v=w.useContext(zs),{navigator:E,basename:x}=w.useContext(Fr),O=v!=null&&GC(b)&&d===!0,T=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,A=y.pathname,j=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;a||(A=A.toLowerCase(),j=j?j.toLowerCase():null,T=T.toLowerCase()),j&&x&&(j=br(j,x)||j);const _=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let C=A===T||!s&&A.startsWith(T)&&A.charAt(_)==="/",q=j!=null&&(j===T||!s&&j.startsWith(T)&&j.charAt(T.length)==="/"),U={isActive:C,isPending:q,isTransitioning:O},k=C?n:void 0,z;typeof i=="function"?z=i(U):z=[i,C?"active":null,q?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let K=typeof o=="function"?o(U):o;return w.createElement(al,{...p,"aria-current":k,className:z,ref:g,style:K,to:f,viewTransition:d},typeof h=="function"?h(U):h)});W0.displayName="NavLink";var PC=w.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:s,state:o,method:f=Tc,action:d,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:b,...y},v)=>{let E=YC(),x=QC(d,{relative:p}),O=f.toLowerCase()==="get"?"get":"post",T=typeof d=="string"&&J0.test(d),A=j=>{if(h&&h(j),j.defaultPrevented)return;j.preventDefault();let _=j.nativeEvent.submitter,C=(_==null?void 0:_.getAttribute("formmethod"))||f;E(_||j.currentTarget,{fetcherKey:n,method:C,navigate:a,replace:s,state:o,relative:p,preventScrollReset:g,viewTransition:b})};return w.createElement("form",{ref:v,method:O,action:x,onSubmit:i?h:A,...y,"data-discover":!T&&e==="render"?"true":void 0})});PC.displayName="Form";function qC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eS(e){let n=w.useContext(eu);return qe(n,qC(e)),n}function kC(e,{target:n,replace:a,state:i,preventScrollReset:s,relative:o,viewTransition:f}={}){let d=tp(),h=tu(),p=Us(e,{relative:o});return w.useCallback(g=>{if(vC(g,n)){g.preventDefault();let b=a!==void 0?a:fi(h)===fi(p);d(e,{replace:b,state:i,preventScrollReset:s,relative:o,viewTransition:f})}},[h,d,p,a,i,n,e,s,o,f])}var FC=0,VC=()=>`__${String(++FC)}__`;function YC(){let{router:e}=eS("useSubmit"),{basename:n}=w.useContext(Fr),a=aC();return w.useCallback(async(i,s={})=>{let{action:o,method:f,encType:d,formData:h,body:p}=xC(i,n);if(s.navigate===!1){let g=s.fetcherKey||VC();await e.fetch(g,a,s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||f,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||f,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:a,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,a])}function QC(e,{relative:n}={}){let{basename:a}=w.useContext(Fr),i=w.useContext(wr);qe(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),o={...Us(e||".",{relative:n})},f=tu();if(e==null){o.search=f.search;let d=new URLSearchParams(o.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(b=>b).forEach(b=>d.append("index",b));let g=d.toString();o.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(o.pathname=o.pathname==="/"?a:Ur([a,o.pathname])),fi(o)}function GC(e,n={}){let a=w.useContext(Wm);qe(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=eS("useViewTransitionState"),s=Us(e,{relative:n.relative});if(!a.isTransitioning)return!1;let o=br(a.currentLocation.pathname,i)||a.currentLocation.pathname,f=br(a.nextLocation.pathname,i)||a.nextLocation.pathname;return zc(s.pathname,f)!=null||zc(s.pathname,o)!=null}new TextEncoder;var Ph={exports:{}},qh={};/**
|
|
62
|
-
* @license React
|
|
63
|
-
* react-compiler-runtime.production.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var o1;function KC(){if(o1)return qh;o1=1;var e=Ns().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return qh.c=function(n){return e.H.useMemoCache(n)},qh}var c1;function XC(){return c1||(c1=1,Ph.exports=KC()),Ph.exports}var Ht=XC();const tS=6e4,nS=36e5,f1=Symbol.for("constructDateFrom");function rS(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&f1 in e?e[f1](n):e instanceof Date?new e.constructor(n):new Date(n)}function Os(e,n){return rS(n||e,e)}function ZC(e,n){const a=+Os(e)-+Os(n);return a<0?-1:a>0?1:a}function aS(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ka(e,n){const a=e<0?"-":"",i=Math.abs(e).toString().padStart(n,"0");return a+i}function d1(e,n){const a=Os(e,n==null?void 0:n.in);if(isNaN(+a))throw new RangeError("Invalid time value");const i=(n==null?void 0:n.format)??"extended",s=(n==null?void 0:n.representation)??"complete";let o="",f="";const d=i==="extended"?"-":"",h=i==="extended"?":":"";if(s!=="time"){const p=Ka(a.getDate(),2),g=Ka(a.getMonth()+1,2);o=`${Ka(a.getFullYear(),4)}${d}${g}${d}${p}`}if(s!=="date"){const p=a.getTimezoneOffset();if(p!==0){const x=Math.abs(p),O=Ka(Math.trunc(x/60),2),T=Ka(x%60,2);f=`${p<0?"+":"-"}${O}:${T}`}else f="Z";const g=Ka(a.getHours(),2),b=Ka(a.getMinutes(),2),y=Ka(a.getSeconds(),2),v=o===""?"":"T",E=[g,b,y].join(h);o=`${o}${v}${E}${f}`}return o}function IC(e,n){const a=()=>rS(n==null?void 0:n.in,NaN),s=tT(e);let o;if(s.date){const p=nT(s.date,2);o=rT(p.restDateString,p.year)}if(!o||isNaN(+o))return a();const f=+o;let d=0,h;if(s.time&&(d=aT(s.time),isNaN(d)))return a();if(s.timezone){if(h=iT(s.timezone),isNaN(h))return a()}else{const p=new Date(f+d),g=Os(0,n==null?void 0:n.in);return g.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),g.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),g}return Os(f+d+h,n==null?void 0:n.in)}const dc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},JC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,WC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,eT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tT(e){const n={},a=e.split(dc.dateTimeDelimiter);let i;if(a.length>2)return n;if(/:/.test(a[0])?i=a[0]:(n.date=a[0],i=a[1],dc.timeZoneDelimiter.test(n.date)&&(n.date=e.split(dc.timeZoneDelimiter)[0],i=e.substr(n.date.length,e.length))),i){const s=dc.timezone.exec(i);s?(n.time=i.replace(s[1],""),n.timezone=s[1]):n.time=i}return n}function nT(e,n){const a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=e.match(a);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function rT(e,n){if(n===null)return new Date(NaN);const a=e.match(JC);if(!a)return new Date(NaN);const i=!!a[4],s=ds(a[1]),o=ds(a[2])-1,f=ds(a[3]),d=ds(a[4]),h=ds(a[5])-1;if(i)return cT(n,d,h)?uT(n,d,h):new Date(NaN);{const p=new Date(0);return!sT(n,o,f)||!oT(n,s)?new Date(NaN):(p.setUTCFullYear(n,o,Math.max(s,f)),p)}}function ds(e){return e?parseInt(e):1}function aT(e){const n=e.match(WC);if(!n)return NaN;const a=kh(n[1]),i=kh(n[2]),s=kh(n[3]);return fT(a,i,s)?a*nS+i*tS+s*1e3:NaN}function kh(e){return e&&parseFloat(e.replace(",","."))||0}function iT(e){if(e==="Z")return 0;const n=e.match(eT);if(!n)return 0;const a=n[1]==="+"?-1:1,i=parseInt(n[2]),s=n[3]&&parseInt(n[3])||0;return dT(i,s)?a*(i*nS+s*tS):NaN}function uT(e,n,a){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,o=(n-1)*7+a+1-s;return i.setUTCDate(i.getUTCDate()+o),i}const lT=[31,null,31,30,31,30,31,31,30,31,30,31];function iS(e){return e%400===0||e%4===0&&e%100!==0}function sT(e,n,a){return n>=0&&n<=11&&a>=1&&a<=(lT[n]||(iS(e)?29:28))}function oT(e,n){return n>=1&&n<=(iS(e)?366:365)}function cT(e,n,a){return n>=1&&n<=53&&a>=0&&a<=6}function fT(e,n,a){return e===24?n===0&&a===0:a>=0&&a<60&&n>=0&&n<60&&e>=0&&e<25}function dT(e,n){return n>=0&&n<=59}const uS={email:hT,date:m1,"date-time":m1},h1={"credit-card-number":mT};function hT(e){if(!e)return!1;const n=e.split("@");return!(n.length!==2||!n[1].includes(".")||n[0].substr(-1)===".")}function m1(e){if(!e)return!1;const n=IC(e);return isNaN(n.getTime())?!1:aS(n)}function mT(e){return typeof e!="string"?"":e.replace(/\D+/g,"")}const pT=lS();function lS(e=0){let n=e;const a=()=>++n;return a.reset=()=>n=0,a}function yT(e){return e.length===0?void 0:e[e.length-1]}function Wc(e,n){if(!Array.isArray(n))return e;const a=new Set(n),i=new Set(e),s=[];for(const o of n)i.has(o)&&s.push(o);for(const o of e)a.has(o)||s.push(o);return s}function sS(e,n){if(!e)throw new Error("Invariant failed")}function oS(e,n){if(!e){console.warn(n);try{throw new Error(n)}catch{}}}function bn(e){return e.type==="object"||!!e.properties||Array.isArray(e.required)||Array.isArray(e.allOf)||!!(e.if&&bn(e.if))}function pm(e,n="schema must be of type object"){if(!e||!bn(e))throw new Error(n)}function di(e){return e.type==="string"||typeof e.const=="string"}function ef(e){return e.type==="number"}function tf(e){return e.type==="integer"}function $s(e){return e.type==="boolean"||typeof e.const=="boolean"}function xa(e){return e.type==="array"}function up(e){return e.type==="null"}function gT(e,n){if(e.$bitiforms&&e.$bitiforms.widget){const a=e.$bitiforms.widget;if(!Object.prototype.hasOwnProperty.call(n,a))throw new Error(`Unknown widget ${a}`);return n[a]}if(up(e))return w.Fragment;if(xa(e))return di(e.items)?n.CheckboxGroupWidget:n.ArrayWidget;if(bn(e))return n.ObjectWidget;if($s(e))return n.CheckboxWidget;if(di(e)){if(e.enum||e.oneOf)return n.RadioGroupWidget;if(e.format&&e.format.startsWith("date"))return n.DateWidget}return ef(e)||tf(e)?n.NumberWidget:n.TextInputWidget}function vT(e,n){const a=gT(e,n);if(a==null)throw new Error(`Resolved widget is undefined for schema ${JSON.stringify(e)}`);return a}const bT={"wizard.next":"Continue","wizard.prev":"Go back","wizard.fixErrorsBeforeContinue":"Fix the errors above before continuing","errors.required":"Must be filled in","errors.radiogroup.required":"Select an element","errors.checkbox.required":"Must be checked","errors.minItems":"You must select at least {count}","errors.maxLength":"The maximum length is {maxLength}","errors.minLength":"The minimum length is {minLength}","errors.minimum":"Minimum value is {minimum}","errors.invalidFormat.email":"Not a valid email address","arrayfield.remove":"Remove item","arrayfield.add":"Add item"},ST=uS,Ia={widgets:{},formats:ST,texts:bT,resolveWidget:vT},lp=w.createContext(Ia);lp.displayName="FormConfigContext";function sp(){return w.useContext(lp)}function xT({widgets:e=Ia.widgets,texts:n=Ia.texts,formats:a=Ia.formats,resolveWidget:i=Ia.resolveWidget,children:s}){const o=w.useMemo(()=>({widgets:{...Ia.widgets,...e},texts:{...Ia.texts,...n},formats:{...Ia.formats,...a},resolveWidget:i}),[e,n,a,i]);return D.jsx(lp.Provider,{value:o,children:s})}const cS=w.createContext({});cS.displayName="FormValuesContext";const op=w.createContext(!1);op.displayName="RevealErrorsContext";function nf(){const e=w.useContext(op),[n,a]=w.useState(!1),i=w.useCallback(()=>a(!0),[]);return w.useEffect(()=>{a(e)},[e]),{value:n,enable:i}}const cp=w.createContext(null);cp.displayName="UpdateValuesContext";function fS(e){const n=w.useContext(cp);if(n==null)throw new Error("Not wrapped in UpdateValuesContext.Provider");return w.useCallback(a=>n(e,a),[e,n])}const dS=w.createContext(null);dS.displayName="FormRendererContext";function gr(e){return e==null?!1:Array.isArray(e)?e.length===0?!1:e.some(n=>gr(n)):hS(e)?!0:typeof e=="object"?Object.keys(e).some(n=>gr(e[n])):typeof e=="string"}function hS(e){return!!(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.message=="string"&&e.args)}function rf(e,n){return e.map(a=>hS(a)?ET((n==null?void 0:n[a.message])??a.message,a.args):(n==null?void 0:n[a])||a).join(", ")}function ET(e,n){const a=Object.keys(n).join("|");return(e||"").replace(new RegExp(`{(${a})}`,"g"),(i,s)=>n[s]??i)}const wT=uS;function mS({formats:e=wT}={}){function n(y,v,E){if(typeof y.const<"u"&&y.const!==v)return[pn("errors.const",y,{value:y.const})];const x=[];if(hc(v))return E?(x.push(Mr("errors.required",y)),x):[];const O=v.length;if(y.minLength&&O<y.minLength&&x.push(pn("errors.minLength",y,{minLength:y.minLength})),y.maxLength&&O>y.maxLength&&x.push(pn("errors.maxLength",y,{maxLength:y.maxLength})),y.enum&&!y.enum.includes(v)&&x.push(pn("errors.oneOf",y,{values:y.enum})),y.oneOf&&!y.oneOf.some(T=>!gr(g(T,v,!0)))&&x.push(pn("errors.oneOf",y,{})),y.format){const T=y.format;oS(Object.prototype.hasOwnProperty.call(e,T),`${T} format validator is not implemented.`);const A=e[T];A!=null&&!A(v)&&x.push(Mr(`errors.invalidFormat.${y.format}`,y))}return x}function a(y,v,E){if(typeof y.const<"u"&&y.const!==v)return[pn("errors.const",y,{value:y.const})];const x=[];return hc(v)?E?(x.push(Mr("errors.required",y)),x):[]:(y.enum&&!y.enum.includes(v)&&x.push(pn("errors.oneOf",y,{values:y.enum})),x)}function i(y,v,E){if(typeof y.const<"u"&&y.const!==v)return[pn("errors.const",y,{value:y.const})];const x=[];if(hc(v)||isNaN(v))return E?(x.push(Mr("errors.required",y)),x):[];const O=parseFloat(`${v}`);return y.minimum&&O<y.minimum&&x.push(pn("errors.minimum",y,{minimum:y.minimum})),y.maximum&&O>y.maximum&&x.push(pn("errors.maximum",y,{maximum:y.maximum})),x}function s(y,v,E){if(typeof y.const<"u"&&y.const!==v)return[pn("errors.const",y,{value:y.const})];const x=[];if(hc(v)||isNaN(v))return E?(x.push(Mr("errors.required",y)),x):[];const O=parseFloat(`${v}`);return Number.isInteger(O)||x.push(Mr("errors.notAnInteger",y)),y.minimum&&O<y.minimum&&x.push(pn("errors.minimum",y,{minimum:y.minimum})),y.maximum&&O>y.maximum&&x.push(pn("errors.maximum",y,{maximum:y.maximum})),x}function o(y,v){const E={all:[],items:[]};if(y.minItems&&y.minItems>0&&(v||[]).length<y.minItems&&E.all.push(pn("errors.minItems",y,{count:y.minItems})),y.maxItems&&(v||[]).length>y.maxItems&&E.all.push(pn("errors.maxItems",y,{count:y.maxItems})),y.contains){const x=y.contains;(!Array.isArray(v)||v.every(O=>gr(g(x,O,!1))))&&E.all.push(Mr("errors.notContains",y))}return v&&v.length>0&&(E.items=v.map(x=>{const O=$r(y.items,x),T=g(O,x,!1);return bn(O)?{_id:x._id,...T}:T})),E}function f(y,v){const E=y.properties||{},x=Object.keys(E).reduce((O,T)=>(O[T]=g(E[T],(v||{})[T],(y.required||[]).includes(T)),O),{_all:[]});if(y.anyOf){let O=!1;for(const T of y.anyOf)if(!gr(f(T,v))){O=!0;break}O||(x._all=[Mr("errors.anyOf",y)])}return x}function d(y,v){return v==null?[]:[Mr("errors.shouldBeNull",y)]}const h=new WeakMap,p=new WeakMap;function g(y,v,E){const x=O=>{const T=h.get(y);if(T!==void 0&&T===v)return p.get(y);const A=O();return h.set(y,v),p.set(y,A),A};if(bn(y))return f(y,v);if(di(y))return x(()=>n(y,v,E));if($s(y))return x(()=>a(y,v,E));if(ef(y))return x(()=>i(y,v,E));if(tf(y))return x(()=>s(y,v,E));if(xa(y))return o(y,v);if(up(y))return d(y,v);throw new Error(`validateSchema() got invalid schema ${JSON.stringify(y)}`)}function b(y,v){return g(y,v,!0)}return{validateSchema:b}}function pn(e,n,a){return{message:Mr(e,n),args:a}}function Mr(e,n){var a,i;return((i=(a=n.$bitiforms)==null?void 0:a.errorMessages)==null?void 0:i[e])||e}function hc(e){return typeof e=="string"?e.trim()==="":e==null}let Fh;function OT(){return Fh==null&&(Fh=mS().validateSchema),Fh}function CT(e,n){if(!bn(e))throw new Error("Tried to evaluate an if that is not a ObjectSchema");const a=OT()(e,n);return!gr(a)}function $r(e,n){const a=e.$bitiforms||{};if(bn(e)){const i={...e.properties||{}},s=[...e.required||[]];for(const f of Object.keys(i))i[f]=$r(i[f],(n||{})[f]);if(e.if){e.then!=null&&pm(e.then,`schemas using \`if\` should also have \`then\` of type object: ${JSON.stringify(e)}`);const f=CT(e.if,n)?e.then:e.else;oS(typeof(f==null?void 0:f.$bitiforms)>"u",`$bitiforms must not be set on branched schemas.
|
|
70
|
-
Got schema ${JSON.stringify(f,null,2)}`);const d=f!=null?$r(f,n):null;d&&(pm(d,`then and else schemas must be object schemas: ${JSON.stringify(d,null,2)}`),d.required&&s.push(...d.required),Object.assign(i,d.properties))}if(e.allOf)for(const f of e.allOf){const d=$r(f,n);bn(d)&&(d.required&&s.push(...d.required),Object.assign(i,d.properties))}const o={type:"object",properties:i,$bitiforms:a,required:[...new Set(s)]};return e.title&&(o.title=e.title),e.description&&(o.description=e.description),o}return e}function Vh(e,n={}){const a=[];for(const i of e){const s=$r(i,n);TT(s)&&a.push(s)}return a}function TT(e){return!!(bn(e)&&e.properties&&Object.keys(e.properties).length>0)}function RT(e,n){if(Array.isArray(e))return Vh(e,n);const a=Object.keys(e.properties||{}).length>0;if(Array.isArray(e.allOf)){const{allOf:i,...s}=e;return Vh(a?[s].concat(i):i,n)}if(a)return Vh([e],n);throw new Error("resolveBaseSchema() either takes an array of ObjectSchemas or an ObjectSchema with an .allOf property.")}function DT(e){const n={type:"object",properties:{}},a=[];for(const i of e)Object.assign(n.properties,i.properties),i.required&&a.push(...i.required);return a.length>0&&(n.required=[...new Set(a)]),n}function ku(e,n){if(bn(e)){const a=e.properties||{};return{...n||hs(e),...Object.keys(a).reduce((i,s)=>(i[s]=ku(a[s],(n||{})[s]),i),{})}}return xa(e)?bn(e.items)?(n||hs(e)).map(a=>{const i=a||hs(e.items);return{...i,_id:i._id==null?pT():i._id,...ku($r(e.items,i),i)}}):(n||hs(e)).map(a=>ku(e.items,a)):Object.prototype.hasOwnProperty.call(e,"const")?e.const:n??hs(e)}function hs(e){if(Object.prototype.hasOwnProperty.call(e,"default"))return e.default;if(bn(e))return{};if(di(e))return"";if($s(e)||ef(e)||tf(e)||up(e))return null;if(xa(e))return[];throw new Error(`getDefaultValue invalid schema ${JSON.stringify(e)}`)}function ym(e,n){if(bn(e)){const a=e.properties||{};return Object.keys(a).reduce((i,s)=>(i[s]=ym(a[s],n[s]),i),{})}return xa(e)?(n||[]).map(a=>ym($r(e.items,a),a)):di(e)&&e.format&&h1[e.format]?h1[e.format](n):n}const AT=(e,n,a)=>(e||[]).find(i=>i._id===n)||a;function MT({id:e,name:n,path:a,value:i,schema:s,errors:o,disabled:f,texts:d,renderAddButton:h,renderItem:p,renderContainer:g}){const[b]=w.useState(()=>{var _;return lS((_=yT(i))==null?void 0:_._id)}),y=fS(a),v=w.useCallback(()=>{y(_=>_.concat({_id:b(),...ku($r(s.items,{}),{})}))},[b,s.items,y]),E=w.useCallback(_=>{y(C=>C.filter(q=>q._id!==_))},[y]),x=w.useCallback((_,C)=>{y(q=>q.map(U=>{if(U._id===_){const k={...U,[C.target.name]:C.target.value};return ku($r(s.items,k),k)}return U}))},[y,s.items]),O=nf();pm(s.items);const T=!!(O.value&&o&&o.all.length>0),A=i.length,j=D.jsxs(D.Fragment,{children:[i.map((_,C)=>D.jsx(jT,{id:_._id,path:`${a}/${C}`,parentId:e,parentName:n,item:_,onFieldChange:x,render:p,index:C,onRemove:E,schema:s.items,errors:o,texts:d},_._id)),h({disabled:f,onClick:v,itemCount:A,texts:d})]});return D.jsx(D.Fragment,{children:g({schema:s,name:n,id:e,children:j,errors:T?rf(o.all,d):null,itemCount:A,texts:d})})}const jT=w.memo(function({parentId:e,parentName:n,path:a,render:i,id:s,index:o,texts:f,onRemove:d,item:h,schema:p,onFieldChange:g,errors:b}){var T;const y=$r(p,h),v=y.properties||{},E=Wc(Object.keys(v),(T=p.$bitiforms)==null?void 0:T.propertyOrder),x=AT(b.items,s,{}),O=E.reduce((A,j)=>(A[j]={path:`${a}/${j}`,schema:(y.properties||{})[j],id:`${e}__${j}__${s}`,name:`${n}__${j}__${s}`,onChange:_=>g(s,{target:{name:j,value:_.target.value}}),value:h[j],errors:x[j],texts:f},A),{});return D.jsx(D.Fragment,{children:i==null?void 0:i({fields:O,index:o,id:s,path:a,onRemove:()=>{d(s)},texts:f})})}),fp=w.memo(function(e){const{texts:n,resolveWidget:a,widgets:i}=sp();sS(typeof e.name=="string"&&e.name.trim()!=="");const s=a(e.schema,i);return D.jsx(w.Suspense,{fallback:D.jsx("div",{}),children:D.jsx(s,{...e,texts:n})})});var Yh,p1;function _T(){if(p1)return Yh;p1=1;var e=typeof Element<"u",n=typeof Map=="function",a=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(o,f){if(o===f)return!0;if(o&&f&&typeof o=="object"&&typeof f=="object"){if(o.constructor!==f.constructor)return!1;var d,h,p;if(Array.isArray(o)){if(d=o.length,d!=f.length)return!1;for(h=d;h--!==0;)if(!s(o[h],f[h]))return!1;return!0}var g;if(n&&o instanceof Map&&f instanceof Map){if(o.size!==f.size)return!1;for(g=o.entries();!(h=g.next()).done;)if(!f.has(h.value[0]))return!1;for(g=o.entries();!(h=g.next()).done;)if(!s(h.value[1],f.get(h.value[0])))return!1;return!0}if(a&&o instanceof Set&&f instanceof Set){if(o.size!==f.size)return!1;for(g=o.entries();!(h=g.next()).done;)if(!f.has(h.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(f)){if(d=o.length,d!=f.length)return!1;for(h=d;h--!==0;)if(o[h]!==f[h])return!1;return!0}if(o.constructor===RegExp)return o.source===f.source&&o.flags===f.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof f.valueOf=="function")return o.valueOf()===f.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof f.toString=="function")return o.toString()===f.toString();if(p=Object.keys(o),d=p.length,d!==Object.keys(f).length)return!1;for(h=d;h--!==0;)if(!Object.prototype.hasOwnProperty.call(f,p[h]))return!1;if(e&&o instanceof Element)return!1;for(h=d;h--!==0;)if(!((p[h]==="_owner"||p[h]==="__v"||p[h]==="__o")&&o.$$typeof)&&!s(o[p[h]],f[p[h]]))return!1;return!0}return o!==o&&f!==f}return Yh=function(f,d){try{return s(f,d)}catch(h){if((h.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw h}},Yh}var NT=_T();const Dc=Zc(NT);let zT=class gm{static from(n){if(n==="")return new gm([]);n.startsWith("/")||(n=`/${n}`);const[,...a]=n.split("/");return new gm(a.map(i=>i.replace(/~1/g,"/").replace(/~0/g,"~")))}constructor(n){this.tokens=n}toString(){return this.tokens.length===0?"":`/${this.tokens.map(n=>n.replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`}toPath(){return this.tokens}};function LT(e,n,a){const i=(typeof n=="string"?zT.from(n):n).toPath(),s=(o,f,d,h)=>{let p,g=f[h];return f.length>h?(Array.isArray(o)?(g=parseInt(g,10),p=o.slice()):p={...o},p[g]=s(o[g]!==void 0?o[g]:{},f,d,h+1),p):typeof d=="function"?d(o):d};return s(e,i,a,0)}let Hc=class extends Error{constructor(n){super("SubmissionError"),this.errors=n}};const y1=1,g1=2,v1=4,b1=5,S1=6,x1=7,E1=8,HT={};function UT(e){const n=w.useId();return e||n}function $T({name:e,initialValues:n=HT,schema:a,disabled:i,onSubmit:s,onFormValuesChanged:o}){const f=BT(),d=UT(e);function h(_,C){function q(U){const k=Gh(a,U.values,!1,f());let z=!0;Dc(k.steps,U.steps)&&(z=!1,k.steps=U.steps);let K=!0;Dc(k.values,U.values)&&(K=!1,k.values=U.values);let ee=!0;return Dc(k.errors,U.errors)&&(ee=!1,k.errors=U.errors),!z&&!K&&!ee?U:{...U,...k}}switch(C.type){case y1:return{..._,submissionState:"not-submitted",submissionErrors:{},revealAllErrors:!1};case g1:return q(_);case v1:return{..._,submissionState:"submitting"};case b1:return{..._,submissionState:"submitted"};case S1:{const U=C.error;return{..._,submissionState:"failed",submissionErrors:U instanceof Hc?U.errors:{},revealAllErrors:!0}}case x1:return{..._,revealAllErrors:C.value};case E1:return q({..._,values:LT(_.values,C.path,C.updater)});default:return _}}const p=w.useRef(!0);w.useEffect(()=>(p.current=!0,()=>{p.current=!1}),[]);const[g,b]=w.useReducer(h,void 0,()=>{const{steps:_,errors:C,values:q}=Gh(a,n,!1,f());return{values:q,steps:_,touched:{},errors:C,submissionState:"not-submitted",submissionErrors:{},revealAllErrors:!1}});w.useEffect(()=>{o==null||o(g.values)},[g.values,o]),w.useEffect(()=>{b({type:g1})},[a]);const y=w.useCallback(_=>{b({type:x1,value:_})},[]),v=w.useCallback((_,C)=>{b({type:E1,path:_,updater:C})},[]),E=w.useCallback(_=>{if(i)return;const{name:C,value:q}=_.target;v("",U=>({...U,[C]:q}))},[i,v]),x=async _=>{var k;if(!p.current||i)return;(k=_.preventDefault)==null||k.call(_),b({type:v1});const{errors:C,values:q}=Gh(a,g.values,!0,f()),U=!gr(C);try{if(await(s==null?void 0:s({values:q,errors:C,isValid:U}))===!1)throw new Hc({});b({type:b1})}catch(z){b({type:S1,error:z})}},O=()=>g.steps.map(_=>{const{properties:C={},$bitiforms:q={}}=_,U=Wc(Object.keys(C),q.propertyOrder).reduce((k,z)=>(k[z]={path:z,schema:C[z],value:g.values[z],id:`form-${d}-${z}`,name:z,errors:g.errors[z],onChange:E,disabled:i},k),{});return{isValid:()=>!Object.keys(U).some(k=>gr(U[k].errors)),fields:U}}),T=w.useCallback(()=>{p.current&&b({type:y1})},[]),A=O(),j={name:d,errors:g.errors,steps:A,values:g.values,onSubmit:x,submissionState:g.submissionState,clearSubmission:T,submissionErrors:g.submissionErrors,revealAllErrors:y,schema:a};return[j,{revealAllErrors:g.revealAllErrors,values:j.values,updateValues:v}]}function Qh({revealAllErrors:e,values:n,updateValues:a,children:i}){return D.jsx(cp.Provider,{value:a,children:D.jsx(op.Provider,{value:e,children:D.jsx(cS.Provider,{value:n,children:i})})})}function pS({render:e,component:n,element:a,...i}){const[s,o]=$T(i);if(typeof e=="function"&&n)throw new Error("one of render or component must be provided, but not both");if(typeof e=="function")return D.jsx(Qh,{...o,children:e(s)});if(a)return D.jsx(Qh,{...o,children:D.jsx(dS.Provider,{value:s,children:a})});if(n)return D.jsx(Qh,{...o,children:D.jsx(n,{...s})});throw new Error("one of render or component must be provided")}function BT(){const{formats:e}=sp(),n=w.useRef(null);function a(){return n.current==null&&(n.current=mS({formats:e})),n.current}return a}function Gh(e,n,a,i){const s=RT(e,n),o=DT(s);let f=ku(o,n);a&&(f=ym(o,f));const d=i.validateSchema(o,f);return{steps:s,values:f,errors:d}}function PT({id:e,name:n,path:a,value:i,schema:s,errors:o,disabled:f,texts:d}){const h=fS(a),p=w.useCallback((y,v)=>{h(E=>({...E,[y]:v}))},[h]),g=s.$bitiforms||{},b=s.properties||{};return D.jsxs("div",{"data-bitiforms-object":!0,role:"group","data-field-path":a,children:[s.title&&D.jsx("legend",{"data-bitiforms-object-title":!0,children:s.title}),s.description&&D.jsx("div",{"data-bitiforms-object-description":!0,children:s.description}),D.jsx("div",{"data-bitiforms-object-fields":!0,children:Wc(Object.keys(b),g.propertyOrder).map(y=>{const v=`${n}_${y}`;return D.jsx(qT,{path:`${a}/${y}`,field:y,schema:b[y],value:i[y],id:`${e}_${y}`,errors:o[y],name:v,onChange:p,disabled:f,texts:d},v)})})]})}const qT=w.memo(function({field:e,onChange:n,...a}){return D.jsx(fp,{...a,onChange:i=>n(e,i.target.value)})});function kT(e){var a;if(!e.enum)return[];const n=[];for(let i=0;i<e.enum.length;i++)n.push([e.enum[i],((a=e.$enumNames)==null?void 0:a[i])||e.enum[i]]);return n}function yS(e){return w.useMemo(()=>{if(di(e)){const n=s=>s,a=s=>s;let i=[];return e.enum?i=kT(e):e.oneOf&&(i=e.oneOf.map(s=>{const o=s.const?s.const:s.enum?s.enum[0]:null;return[o||"",s.title||o||""]})),{values:i,fromSchemaValue:a,toSchemaValue:n}}if($s(e))return{values:[["yes","Yes"],["no","No"]],fromSchemaValue:n=>n===!0?"yes":n===!1?"no":null,toSchemaValue:n=>{switch(n){case"yes":return!0;case"no":return!1;default:return null}}};if(ef(e)||tf(e)){const n=i=>parseInt(i??"",10),a=[];for(let i=e.minimum??0;i<=(e.maximum??20);i++)a.push([`${i}`,`${i}`]);return{values:a,fromSchemaValue:i=>`${i}`,toSchemaValue:n}}throw new Error("Invalid schema given to SelectWidget")},[e])}const FT=e=>e;function Bs(e,n=FT){const a=e.name,i=nf(),s=()=>{i.enable()},o=d=>{const h=n(d.target.value);e.onChange({target:{name:a,value:h}})},f=i.value?rf(e.errors,e.texts):void 0;return{onBlur:s,onChange:o,error:f,schema:e.schema,$bitiforms:e.schema.$bitiforms||{},id:e.id,name:e.name,value:e.value,disabled:e.disabled}}var gS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w1=Hr.createContext&&Hr.createContext(gS),VT=["attr","size","title"];function YT(e,n){if(e==null)return{};var a=QT(e,n),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)i=o[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function QT(e,n){if(e==null)return{};var a={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;a[i]=e[i]}return a}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Uc.apply(this,arguments)}function O1(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,i)}return a}function $c(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?O1(Object(a),!0).forEach(function(i){GT(e,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O1(Object(a)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(a,i))})}return e}function GT(e,n,a){return n=KT(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function KT(e){var n=XT(e,"string");return typeof n=="symbol"?n:n+""}function XT(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function vS(e){return e&&e.map((n,a)=>Hr.createElement(n.tag,$c({key:a},n.attr),vS(n.child)))}function Wt(e){return n=>Hr.createElement(ZT,Uc({attr:$c({},e.attr)},n),vS(e.child))}function ZT(e){var n=a=>{var{attr:i,size:s,title:o}=e,f=YT(e,VT),d=s||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),Hr.createElement("svg",Uc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,i,f,{className:h,style:$c($c({color:e.color||a.color},a.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&Hr.createElement("title",null,o),e.children)};return w1!==void 0?Hr.createElement(w1.Consumer,null,a=>n(a)):n(gS)}function IT(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M346.5 240H272v-74.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-74.5c-8.8 0-16 6-16 16s7.5 16 16 16H240v74.5c0 9.5 7 16 16 16s16-7.2 16-16V272h74.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function JT(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.5 240H272v-96.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-96.5c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7H240v96.5c0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7 8.8 0 16-7.2 16-16V272h96.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]}]})(e)}function WT(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm17.2 109.6l-3.1 115.1c-.2 8.2-5.9 14.8-14.1 14.8s-13.9-6.6-14.1-14.8l-3.1-115.1c-.2-9.6 7.5-17.6 17.2-17.6 9.6 0 17.4 7.9 17.2 17.6zM256 354c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4c10.7 0 19.1 8.1 19.1 18.4S266.7 354 256 354z"},child:[]}]})(e)}function eR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}function tR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function nR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]}]})(e)}function dp(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"},child:[]}]})(e)}function rR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M88.3 68.1c-5.6-5.5-14.6-5.5-20.1.1-5.5 5.5-5.5 14.5 0 20l355.5 355.7c3.7 3.7 9 4.9 13.7 3.6 2.4-.6 4.6-1.9 6.4-3.7 5.5-5.5 5.5-14.5 0-20L88.3 68.1zM260.2 345.9c-53 2.4-96.6-41.2-94.1-94.1.6-12.2 3.6-23.8 8.6-34.3L121.3 164c-27.7 21.4-55.4 48.9-85.1 81.3-5.5 6.1-5.6 15.2-.1 21.3C101 338.3 158.2 400 255.8 400c29.7 0 57.1-7.4 82.3-19.2l-43.5-43.5c-10.6 5-22.2 8-34.4 8.6zM475.8 266c5.3-5.8 5.6-14.6.5-20.7C424 181.8 351.5 112 255.8 112c-29.1 0-56 6.6-82 19l43.7 43.7c10.5-5 22.1-8.1 34.3-8.6 53-2.4 96.6 41.2 94.1 94.1-.6 12.2-3.6 23.8-8.6 34.3l53.5 53.5c33-25.3 61.3-55.9 85-82z"},child:[]},{tag:"path",attr:{d:"M192.2 260.9c2.4 31.3 27.6 56.5 58.9 58.9 8.2.6 16.1-.3 23.4-2.6l-79.8-79.8c-2.2 7.4-3.1 15.3-2.5 23.5zM320 256c0-1.3-.1-2.6-.1-3.9-5.6 2.5-11.7 3.9-18.2 3.9-1.1 0-2.1 0-3.1-.1l18.6 18.7c1.8-5.9 2.8-12.2 2.8-18.6zM256 209c0-6 1.1-11.7 3.1-16.9-1 0-2-.1-3.1-.1-6.4 0-12.6 1-18.5 2.8l18.7 18.7c-.1-1.5-.2-3-.2-4.5z"},child:[]}]})(e)}function aR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M255.8 112c-80.4 0-143.8 50.6-219.6 133.3-5.5 6.1-5.6 15.2-.1 21.3C101 338.3 158.2 400 255.8 400c96.4 0 168.7-77.7 220.1-134 5.3-5.8 5.6-14.6.5-20.7C424 181.8 351.5 112 255.8 112zm4.4 233.9c-53 2.4-96.6-41.2-94.1-94.1 2.1-46.2 39.5-83.6 85.7-85.7 53-2.4 96.6 41.2 94.1 94.1-2.1 46.2-39.5 83.6-85.7 85.7z"},child:[]},{tag:"path",attr:{d:"M256 209c0-6 1.1-11.7 3.1-16.9-1 0-2-.1-3.1-.1-36.9 0-66.6 31.4-63.8 68.9 2.4 31.3 27.6 56.5 58.9 58.9 37.5 2.8 68.9-26.9 68.9-63.8 0-1.3-.1-2.6-.1-3.9-5.6 2.5-11.7 3.9-18.2 3.9-25.2 0-45.7-21.1-45.7-47z"},child:[]}]})(e)}function C1(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm19 304h-38.2V207.9H275V352zm-19.1-159.8c-11.3 0-20.5-8.6-20.5-20s9.3-19.9 20.5-19.9c11.4 0 20.7 8.5 20.7 19.9s-9.3 20-20.7 20z"},child:[]}]})(e)}function iR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]}]})(e)}function uR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M443.5 420.2L336.7 312.4c20.9-26.2 33.5-59.4 33.5-95.5 0-84.5-68.5-153-153.1-153S64 132.5 64 217s68.5 153 153.1 153c36.6 0 70.1-12.8 96.5-34.2l106.1 107.1c3.2 3.4 7.6 5.1 11.9 5.1 4.1 0 8.2-1.5 11.3-4.5 6.6-6.3 6.8-16.7.6-23.3zm-226.4-83.1c-32.1 0-62.3-12.5-85-35.2-22.7-22.7-35.2-52.9-35.2-84.9 0-32.1 12.5-62.3 35.2-84.9 22.7-22.7 52.9-35.2 85-35.2s62.3 12.5 85 35.2c22.7 22.7 35.2 52.9 35.2 84.9 0 32.1-12.5 62.3-35.2 84.9-22.7 22.7-52.9 35.2-85 35.2z"},child:[]}]})(e)}function lR(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M228.9 79.9L51.8 403.1C40.6 423.3 55.5 448 78.9 448h354.3c23.3 0 38.2-24.7 27.1-44.9L283.1 79.9c-11.7-21.2-42.5-21.2-54.2 0zM273.6 214L270 336h-28l-3.6-122h35.2zM256 402.4c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4 19.1 8.1 19.1 18.4-8.4 18.4-19.1 18.4z"},child:[]}]})(e)}var Kh={exports:{}};/*!
|
|
71
|
-
Copyright (c) 2018 Jed Watson.
|
|
72
|
-
Licensed under the MIT License (MIT), see
|
|
73
|
-
http://jedwatson.github.io/classnames
|
|
74
|
-
*/var T1;function sR(){return T1||(T1=1,function(e){(function(){var n={}.hasOwnProperty;function a(){for(var o="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(o=s(o,i(d)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var f="";for(var d in o)n.call(o,d)&&o[d]&&(f=s(f,d));return f}function s(o,f){return f?o?o+" "+f:o+f:o}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(Kh)),Kh.exports}var oR=sR();const $e=Zc(oR);function cR(e){throw new Error(`The prop "${e}" is required`)}const bS=e=>dR(e,"-");function SS(e,n=[],a={}){for(const i of Object.keys(e)){const s=e[i],o=n.concat([bS(i)]);typeof s=="object"&&s!=null?SS(s,o,a):a[o.join("-")]=s}return a}function xS(e,n,a=[]){return new Proxy(e,{get(i,s,o){const f=a.concat(s.toString()),d=Reflect.get(i,s,o);return d&&typeof d=="object"&&!Array.isArray(d)?xS(d,n,f):n(f,d)}})}function ES(e){return xS(e,n=>`var(--${n.map(bS).join("-")})`)}function fR(e,n){if(e!=null)if(typeof e=="function")e(n);else try{e.current=n}catch{throw new Error(`Cannot assign value "${n}" to ref "${e}"`)}}function wS(...e){return w.useMemo(()=>e.every(n=>n==null)?null:n=>{e.forEach(a=>{fR(a,n)})},[...e])}function af(e,n){const a=w.createContext(n);return a.displayName=e,a}function dR(e,n){return e.replace(/([a-z\d])([A-Z])/g,`$1${n}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${n}$2`).toLowerCase()}function vm(e){return e==null?[]:Array.isArray(e)?e:[e]}var ms={alert:"BZ7qn",title:"hdHDi",closeButton:"SgstT",content:"Q9Sh5",error:"VGIpm",success:"DlYCJ",info:"rHcuC",warning:"OC-ol",none:"xqeOj"};const hR={success:tR,error:WT,warning:lR,info:C1,none:C1};function uf({intent:e="none",title:n,onClose:a,children:i,...s}){const o=hR[e];return D.jsxs("div",{...s,className:$e(ms.alert,s.className,ms[e]),children:[a&&D.jsx("button",{type:"button",onClick:a,className:ms.closeButton,"aria-label":"Close",children:D.jsx(dp,{})}),D.jsxs("div",{className:ms.title,children:[D.jsx(o,{}),n]}),typeof i<"u"&&D.jsx("div",{className:ms.content,children:i})]})}function mR(){var e;return typeof window<"u"&&!!((e=window.document)!=null&&e.createElement)}const Cs=mR(),hp=Cs?w.useLayoutEffect:w.useEffect;var Xh={badge:"xeHAL","badge-danger":"cgE-K","badge-warning":"_0U-VJ","badge-success":"ZgKwX","badge-pill":"OBQRM",notificationBadge:"LzQDv"};const R1=({as:e="span",intent:n="none",pill:a=!1,className:i,ref:s,...o})=>D.jsx(e,{ref:s,...o,className:$e(Xh.badge,Xh[`badge-${n}`],a&&Xh["badge-pill"],i)});var mc={root:"mtrF8",contained:"W8YVd","intent-danger":"_3UX8S","intent-none":"-HhPB",text:"_2LiTf",outlined:"_9x9uq","size-s":"_5jbkc","size-m":"tf6zw","size-l":"_7vljf"},$u={root:"QAwiK",static:"xse-M",circle:"bWHVH",indeterminate:"uxHDU","circular-rotate":"fvokD",circleStatic:"aGrAV",circleIndeterminate:"vIA5t","circular-dash":"pIgMi"};function OS({size:e=52,thickness:n=2,value:a,color:i="var(--CircularProgress-color)",...s}){const o={},f={},d={};if(typeof a=="number"){const h=2*Math.PI*((e-n)/2);o.strokeDasharray=h.toFixed(3),d["aria-valuenow"]=Math.round(a),o.strokeDashoffset=`${((100-a)/100*h).toFixed(3)}px`,f.transform="rotate(-90deg)"}return D.jsx("div",{className:$e($u.root,{[$u.indeterminate]:a==null,[$u.static]:typeof a=="number"}),style:{color:i,width:e,height:e,...f},role:"progressbar",...d,...s,children:D.jsx("svg",{viewBox:`${e/2} ${e/2} ${e} ${e}`,children:D.jsx("circle",{className:$e($u.circle,{[$u.circleIndeterminate]:a==null,[$u.circleStatic]:typeof a=="number"}),style:o,cx:e,cy:e,r:(e-n)/2,fill:"none",strokeWidth:n})})})}const pR=e=>{let n=Cs?e.map(a=>window.matchMedia(a).matches):e.map(()=>!0);return{subscribe(a){if(!Cs)return()=>{};const i=e.map(o=>window.matchMedia(o));n=i.map(o=>o.matches);const s=()=>{n=e.map(o=>window.matchMedia(o).matches),a()};for(const o of i)o.addEventListener("change",s);return()=>{for(const o of i)o.removeEventListener("change",s)}},getSnapshot(){return n},getServerSnapshot(){return n}}};function CS(e){const n=vm(e),a=n.join("/"),i=w.useMemo(()=>pR(n),[a]),s=w.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getServerSnapshot);return Array.isArray(e)?s:s[0]}function yR(e,n){const a=()=>{if(!Cs)return n;try{return JSON.parse(window.localStorage.getItem(e)||"null")??n}catch{return n}},[i,s]=w.useState(a);return w.useEffect(()=>{if(Cs)try{i!==void 0?window.localStorage.setItem(e,JSON.stringify(i)):window.localStorage.removeItem(e)}catch{}},[e,i]),w.useEffect(()=>{const o=f=>{if(!(f.key!==e||f.storageArea!==window.localStorage))try{f.newValue!=null&&s(JSON.parse(f.newValue))}catch{}};return window.addEventListener("storage",o),()=>{window.removeEventListener("storage",o)}},[e]),[i,s]}const Zh=e=>`screen and (min-width: ${e})`,gR=[Zh("0px"),Zh("600px"),Zh("1200px")];function vR(e){return JSON.parse(JSON.stringify(e),(n,a)=>{if(typeof a=="string"&&a.startsWith("#")){const[i,s,o,f]=TR(a);return`hsla(${i}, ${s*.9}%, ${100-o}%, ${f})`}return a})}function TS(e){return bR(e)}function bR(e){const{id:n=`theme-${new Date().getTime()*Math.random()}`,...a}=e,{primary:i="#0074d9",secondary:s="#a2c14e",danger:o="#d2322d",...f}=a.colors||{},d="#fff",h={"05":"#f9fafb",10:"#f3f4f6",20:"#e5e7eb",30:"#d1d5db",40:"#9ca3af",50:"#6b7280",60:"#4b5563",70:"#374151",80:"#1f2937",90:"#111827",95:"#030712"},p={"05":"#fef2f2",10:"#fee2e2",20:"#fecaca",30:"#fca5a5",40:"#f87171",50:"#ef4444",60:"#dc2626",70:"#b91c1c",80:"#991b1b",90:"#7f1d1d",95:"#450a0a"};return{id:n,tokens:{...a,spacing:{auto:"auto",none:"0px",xxs:"2px",xs:"4px",s:"8px",m:"16px",l:"24px",xl:"32px",xxl:"64px",...a.spacing},fonts:{base:"Inter",...a.fonts},colors:{gray:h,red:p,linkText:"#000000",primaryText:"#1f2937",primary:i,secondary:s,primaryLight:fr(i,20),primaryDark:fr(i,-20),secondaryLight:fr(s,20),secondaryDark:fr(s,-20),danger:o,dangerLight:fr(o,20),dangerDark:fr(o,-20),warning:"#fbbf24",warningTint:fr("#fff3cd",-10),warningLight:"#fff3cd",success:"#047857",successTint:fr("#d4edda",-10),successLight:"#d4edda",info:"#0c5460",infoTint:fr("#d1ecf1",-10),infoLight:"#d1ecf1",white:d,formsBorder:h[30],formsBorderHover:h[40],formsBorderFocus:"transparent",formsBorderDisabled:"#ccc",formsBorderError:p[60],formsBorderWidth:"1px",formsBorderRadius:"4px",formsPadding:"8px",formsBackground:h["05"],formsBackgroundHover:d,formsBackgroundFocus:d,formsBackgroundDisabled:h[10],formsBackgroundError:p["05"],formsText:h[60],formsTextDisabled:h[50],formsTextError:h[60],formsTextPlaceholder:h[40],formsError:p[60],formsShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.06)",selection:{background:fr(i,10),text:"#fff"},...f},shadows:{elevation0:"none",elevation1:"0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.1)",elevation2:"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",...a.shadows},borderRadius:{s:"4px",...a.borderRadius},focusRing:{width:"2px",color:"rgba(64, 122, 230, 0.6)",...a.focusRing},zIndex:Array.from({length:10}).map((g,b)=>b*100),cursor:{pointer:"pointer",...a.cursor}},breakpoints:gR}}const bm=TS({id:"dmk-default",colors:{primary:"#0074d9",secondary:"#a2c14e"}}),RS=w.createContext({theme:bm,setTheme:()=>{},darkMode:!1,setDarkMode:()=>!1,tokens:ES(bm.tokens)});function SR({theme:e=bm,children:n,injectCssCustomProperties:a=!0,allowDarkMode:i=!1,respectDefaultDarkMode:s=!1,themeColor:o="var(--theme-color)"}){const[f,d]=w.useState(e);w.useEffect(()=>{d(e)},[e]);const h=w.useMemo(()=>vR(f),[f]),p=CS("(prefers-color-scheme: dark)"),[g,b]=yR("dmk-dark-mode",s?p:!1),y=g&&i?h:f;w.useEffect(()=>{const E=document.createElement("div");E.style.background=o,document.body.appendChild(E);const x=window.getComputedStyle(E).backgroundColor;document.body.removeChild(E);let O=document.querySelector('meta[name="theme-color"]');O==null&&(O=document.createElement("meta"),O.setAttribute("name","theme-color"),document.head.appendChild(O)),O.setAttribute("content",x)},[g,o]),w.useInsertionEffect(()=>{a&&wR(SS(y.tokens)),document.body.setAttribute("data-mode",g?"dark":"light")},[y,a,g]);const v=w.useMemo(()=>({theme:y,tokens:ES(y.tokens),setTheme:d,darkMode:g,setDarkMode:b}),[y,g,b]);return D.jsx(RS,{value:v,children:D.jsx(ER,{breakpoints:e.breakpoints,children:n})})}function xR(){return w.use(RS)}function DS(){return w.use(AS)}function mp(){const{tokens:e}=xR();return e}const AS=af("BreakpointsContext",[!1,!1,!0]);function ER({breakpoints:e,children:n}){const a=CS(e);return D.jsx(AS,{value:a,children:n})}function wR(e){for(const n of Object.keys(e))document.documentElement.style.setProperty(`--${n}`,e[n])}function fr(e,n){return`#${e.replace(/^#/,"").replace(/../g,a=>`0${Math.min(255,Math.max(0,parseInt(a,16)+n)).toString(16)}`.slice(-2))}`}function OR(e){e.startsWith("#")&&(e=e.slice(1));let[n,a,i,s]=[0,0,0,1];if(e.length===3)n=parseInt(`${e[0]}${e[0]}`,16),a=parseInt(`${e[1]}${e[1]}`,16),i=parseInt(`${e[2]}${e[2]}`,16),s=1;else if(e.length===4)n=parseInt(`${e[0]}${e[0]}`,16),a=parseInt(`${e[1]}${e[1]}`,16),i=parseInt(`${e[2]}${e[2]}`,16),s=parseInt(`${e[3]}${e[3]}`,16),s=+(s/255).toFixed(3);else if(e.length===6)n=parseInt(`${e[0]}${e[1]}`,16),a=parseInt(`${e[2]}${e[3]}`,16),i=parseInt(`${e[4]}${e[5]}`,16),s=1;else if(e.length===8)n=parseInt(`${e[0]}${e[1]}`,16),a=parseInt(`${e[2]}${e[3]}`,16),i=parseInt(`${e[4]}${e[5]}`,16),s=parseInt(`${e[6]}${e[7]}`,16),s=+(s/255).toFixed(3);else throw new Error(`Invalid hex: ${e}`);return[n,a,i,s]}function CR(e,n,a,i){e/=255,n/=255,a/=255;const s=Math.min(e,n,a),o=Math.max(e,n,a),f=o-s;let[d,h,p]=[0,0,0];return f===0?d=0:o===e?d=(n-a)/f%6:o===n?d=(a-e)/f+2:d=(e-n)/f+4,d=Math.round(d*60),d<0&&(d+=360),p=(o+s)/2,h=f===0?0:f/(1-Math.abs(2*p-1)),h=+(h*100).toFixed(1),p=+(p*100).toFixed(1),[d,h,p,i]}function TR(e){return CR(...OR(e))}const hi=({as:e="button",variant:n="contained",intent:a="none",className:i,color:s,style:o,size:f,isPending:d,disabled:h,children:p,...g})=>{const b=MS({variant:n,intent:a,color:s,className:i,style:o,size:f});return D.jsxs(e,{"data-state":d?"pending":"initial",type:e==="button"?"button":void 0,onTouchStart:()=>{},...g,...b,disabled:h||d,children:[p,d&&D.jsx(D.Fragment,{children:D.jsx(OS,{size:20,thickness:2})})]})};function MS({variant:e="contained",intent:n="none",color:a,style:i,size:s="m",className:o}={}){return{style:{...a&&{"--Button-color":a,"--Button-hoverColor":fr(a,20)},...i},className:$e(mc.root,mc[e],mc[`intent-${n}`],mc[`size-${s}`],o)}}var Ih={root:"nwF8S",checkbox:"_076Ml",hiddenCheckbox:"vULBC"},pc={vstack:"f-weF","stack--spacing-none":"_4n4EX",hstack:"O-Obi","stack--spacing-xxs":"FpVz1","stack--spacing-xs":"yXJ18","stack--spacing-s":"fvPFs","stack--spacing-m":"_9zB8n","stack--spacing-l":"Fh5sy","stack--spacing-xl":"_1cgrL","stack--spacing-xxl":"nfwQY",wrap:"NcK99"};function pp(e){const n=DS();return Array.isArray(e)?jS(n,e):e}function Ss(e){const n=DS();return e.map(a=>Array.isArray(a)?jS(n,a):a)}function jS(e,n){for(let a=e.length-1;a>=0;a-=1)if(e[a])return n[a];throw new Error("Invalid breakpoint config. At least one of them should have min-width: 0px")}function RR({height:e="m",horizontal:n=!1}){const[a,i]=Ss([e,n]),s=mp();return D.jsx("div",{style:{flexGrow:0,flexShrink:0,[i?"width":"height"]:typeof a=="number"?a:s.spacing[a].valueOf()}})}function DR(e){const n=mp(),{alignItems:a,alignSelf:i,justifyContent:s,paddingLeft:o,paddingRight:f,paddingTop:d,paddingBottom:h,paddingX:p,paddingY:g,padding:b,marginLeft:y,marginRight:v,marginTop:E,marginBottom:x,marginX:O,marginY:T,margin:A,...j}=e,[_,C,q]=Ss([s,a,i]),[U,k,z,K,ee,oe,X]=Ss([o,f,d,h,p,g,b]).map(ce=>typeof ce=="number"||ce==null?ce:n.spacing[ce]),[re,ne,$,I,ae,G,M]=Ss([y,v,E,x,O,T,A]).map(ce=>typeof ce=="number"||ce==null?ce:n.spacing[ce]),V={};return ee!=null&&(V.paddingLeft=ee.valueOf(),V.paddingRight=ee.valueOf()),oe!=null&&(V.paddingTop=oe.valueOf(),V.paddingBottom=oe.valueOf()),U!=null&&(V.paddingLeft=U.valueOf()),k!=null&&(V.paddingRight=k.valueOf()),z!=null&&(V.paddingTop=z.valueOf()),K!=null&&(V.paddingBottom=K.valueOf()),X!=null&&(V.padding=X.valueOf()),ae!=null&&(V.marginLeft=ae.valueOf(),V.marginRight=ae.valueOf()),G!=null&&(V.marginTop=$==null?void 0:$.valueOf(),V.marginBottom=I==null?void 0:I.valueOf()),re!=null&&(V.marginLeft=re.valueOf()),ne!=null&&(V.marginRight=ne.valueOf()),$!=null&&(V.marginTop=$.valueOf()),I!=null&&(V.marginBottom=I.valueOf()),M!=null&&(V.margin=M.valueOf()),_!=null&&(V.justifyContent=_),C!=null&&(V.alignItems=C),q!=null&&(V.alignSelf=q),[V,j]}const Sr=function({as:e="div",spacing:n="m",justifyContent:a="flex-start",alignItems:i="stretch",horizontal:s=!1,wrap:o=!1,...f}){const[d,h,p]=Ss([s,n,o]),[g,b]=DR({alignItems:i,justifyContent:a,...f});return D.jsx(e,{...b,className:$e(d?pc.hstack:pc.vstack,p&&pc.wrap,f.className,typeof h!="number"&&pc[`stack--spacing-${h}`]),style:{...g,...f.style}})},AR=af("CheckboxGroupContext",null);function _S({children:e,error:n,style:a,className:i,indeterminate:s,...o}){const f=MR(o);return D.jsxs("label",{"aria-disabled":f.disabled,"data-error":n,className:$e(Ih.root,i),style:a,children:[D.jsx("input",{type:"checkbox",...o,className:$e("dmk-visually-hidden",Ih.hiddenCheckbox),"aria-checked":f.checked,"aria-invalid":n?"true":"false","data-indeterminate":s,...f}),D.jsx("span",{className:Ih.checkbox}),D.jsx("span",{children:e})]})}function MR(e){const n=w.use(AR);return n==null?e:{value:e.value,name:n.name,checked:n.isChecked(e.value),disabled:n.disabled,onChange:n.onChange}}var jR=Object.defineProperty,_R=Object.defineProperties,NR=Object.getOwnPropertyDescriptors,Bc=Object.getOwnPropertySymbols,NS=Object.prototype.hasOwnProperty,zS=Object.prototype.propertyIsEnumerable,D1=(e,n,a)=>n in e?jR(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,se=(e,n)=>{for(var a in n||(n={}))NS.call(n,a)&&D1(e,a,n[a]);if(Bc)for(var a of Bc(n))zS.call(n,a)&&D1(e,a,n[a]);return e},we=(e,n)=>_R(e,NR(n)),Ke=(e,n)=>{var a={};for(var i in e)NS.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Bc)for(var i of Bc(e))n.indexOf(i)<0&&zS.call(e,i)&&(a[i]=e[i]);return a},zR=Object.defineProperty,LR=Object.defineProperties,HR=Object.getOwnPropertyDescriptors,Pc=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,HS=Object.prototype.propertyIsEnumerable,A1=(e,n,a)=>n in e?zR(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,ut=(e,n)=>{for(var a in n||(n={}))LS.call(n,a)&&A1(e,a,n[a]);if(Pc)for(var a of Pc(n))HS.call(n,a)&&A1(e,a,n[a]);return e},Qt=(e,n)=>LR(e,HR(n)),US=(e,n)=>{var a={};for(var i in e)LS.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Pc)for(var i of Pc(e))n.indexOf(i)<0&&HS.call(e,i)&&(a[i]=e[i]);return a};function Ac(...e){}function $S(e,n){if(UR(e)){const a=$R(n)?n():n;return e(a)}return e}function UR(e){return typeof e=="function"}function $R(e){return typeof e=="function"}function ga(e,n){return typeof Object.hasOwn=="function"?Object.hasOwn(e,n):Object.prototype.hasOwnProperty.call(e,n)}function Bn(...e){return(...n)=>{for(const a of e)typeof a=="function"&&a(...n)}}function BR(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function PR(e,n){const a=ut({},e);for(const i of n)ga(a,i)&&delete a[i];return a}function qR(e,n){const a={};for(const i of n)ga(e,i)&&(a[i]=e[i]);return a}function BS(e){return e}function en(e,n){if(!e)throw typeof n!="string"?new Error("Invariant failed"):new Error(n)}function kR(e){return Object.keys(e)}function PS(e,...n){const a=typeof e=="function"?e(...n):e;return a==null?!1:!a}function Ps(e){return e.disabled||e["aria-disabled"]===!0||e["aria-disabled"]==="true"}function ll(e){const n={};for(const a in e)e[a]!==void 0&&(n[a]=e[a]);return n}function et(...e){for(const n of e)if(n!==void 0)return n}function Sm(e,n){typeof e=="function"?e(n):e&&(e.current=n)}function FR(e){return!e||!w.isValidElement(e)?!1:"ref"in e.props||"ref"in e}function VR(e){return FR(e)?se({},e.props).ref||e.ref:null}function YR(e,n){const a=se({},e);for(const i in n){if(!ga(n,i))continue;if(i==="className"){const o="className";a[o]=e[o]?`${e[o]} ${n[o]}`:n[o];continue}if(i==="style"){const o="style";a[o]=e[o]?se(se({},e[o]),n[o]):n[o];continue}const s=n[i];if(typeof s=="function"&&i.startsWith("on")){const o=e[i];if(typeof o=="function"){a[i]=(...f)=>{s(...f),o(...f)};continue}}a[i]=s}return a}var sl=QR();function QR(){var e;return typeof window<"u"&&!!((e=window.document)!=null&&e.createElement)}function gt(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function qS(e){return e?"self"in e?e.self:gt(e).defaultView||window:self}function Ea(e,n=!1){const{activeElement:a}=gt(e);if(!(a!=null&&a.nodeName))return null;if(yp(a)&&a.contentDocument)return Ea(a.contentDocument.body,n);if(n){const i=a.getAttribute("aria-activedescendant");if(i){const s=gt(a).getElementById(i);if(s)return s}}return a}function Lt(e,n){return e===n||e.contains(n)}function yp(e){return e.tagName==="IFRAME"}function mi(e){const n=e.tagName.toLowerCase();return n==="button"?!0:n==="input"&&e.type?GR.indexOf(e.type)!==-1:!1}var GR=["button","color","file","image","reset","submit"];function kS(e){if(typeof e.checkVisibility=="function")return e.checkVisibility();const n=e;return n.offsetWidth>0||n.offsetHeight>0||e.getClientRects().length>0}function wa(e){try{const n=e instanceof HTMLInputElement&&e.selectionStart!==null,a=e.tagName==="TEXTAREA";return n||a||!1}catch{return!1}}function xm(e){return e.isContentEditable||wa(e)}function KR(e){if(wa(e))return e.value;if(e.isContentEditable){const n=gt(e).createRange();return n.selectNodeContents(e),n.toString()}return""}function XR(e){let n=0,a=0;if(wa(e))n=e.selectionStart||0,a=e.selectionEnd||0;else if(e.isContentEditable){const i=gt(e).getSelection();if(i!=null&&i.rangeCount&&i.anchorNode&&Lt(e,i.anchorNode)&&i.focusNode&&Lt(e,i.focusNode)){const s=i.getRangeAt(0),o=s.cloneRange();o.selectNodeContents(e),o.setEnd(s.startContainer,s.startOffset),n=o.toString().length,o.setEnd(s.endContainer,s.endOffset),a=o.toString().length}}return{start:n,end:a}}function gp(e,n){const a=["dialog","menu","listbox","tree","grid"],i=e==null?void 0:e.getAttribute("role");return i&&a.indexOf(i)!==-1?i:n}function FS(e,n){var a;const i={menu:"menuitem",listbox:"option",tree:"treeitem"},s=gp(e);return s&&(a=i[s])!=null?a:n}function VS(e){if(!e)return null;const n=a=>a==="auto"||a==="scroll";if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:a}=getComputedStyle(e);if(n(a))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:a}=getComputedStyle(e);if(n(a))return e}return VS(e.parentElement)||document.scrollingElement||document.body}function YS(e,n){const a=e.map((s,o)=>[o,s]);let i=!1;return a.sort(([s,o],[f,d])=>{const h=n(o),p=n(d);return h===p||!h||!p?0:ZR(h,p)?(s>f&&(i=!0),-1):(s<f&&(i=!0),1)}),i?a.map(([s,o])=>o):e}function ZR(e,n){return!!(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function IR(){return sl&&!!navigator.maxTouchPoints}function vp(){return sl?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function bp(){return sl&&vp()&&/apple/i.test(navigator.vendor)}function JR(){return sl&&/firefox\//i.test(navigator.userAgent)}function WR(){return sl&&navigator.platform.startsWith("Mac")&&!IR()}function QS(e){return!!(e.currentTarget&&!Lt(e.currentTarget,e.target))}function Hn(e){return e.target===e.currentTarget}function e4(e){const n=e.currentTarget;if(!n)return!1;const a=vp();if(a&&!e.metaKey||!a&&!e.ctrlKey)return!1;const i=n.tagName.toLowerCase();return i==="a"||i==="button"&&n.type==="submit"||i==="input"&&n.type==="submit"}function t4(e){const n=e.currentTarget;if(!n)return!1;const a=n.tagName.toLowerCase();return e.altKey?a==="a"||a==="button"&&n.type==="submit"||a==="input"&&n.type==="submit":!1}function n4(e,n,a){const i=new Event(n,a);return e.dispatchEvent(i)}function Bu(e,n){const a=new FocusEvent("blur",n),i=e.dispatchEvent(a),s=Qt(ut({},n),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",s)),i}function r4(e,n,a){const i=new KeyboardEvent(n,a);return e.dispatchEvent(i)}function M1(e,n){const a=new MouseEvent("click",n);return e.dispatchEvent(a)}function Pu(e,n){const a=n||e.currentTarget,i=e.relatedTarget;return!i||!Lt(a,i)}function xs(e,n,a,i){const o=(d=>{const h=requestAnimationFrame(d);return()=>cancelAnimationFrame(h)})(()=>{e.removeEventListener(n,f,!0),a()}),f=()=>{o(),a()};return e.addEventListener(n,f,{once:!0,capture:!0}),o}function It(e,n,a,i=window){const s=[];try{i.document.addEventListener(e,n,a);for(const f of Array.from(i.frames))s.push(It(e,n,a,f))}catch{}return()=>{try{i.document.removeEventListener(e,n,a)}catch{}for(const f of s)f()}}var Sp=se({},Gw),j1=Sp.useId;Sp.useDeferredValue;var _1=Sp.useInsertionEffect,ct=sl?w.useLayoutEffect:w.useEffect;function GS(e){const n=w.useRef(e);return ct(()=>{n.current=e}),n}function Ye(e){const n=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return _1?_1(()=>{n.current=e}):n.current=e,w.useCallback((...a)=>{var i;return(i=n.current)==null?void 0:i.call(n,...a)},[])}function a4(e){const[n,a]=w.useState(null);return ct(()=>{if(n==null||!e)return;let i=null;return e(s=>(i=s,n)),()=>{e(i)}},[n,e]),[n,a]}function Ut(...e){return w.useMemo(()=>{if(e.some(Boolean))return n=>{for(const a of e)Sm(a,n)}},e)}function nu(e){if(j1){const i=j1();return e||i}const[n,a]=w.useState(e);return ct(()=>{if(e||n)return;const i=Math.random().toString(36).slice(2,8);a(`id-${i}`)},[e,n]),e||n}function xp(e,n){const a=o=>{if(typeof o=="string")return o},[i,s]=w.useState(()=>a(n));return ct(()=>{const o=e&&"current"in e?e.current:e;s((o==null?void 0:o.tagName.toLowerCase())||a(n))},[e,n]),i}function lf(e,n){const a=w.useRef(!1);w.useEffect(()=>{if(a.current)return e();a.current=!0},n),w.useEffect(()=>()=>{a.current=!1},[])}function i4(){return w.useReducer(()=>[],[])}function Un(e){return Ye(typeof e=="function"?e:()=>e)}function vn(e,n,a=[]){const i=w.useCallback(s=>(e.wrapElement&&(s=e.wrapElement(s)),n(s)),[...a,e.wrapElement]);return we(se({},e),{wrapElement:i})}function Ep(e=!1,n){const[a,i]=w.useState(null);return{portalRef:Ut(i,n),portalNode:a,domReady:!e||a}}function KS(e,n,a){const i=e.onLoadedMetadataCapture,s=w.useMemo(()=>Object.assign(()=>{},we(se({},i),{[n]:a})),[i,n,a]);return[i==null?void 0:i[n],{onLoadedMetadataCapture:s}]}function wp(){return w.useEffect(()=>{It("mousemove",l4,!0),It("mousedown",yc,!0),It("mouseup",yc,!0),It("keydown",yc,!0),It("scroll",yc,!0)},[]),Ye(()=>Op)}var Op=!1,N1=0,z1=0;function u4(e){const n=e.movementX||e.screenX-N1,a=e.movementY||e.screenY-z1;return N1=e.screenX,z1=e.screenY,n||a||!1}function l4(e){u4(e)&&(Op=!0)}function yc(){Op=!1}function Xe(e){const n=w.forwardRef((a,i)=>e(we(se({},a),{ref:i})));return n.displayName=e.displayName||e.name,n}function Cp(e,n){return w.memo(e,n)}function Ie(e,n){const a=n,{wrapElement:i,render:s}=a,o=Ke(a,["wrapElement","render"]),f=Ut(n.ref,VR(s));let d;if(w.isValidElement(s)){const h=we(se({},s.props),{ref:f});d=w.cloneElement(s,YR(o,h))}else s?d=s(o):d=D.jsx(e,se({},o));return i?i(d):d}function tt(e){const n=(a={})=>e(a);return n.displayName=e.name,n}function Oa(e=[],n=[]){const a=w.createContext(void 0),i=w.createContext(void 0),s=()=>w.useContext(a),o=(p=!1)=>{const g=w.useContext(i),b=s();return p?g:g||b},f=()=>{const p=w.useContext(i),g=s();if(!(p&&p===g))return g},d=p=>e.reduceRight((g,b)=>D.jsx(b,we(se({},p),{children:g})),D.jsx(a.Provider,se({},p)));return{context:a,scopedContext:i,useContext:s,useScopedContext:o,useProviderContext:f,ContextProvider:d,ScopedContextProvider:p=>D.jsx(d,we(se({},p),{children:n.reduceRight((g,b)=>D.jsx(b,we(se({},p),{children:g})),D.jsx(i.Provider,se({},p)))}))}}var qs=Oa(),s4=qs.useContext;qs.useScopedContext;qs.useProviderContext;var o4=qs.ContextProvider,c4=qs.ScopedContextProvider,ks=Oa([o4],[c4]),sf=ks.useContext;ks.useScopedContext;var f4=ks.useProviderContext,of=ks.ContextProvider,Tp=ks.ScopedContextProvider,d4=w.createContext(void 0),h4=w.createContext(void 0);function ru(e,n){const a=e.__unstableInternals;return en(a,"Invalid store"),a[n]}function Pr(e,...n){let a=e,i=a,s=Symbol(),o=Ac;const f=new Set,d=new Set,h=new Set,p=new Set,g=new Set,b=new WeakMap,y=new WeakMap,v=k=>(h.add(k),()=>h.delete(k)),E=()=>{const k=f.size,z=Symbol();f.add(z);const K=()=>{f.delete(z),!f.size&&o()};if(k)return K;const ee=kR(a).map(re=>Bn(...n.map(ne=>{var $;const I=($=ne==null?void 0:ne.getState)==null?void 0:$.call(ne);if(I&&ga(I,re))return va(ne,[re],ae=>{q(re,ae[re],!0)})}))),oe=[];for(const re of h)oe.push(re());const X=n.map(Rp);return o=Bn(...ee,...oe,...X),K},x=(k,z,K=p)=>(K.add(z),y.set(z,k),()=>{var ee;(ee=b.get(z))==null||ee(),b.delete(z),y.delete(z),K.delete(z)}),O=(k,z)=>x(k,z),T=(k,z)=>(b.set(z,z(a,a)),x(k,z)),A=(k,z)=>(b.set(z,z(a,i)),x(k,z,g)),j=k=>Pr(qR(a,k),U),_=k=>Pr(PR(a,k),U),C=()=>a,q=(k,z,K=!1)=>{var ee;if(!ga(a,k))return;const oe=$S(z,a[k]);if(oe===a[k])return;if(!K)for(const $ of n)(ee=$==null?void 0:$.setState)==null||ee.call($,k,oe);const X=a;a=Qt(ut({},a),{[k]:oe});const re=Symbol();s=re,d.add(k);const ne=($,I,ae)=>{var G;const M=y.get($),V=ce=>ae?ae.has(ce):ce===k;(!M||M.some(V))&&((G=b.get($))==null||G(),b.set($,$(a,I)))};for(const $ of p)ne($,X);queueMicrotask(()=>{if(s!==re)return;const $=a;for(const I of g)ne(I,i,d);i=$,d.clear()})},U={getState:C,setState:q,__unstableInternals:{setup:v,init:E,subscribe:O,sync:T,batch:A,pick:j,omit:_}};return U}function pa(e,...n){if(e)return ru(e,"setup")(...n)}function Rp(e,...n){if(e)return ru(e,"init")(...n)}function Dp(e,...n){if(e)return ru(e,"subscribe")(...n)}function va(e,...n){if(e)return ru(e,"sync")(...n)}function Em(e,...n){if(e)return ru(e,"batch")(...n)}function Ap(e,...n){if(e)return ru(e,"omit")(...n)}function m4(e,...n){if(e)return ru(e,"pick")(...n)}function Mp(...e){const n=e.reduce((i,s)=>{var o;const f=(o=s==null?void 0:s.getState)==null?void 0:o.call(s);return f?Object.assign(i,f):i},{}),a=Pr(n,...e);return Object.assign({},...e,a)}var Jh={exports:{}},Wh={};/**
|
|
75
|
-
* @license React
|
|
76
|
-
* use-sync-external-store-shim.production.js
|
|
77
|
-
*
|
|
78
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the MIT license found in the
|
|
81
|
-
* LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/var L1;function p4(){if(L1)return Wh;L1=1;var e=Ns();function n(b,y){return b===y&&(b!==0||1/b===1/y)||b!==b&&y!==y}var a=typeof Object.is=="function"?Object.is:n,i=e.useState,s=e.useEffect,o=e.useLayoutEffect,f=e.useDebugValue;function d(b,y){var v=y(),E=i({inst:{value:v,getSnapshot:y}}),x=E[0].inst,O=E[1];return o(function(){x.value=v,x.getSnapshot=y,h(x)&&O({inst:x})},[b,v,y]),s(function(){return h(x)&&O({inst:x}),b(function(){h(x)&&O({inst:x})})},[b]),f(v),v}function h(b){var y=b.getSnapshot;b=b.value;try{var v=y();return!a(b,v)}catch{return!0}}function p(b,y){return y()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Wh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Wh}var H1;function y4(){return H1||(H1=1,Jh.exports=p4()),Jh.exports}var g4=y4();const v4=Zc(g4);var{useSyncExternalStore:XS}=v4,ZS=()=>()=>{};function qt(e,n=BS){const a=w.useCallback(s=>e?Dp(e,null,s):ZS(),[e]),i=()=>{const s=typeof n=="string"?n:null,o=typeof n=="function"?n:null,f=e==null?void 0:e.getState();if(o)return o(f);if(f&&s&&ga(f,s))return f[s]};return XS(a,i,i)}function b4(e,n){const a=w.useRef({}),i=w.useCallback(o=>e?Dp(e,null,o):ZS(),[e]),s=()=>{const o=e==null?void 0:e.getState();let f=!1;const d=a.current;for(const h in n){const p=n[h];if(typeof p=="function"){const g=p(o);g!==d[h]&&(d[h]=g,f=!0)}if(typeof p=="string"){if(!o||!ga(o,p))continue;const g=o[p];g!==d[h]&&(d[h]=g,f=!0)}}return f&&(a.current=se({},d)),a.current};return XS(i,s,s)}function Zt(e,n,a,i){const s=ga(n,a)?n[a]:void 0,o=i?n[i]:void 0,f=GS({value:s,setValue:o});ct(()=>va(e,[a],(d,h)=>{const{value:p,setValue:g}=f.current;g&&d[a]!==h[a]&&d[a]!==p&&g(d[a])}),[e,a]),ct(()=>{if(s!==void 0)return e.setState(a,s),Em(e,[a],()=>{s!==void 0&&e.setState(a,s)})})}function jp(e,n){const[a,i]=w.useState(()=>e(n));ct(()=>Rp(a),[a]);const s=w.useCallback(d=>qt(a,d),[a]),o=w.useMemo(()=>we(se({},a),{useState:s}),[a,s]),f=Ye(()=>{i(d=>e(se(se({},n),d.getState())))});return[o,f]}function S4(e){var n;const a=e.find(o=>!!o.element),i=[...e].reverse().find(o=>!!o.element);let s=(n=a==null?void 0:a.element)==null?void 0:n.parentElement;for(;s&&(i!=null&&i.element);){if(i&&s.contains(i.element))return s;s=s.parentElement}return gt(s).body}function x4(e){return e==null?void 0:e.__unstablePrivateStore}function E4(e={}){var n;e.store;const a=(n=e.store)==null?void 0:n.getState(),i=et(e.items,a==null?void 0:a.items,e.defaultItems,[]),s=new Map(i.map(y=>[y.id,y])),o={items:i,renderedItems:et(a==null?void 0:a.renderedItems,[])},f=x4(e.store),d=Pr({items:i,renderedItems:o.renderedItems},f),h=Pr(o,e.store),p=y=>{const v=YS(y,E=>E.element);d.setState("renderedItems",v),h.setState("renderedItems",v)};pa(h,()=>Rp(d)),pa(d,()=>Em(d,["items"],y=>{h.setState("items",y.items)})),pa(d,()=>Em(d,["renderedItems"],y=>{let v=!0,E=requestAnimationFrame(()=>{const{renderedItems:A}=h.getState();y.renderedItems!==A&&p(y.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(E);const x=()=>{if(v){v=!1;return}cancelAnimationFrame(E),E=requestAnimationFrame(()=>p(y.renderedItems))},O=S4(y.renderedItems),T=new IntersectionObserver(x,{root:O});for(const A of y.renderedItems)A.element&&T.observe(A.element);return()=>{cancelAnimationFrame(E),T.disconnect()}}));const g=(y,v,E=!1)=>{let x;return v(T=>{const A=T.findIndex(({id:_})=>_===y.id),j=T.slice();if(A!==-1){x=T[A];const _=ut(ut({},x),y);j[A]=_,s.set(y.id,_)}else j.push(y),s.set(y.id,y);return j}),()=>{v(T=>{if(!x)return E&&s.delete(y.id),T.filter(({id:_})=>_!==y.id);const A=T.findIndex(({id:_})=>_===y.id);if(A===-1)return T;const j=T.slice();return j[A]=x,s.set(y.id,x),j})}},b=y=>g(y,v=>d.setState("items",v),!0);return Qt(ut({},h),{registerItem:b,renderItem:y=>Bn(b(y),g(y,v=>d.setState("renderedItems",v))),item:y=>{if(!y)return null;let v=s.get(y);if(!v){const{items:E}=d.getState();v=E.find(x=>x.id===y),v&&s.set(y,v)}return v||null},__unstablePrivateStore:d})}function w4(e,n,a){return lf(n,[a.store]),Zt(e,a,"items","setItems"),e}function IS(e){const n=[];for(const a of e)n.push(...a);return n}function wm(e){return e.slice().reverse()}var O4={id:null};function ca(e,n){return e.find(a=>n?!a.disabled&&a.id!==n:!a.disabled)}function C4(e,n){return e.filter(a=>n?!a.disabled&&a.id!==n:!a.disabled)}function U1(e,n){return e.filter(a=>a.rowId===n)}function T4(e,n,a=!1){const i=e.findIndex(s=>s.id===n);return[...e.slice(i+1),...a?[O4]:[],...e.slice(0,i)]}function JS(e){const n=[];for(const a of e){const i=n.find(s=>{var o;return((o=s[0])==null?void 0:o.rowId)===a.rowId});i?i.push(a):n.push([a])}return n}function WS(e){let n=0;for(const{length:a}of e)a>n&&(n=a);return n}function R4(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function D4(e,n,a){const i=WS(e);for(const s of e)for(let o=0;o<i;o+=1){const f=s[o];if(!f||a&&f.disabled){const h=o===0&&a?ca(s):s[o-1];s[o]=h&&n!==h.id&&a?h:R4(h==null?void 0:h.rowId)}}return e}function A4(e){const n=JS(e),a=WS(n),i=[];for(let s=0;s<a;s+=1)for(const o of n){const f=o[s];f&&i.push(Qt(ut({},f),{rowId:f.rowId?`${s}`:void 0}))}return i}function M4(e={}){var n;const a=(n=e.store)==null?void 0:n.getState(),i=E4(e),s=et(e.activeId,a==null?void 0:a.activeId,e.defaultActiveId),o=Qt(ut({},i.getState()),{id:et(e.id,a==null?void 0:a.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:s,baseElement:et(a==null?void 0:a.baseElement,null),includesBaseElement:et(e.includesBaseElement,a==null?void 0:a.includesBaseElement,s===null),moves:et(a==null?void 0:a.moves,0),orientation:et(e.orientation,a==null?void 0:a.orientation,"both"),rtl:et(e.rtl,a==null?void 0:a.rtl,!1),virtualFocus:et(e.virtualFocus,a==null?void 0:a.virtualFocus,!1),focusLoop:et(e.focusLoop,a==null?void 0:a.focusLoop,!1),focusWrap:et(e.focusWrap,a==null?void 0:a.focusWrap,!1),focusShift:et(e.focusShift,a==null?void 0:a.focusShift,!1)}),f=Pr(o,i,e.store);pa(f,()=>va(f,["renderedItems","activeId"],h=>{f.setState("activeId",p=>{var g;return p!==void 0?p:(g=ca(h.renderedItems))==null?void 0:g.id})}));const d=(h="next",p={})=>{var g,b;const y=f.getState(),{skip:v=0,activeId:E=y.activeId,focusShift:x=y.focusShift,focusLoop:O=y.focusLoop,focusWrap:T=y.focusWrap,includesBaseElement:A=y.includesBaseElement,renderedItems:j=y.renderedItems,rtl:_=y.rtl}=p,C=h==="up"||h==="down",q=h==="next"||h==="down",U=q?_&&!C:!_||C,k=x&&!v;let z=C?IS(D4(JS(j),E,k)):j;if(z=U?wm(z):z,z=C?A4(z):z,E==null)return(g=ca(z))==null?void 0:g.id;const K=z.find(G=>G.id===E);if(!K)return(b=ca(z))==null?void 0:b.id;const ee=z.some(G=>G.rowId),oe=z.indexOf(K),X=z.slice(oe+1),re=U1(X,K.rowId);if(v){const G=C4(re,E),M=G.slice(v)[0]||G[G.length-1];return M==null?void 0:M.id}const ne=O&&(C?O!=="horizontal":O!=="vertical"),$=ee&&T&&(C?T!=="horizontal":T!=="vertical"),I=q?(!ee||C)&&ne&&A:C?A:!1;if(ne){const G=$&&!I?z:U1(z,K.rowId),M=T4(G,E,I),V=ca(M,E);return V==null?void 0:V.id}if($){const G=ca(I?re:X,E);return I?(G==null?void 0:G.id)||null:G==null?void 0:G.id}const ae=ca(re,E);return!ae&&I?null:ae==null?void 0:ae.id};return Qt(ut(ut({},i),f),{setBaseElement:h=>f.setState("baseElement",h),setActiveId:h=>f.setState("activeId",h),move:h=>{h!==void 0&&(f.setState("activeId",h),f.setState("moves",p=>p+1))},first:()=>{var h;return(h=ca(f.getState().renderedItems))==null?void 0:h.id},last:()=>{var h;return(h=ca(wm(f.getState().renderedItems)))==null?void 0:h.id},next:h=>(h!==void 0&&typeof h=="number"&&(h={skip:h}),d("next",h)),previous:h=>(h!==void 0&&typeof h=="number"&&(h={skip:h}),d("previous",h)),down:h=>(h!==void 0&&typeof h=="number"&&(h={skip:h}),d("down",h)),up:h=>(h!==void 0&&typeof h=="number"&&(h={skip:h}),d("up",h))})}function j4(e,n,a){return e=w4(e,n,a),Zt(e,a,"activeId","setActiveId"),Zt(e,a,"includesBaseElement"),Zt(e,a,"virtualFocus"),Zt(e,a,"orientation"),Zt(e,a,"rtl"),Zt(e,a,"focusLoop"),Zt(e,a,"focusWrap"),Zt(e,a,"focusShift"),e}function ex(e={}){const n=Mp(e.store,Ap(e.disclosure,["contentElement","disclosureElement"])),a=n==null?void 0:n.getState(),i=et(e.open,a==null?void 0:a.open,e.defaultOpen,!1),s=et(e.animated,a==null?void 0:a.animated,!1),o={open:i,animated:s,animating:!!s&&i,mounted:i,contentElement:et(a==null?void 0:a.contentElement,null),disclosureElement:et(a==null?void 0:a.disclosureElement,null)},f=Pr(o,n);return pa(f,()=>va(f,["animated","animating"],d=>{d.animated||f.setState("animating",!1)})),pa(f,()=>Dp(f,["open"],()=>{f.getState().animated&&f.setState("animating",!0)})),pa(f,()=>va(f,["open","animating"],d=>{f.setState("mounted",d.open||d.animating)})),Qt(ut({},f),{disclosure:e.disclosure,setOpen:d=>f.setState("open",d),show:()=>f.setState("open",!0),hide:()=>f.setState("open",!1),toggle:()=>f.setState("open",d=>!d),stopAnimation:()=>f.setState("animating",!1),setContentElement:d=>f.setState("contentElement",d),setDisclosureElement:d=>f.setState("disclosureElement",d)})}function tx(e,n,a){return lf(n,[a.store,a.disclosure]),Zt(e,a,"open","setOpen"),Zt(e,a,"mounted","setMounted"),Zt(e,a,"animated"),Object.assign(e,{disclosure:a.disclosure})}function _4(e={}){const[n,a]=jp(ex,e);return tx(n,a,e)}function nx(e={}){return ex(e)}function rx(e,n,a){return tx(e,n,a)}function N4(e={}){const[n,a]=jp(nx,e);return rx(n,a,e)}function z4(e={}){var n=e,{popover:a}=n,i=US(n,["popover"]);const s=Mp(i.store,Ap(a,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),o=s==null?void 0:s.getState(),f=nx(Qt(ut({},i),{store:s})),d=et(i.placement,o==null?void 0:o.placement,"bottom"),h=Qt(ut({},f.getState()),{placement:d,currentPlacement:d,anchorElement:et(o==null?void 0:o.anchorElement,null),popoverElement:et(o==null?void 0:o.popoverElement,null),arrowElement:et(o==null?void 0:o.arrowElement,null),rendered:Symbol("rendered")}),p=Pr(h,f,s);return Qt(ut(ut({},f),p),{setAnchorElement:g=>p.setState("anchorElement",g),setPopoverElement:g=>p.setState("popoverElement",g),setArrowElement:g=>p.setState("arrowElement",g),render:()=>p.setState("rendered",Symbol("rendered"))})}function L4(e,n,a){return lf(n,[a.popover]),Zt(e,a,"placement"),rx(e,n,a)}var Fs=Oa();Fs.useContext;Fs.useScopedContext;var _p=Fs.useProviderContext,H4=Fs.ContextProvider,U4=Fs.ScopedContextProvider,cf=Oa([H4],[U4]),$4=cf.useScopedContext,ff=cf.useProviderContext,B4=cf.ContextProvider,Np=cf.ScopedContextProvider,ax=w.createContext(void 0),P4=w.createContext(void 0),Vs=Oa([B4],[Np]);Vs.useContext;Vs.useScopedContext;var df=Vs.useProviderContext,ix=Vs.ContextProvider,hf=Vs.ScopedContextProvider;w.createContext(void 0);var q4=Oa([ix,of],[hf,Tp]),k4=q4.useProviderContext;w.createContext(void 0);w.createContext(!1);var F4="div",ux=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=df();return i=i||o,s=we(se({},s),{ref:Ut(i==null?void 0:i.setAnchorElement,s.ref)}),s});Xe(function(n){const a=ux(n);return Ie(F4,a)});var V4={id:null};function Y4(e,n,a=!1){const i=e.findIndex(s=>s.id===n);return[...e.slice(i+1),...a?[V4]:[],...e.slice(0,i)]}function Q4(e,n){return e.find(a=>!a.disabled)}function ei(e,n){return n&&e.item(n)||null}function G4(e){const n=[];for(const a of e){const i=n.find(s=>{var o;return((o=s[0])==null?void 0:o.rowId)===a.rowId});i?i.push(a):n.push([a])}return n}function K4(e,n=!1){if(wa(e))e.setSelectionRange(n?e.value.length:0,e.value.length);else if(e.isContentEditable){const a=gt(e).getSelection();a==null||a.selectAllChildren(e),n&&(a==null||a.collapseToEnd())}}var Om=Symbol("FOCUS_SILENTLY");function X4(e){e[Om]=!0,e.focus({preventScroll:!0})}function Z4(e){const n=e[Om];return delete e[Om],n}function Es(e,n,a){return!(!n||n===a||!e.item(n.id))}var lx=w.createContext(!0),mf="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function I4(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function vr(e){return!(!e.matches(mf)||!kS(e)||e.closest("[inert]"))}function Ts(e){if(!vr(e)||I4(e))return!1;if(!("form"in e)||!e.form||e.checked||e.type!=="radio")return!0;const n=e.form.elements.namedItem(e.name);if(!n||!("length"in n))return!0;const a=Ea(e);return!a||a===e||!("form"in a)||a.form!==e.form||a.name!==e.name}function zp(e,n){const a=Array.from(e.querySelectorAll(mf));n&&a.unshift(e);const i=a.filter(vr);return i.forEach((s,o)=>{if(yp(s)&&s.contentDocument){const f=s.contentDocument.body;i.splice(o,1,...zp(f))}}),i}function pf(e,n,a){const i=Array.from(e.querySelectorAll(mf)),s=i.filter(Ts);return n&&Ts(e)&&s.unshift(e),s.forEach((o,f)=>{if(yp(o)&&o.contentDocument){const d=o.contentDocument.body,h=pf(d,!1,a);s.splice(f,1,...h)}}),!s.length&&a?i:s}function J4(e,n,a){const[i]=pf(e,n,a);return i||null}function W4(e,n,a,i){const s=Ea(e),o=zp(e,n),f=o.indexOf(s),d=o.slice(f+1);return d.find(Ts)||(a?o.find(Ts):null)||(i?d[0]:null)||null}function em(e,n){return W4(document.body,!1,e,n)}function eD(e,n,a,i){const s=Ea(e),o=zp(e,n).reverse(),f=o.indexOf(s);return o.slice(f+1).find(Ts)||null||null||null}function $1(e,n){return eD(document.body,!1)}function tD(e){for(;e&&!vr(e);)e=e.closest(mf);return e||null}function qc(e){const n=Ea(e);if(!n)return!1;if(n===e)return!0;const a=n.getAttribute("aria-activedescendant");return a?a===e.id:!1}function ci(e){const n=Ea(e);if(!n)return!1;if(Lt(e,n))return!0;const a=n.getAttribute("aria-activedescendant");return!a||!("id"in e)?!1:a===e.id?!0:!!e.querySelector(`#${CSS.escape(a)}`)}function sx(e){!ci(e)&&vr(e)&&e.focus()}function nD(e){var n;const a=(n=e.getAttribute("tabindex"))!=null?n:"";e.setAttribute("data-tabindex",a),e.setAttribute("tabindex","-1")}function rD(e,n){const a=pf(e,n);for(const i of a)nD(i)}function aD(e){const n=e.querySelectorAll("[data-tabindex]"),a=i=>{const s=i.getAttribute("data-tabindex");i.removeAttribute("data-tabindex"),s?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&a(e);for(const i of n)a(i)}function iD(e,n){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(ut({block:"nearest",inline:"nearest"},n))):e.focus()}var uD="div",B1=bp(),lD=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],ox=Symbol("safariFocusAncestor");function sD(e){return e?!!e[ox]:!1}function P1(e,n){e&&(e[ox]=n)}function oD(e){const{tagName:n,readOnly:a,type:i}=e;return n==="TEXTAREA"&&!a||n==="SELECT"&&!a?!0:n==="INPUT"&&!a?lD.includes(i):!!(e.isContentEditable||e.getAttribute("role")==="combobox"&&e.dataset.name)}function cD(e){return"labels"in e?e.labels:null}function q1(e){return e.tagName.toLowerCase()==="input"&&e.type?e.type==="radio"||e.type==="checkbox":!1}function fD(e){return e?e==="button"||e==="summary"||e==="input"||e==="select"||e==="textarea"||e==="a":!0}function dD(e){return e?e==="button"||e==="input"||e==="select"||e==="textarea":!0}function hD(e,n,a,i,s){return e?n?a&&!i?-1:void 0:a?s:s||0:s}function tm(e,n){return Ye(a=>{e==null||e(a),!a.defaultPrevented&&n&&(a.stopPropagation(),a.preventDefault())})}var Lp=!0;function mD(e){const n=e.target;n&&"hasAttribute"in n&&(n.hasAttribute("data-focus-visible")||(Lp=!1))}function pD(e){e.metaKey||e.ctrlKey||e.altKey||(Lp=!0)}var Ys=tt(function(n){var a=n,{focusable:i=!0,accessibleWhenDisabled:s,autoFocus:o,onFocusVisible:f}=a,d=Ke(a,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const h=w.useRef(null);w.useEffect(()=>{i&&(It("mousedown",mD,!0),It("keydown",pD,!0))},[i]),B1&&w.useEffect(()=>{if(!i)return;const $=h.current;if(!$||!q1($))return;const I=cD($);if(!I)return;const ae=()=>queueMicrotask(()=>$.focus());for(const G of I)G.addEventListener("mouseup",ae);return()=>{for(const G of I)G.removeEventListener("mouseup",ae)}},[i]);const p=i&&Ps(d),g=!!p&&!s,[b,y]=w.useState(!1);w.useEffect(()=>{i&&g&&b&&y(!1)},[i,g,b]),w.useEffect(()=>{if(!i||!b)return;const $=h.current;if(!$||typeof IntersectionObserver>"u")return;const I=new IntersectionObserver(()=>{vr($)||y(!1)});return I.observe($),()=>I.disconnect()},[i,b]);const v=tm(d.onKeyPressCapture,p),E=tm(d.onMouseDownCapture,p),x=tm(d.onClickCapture,p),O=d.onMouseDown,T=Ye($=>{if(O==null||O($),$.defaultPrevented||!i)return;const I=$.currentTarget;if(!B1||QS($)||!mi(I)&&!q1(I))return;let ae=!1;const G=()=>{ae=!0},M={capture:!0,once:!0};I.addEventListener("focusin",G,M);const V=tD(I.parentElement);P1(V,!0),xs(I,"mouseup",()=>{I.removeEventListener("focusin",G,!0),P1(V,!1),!ae&&sx(I)})}),A=($,I)=>{if(I&&($.currentTarget=I),!i)return;const ae=$.currentTarget;ae&&qc(ae)&&(f==null||f($),!$.defaultPrevented&&(ae.dataset.focusVisible="true",y(!0)))},j=d.onKeyDownCapture,_=Ye($=>{if(j==null||j($),$.defaultPrevented||!i||b||$.metaKey||$.altKey||$.ctrlKey||!Hn($))return;const I=$.currentTarget;xs(I,"focusout",()=>A($,I))}),C=d.onFocusCapture,q=Ye($=>{if(C==null||C($),$.defaultPrevented||!i)return;if(!Hn($)){y(!1);return}const I=$.currentTarget,ae=()=>A($,I);Lp||oD($.target)?xs($.target,"focusout",ae):y(!1)}),U=d.onBlur,k=Ye($=>{U==null||U($),i&&Pu($)&&y(!1)}),z=w.useContext(lx),K=Ye($=>{i&&o&&$&&z&&queueMicrotask(()=>{qc($)||vr($)&&$.focus()})}),ee=xp(h),oe=i&&fD(ee),X=i&&dD(ee),re=d.style,ne=w.useMemo(()=>g?se({pointerEvents:"none"},re):re,[g,re]);return d=we(se({"data-focus-visible":i&&b||void 0,"data-autofocus":o||void 0,"aria-disabled":p||void 0},d),{ref:Ut(h,K,d.ref),style:ne,tabIndex:hD(i,g,oe,X,d.tabIndex),disabled:X&&g?!0:void 0,contentEditable:p?void 0:d.contentEditable,onKeyPressCapture:v,onClickCapture:x,onMouseDownCapture:E,onMouseDown:T,onKeyDownCapture:_,onFocusCapture:q,onBlur:k}),ll(d)});Xe(function(n){const a=Ys(n);return Ie(uD,a)});var yD="div";function gD(e){return e.some(n=>!!n.rowId)}function vD(e){const n=e.target;return n&&!wa(n)?!1:e.key.length===1&&!e.ctrlKey&&!e.metaKey}function bD(e){return e.key==="Shift"||e.key==="Control"||e.key==="Alt"||e.key==="Meta"}function k1(e,n,a){return Ye(i=>{var s;if(n==null||n(i),i.defaultPrevented||i.isPropagationStopped()||!Hn(i)||bD(i)||vD(i))return;const o=e.getState(),f=(s=ei(e,o.activeId))==null?void 0:s.element;if(!f)return;const d=i,h=Ke(d,["view"]),p=a==null?void 0:a.current;f!==p&&f.focus(),r4(f,i.type,h)||i.preventDefault(),i.currentTarget.contains(f)&&i.stopPropagation()})}function SD(e){return Q4(IS(wm(G4(e))))}function xD(e){const[n,a]=w.useState(!1),i=w.useCallback(()=>a(!0),[]),s=e.useState(o=>ei(e,o.activeId));return w.useEffect(()=>{const o=s==null?void 0:s.element;n&&o&&(a(!1),o.focus({preventScroll:!0}))},[s,n]),i}var cx=tt(function(n){var a=n,{store:i,composite:s=!0,focusOnMove:o=s,moveOnKeyPress:f=!0}=a,d=Ke(a,["store","composite","focusOnMove","moveOnKeyPress"]);const h=f4();i=i||h,en(i,!1);const p=w.useRef(null),g=w.useRef(null),b=xD(i),y=i.useState("moves"),[,v]=a4(s?i.setBaseElement:null);w.useEffect(()=>{var X;if(!i||!y||!s||!o)return;const{activeId:re}=i.getState(),ne=(X=ei(i,re))==null?void 0:X.element;ne&&iD(ne)},[i,y,s,o]),ct(()=>{if(!i||!y||!s)return;const{baseElement:X,activeId:re}=i.getState();if(!(re===null)||!X)return;const $=g.current;g.current=null,$&&Bu($,{relatedTarget:X}),qc(X)||X.focus()},[i,y,s]);const E=i.useState("activeId"),x=i.useState("virtualFocus");ct(()=>{var X;if(!i||!s||!x)return;const re=g.current;if(g.current=null,!re)return;const $=((X=ei(i,E))==null?void 0:X.element)||Ea(re);$!==re&&Bu(re,{relatedTarget:$})},[i,E,x,s]);const O=k1(i,d.onKeyDownCapture,g),T=k1(i,d.onKeyUpCapture,g),A=d.onFocusCapture,j=Ye(X=>{if(A==null||A(X),X.defaultPrevented||!i)return;const{virtualFocus:re}=i.getState();if(!re)return;const ne=X.relatedTarget,$=Z4(X.currentTarget);Hn(X)&&$&&(X.stopPropagation(),g.current=ne)}),_=d.onFocus,C=Ye(X=>{if(_==null||_(X),X.defaultPrevented||!s||!i)return;const{relatedTarget:re}=X,{virtualFocus:ne}=i.getState();ne?Hn(X)&&!Es(i,re)&&queueMicrotask(b):Hn(X)&&i.setActiveId(null)}),q=d.onBlurCapture,U=Ye(X=>{var re;if(q==null||q(X),X.defaultPrevented||!i)return;const{virtualFocus:ne,activeId:$}=i.getState();if(!ne)return;const I=(re=ei(i,$))==null?void 0:re.element,ae=X.relatedTarget,G=Es(i,ae),M=g.current;g.current=null,Hn(X)&&G?(ae===I?M&&M!==ae&&Bu(M,X):I?Bu(I,X):M&&Bu(M,X),X.stopPropagation()):!Es(i,X.target)&&I&&Bu(I,X)}),k=d.onKeyDown,z=Un(f),K=Ye(X=>{var re;if(k==null||k(X),X.defaultPrevented||!i||!Hn(X))return;const{orientation:ne,renderedItems:$,activeId:I}=i.getState(),ae=ei(i,I);if((re=ae==null?void 0:ae.element)!=null&&re.isConnected)return;const G=ne!=="horizontal",M=ne!=="vertical",V=gD($);if((X.key==="ArrowLeft"||X.key==="ArrowRight"||X.key==="Home"||X.key==="End")&&wa(X.currentTarget))return;const ve={ArrowUp:(V||G)&&(()=>{if(V){const Te=SD($);return Te==null?void 0:Te.id}return i==null?void 0:i.last()}),ArrowRight:(V||M)&&i.first,ArrowDown:(V||G)&&i.first,ArrowLeft:(V||M)&&i.last,Home:i.first,End:i.last,PageUp:i.first,PageDown:i.last}[X.key];if(ve){const Te=ve();if(Te!==void 0){if(!z(X))return;X.preventDefault(),i.move(Te)}}});d=vn(d,X=>D.jsx(of,{value:i,children:X}),[i]);const ee=i.useState(X=>{var re;if(i&&s&&X.virtualFocus)return(re=ei(i,X.activeId))==null?void 0:re.id});d=we(se({"aria-activedescendant":ee},d),{ref:Ut(p,v,d.ref),onKeyDownCapture:O,onKeyUpCapture:T,onFocusCapture:j,onFocus:C,onBlurCapture:U,onKeyDown:K});const oe=i.useState(X=>s&&(X.virtualFocus||X.activeId===null));return d=Ys(se({focusable:oe},d)),d});Xe(function(n){const a=cx(n);return Ie(yD,a)});var ED="button";function F1(e){if(!e.isTrusted)return!1;const n=e.currentTarget;return e.key==="Enter"?mi(n)||n.tagName==="SUMMARY"||n.tagName==="A":e.key===" "?mi(n)||n.tagName==="SUMMARY"||n.tagName==="INPUT"||n.tagName==="SELECT":!1}var wD=Symbol("command"),Hp=tt(function(n){var a=n,{clickOnEnter:i=!0,clickOnSpace:s=!0}=a,o=Ke(a,["clickOnEnter","clickOnSpace"]);const f=w.useRef(null),[d,h]=w.useState(!1);w.useEffect(()=>{f.current&&h(mi(f.current))},[]);const[p,g]=w.useState(!1),b=w.useRef(!1),y=Ps(o),[v,E]=KS(o,wD,!0),x=o.onKeyDown,O=Ye(j=>{x==null||x(j);const _=j.currentTarget;if(j.defaultPrevented||v||y||!Hn(j)||wa(_)||_.isContentEditable)return;const C=i&&j.key==="Enter",q=s&&j.key===" ",U=j.key==="Enter"&&!i,k=j.key===" "&&!s;if(U||k){j.preventDefault();return}if(C||q){const z=F1(j);if(C){if(!z){j.preventDefault();const K=j,ee=Ke(K,["view"]),oe=()=>M1(_,ee);JR()?xs(_,"keyup",oe):queueMicrotask(oe)}}else q&&(b.current=!0,z||(j.preventDefault(),g(!0)))}}),T=o.onKeyUp,A=Ye(j=>{if(T==null||T(j),j.defaultPrevented||v||y||j.metaKey)return;const _=s&&j.key===" ";if(b.current&&_&&(b.current=!1,!F1(j))){j.preventDefault(),g(!1);const C=j.currentTarget,q=j,U=Ke(q,["view"]);queueMicrotask(()=>M1(C,U))}});return o=we(se(se({"data-active":p||void 0,type:d?"button":void 0},E),o),{ref:Ut(f,o.ref),onKeyDown:O,onKeyUp:A}),o=Ys(o),o});Xe(function(n){const a=Hp(n);return Ie(ED,a)});var fx="button",Up=tt(function(n){const a=w.useRef(null),i=xp(a,fx),[s,o]=w.useState(()=>!!i&&mi({tagName:i,type:n.type}));return w.useEffect(()=>{a.current&&o(mi(a.current))},[]),n=we(se({role:!s&&i!=="a"?"button":void 0},n),{ref:Ut(a,n.ref)}),n=Hp(n),n});Xe(function(n){const a=Up(n);return Ie(fx,a)});var OD="button",CD=Symbol("disclosure"),dx=tt(function(n){var a=n,{store:i,toggleOnClick:s=!0}=a,o=Ke(a,["store","toggleOnClick"]);const f=_p();i=i||f,en(i,!1);const d=w.useRef(null),[h,p]=w.useState(!1),g=i.useState("disclosureElement"),b=i.useState("open");w.useEffect(()=>{let A=g===d.current;g!=null&&g.isConnected||(i==null||i.setDisclosureElement(d.current),A=!0),p(b&&A)},[g,i,b]);const y=o.onClick,v=Un(s),[E,x]=KS(o,CD,!0),O=Ye(A=>{y==null||y(A),!A.defaultPrevented&&(E||v(A)&&(i==null||i.setDisclosureElement(A.currentTarget),i==null||i.toggle()))}),T=i.useState("contentElement");return o=we(se(se({"aria-expanded":h,"aria-controls":T==null?void 0:T.id},x),o),{ref:Ut(d,o.ref),onClick:O}),o=Up(o),o});Xe(function(n){const a=dx(n);return Ie(OD,a)});var TD="button",hx=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=ff();i=i||o,en(i,!1);const f=i.useState("contentElement");return s=se({"aria-haspopup":gp(f,"dialog")},s),s=dx(se({store:i},s)),s});Xe(function(n){const a=hx(n);return Ie(TD,a)});var RD="div";function mx(e){const n=e.relatedTarget;return(n==null?void 0:n.nodeType)===Node.ELEMENT_NODE?n:null}function DD(e){const n=mx(e);return n?Lt(e.currentTarget,n):!1}var Cm=Symbol("composite-hover");function AD(e){let n=mx(e);if(!n)return!1;do{if(ga(n,Cm)&&n[Cm])return!0;n=n.parentElement}while(n);return!1}var px=tt(function(n){var a=n,{store:i,focusOnHover:s=!0,blurOnHoverEnd:o=!!s}=a,f=Ke(a,["store","focusOnHover","blurOnHoverEnd"]);const d=sf();i=i||d,en(i,!1);const h=wp(),p=f.onMouseMove,g=Un(s),b=Ye(O=>{if(p==null||p(O),!O.defaultPrevented&&h()&&g(O)){if(!ci(O.currentTarget)){const T=i==null?void 0:i.getState().baseElement;T&&!qc(T)&&T.focus()}i==null||i.setActiveId(O.currentTarget.id)}}),y=f.onMouseLeave,v=Un(o),E=Ye(O=>{var T;y==null||y(O),!O.defaultPrevented&&h()&&(DD(O)||AD(O)||g(O)&&v(O)&&(i==null||i.setActiveId(null),(T=i==null?void 0:i.getState().baseElement)==null||T.focus()))}),x=w.useCallback(O=>{O&&(O[Cm]=!0)},[]);return f=we(se({},f),{ref:Ut(x,f.ref),onMouseMove:b,onMouseLeave:E}),ll(f)});Cp(Xe(function(n){const a=px(n);return Ie(RD,a)}));var MD="div",yx=tt(function(n){var a=n,{store:i,shouldRegisterItem:s=!0,getItem:o=BS,element:f}=a,d=Ke(a,["store","shouldRegisterItem","getItem","element"]);const h=s4();i=i||h;const p=nu(d.id),g=w.useRef(f);return w.useEffect(()=>{const b=g.current;if(!p||!b||!s)return;const y=o({id:p,element:b});return i==null?void 0:i.renderItem(y)},[p,s,o,i]),d=we(se({},d),{ref:Ut(g,d.ref)}),ll(d)});Xe(function(n){const a=yx(n);return Ie(MD,a)});var jD="button";function _D(e){return xm(e)?!0:e.tagName==="INPUT"&&!mi(e)}function ND(e,n=!1){const a=e.clientHeight,{top:i}=e.getBoundingClientRect(),s=Math.max(a*.875,a-40)*1.5,o=n?a-s+i:s+i;return e.tagName==="HTML"?o+e.scrollTop:o}function zD(e,n=!1){const{top:a}=e.getBoundingClientRect();return n?a+e.clientHeight:a}function V1(e,n,a,i=!1){var s;if(!n||!a)return;const{renderedItems:o}=n.getState(),f=VS(e);if(!f)return;const d=ND(f,i);let h,p;for(let g=0;g<o.length;g+=1){const b=h;if(h=a(g),!h)break;if(h===b)continue;const y=(s=ei(n,h))==null?void 0:s.element;if(!y)continue;const E=zD(y,i)-d,x=Math.abs(E);if(i&&E<=0||!i&&E>=0){p!==void 0&&p<x&&(h=b);break}p=x}return h}function LD(e,n){return Hn(e)?!1:Es(n,e.target)}var gx=tt(function(n){var a=n,{store:i,rowId:s,preventScrollOnKeyDown:o=!1,moveOnKeyPress:f=!0,tabbable:d=!1,getItem:h,"aria-setsize":p,"aria-posinset":g}=a,b=Ke(a,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const y=sf();i=i||y;const v=nu(b.id),E=w.useRef(null),x=w.useContext(h4),T=Ps(b)&&!b.accessibleWhenDisabled,{rowId:A,baseElement:j,isActiveItem:_,ariaSetSize:C,ariaPosInSet:q,isTabbable:U}=b4(i,{rowId(G){if(s)return s;if(G&&x!=null&&x.baseElement&&x.baseElement===G.baseElement)return x.id},baseElement(G){return(G==null?void 0:G.baseElement)||void 0},isActiveItem(G){return!!G&&G.activeId===v},ariaSetSize(G){if(p!=null)return p;if(G&&x!=null&&x.ariaSetSize&&x.baseElement===G.baseElement)return x.ariaSetSize},ariaPosInSet(G){if(g!=null)return g;if(!G||!(x!=null&&x.ariaPosInSet)||x.baseElement!==G.baseElement)return;const M=G.renderedItems.filter(V=>V.rowId===A);return x.ariaPosInSet+M.findIndex(V=>V.id===v)},isTabbable(G){if(!(G!=null&&G.renderedItems.length))return!0;if(G.virtualFocus)return!1;if(d)return!0;if(G.activeId===null)return!1;const M=i==null?void 0:i.item(G.activeId);return M!=null&&M.disabled||!(M!=null&&M.element)?!0:G.activeId===v}}),k=w.useCallback(G=>{var M;const V=we(se({},G),{id:v||G.id,rowId:A,disabled:!!T,children:(M=G.element)==null?void 0:M.textContent});return h?h(V):V},[v,A,T,h]),z=b.onFocus,K=w.useRef(!1),ee=Ye(G=>{if(z==null||z(G),G.defaultPrevented||QS(G)||!v||!i||LD(G,i))return;const{virtualFocus:M,baseElement:V}=i.getState();if(i.setActiveId(v),xm(G.currentTarget)&&K4(G.currentTarget),!M||!Hn(G)||_D(G.currentTarget)||!(V!=null&&V.isConnected))return;bp()&&G.currentTarget.hasAttribute("data-autofocus")&&G.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),K.current=!0,G.relatedTarget===V||Es(i,G.relatedTarget)?X4(V):V.focus()}),oe=b.onBlurCapture,X=Ye(G=>{if(oe==null||oe(G),G.defaultPrevented)return;const M=i==null?void 0:i.getState();M!=null&&M.virtualFocus&&K.current&&(K.current=!1,G.preventDefault(),G.stopPropagation())}),re=b.onKeyDown,ne=Un(o),$=Un(f),I=Ye(G=>{if(re==null||re(G),G.defaultPrevented||!Hn(G)||!i)return;const{currentTarget:M}=G,V=i.getState(),ce=i.item(v),de=!!(ce!=null&&ce.rowId),fe=V.orientation!=="horizontal",ve=V.orientation!=="vertical",Te=()=>!!(de||ve||!V.baseElement||!wa(V.baseElement)),_e={ArrowUp:(de||fe)&&i.up,ArrowRight:(de||ve)&&i.next,ArrowDown:(de||fe)&&i.down,ArrowLeft:(de||ve)&&i.previous,Home:()=>{if(Te())return!de||G.ctrlKey?i==null?void 0:i.first():i==null?void 0:i.previous(-1)},End:()=>{if(Te())return!de||G.ctrlKey?i==null?void 0:i.last():i==null?void 0:i.next(-1)},PageUp:()=>V1(M,i,i==null?void 0:i.up,!0),PageDown:()=>V1(M,i,i==null?void 0:i.down)}[G.key];if(_e){if(xm(M)){const Ne=XR(M),Mt=ve&&G.key==="ArrowLeft",Sn=ve&&G.key==="ArrowRight",ft=fe&&G.key==="ArrowUp",ln=fe&&G.key==="ArrowDown";if(Sn||ln){const{length:Tn}=KR(M);if(Ne.end!==Tn)return}else if((Mt||ft)&&Ne.start!==0)return}const je=_e();if(ne(G)||je!==void 0){if(!$(G))return;G.preventDefault(),i.move(je)}}}),ae=w.useMemo(()=>({id:v,baseElement:j}),[v,j]);return b=vn(b,G=>D.jsx(d4.Provider,{value:ae,children:G}),[ae]),b=we(se({id:v,"data-active-item":_||void 0},b),{ref:Ut(E,b.ref),tabIndex:U?b.tabIndex:-1,onFocus:ee,onBlurCapture:X,onKeyDown:I}),b=Hp(b),b=yx(we(se({store:i},b),{getItem:k,shouldRegisterItem:v?b.shouldRegisterItem:!1})),ll(we(se({},b),{"aria-setsize":C,"aria-posinset":q}))});Cp(Xe(function(n){const a=gx(n);return Ie(jD,a)}));var kc=N0(),HD="div";function Y1(e,n){const a=setTimeout(n,e);return()=>clearTimeout(a)}function UD(e){let n=requestAnimationFrame(()=>{n=requestAnimationFrame(e)});return()=>cancelAnimationFrame(n)}function Q1(...e){return e.join(", ").split(", ").reduce((n,a)=>{const i=a.endsWith("ms")?1:1e3,s=Number.parseFloat(a||"0s")*i;return s>n?s:n},0)}function $p(e,n,a){return!a&&n!==!1&&(!e||!!n)}var Bp=tt(function(n){var a=n,{store:i,alwaysVisible:s}=a,o=Ke(a,["store","alwaysVisible"]);const f=_p();i=i||f,en(i,!1);const d=w.useRef(null),h=nu(o.id),[p,g]=w.useState(null),b=i.useState("open"),y=i.useState("mounted"),v=i.useState("animated"),E=i.useState("contentElement"),x=qt(i.disclosure,"contentElement");ct(()=>{d.current&&(i==null||i.setContentElement(d.current))},[i]),ct(()=>{let j;return i==null||i.setState("animated",_=>(j=_,!0)),()=>{j!==void 0&&(i==null||i.setState("animated",j))}},[i]),ct(()=>{if(v){if(!(E!=null&&E.isConnected)){g(null);return}return UD(()=>{g(b?"enter":y?"leave":null)})}},[v,E,b,y]),ct(()=>{if(!i||!v||!p||!E)return;const j=()=>i==null?void 0:i.setState("animating",!1),_=()=>kc.flushSync(j);if(p==="leave"&&b||p==="enter"&&!b)return;if(typeof v=="number")return Y1(v,_);const{transitionDuration:C,animationDuration:q,transitionDelay:U,animationDelay:k}=getComputedStyle(E),{transitionDuration:z="0",animationDuration:K="0",transitionDelay:ee="0",animationDelay:oe="0"}=x?getComputedStyle(x):{},X=Q1(U,k,ee,oe),re=Q1(C,q,z,K),ne=X+re;if(!ne){p==="enter"&&i.setState("animated",!1),j();return}const $=1e3/60,I=Math.max(ne-$,0);return Y1(I,_)},[i,v,E,x,b,p]),o=vn(o,j=>D.jsx(Np,{value:i,children:j}),[i]);const O=$p(y,o.hidden,s),T=o.style,A=w.useMemo(()=>O?we(se({},T),{display:"none"}):T,[O,T]);return o=we(se({id:h,"data-open":b||void 0,"data-enter":p==="enter"||void 0,"data-leave":p==="leave"||void 0,hidden:O},o),{ref:Ut(h?i.setContentElement:null,d,o.ref),style:A}),ll(o)}),$D=Xe(function(n){const a=Bp(n);return Ie(HD,a)});Xe(function(n){var a=n,{unmountOnHide:i}=a,s=Ke(a,["unmountOnHide"]);const o=_p(),f=s.store||o;return qt(f,h=>!i||(h==null?void 0:h.mounted))===!1?null:D.jsx($D,se({},s))});function vx(e,...n){if(!e)return!1;const a=e.getAttribute("data-backdrop");return a==null?!1:a===""||a==="true"||!n.length?!0:n.some(i=>a===i)}var nm=new WeakMap;function Qs(e,n,a){nm.has(e)||nm.set(e,new Map);const i=nm.get(e),s=i.get(n);if(!s)return i.set(n,a()),()=>{var d;(d=i.get(n))==null||d(),i.delete(n)};const o=a(),f=()=>{o(),s(),i.delete(n)};return i.set(n,f),()=>{i.get(n)===f&&(o(),i.set(n,s))}}function Pp(e,n,a){return Qs(e,n,()=>{const s=e.getAttribute(n);return e.setAttribute(n,a),()=>{s==null?e.removeAttribute(n):e.setAttribute(n,s)}})}function Zi(e,n,a){return Qs(e,n,()=>{const s=n in e,o=e[n];return e[n]=a,()=>{s?e[n]=o:delete e[n]}})}function Tm(e,n){return e?Qs(e,"style",()=>{const i=e.style.cssText;return Object.assign(e.style,n),()=>{e.style.cssText=i}}):()=>{}}function BD(e,n,a){return e?Qs(e,n,()=>{const s=e.style.getPropertyValue(n);return e.style.setProperty(n,a),()=>{s?e.style.setProperty(n,s):e.style.removeProperty(n)}}):()=>{}}var PD=["SCRIPT","STYLE"];function Rm(e){return`__ariakit-dialog-snapshot-${e}`}function qD(e,n){const a=gt(n),i=Rm(e);if(!a.body[i])return!0;do{if(n===a.body)return!1;if(n[i])return!0;if(!n.parentElement)return!1;n=n.parentElement}while(!0)}function kD(e,n,a){return PD.includes(n.tagName)||!qD(e,n)?!1:!a.some(i=>i&&Lt(n,i))}function qp(e,n,a,i){for(let s of n){if(!(s!=null&&s.isConnected))continue;const o=n.some(h=>!h||h===s?!1:h.contains(s)),f=gt(s),d=s;for(;s.parentElement&&s!==f.body;){if(i==null||i(s.parentElement,d),!o)for(const h of s.parentElement.children)kD(e,h,n)&&a(h,d);s=s.parentElement}}}function FD(e,n){const{body:a}=gt(n[0]),i=[];return qp(e,n,o=>{i.push(Zi(o,Rm(e),!0))}),Bn(Zi(a,Rm(e),!0),()=>{for(const o of i)o()})}function il(e="",n=!1){return`__ariakit-dialog-${n?"ancestor":"outside"}${e?`-${e}`:""}`}function VD(e,n=""){return Bn(Zi(e,il(),!0),Zi(e,il(n),!0))}function bx(e,n=""){return Bn(Zi(e,il("",!0),!0),Zi(e,il(n,!0),!0))}function kp(e,n){const a=il(n,!0);if(e[a])return!0;const i=il(n);do{if(e[i])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function G1(e,n){const a=[],i=n.map(o=>o==null?void 0:o.id);return qp(e,n,o=>{vx(o,...i)||a.unshift(VD(o,e))},(o,f)=>{f.hasAttribute("data-dialog")&&f.id!==e||a.unshift(bx(o,e))}),()=>{for(const o of a)o()}}var YD="div",QD=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];tt(function(n){return n});var Fc=Xe(function(n){return Ie(YD,n)});Object.assign(Fc,QD.reduce((e,n)=>(e[n]=Xe(function(i){return Ie(n,i)}),e),{}));function GD({store:e,backdrop:n,alwaysVisible:a,hidden:i}){const s=w.useRef(null),o=_4({disclosure:e}),f=qt(e,"contentElement");w.useEffect(()=>{const p=s.current,g=f;p&&g&&(p.style.zIndex=getComputedStyle(g).zIndex)},[f]),ct(()=>{const p=f==null?void 0:f.id;if(!p)return;const g=s.current;if(g)return bx(g,p)},[f]);const d=Bp({ref:s,store:o,role:"presentation","data-backdrop":(f==null?void 0:f.id)||"",alwaysVisible:a,hidden:i??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!n)return null;if(w.isValidElement(n))return D.jsx(Fc,we(se({},d),{render:n}));const h=typeof n!="boolean"?n:"div";return D.jsx(Fc,we(se({},d),{render:D.jsx(h,{})}))}function KD(e,...n){if(!e)return!1;const a=e.getAttribute("data-focus-trap");return a==null?!1:n.length?a===""?!1:n.some(i=>a===i):!0}function XD(e){return Pp(e,"aria-hidden","true")}function Sx(){return"inert"in HTMLElement.prototype}function xx(e,n){if(!("style"in e))return Ac;if(Sx())return Zi(e,"inert",!0);const i=pf(e,!0).map(s=>{if(n!=null&&n.some(f=>f&&Lt(f,s)))return Ac;const o=Qs(s,"focus",()=>(s.focus=Ac,()=>{delete s.focus}));return Bn(Pp(s,"tabindex","-1"),o)});return Bn(...i,XD(e),Tm(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function ZD(e,n){const a=[],i=n.map(o=>o==null?void 0:o.id);return qp(e,n,o=>{vx(o,...i)||KD(o,...i)||a.unshift(xx(o,n))},o=>{o.hasAttribute("role")&&(n.some(f=>f&&Lt(f,o))||a.unshift(Pp(o,"role","none")))}),()=>{for(const o of a)o()}}function ID({attribute:e,contentId:n,contentElement:a,enabled:i}){const[s,o]=i4(),f=w.useCallback(()=>{if(!i||!a)return!1;const{body:d}=gt(a),h=d.getAttribute(e);return!h||h===n},[s,i,a,e,n]);return w.useEffect(()=>{if(!i||!n||!a)return;const{body:d}=gt(a);if(f())return d.setAttribute(e,n),()=>d.removeAttribute(e);const h=new MutationObserver(()=>kc.flushSync(o));return h.observe(d,{attributeFilter:[e]}),()=>h.disconnect()},[s,i,n,a,f,e]),f}function JD(e){const n=e.getBoundingClientRect().left;return Math.round(n)+e.scrollLeft?"paddingLeft":"paddingRight"}function WD(e,n,a){const i=ID({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:n,enabled:a});w.useEffect(()=>{if(!i()||!e)return;const s=gt(e),o=qS(e),{documentElement:f,body:d}=s,h=f.style.getPropertyValue("--scrollbar-width"),p=h?Number.parseInt(h):o.innerWidth-f.clientWidth,g=()=>BD(f,"--scrollbar-width",`${p}px`),b=JD(f),y=()=>Tm(d,{overflow:"hidden",[b]:`${p}px`}),v=()=>{var x,O;const{scrollX:T,scrollY:A,visualViewport:j}=o,_=(x=j==null?void 0:j.offsetLeft)!=null?x:0,C=(O=j==null?void 0:j.offsetTop)!=null?O:0,q=Tm(d,{position:"fixed",overflow:"hidden",top:`${-(A-Math.floor(C))}px`,left:`${-(T-Math.floor(_))}px`,right:"0",[b]:`${p}px`});return()=>{q(),o.scrollTo({left:T,top:A,behavior:"instant"})}},E=vp()&&!WR();return Bn(g(),E?v():y())},[i,e])}var K1=w.createContext({});function e5(e){const n=w.useContext(K1),[a,i]=w.useState([]),s=w.useCallback(d=>{var h;return i(p=>[...p,d]),Bn((h=n.add)==null?void 0:h.call(n,d),()=>{i(p=>p.filter(g=>g!==d))})},[n]);ct(()=>va(e,["open","contentElement"],d=>{var h;if(d.open&&d.contentElement)return(h=n.add)==null?void 0:h.call(n,e)}),[e,n]);const o=w.useMemo(()=>({store:e,add:s}),[e,s]);return{wrapElement:w.useCallback(d=>D.jsx(K1.Provider,{value:o,children:d}),[o]),nestedDialogs:a}}function t5(e){const n=w.useRef();return w.useEffect(()=>{if(!e){n.current=null;return}return It("mousedown",i=>{n.current=i.target},!0)},[e]),n}function n5(e){return e.tagName==="HTML"?!0:Lt(gt(e).body,e)}function r5(e,n){if(!e)return!1;if(Lt(e,n))return!0;const a=n.getAttribute("aria-activedescendant");if(a){const i=gt(e).getElementById(a);if(i)return Lt(e,i)}return!1}function a5(e,n){if(!("clientY"in e))return!1;const a=n.getBoundingClientRect();return a.width===0||a.height===0?!1:a.top<=e.clientY&&e.clientY<=a.top+a.height&&a.left<=e.clientX&&e.clientX<=a.left+a.width}function rm({store:e,type:n,listener:a,capture:i,domReady:s}){const o=Ye(a),f=qt(e,"open"),d=w.useRef(!1);ct(()=>{if(!f||!s)return;const{contentElement:h}=e.getState();if(!h)return;const p=()=>{d.current=!0};return h.addEventListener("focusin",p,!0),()=>h.removeEventListener("focusin",p,!0)},[e,f,s]),w.useEffect(()=>f?It(n,p=>{const{contentElement:g,disclosureElement:b}=e.getState(),y=p.target;!g||!y||!n5(y)||Lt(g,y)||r5(b,y)||y.hasAttribute("data-focus-trap")||a5(p,g)||d.current&&!kp(y,g.id)||sD(y)||o(p)},i):void 0,[f,i])}function am(e,n){return typeof e=="function"?e(n):!!e}function i5(e,n,a){const i=qt(e,"open"),s=t5(i),o={store:e,domReady:a,capture:!0};rm(we(se({},o),{type:"click",listener:f=>{const{contentElement:d}=e.getState(),h=s.current;h&&kS(h)&&kp(h,d==null?void 0:d.id)&&am(n,f)&&e.hide()}})),rm(we(se({},o),{type:"focusin",listener:f=>{const{contentElement:d}=e.getState();d&&f.target!==gt(d)&&am(n,f)&&e.hide()}})),rm(we(se({},o),{type:"contextmenu",listener:f=>{am(n,f)&&e.hide()}}))}function u5(e,n){const i=gt(e).createElement("button");return i.type="button",i.tabIndex=-1,i.textContent="Dismiss popup",Object.assign(i.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),i.addEventListener("click",n),e.prepend(i),()=>{i.removeEventListener("click",n),i.remove()}}var l5="div",Ex=tt(function(n){var a=n,{autoFocusOnShow:i=!0}=a,s=Ke(a,["autoFocusOnShow"]);return s=vn(s,o=>D.jsx(lx.Provider,{value:i,children:o}),[i]),s});Xe(function(n){const a=Ex(n);return Ie(l5,a)});var Dm=w.createContext(0);function s5({level:e,children:n}){const a=w.useContext(Dm),i=Math.max(Math.min(e||a+1,6),1);return D.jsx(Dm.Provider,{value:i,children:n})}var o5="span",wx=tt(function(n){return n=we(se({},n),{style:se({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},n.style)}),n});Xe(function(n){const a=wx(n);return Ie(o5,a)});var c5="span",f5=tt(function(n){return n=we(se({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},n),{style:se({position:"fixed",top:0,left:0},n.style)}),n=wx(n),n}),gc=Xe(function(n){const a=f5(n);return Ie(c5,a)}),X1=w.createContext(null),d5="div";function h5(e){return gt(e).body}function m5(e,n){return n?typeof n=="function"?n(e):n:gt(e).createElement("div")}function p5(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}function Xa(e){queueMicrotask(()=>{e==null||e.focus()})}var Ox=tt(function(n){var a=n,{preserveTabOrder:i,preserveTabOrderAnchor:s,portalElement:o,portalRef:f,portal:d=!0}=a,h=Ke(a,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const p=w.useRef(null),g=Ut(p,h.ref),b=w.useContext(X1),[y,v]=w.useState(null),[E,x]=w.useState(null),O=w.useRef(null),T=w.useRef(null),A=w.useRef(null),j=w.useRef(null);return ct(()=>{const _=p.current;if(!_||!d){v(null);return}const C=m5(_,o);if(!C){v(null);return}const q=C.isConnected;if(q||(b||h5(_)).appendChild(C),C.id||(C.id=_.id?`portal/${_.id}`:p5()),v(C),Sm(f,C),!q)return()=>{C.remove(),Sm(f,null)}},[d,o,b,f]),ct(()=>{if(!d||!i||!s)return;const C=gt(s).createElement("span");return C.style.position="fixed",s.insertAdjacentElement("afterend",C),x(C),()=>{C.remove(),x(null)}},[d,i,s]),w.useEffect(()=>{if(!y||!i)return;let _=0;const C=q=>{if(!Pu(q))return;const U=q.type==="focusin";if(cancelAnimationFrame(_),U)return aD(y);_=requestAnimationFrame(()=>{rD(y,!0)})};return y.addEventListener("focusin",C,!0),y.addEventListener("focusout",C,!0),()=>{cancelAnimationFrame(_),y.removeEventListener("focusin",C,!0),y.removeEventListener("focusout",C,!0)}},[y,i]),h=vn(h,_=>{if(_=D.jsx(X1.Provider,{value:y||b,children:_}),!d)return _;if(!y)return D.jsx("span",{ref:g,id:h.id,style:{position:"fixed"},hidden:!0});_=D.jsxs(D.Fragment,{children:[i&&y&&D.jsx(gc,{ref:T,"data-focus-trap":h.id,className:"__focus-trap-inner-before",onFocus:q=>{Pu(q,y)?Xa(em()):Xa(O.current)}}),_,i&&y&&D.jsx(gc,{ref:A,"data-focus-trap":h.id,className:"__focus-trap-inner-after",onFocus:q=>{Pu(q,y)?Xa($1()):Xa(j.current)}})]}),y&&(_=kc.createPortal(_,y));let C=D.jsxs(D.Fragment,{children:[i&&y&&D.jsx(gc,{ref:O,"data-focus-trap":h.id,className:"__focus-trap-outer-before",onFocus:q=>{!(q.relatedTarget===j.current)&&Pu(q,y)?Xa(T.current):Xa($1())}}),i&&D.jsx("span",{"aria-owns":y==null?void 0:y.id,style:{position:"fixed"}}),i&&y&&D.jsx(gc,{ref:j,"data-focus-trap":h.id,className:"__focus-trap-outer-after",onFocus:q=>{if(Pu(q,y))Xa(A.current);else{const U=em();if(U===T.current){requestAnimationFrame(()=>{var k;return(k=em())==null?void 0:k.focus()});return}Xa(U)}}})]});return E&&i&&(C=kc.createPortal(C,E)),D.jsxs(D.Fragment,{children:[C,_]})},[y,b,d,h.id,i,E]),h=we(se({},h),{ref:g}),h});Xe(function(n){const a=Ox(n);return Ie(d5,a)});var y5="div",Z1=bp();function g5(e){const n=Ea();return!n||e&&Lt(e,n)?!1:!!vr(n)}function I1(e,n=!1){if(!e)return null;const a="current"in e?e.current:e;return a?n?vr(a)?a:null:a:null}var Cx=tt(function(n){var a=n,{store:i,open:s,onClose:o,focusable:f=!0,modal:d=!0,portal:h=!!d,backdrop:p=!!d,hideOnEscape:g=!0,hideOnInteractOutside:b=!0,getPersistentElements:y,preventBodyScroll:v=!!d,autoFocusOnShow:E=!0,autoFocusOnHide:x=!0,initialFocus:O,finalFocus:T,unmountOnHide:A,unstable_treeSnapshotKey:j}=a,_=Ke(a,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const C=ff(),q=w.useRef(null),U=N4({store:i||C,open:s,setOpen(be){if(be)return;const Fe=q.current;if(!Fe)return;const xt=new Event("close",{bubbles:!1,cancelable:!0});o&&Fe.addEventListener("close",o,{once:!0}),Fe.dispatchEvent(xt),xt.defaultPrevented&&U.setOpen(!0)}}),{portalRef:k,domReady:z}=Ep(h,_.portalRef),K=_.preserveTabOrder,ee=qt(U,be=>K&&!d&&be.mounted),oe=nu(_.id),X=qt(U,"open"),re=qt(U,"mounted"),ne=qt(U,"contentElement"),$=$p(re,_.hidden,_.alwaysVisible);WD(ne,oe,v&&!$),i5(U,b,z);const{wrapElement:I,nestedDialogs:ae}=e5(U);_=vn(_,I,[I]),ct(()=>{if(!X)return;const be=q.current,Fe=Ea(be,!0);Fe&&Fe.tagName!=="BODY"&&(be&&Lt(be,Fe)||U.setDisclosureElement(Fe))},[U,X]),Z1&&w.useEffect(()=>{if(!re)return;const{disclosureElement:be}=U.getState();if(!be||!mi(be))return;const Fe=()=>{let xt=!1;const Le=()=>{xt=!0},Rt={capture:!0,once:!0};be.addEventListener("focusin",Le,Rt),xs(be,"mouseup",()=>{be.removeEventListener("focusin",Le,!0),!xt&&sx(be)})};return be.addEventListener("mousedown",Fe),()=>{be.removeEventListener("mousedown",Fe)}},[U,re]),w.useEffect(()=>{if(!re||!z)return;const be=q.current;if(!be)return;const Fe=qS(be),xt=Fe.visualViewport||Fe,Le=()=>{var Rt,sn;const jt=(sn=(Rt=Fe.visualViewport)==null?void 0:Rt.height)!=null?sn:Fe.innerHeight;be.style.setProperty("--dialog-viewport-height",`${jt}px`)};return Le(),xt.addEventListener("resize",Le),()=>{xt.removeEventListener("resize",Le)}},[re,z]),w.useEffect(()=>{if(!d||!re||!z)return;const be=q.current;if(!(!be||be.querySelector("[data-dialog-dismiss]")))return u5(be,U.hide)},[U,d,re,z]),ct(()=>{if(!Sx()||X||!re||!z)return;const be=q.current;if(be)return xx(be)},[X,re,z]);const G=X&&z;ct(()=>{if(!oe||!G)return;const be=q.current;return FD(oe,[be])},[oe,G,j]);const M=Ye(y);ct(()=>{if(!oe||!G)return;const{disclosureElement:be}=U.getState(),Fe=q.current,xt=M()||[],Le=[Fe,...xt,...ae.map(Rt=>Rt.getState().contentElement)];return d?Bn(G1(oe,Le),ZD(oe,Le)):G1(oe,[be,...Le])},[oe,U,G,M,ae,d,j]);const V=!!E,ce=Un(E),[de,fe]=w.useState(!1);w.useEffect(()=>{if(!X||!V||!z||!(ne!=null&&ne.isConnected))return;const be=I1(O,!0)||ne.querySelector("[data-autofocus=true],[autofocus]")||J4(ne,!0,h&&ee)||ne,Fe=vr(be);ce(Fe?be:null)&&(fe(!0),queueMicrotask(()=>{be.focus(),Z1&&be.scrollIntoView({block:"nearest",inline:"nearest"})}))},[X,V,z,ne,O,h,ee,ce]);const ve=!!x,Te=Un(x),[mt,_e]=w.useState(!1);w.useEffect(()=>{if(X)return _e(!0),()=>_e(!1)},[X]);const je=w.useCallback((be,Fe=!0)=>{const{disclosureElement:xt}=U.getState();if(g5(be))return;let Le=I1(T)||xt;if(Le!=null&&Le.id){const sn=gt(Le),jt=`[aria-activedescendant="${Le.id}"]`,on=sn.querySelector(jt);on&&(Le=on)}if(Le&&!vr(Le)){const sn=Le.closest("[data-dialog]");if(sn!=null&&sn.id){const jt=gt(sn),on=`[aria-controls~="${sn.id}"]`,cn=jt.querySelector(on);cn&&(Le=cn)}}const Rt=Le&&vr(Le);if(!Rt&&Fe){requestAnimationFrame(()=>je(be,!1));return}Te(Rt?Le:null)&&Rt&&(Le==null||Le.focus())},[U,T,Te]),Ne=w.useRef(!1);ct(()=>{if(X||!mt||!ve)return;const be=q.current;Ne.current=!0,je(be)},[X,mt,z,ve,je]),w.useEffect(()=>{if(!mt||!ve)return;const be=q.current;return()=>{if(Ne.current){Ne.current=!1;return}je(be)}},[mt,ve,je]);const Mt=Un(g);w.useEffect(()=>!z||!re?void 0:It("keydown",Fe=>{if(Fe.key!=="Escape"||Fe.defaultPrevented)return;const xt=q.current;if(!xt||kp(xt))return;const Le=Fe.target;if(!Le)return;const{disclosureElement:Rt}=U.getState();!!(Le.tagName==="BODY"||Lt(xt,Le)||!Rt||Lt(Rt,Le))&&Mt(Fe)&&U.hide()},!0),[U,z,re,Mt]),_=vn(_,be=>D.jsx(s5,{level:d?1:void 0,children:be}),[d]);const Sn=_.hidden,ft=_.alwaysVisible;_=vn(_,be=>p?D.jsxs(D.Fragment,{children:[D.jsx(GD,{store:U,backdrop:p,hidden:Sn,alwaysVisible:ft}),be]}):be,[U,p,Sn,ft]);const[ln,Tn]=w.useState(),[tn,Pn]=w.useState();return _=vn(_,be=>D.jsx(Np,{value:U,children:D.jsx(ax.Provider,{value:Tn,children:D.jsx(P4.Provider,{value:Pn,children:be})})}),[U]),_=we(se({id:oe,"data-dialog":"",role:"dialog",tabIndex:f?-1:void 0,"aria-labelledby":ln,"aria-describedby":tn},_),{ref:Ut(q,_.ref)}),_=Ex(we(se({},_),{autoFocusOnShow:de})),_=Bp(se({store:U},_)),_=Ys(we(se({},_),{focusable:f})),_=Ox(we(se({portal:h},_),{portalRef:k,preserveTabOrder:ee})),_});function yf(e,n=ff){return Xe(function(i){const s=n(),o=i.store||s;return qt(o,d=>!i.unmountOnHide||(d==null?void 0:d.mounted)||!!i.open)?D.jsx(e,se({},i)):null})}var v5=yf(Xe(function(n){const a=Cx(n);return Ie(y5,a)}),ff);const pi=Math.min,Ln=Math.max,Vc=Math.round,vc=Math.floor,Br=e=>({x:e,y:e}),b5={left:"right",right:"left",bottom:"top",top:"bottom"},S5={start:"end",end:"start"};function Am(e,n,a){return Ln(e,pi(n,a))}function yi(e,n){return typeof e=="function"?e(n):e}function ba(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function Fp(e){return e==="x"?"y":"x"}function Vp(e){return e==="y"?"height":"width"}function gi(e){return["top","bottom"].includes(ba(e))?"y":"x"}function Yp(e){return Fp(gi(e))}function x5(e,n,a){a===void 0&&(a=!1);const i=ol(e),s=Yp(e),o=Vp(s);let f=s==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[o]>n.floating[o]&&(f=Yc(f)),[f,Yc(f)]}function E5(e){const n=Yc(e);return[Mm(e),n,Mm(n)]}function Mm(e){return e.replace(/start|end/g,n=>S5[n])}function w5(e,n,a){const i=["left","right"],s=["right","left"],o=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return a?n?s:i:n?i:s;case"left":case"right":return n?o:f;default:return[]}}function O5(e,n,a,i){const s=ol(e);let o=w5(ba(e),a==="start",i);return s&&(o=o.map(f=>f+"-"+s),n&&(o=o.concat(o.map(Mm)))),o}function Yc(e){return e.replace(/left|right|bottom|top/g,n=>b5[n])}function C5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tx(e){return typeof e!="number"?C5(e):{top:e,right:e,bottom:e,left:e}}function Qc(e){const{x:n,y:a,width:i,height:s}=e;return{width:i,height:s,top:a,left:n,right:n+i,bottom:a+s,x:n,y:a}}function J1(e,n,a){let{reference:i,floating:s}=e;const o=gi(n),f=Yp(n),d=Vp(f),h=ba(n),p=o==="y",g=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,y=i[d]/2-s[d]/2;let v;switch(h){case"top":v={x:g,y:i.y-s.height};break;case"bottom":v={x:g,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-s.width,y:b};break;default:v={x:i.x,y:i.y}}switch(ol(n)){case"start":v[f]-=y*(a&&p?-1:1);break;case"end":v[f]+=y*(a&&p?-1:1);break}return v}const T5=async(e,n,a)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:f}=a,d=o.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(n));let p=await f.getElementRects({reference:e,floating:n,strategy:s}),{x:g,y:b}=J1(p,i,h),y=i,v={},E=0;for(let x=0;x<d.length;x++){const{name:O,fn:T}=d[x],{x:A,y:j,data:_,reset:C}=await T({x:g,y:b,initialPlacement:i,placement:y,strategy:s,middlewareData:v,rects:p,platform:f,elements:{reference:e,floating:n}});g=A??g,b=j??b,v={...v,[O]:{...v[O],..._}},C&&E<=50&&(E++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(p=C.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:s}):C.rects),{x:g,y:b}=J1(p,y,h)),x=-1)}return{x:g,y:b,placement:y,strategy:s,middlewareData:v}};async function Qp(e,n){var a;n===void 0&&(n={});const{x:i,y:s,platform:o,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:y=!1,padding:v=0}=yi(n,e),E=Tx(v),O=d[y?b==="floating"?"reference":"floating":b],T=Qc(await o.getClippingRect({element:(a=await(o.isElement==null?void 0:o.isElement(O)))==null||a?O:O.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),A=b==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),_=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},C=Qc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:j,strategy:h}):A);return{top:(T.top-C.top+E.top)/_.y,bottom:(C.bottom-T.bottom+E.bottom)/_.y,left:(T.left-C.left+E.left)/_.x,right:(C.right-T.right+E.right)/_.x}}const R5=e=>({name:"arrow",options:e,async fn(n){const{x:a,y:i,placement:s,rects:o,platform:f,elements:d,middlewareData:h}=n,{element:p,padding:g=0}=yi(e,n)||{};if(p==null)return{};const b=Tx(g),y={x:a,y:i},v=Yp(s),E=Vp(v),x=await f.getDimensions(p),O=v==="y",T=O?"top":"left",A=O?"bottom":"right",j=O?"clientHeight":"clientWidth",_=o.reference[E]+o.reference[v]-y[v]-o.floating[E],C=y[v]-o.reference[v],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=q?q[j]:0;(!U||!await(f.isElement==null?void 0:f.isElement(q)))&&(U=d.floating[j]||o.floating[E]);const k=_/2-C/2,z=U/2-x[E]/2-1,K=pi(b[T],z),ee=pi(b[A],z),oe=K,X=U-x[E]-ee,re=U/2-x[E]/2+k,ne=Am(oe,re,X),$=!h.arrow&&ol(s)!=null&&re!==ne&&o.reference[E]/2-(re<oe?K:ee)-x[E]/2<0,I=$?re<oe?re-oe:re-X:0;return{[v]:y[v]+I,data:{[v]:ne,centerOffset:re-ne-I,...$&&{alignmentOffset:I}},reset:$}}}),D5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var a,i;const{placement:s,middlewareData:o,rects:f,initialPlacement:d,platform:h,elements:p}=n,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:x=!0,...O}=yi(e,n);if((a=o.arrow)!=null&&a.alignmentOffset)return{};const T=ba(s),A=gi(d),j=ba(d)===d,_=await(h.isRTL==null?void 0:h.isRTL(p.floating)),C=y||(j||!x?[Yc(d)]:E5(d)),q=E!=="none";!y&&q&&C.push(...O5(d,x,E,_));const U=[d,...C],k=await Qp(n,O),z=[];let K=((i=o.flip)==null?void 0:i.overflows)||[];if(g&&z.push(k[T]),b){const re=x5(s,f,_);z.push(k[re[0]],k[re[1]])}if(K=[...K,{placement:s,overflows:z}],!z.every(re=>re<=0)){var ee,oe;const re=(((ee=o.flip)==null?void 0:ee.index)||0)+1,ne=U[re];if(ne)return{data:{index:re,overflows:K},reset:{placement:ne}};let $=(oe=K.filter(I=>I.overflows[0]<=0).sort((I,ae)=>I.overflows[1]-ae.overflows[1])[0])==null?void 0:oe.placement;if(!$)switch(v){case"bestFit":{var X;const I=(X=K.filter(ae=>{if(q){const G=gi(ae.placement);return G===A||G==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(G=>G>0).reduce((G,M)=>G+M,0)]).sort((ae,G)=>ae[1]-G[1])[0])==null?void 0:X[0];I&&($=I);break}case"initialPlacement":$=d;break}if(s!==$)return{reset:{placement:$}}}return{}}}};async function A5(e,n){const{placement:a,platform:i,elements:s}=e,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=ba(a),d=ol(a),h=gi(a)==="y",p=["left","top"].includes(f)?-1:1,g=o&&h?-1:1,b=yi(n,e);let{mainAxis:y,crossAxis:v,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof E=="number"&&(v=d==="end"?E*-1:E),h?{x:v*g,y:y*p}:{x:y*p,y:v*g}}const M5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var a,i;const{x:s,y:o,placement:f,middlewareData:d}=n,h=await A5(n,e);return f===((a=d.offset)==null?void 0:a.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:o+h.y,data:{...h,placement:f}}}}},j5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:a,y:i,placement:s}=n,{mainAxis:o=!0,crossAxis:f=!1,limiter:d={fn:O=>{let{x:T,y:A}=O;return{x:T,y:A}}},...h}=yi(e,n),p={x:a,y:i},g=await Qp(n,h),b=gi(ba(s)),y=Fp(b);let v=p[y],E=p[b];if(o){const O=y==="y"?"top":"left",T=y==="y"?"bottom":"right",A=v+g[O],j=v-g[T];v=Am(A,v,j)}if(f){const O=b==="y"?"top":"left",T=b==="y"?"bottom":"right",A=E+g[O],j=E-g[T];E=Am(A,E,j)}const x=d.fn({...n,[y]:v,[b]:E});return{...x,data:{x:x.x-a,y:x.y-i,enabled:{[y]:o,[b]:f}}}}}},_5=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:a,y:i,placement:s,rects:o,middlewareData:f}=n,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=yi(e,n),g={x:a,y:i},b=gi(s),y=Fp(b);let v=g[y],E=g[b];const x=yi(d,n),O=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(h){const j=y==="y"?"height":"width",_=o.reference[y]-o.floating[j]+O.mainAxis,C=o.reference[y]+o.reference[j]-O.mainAxis;v<_?v=_:v>C&&(v=C)}if(p){var T,A;const j=y==="y"?"width":"height",_=["top","left"].includes(ba(s)),C=o.reference[b]-o.floating[j]+(_&&((T=f.offset)==null?void 0:T[b])||0)+(_?0:O.crossAxis),q=o.reference[b]+o.reference[j]+(_?0:((A=f.offset)==null?void 0:A[b])||0)-(_?O.crossAxis:0);E<C?E=C:E>q&&(E=q)}return{[y]:v,[b]:E}}}},N5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var a,i;const{placement:s,rects:o,platform:f,elements:d}=n,{apply:h=()=>{},...p}=yi(e,n),g=await Qp(n,p),b=ba(s),y=ol(s),v=gi(s)==="y",{width:E,height:x}=o.floating;let O,T;b==="top"||b==="bottom"?(O=b,T=y===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(T=b,O=y==="end"?"top":"bottom");const A=x-g.top-g.bottom,j=E-g.left-g.right,_=pi(x-g[O],A),C=pi(E-g[T],j),q=!n.middlewareData.shift;let U=_,k=C;if((a=n.middlewareData.shift)!=null&&a.enabled.x&&(k=j),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(U=A),q&&!y){const K=Ln(g.left,0),ee=Ln(g.right,0),oe=Ln(g.top,0),X=Ln(g.bottom,0);v?k=E-2*(K!==0||ee!==0?K+ee:Ln(g.left,g.right)):U=x-2*(oe!==0||X!==0?oe+X:Ln(g.top,g.bottom))}await h({...n,availableWidth:k,availableHeight:U});const z=await f.getDimensions(d.floating);return E!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function gf(){return typeof window<"u"}function cl(e){return Rx(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Vr(e){var n;return(n=(Rx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function Rx(e){return gf()?e instanceof Node||e instanceof $n(e).Node:!1}function xr(e){return gf()?e instanceof Element||e instanceof $n(e).Element:!1}function qr(e){return gf()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function W1(e){return!gf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function Gs(e){const{overflow:n,overflowX:a,overflowY:i,display:s}=Er(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+a)&&!["inline","contents"].includes(s)}function z5(e){return["table","td","th"].includes(cl(e))}function vf(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Gp(e){const n=Kp(),a=xr(e)?Er(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!n&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!n&&(a.filter?a.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function L5(e){let n=vi(e);for(;qr(n)&&!ul(n);){if(Gp(n))return n;if(vf(n))return null;n=vi(n)}return null}function Kp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ul(e){return["html","body","#document"].includes(cl(e))}function Er(e){return $n(e).getComputedStyle(e)}function bf(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vi(e){if(cl(e)==="html")return e;const n=e.assignedSlot||e.parentNode||W1(e)&&e.host||Vr(e);return W1(n)?n.host:n}function Dx(e){const n=vi(e);return ul(n)?e.ownerDocument?e.ownerDocument.body:e.body:qr(n)&&Gs(n)?n:Dx(n)}function Rs(e,n,a){var i;n===void 0&&(n=[]),a===void 0&&(a=!0);const s=Dx(e),o=s===((i=e.ownerDocument)==null?void 0:i.body),f=$n(s);if(o){const d=jm(f);return n.concat(f,f.visualViewport||[],Gs(s)?s:[],d&&a?Rs(d):[])}return n.concat(s,Rs(s,[],a))}function jm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ax(e){const n=Er(e);let a=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=qr(e),o=s?e.offsetWidth:a,f=s?e.offsetHeight:i,d=Vc(a)!==o||Vc(i)!==f;return d&&(a=o,i=f),{width:a,height:i,$:d}}function Xp(e){return xr(e)?e:e.contextElement}function Fu(e){const n=Xp(e);if(!qr(n))return Br(1);const a=n.getBoundingClientRect(),{width:i,height:s,$:o}=Ax(n);let f=(o?Vc(a.width):a.width)/i,d=(o?Vc(a.height):a.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const H5=Br(0);function Mx(e){const n=$n(e);return!Kp()||!n.visualViewport?H5:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function U5(e,n,a){return n===void 0&&(n=!1),!a||n&&a!==$n(e)?!1:n}function Ii(e,n,a,i){n===void 0&&(n=!1),a===void 0&&(a=!1);const s=e.getBoundingClientRect(),o=Xp(e);let f=Br(1);n&&(i?xr(i)&&(f=Fu(i)):f=Fu(e));const d=U5(o,a,i)?Mx(o):Br(0);let h=(s.left+d.x)/f.x,p=(s.top+d.y)/f.y,g=s.width/f.x,b=s.height/f.y;if(o){const y=$n(o),v=i&&xr(i)?$n(i):i;let E=y,x=jm(E);for(;x&&i&&v!==E;){const O=Fu(x),T=x.getBoundingClientRect(),A=Er(x),j=T.left+(x.clientLeft+parseFloat(A.paddingLeft))*O.x,_=T.top+(x.clientTop+parseFloat(A.paddingTop))*O.y;h*=O.x,p*=O.y,g*=O.x,b*=O.y,h+=j,p+=_,E=$n(x),x=jm(E)}}return Qc({width:g,height:b,x:h,y:p})}function Zp(e,n){const a=bf(e).scrollLeft;return n?n.left+a:Ii(Vr(e)).left+a}function jx(e,n,a){a===void 0&&(a=!1);const i=e.getBoundingClientRect(),s=i.left+n.scrollLeft-(a?0:Zp(e,i)),o=i.top+n.scrollTop;return{x:s,y:o}}function $5(e){let{elements:n,rect:a,offsetParent:i,strategy:s}=e;const o=s==="fixed",f=Vr(i),d=n?vf(n.floating):!1;if(i===f||d&&o)return a;let h={scrollLeft:0,scrollTop:0},p=Br(1);const g=Br(0),b=qr(i);if((b||!b&&!o)&&((cl(i)!=="body"||Gs(f))&&(h=bf(i)),qr(i))){const v=Ii(i);p=Fu(i),g.x=v.x+i.clientLeft,g.y=v.y+i.clientTop}const y=f&&!b&&!o?jx(f,h,!0):Br(0);return{width:a.width*p.x,height:a.height*p.y,x:a.x*p.x-h.scrollLeft*p.x+g.x+y.x,y:a.y*p.y-h.scrollTop*p.y+g.y+y.y}}function B5(e){return Array.from(e.getClientRects())}function P5(e){const n=Vr(e),a=bf(e),i=e.ownerDocument.body,s=Ln(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),o=Ln(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let f=-a.scrollLeft+Zp(e);const d=-a.scrollTop;return Er(i).direction==="rtl"&&(f+=Ln(n.clientWidth,i.clientWidth)-s),{width:s,height:o,x:f,y:d}}function q5(e,n){const a=$n(e),i=Vr(e),s=a.visualViewport;let o=i.clientWidth,f=i.clientHeight,d=0,h=0;if(s){o=s.width,f=s.height;const p=Kp();(!p||p&&n==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}return{width:o,height:f,x:d,y:h}}function k5(e,n){const a=Ii(e,!0,n==="fixed"),i=a.top+e.clientTop,s=a.left+e.clientLeft,o=qr(e)?Fu(e):Br(1),f=e.clientWidth*o.x,d=e.clientHeight*o.y,h=s*o.x,p=i*o.y;return{width:f,height:d,x:h,y:p}}function e0(e,n,a){let i;if(n==="viewport")i=q5(e,a);else if(n==="document")i=P5(Vr(e));else if(xr(n))i=k5(n,a);else{const s=Mx(e);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return Qc(i)}function _x(e,n){const a=vi(e);return a===n||!xr(a)||ul(a)?!1:Er(a).position==="fixed"||_x(a,n)}function F5(e,n){const a=n.get(e);if(a)return a;let i=Rs(e,[],!1).filter(d=>xr(d)&&cl(d)!=="body"),s=null;const o=Er(e).position==="fixed";let f=o?vi(e):e;for(;xr(f)&&!ul(f);){const d=Er(f),h=Gp(f);!h&&d.position==="fixed"&&(s=null),(o?!h&&!s:!h&&d.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Gs(f)&&!h&&_x(e,f))?i=i.filter(g=>g!==f):s=d,f=vi(f)}return n.set(e,i),i}function V5(e){let{element:n,boundary:a,rootBoundary:i,strategy:s}=e;const f=[...a==="clippingAncestors"?vf(n)?[]:F5(n,this._c):[].concat(a),i],d=f[0],h=f.reduce((p,g)=>{const b=e0(n,g,s);return p.top=Ln(b.top,p.top),p.right=pi(b.right,p.right),p.bottom=pi(b.bottom,p.bottom),p.left=Ln(b.left,p.left),p},e0(n,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Y5(e){const{width:n,height:a}=Ax(e);return{width:n,height:a}}function Q5(e,n,a){const i=qr(n),s=Vr(n),o=a==="fixed",f=Ii(e,!0,o,n);let d={scrollLeft:0,scrollTop:0};const h=Br(0);if(i||!i&&!o)if((cl(n)!=="body"||Gs(s))&&(d=bf(n)),i){const y=Ii(n,!0,o,n);h.x=y.x+n.clientLeft,h.y=y.y+n.clientTop}else s&&(h.x=Zp(s));const p=s&&!i&&!o?jx(s,d):Br(0),g=f.left+d.scrollLeft-h.x-p.x,b=f.top+d.scrollTop-h.y-p.y;return{x:g,y:b,width:f.width,height:f.height}}function im(e){return Er(e).position==="static"}function t0(e,n){if(!qr(e)||Er(e).position==="fixed")return null;if(n)return n(e);let a=e.offsetParent;return Vr(e)===a&&(a=a.ownerDocument.body),a}function Nx(e,n){const a=$n(e);if(vf(e))return a;if(!qr(e)){let s=vi(e);for(;s&&!ul(s);){if(xr(s)&&!im(s))return s;s=vi(s)}return a}let i=t0(e,n);for(;i&&z5(i)&&im(i);)i=t0(i,n);return i&&ul(i)&&im(i)&&!Gp(i)?a:i||L5(e)||a}const G5=async function(e){const n=this.getOffsetParent||Nx,a=this.getDimensions,i=await a(e.floating);return{reference:Q5(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function K5(e){return Er(e).direction==="rtl"}const X5={convertOffsetParentRelativeRectToViewportRelativeRect:$5,getDocumentElement:Vr,getClippingRect:V5,getOffsetParent:Nx,getElementRects:G5,getClientRects:B5,getDimensions:Y5,getScale:Fu,isElement:xr,isRTL:K5};function zx(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Z5(e,n){let a=null,i;const s=Vr(e);function o(){var d;clearTimeout(i),(d=a)==null||d.disconnect(),a=null}function f(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),o();const p=e.getBoundingClientRect(),{left:g,top:b,width:y,height:v}=p;if(d||n(),!y||!v)return;const E=vc(b),x=vc(s.clientWidth-(g+y)),O=vc(s.clientHeight-(b+v)),T=vc(g),j={rootMargin:-E+"px "+-x+"px "+-O+"px "+-T+"px",threshold:Ln(0,pi(1,h))||1};let _=!0;function C(q){const U=q[0].intersectionRatio;if(U!==h){if(!_)return f();U?f(!1,U):i=setTimeout(()=>{f(!1,1e-7)},1e3)}U===1&&!zx(p,e.getBoundingClientRect())&&f(),_=!1}try{a=new IntersectionObserver(C,{...j,root:s.ownerDocument})}catch{a=new IntersectionObserver(C,j)}a.observe(e)}return f(!0),o}function I5(e,n,a,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,p=Xp(e),g=s||o?[...p?Rs(p):[],...Rs(n)]:[];g.forEach(T=>{s&&T.addEventListener("scroll",a,{passive:!0}),o&&T.addEventListener("resize",a)});const b=p&&d?Z5(p,a):null;let y=-1,v=null;f&&(v=new ResizeObserver(T=>{let[A]=T;A&&A.target===p&&v&&(v.unobserve(n),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var j;(j=v)==null||j.observe(n)})),a()}),p&&!h&&v.observe(p),v.observe(n));let E,x=h?Ii(e):null;h&&O();function O(){const T=Ii(e);x&&!zx(x,T)&&a(),x=T,E=requestAnimationFrame(O)}return a(),()=>{var T;g.forEach(A=>{s&&A.removeEventListener("scroll",a),o&&A.removeEventListener("resize",a)}),b==null||b(),(T=v)==null||T.disconnect(),v=null,h&&cancelAnimationFrame(E)}}const J5=M5,W5=j5,e3=D5,t3=N5,n3=R5,r3=_5,a3=(e,n,a)=>{const i=new Map,s={platform:X5,...a},o={...s.platform,_c:i};return T5(e,n,{...s,platform:o})};var i3="div";function n0(e=0,n=0,a=0,i=0){if(typeof DOMRect=="function")return new DOMRect(e,n,a,i);const s={x:e,y:n,width:a,height:i,top:n,right:e+a,bottom:n+i,left:e};return we(se({},s),{toJSON:()=>s})}function u3(e){if(!e)return n0();const{x:n,y:a,width:i,height:s}=e;return n0(n,a,i,s)}function l3(e,n){return{contextElement:e||void 0,getBoundingClientRect:()=>{const i=e,s=n==null?void 0:n(i);return s||!i?u3(s):i.getBoundingClientRect()}}}function s3(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function r0(e){const n=window.devicePixelRatio||1;return Math.round(e*n)/n}function o3(e,n){return J5(({placement:a})=>{var i;const s=((e==null?void 0:e.clientHeight)||0)/2,o=typeof n.gutter=="number"?n.gutter+s:(i=n.gutter)!=null?i:s;return{crossAxis:!!a.split("-")[1]?void 0:n.shift,mainAxis:o,alignmentAxis:n.shift}})}function c3(e){if(e.flip===!1)return;const n=typeof e.flip=="string"?e.flip.split(" "):void 0;return en(!n||n.every(s3),!1),e3({padding:e.overflowPadding,fallbackPlacements:n})}function f3(e){if(!(!e.slide&&!e.overlap))return W5({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:r3()})}function d3(e){return t3({padding:e.overflowPadding,apply({elements:n,availableWidth:a,availableHeight:i,rects:s}){const o=n.floating,f=Math.round(s.reference.width);a=Math.floor(a),i=Math.floor(i),o.style.setProperty("--popover-anchor-width",`${f}px`),o.style.setProperty("--popover-available-width",`${a}px`),o.style.setProperty("--popover-available-height",`${i}px`),e.sameWidth&&(o.style.width=`${f}px`),e.fitViewport&&(o.style.maxWidth=`${a}px`,o.style.maxHeight=`${i}px`)}})}function h3(e,n){if(e)return n3({element:e,padding:n.arrowPadding})}var Lx=tt(function(n){var a=n,{store:i,modal:s=!1,portal:o=!!s,preserveTabOrder:f=!0,autoFocusOnShow:d=!0,wrapperProps:h,fixed:p=!1,flip:g=!0,shift:b=0,slide:y=!0,overlap:v=!1,sameWidth:E=!1,fitViewport:x=!1,gutter:O,arrowPadding:T=4,overflowPadding:A=8,getAnchorRect:j,updatePosition:_}=a,C=Ke(a,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const q=df();i=i||q,en(i,!1);const U=i.useState("arrowElement"),k=i.useState("anchorElement"),z=i.useState("disclosureElement"),K=i.useState("popoverElement"),ee=i.useState("contentElement"),oe=i.useState("placement"),X=i.useState("mounted"),re=i.useState("rendered"),ne=w.useRef(null),[$,I]=w.useState(!1),{portalRef:ae,domReady:G}=Ep(o,C.portalRef),M=Ye(j),V=Ye(_),ce=!!_;ct(()=>{if(!(K!=null&&K.isConnected))return;K.style.setProperty("--popover-overflow-padding",`${A}px`);const fe=l3(k,M),ve=async()=>{if(!X)return;U||(ne.current=ne.current||document.createElement("div"));const _e=U||ne.current,je=[o3(_e,{gutter:O,shift:b}),c3({flip:g,overflowPadding:A}),f3({slide:y,shift:b,overlap:v,overflowPadding:A}),h3(_e,{arrowPadding:T}),d3({sameWidth:E,fitViewport:x,overflowPadding:A})],Ne=await a3(fe,K,{placement:oe,strategy:p?"fixed":"absolute",middleware:je});i==null||i.setState("currentPlacement",Ne.placement),I(!0);const Mt=r0(Ne.x),Sn=r0(Ne.y);if(Object.assign(K.style,{top:"0",left:"0",transform:`translate3d(${Mt}px,${Sn}px,0)`}),_e&&Ne.middlewareData.arrow){const{x:ft,y:ln}=Ne.middlewareData.arrow,Tn=Ne.placement.split("-")[0],tn=_e.clientWidth/2,Pn=_e.clientHeight/2,be=ft!=null?ft+tn:-tn,Fe=ln!=null?ln+Pn:-Pn;K.style.setProperty("--popover-transform-origin",{top:`${be}px calc(100% + ${Pn}px)`,bottom:`${be}px ${-Pn}px`,left:`calc(100% + ${tn}px) ${Fe}px`,right:`${-tn}px ${Fe}px`}[Tn]),Object.assign(_e.style,{left:ft!=null?`${ft}px`:"",top:ln!=null?`${ln}px`:"",[Tn]:"100%"})}},mt=I5(fe,K,async()=>{ce?(await V({updatePosition:ve}),I(!0)):await ve()},{elementResize:typeof ResizeObserver=="function"});return()=>{I(!1),mt()}},[i,re,K,U,k,K,oe,X,G,p,g,b,y,v,E,x,O,T,A,M,ce,V]),ct(()=>{if(!X||!G||!(K!=null&&K.isConnected)||!(ee!=null&&ee.isConnected))return;const fe=()=>{K.style.zIndex=getComputedStyle(ee).zIndex};fe();let ve=requestAnimationFrame(()=>{ve=requestAnimationFrame(fe)});return()=>cancelAnimationFrame(ve)},[X,G,K,ee]);const de=p?"fixed":"absolute";return C=vn(C,fe=>D.jsx("div",we(se({},h),{style:se({position:de,top:0,left:0,width:"max-content"},h==null?void 0:h.style),ref:i==null?void 0:i.setPopoverElement,children:fe})),[i,de,h]),C=vn(C,fe=>D.jsx(hf,{value:i,children:fe}),[i]),C=we(se({"data-placing":!$||void 0},C),{style:se({position:"relative"},C.style)}),C=Cx(we(se({store:i,modal:s,portal:o,preserveTabOrder:f,preserveTabOrderAnchor:z||k,autoFocusOnShow:$&&d},C),{portalRef:ae})),C});yf(Xe(function(n){const a=Lx(n);return Ie(i3,a)}),df);var m3="hr",Hx=tt(function(n){var a=n,{orientation:i="horizontal"}=a,s=Ke(a,["orientation"]);return s=se({role:"separator","aria-orientation":i},s),s});Xe(function(n){const a=Hx(n);return Ie(m3,a)});var p3="hr",Ux=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=sf();i=i||o,en(i,!1);const f=i.useState(d=>d.orientation==="horizontal"?"vertical":"horizontal");return s=Hx(we(se({},s),{orientation:f})),s});Xe(function(n){const a=Ux(n);return Ie(p3,a)});var y3="button",g3=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=$4();i=i||o;const f=s.onClick,d=Ye(p=>{f==null||f(p),!p.defaultPrevented&&(i==null||i.hide())}),h=w.useMemo(()=>D.jsxs("svg",{"aria-label":"Dismiss popup",display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:[D.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),D.jsx("line",{x1:"4",y1:"12",x2:"12",y2:"4"})]}),[]);return s=we(se({"data-dialog-dismiss":"",children:h},s),{onClick:d}),s=Up(s),s}),v3=Xe(function(n){const a=g3(n);return Ie(y3,a)}),b3="h1",$x=tt(function(n){const a=w.useRef(null),i=w.useContext(Dm)||1,s=`h${i}`,o=xp(a,s),f=w.useMemo(()=>!!o&&/^h\d$/.test(o),[o]);return n=we(se({render:D.jsx(s,{}),role:f?void 0:"heading","aria-level":f?void 0:i},n),{ref:Ut(a,n.ref)}),n});Xe(function(n){const a=$x(n);return Ie(b3,a)});var S3="h1",x3=tt(function(n){var a=n,i=Ke(a,["store"]);const s=w.useContext(ax),o=nu(i.id);return ct(()=>(s==null||s(o),()=>s==null?void 0:s(void 0)),[s,o]),i=se({id:o},i),i=$x(i),i}),E3=Xe(function(n){const a=x3(n);return Ie(S3,a)}),w3="div",ma="";function um(){ma=""}function O3(e){const n=e.target;return n&&wa(n)?!1:e.key===" "&&ma.length?!0:e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key)}function C3(e,n){if(Hn(e))return!0;const a=e.target;return a?n.some(s=>s.element===a):!1}function T3(e){return e.filter(n=>!n.disabled)}function Mc(e,n){var a;const i=((a=e.element)==null?void 0:a.textContent)||e.children||"value"in e&&e.value;return i?BR(i).trim().toLowerCase().startsWith(n.toLowerCase()):!1}function R3(e,n,a){if(!a)return e;const i=e.find(s=>s.id===a);return!i||!Mc(i,n)||ma!==n&&Mc(i,ma)?e:(ma=n,Y4(e.filter(s=>Mc(s,ma)),a).filter(s=>s.id!==a))}var Ip=tt(function(n){var a=n,{store:i,typeahead:s=!0}=a,o=Ke(a,["store","typeahead"]);const f=sf();i=i||f,en(i,!1);const d=o.onKeyDownCapture,h=w.useRef(0),p=Ye(g=>{if(d==null||d(g),g.defaultPrevented||!s||!i)return;if(!O3(g))return um();const{renderedItems:b,items:y,activeId:v,id:E}=i.getState();let x=T3(y.length>b.length?y:b);const O=gt(g.currentTarget),T=`[data-offscreen-id="${E}"]`,A=O.querySelectorAll(T);for(const C of A){const q=C.ariaDisabled==="true"||"disabled"in C&&!!C.disabled;x.push({id:C.id,element:C,disabled:q})}if(A.length&&(x=YS(x,C=>C.element)),!C3(g,x))return um();g.preventDefault(),window.clearTimeout(h.current),h.current=window.setTimeout(()=>{ma=""},500);const j=g.key.toLowerCase();ma+=j,x=R3(x,j,v);const _=x.find(C=>Mc(C,ma));_?i.move(_.id):um()});return o=we(se({},o),{onKeyDownCapture:p}),ll(o)});Xe(function(n){const a=Ip(n);return Ie(w3,a)});var D3="button",Bx=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=df();i=i||o,en(i,!1);const f=s.onClick,d=Ye(h=>{i==null||i.setAnchorElement(h.currentTarget),f==null||f(h)});return s=vn(s,h=>D.jsx(hf,{value:i,children:h}),[i]),s=we(se({},s),{onClick:d}),s=ux(se({store:i},s)),s=hx(se({store:i},s)),s});Xe(function(n){const a=Bx(n);return Ie(D3,a)});var Px=Oa([of],[Tp]),A3=Px.useContext,M3=Px.useScopedContext;w.createContext(void 0);var Ks=Oa([ix],[hf]);Ks.useContext;Ks.useScopedContext;var Jp=Ks.useProviderContext,j3=Ks.ContextProvider,qx=Ks.ScopedContextProvider,Xs=Oa([of,j3],[Tp,qx]),kx=Xs.useContext,_3=Xs.useScopedContext,Sf=Xs.useProviderContext,Fx=Xs.ContextProvider,N3=Xs.ScopedContextProvider;w.createContext(void 0);function z3(e={}){var n;const a=(n=e.store)==null?void 0:n.getState(),i=z4(Qt(ut({},e),{placement:et(e.placement,a==null?void 0:a.placement,"bottom")})),s=et(e.timeout,a==null?void 0:a.timeout,500),o=Qt(ut({},i.getState()),{timeout:s,showTimeout:et(e.showTimeout,a==null?void 0:a.showTimeout),hideTimeout:et(e.hideTimeout,a==null?void 0:a.hideTimeout),autoFocusOnShow:et(a==null?void 0:a.autoFocusOnShow,!1)}),f=Pr(o,i,e.store);return Qt(ut(ut({},i),f),{setAutoFocusOnShow:d=>f.setState("autoFocusOnShow",d)})}function L3(e,n,a){return Zt(e,a,"timeout"),Zt(e,a,"showTimeout"),Zt(e,a,"hideTimeout"),L4(e,n,a)}function H3(e={}){var n=e,{combobox:a,parent:i,menubar:s}=n,o=US(n,["combobox","parent","menubar"]);const f=!!s&&!i,d=Mp(o.store,m4(i,["values"]),Ap(a,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),h=d.getState(),p=M4(Qt(ut({},o),{store:d,orientation:et(o.orientation,h.orientation,"vertical")})),g=z3(Qt(ut({},o),{store:d,placement:et(o.placement,h.placement,"bottom-start"),timeout:et(o.timeout,h.timeout,f?0:150),hideTimeout:et(o.hideTimeout,h.hideTimeout,0)})),b=Qt(ut(ut({},p.getState()),g.getState()),{initialFocus:et(h.initialFocus,"container"),values:et(o.values,h.values,o.defaultValues,{})}),y=Pr(b,p,g,d);return pa(y,()=>va(y,["mounted"],v=>{v.mounted||y.setState("activeId",null)})),pa(y,()=>va(i,["orientation"],v=>{y.setState("placement",v.orientation==="vertical"?"right-start":"bottom-start")})),Qt(ut(ut(ut({},p),g),y),{combobox:a,parent:i,menubar:s,hideAll:()=>{g.hide(),i==null||i.hideAll()},setInitialFocus:v=>y.setState("initialFocus",v),setValues:v=>y.setState("values",v),setValue:(v,E)=>{v!=="__proto__"&&v!=="constructor"&&(Array.isArray(v)||y.setState("values",x=>{const O=x[v],T=$S(E,O);return T===O?x:Qt(ut({},x),{[v]:T!==void 0&&T})}))}})}function U3(e,n,a){return lf(n,[a.combobox,a.parent,a.menubar]),Zt(e,a,"values","setValues"),Object.assign(L3(j4(e,n,a),n,a),{combobox:a.combobox,parent:a.parent,menubar:a.menubar})}function $3(e={}){const n=kx(),a=A3(),i=k4();e=we(se({},e),{parent:e.parent!==void 0?e.parent:n,menubar:e.menubar!==void 0?e.menubar:a,combobox:e.combobox!==void 0?e.combobox:i});const[s,o]=jp(H3,e);return U3(s,o,e)}var B3="div";function P3(e){var n=e,{store:a}=n,i=Ke(n,["store"]);const[s,o]=w.useState(void 0),f=i["aria-label"],d=qt(a,"disclosureElement"),h=qt(a,"contentElement");return w.useEffect(()=>{const p=d;if(!p)return;const g=h;if(!g)return;f||g.hasAttribute("aria-label")?o(void 0):p.id&&o(p.id)},[f,d,h]),s}var Vx=tt(function(n){var a=n,{store:i,alwaysVisible:s,composite:o}=a,f=Ke(a,["store","alwaysVisible","composite"]);const d=Sf();i=i||d,en(i,!1);const h=i.parent,p=i.menubar,g=!!h,b=nu(f.id),y=f.onKeyDown,v=i.useState(U=>U.placement.split("-")[0]),E=i.useState(U=>U.orientation==="both"?void 0:U.orientation),x=E!=="vertical",O=qt(p,U=>!!U&&U.orientation!=="vertical"),T=Ye(U=>{if(y==null||y(U),!U.defaultPrevented){if(g||p&&!x){const z={ArrowRight:()=>v==="left"&&!x,ArrowLeft:()=>v==="right"&&!x,ArrowUp:()=>v==="bottom"&&x,ArrowDown:()=>v==="top"&&x}[U.key];if(z!=null&&z())return U.stopPropagation(),U.preventDefault(),i==null?void 0:i.hide()}if(p){const z={ArrowRight:()=>{if(O)return p.next()},ArrowLeft:()=>{if(O)return p.previous()},ArrowDown:()=>{if(!O)return p.next()},ArrowUp:()=>{if(!O)return p.previous()}}[U.key],K=z==null?void 0:z();K!==void 0&&(U.stopPropagation(),U.preventDefault(),p.move(K))}}});f=vn(f,U=>D.jsx(N3,{value:i,children:U}),[i]);const A=P3(se({store:i},f)),j=i.useState("mounted"),_=$p(j,f.hidden,s),C=_?we(se({},f.style),{display:"none"}):f.style;f=we(se({id:b,"aria-labelledby":A,hidden:_},f),{ref:Ut(b?i.setContentElement:null,f.ref),style:C,onKeyDown:T});const q=!!i.combobox;return o=o??!q,o&&(f=se({role:"menu","aria-orientation":E},f)),f=cx(se({store:i,composite:o},f)),f=Ip(se({store:i,typeahead:!q},f)),f});Xe(function(n){const a=Vx(n);return Ie(B3,a)});function lm(e){return[e.clientX,e.clientY]}function a0(e,n){const[a,i]=e;let s=!1;const o=n.length;for(let f=o,d=0,h=f-1;d<f;h=d++){const[p,g]=n[d],[b,y]=n[h],[,v]=n[h===0?f-1:h-1]||[0,0],E=(g-y)*(a-p)-(p-b)*(i-g);if(y<g){if(i>=y&&i<g){if(E===0)return!0;E>0&&(i===y?i>v&&(s=!s):s=!s)}}else if(g<y){if(i>g&&i<=y){if(E===0)return!0;E<0&&(i===y?i<v&&(s=!s):s=!s)}}else if(i===g&&(a>=b&&a<=p||a>=p&&a<=b))return!0}return s}function q3(e,n){const{top:a,right:i,bottom:s,left:o}=n,[f,d]=e,h=f<o?"left":f>i?"right":null,p=d<a?"top":d>s?"bottom":null;return[h,p]}function i0(e,n){const a=e.getBoundingClientRect(),{top:i,right:s,bottom:o,left:f}=a,[d,h]=q3(n,a),p=[n];return d?(h!=="top"&&p.push([d==="left"?f:s,i]),p.push([d==="left"?s:f,i]),p.push([d==="left"?s:f,o]),h!=="bottom"&&p.push([d==="left"?f:s,o])):h==="top"?(p.push([f,i]),p.push([f,o]),p.push([s,o]),p.push([s,i])):(p.push([f,o]),p.push([f,i]),p.push([s,i]),p.push([s,o])),p}var k3="div";function Yx(e,n,a,i){return ci(n)?!0:e?!!(Lt(n,e)||a&&Lt(a,e)||i!=null&&i.some(s=>Yx(e,s,a))):!1}function F3(e){var n=e,{store:a}=n,i=Ke(n,["store"]);const[s,o]=w.useState(!1),f=a.useState("mounted");w.useEffect(()=>{f||o(!1)},[f]);const d=i.onFocus,h=Ye(g=>{d==null||d(g),!g.defaultPrevented&&o(!0)}),p=w.useRef(null);return w.useEffect(()=>va(a,["anchorElement"],g=>{p.current=g.anchorElement}),[]),i=we(se({autoFocusOnHide:s,finalFocus:p},i),{onFocus:h}),i}var u0=w.createContext(null),Qx=tt(function(n){var a=n,{store:i,modal:s=!1,portal:o=!!s,hideOnEscape:f=!0,hideOnHoverOutside:d=!0,disablePointerEventsOnApproach:h=!!d}=a,p=Ke(a,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const g=Jp();i=i||g,en(i,!1);const b=w.useRef(null),[y,v]=w.useState([]),E=w.useRef(0),x=w.useRef(null),{portalRef:O,domReady:T}=Ep(o,p.portalRef),A=wp(),j=!!d,_=Un(d),C=!!h,q=Un(h),U=i.useState("open"),k=i.useState("mounted");w.useEffect(()=>{if(!T||!k||!j&&!C)return;const X=b.current;return X?Bn(It("mousemove",ne=>{if(!i||!A())return;const{anchorElement:$,hideTimeout:I,timeout:ae}=i.getState(),G=x.current,[M]=ne.composedPath(),V=$;if(Yx(M,X,V,y)){x.current=M&&V&&Lt(V,M)?lm(ne):null,window.clearTimeout(E.current),E.current=0;return}if(!E.current){if(G){const ce=lm(ne),de=i0(X,G);if(a0(ce,de)){if(x.current=ce,!q(ne))return;ne.preventDefault(),ne.stopPropagation();return}}_(ne)&&(E.current=window.setTimeout(()=>{E.current=0,i==null||i.hide()},I??ae))}},!0),()=>clearTimeout(E.current)):void 0},[i,A,T,k,j,C,y,q,_]),w.useEffect(()=>{if(!T||!k||!C)return;const X=re=>{const ne=b.current;if(!ne)return;const $=x.current;if(!$)return;const I=i0(ne,$);if(a0(lm(re),I)){if(!q(re))return;re.preventDefault(),re.stopPropagation()}};return Bn(It("mouseenter",X,!0),It("mouseover",X,!0),It("mouseout",X,!0),It("mouseleave",X,!0))},[T,k,C,q]),w.useEffect(()=>{T&&(U||i==null||i.setAutoFocusOnShow(!1))},[i,T,U]);const z=GS(U);w.useEffect(()=>{if(T)return()=>{z.current||i==null||i.setAutoFocusOnShow(!1)}},[i,T]);const K=w.useContext(u0);ct(()=>{if(s||!o||!k||!T)return;const X=b.current;if(X)return K==null?void 0:K(X)},[s,o,k,T]);const ee=w.useCallback(X=>{v(ne=>[...ne,X]);const re=K==null?void 0:K(X);return()=>{v(ne=>ne.filter($=>$!==X)),re==null||re()}},[K]);p=vn(p,X=>D.jsx(qx,{value:i,children:D.jsx(u0.Provider,{value:ee,children:X})}),[i,ee]),p=we(se({},p),{ref:Ut(b,p.ref)}),p=F3(se({store:i},p));const oe=i.useState(X=>s||X.autoFocusOnShow);return p=Lx(we(se({store:i,modal:s,portal:o,autoFocusOnShow:oe},p),{portalRef:O,hideOnEscape(X){return PS(f,X)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{i==null||i.hide()})}),!0)}})),p});yf(Xe(function(n){const a=Qx(n);return Ie(k3,a)}),Jp);var V3="div",Y3=tt(function(n){var a=n,{store:i,modal:s=!1,portal:o=!!s,hideOnEscape:f=!0,autoFocusOnShow:d=!0,hideOnHoverOutside:h,alwaysVisible:p}=a,g=Ke(a,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const b=Sf();i=i||b,en(i,!1);const y=w.useRef(null),v=i.parent,E=i.menubar,x=!!v,O=!!E&&!x;g=we(se({},g),{ref:Ut(y,g.ref)});const T=Vx(se({store:i,alwaysVisible:p},g)),{"aria-labelledby":A}=T;g=Ke(T,["aria-labelledby"]);const[_,C]=w.useState(),q=i.useState("autoFocusOnShow"),U=i.useState("initialFocus"),k=i.useState("baseElement"),z=i.useState("renderedItems");w.useEffect(()=>{let $=!1;return C(I=>{var ae,G,M;if($||!q)return;if((ae=I==null?void 0:I.current)!=null&&ae.isConnected)return I;const V=w.createRef();switch(U){case"first":V.current=((G=z.find(ce=>!ce.disabled&&ce.element))==null?void 0:G.element)||null;break;case"last":V.current=((M=[...z].reverse().find(ce=>!ce.disabled&&ce.element))==null?void 0:M.element)||null;break;default:V.current=k}return V}),()=>{$=!0}},[i,q,U,z,k]);const K=x?!1:s,ee=!!d,oe=!!_||!!g.initialFocus||!!K,X=qt(i.combobox||i,"contentElement"),re=qt((v==null?void 0:v.combobox)||v,"contentElement"),ne=w.useMemo(()=>{if(!re||!X)return;const $=X.getAttribute("role"),I=re.getAttribute("role");if(!((I==="menu"||I==="menubar")&&$==="menu"))return re},[X,re]);return ne!==void 0&&(g=se({preserveTabOrderAnchor:ne},g)),g=Qx(we(se({store:i,alwaysVisible:p,initialFocus:_,autoFocusOnShow:ee?oe&&d:q||!!K},g),{hideOnEscape($){return PS(f,$)?!1:(i==null||i.hideAll(),!0)},hideOnHoverOutside($){const I=i==null?void 0:i.getState().disclosureElement;return(typeof h=="function"?h($):h??(x?!0:O?I?!ci(I):!0:!1))?$.defaultPrevented||!x||!I||(n4(I,"mouseout",$),!ci(I))?!0:(requestAnimationFrame(()=>{ci(I)||i==null||i.hide()}),!1):!1},modal:K,portal:o,backdrop:x?!1:g.backdrop})),g=se({"aria-labelledby":A},g),g}),Q3=yf(Xe(function(n){const a=Y3(n);return Ie(V3,a)}),Sf);function G3(e={}){const n=$3(e);return D.jsx(Fx,{value:n,children:e.children})}var K3="a",Gx=tt(function(n){var a=n,{store:i,showOnHover:s=!0}=a,o=Ke(a,["store","showOnHover"]);const f=Jp();i=i||f,en(i,!1);const d=Ps(o),h=w.useRef(0);w.useEffect(()=>()=>window.clearTimeout(h.current),[]),w.useEffect(()=>It("mouseleave",T=>{if(!i)return;const{anchorElement:A}=i.getState();A&&T.target===A&&(window.clearTimeout(h.current),h.current=0)},!0),[i]);const p=o.onMouseMove,g=Un(s),b=wp(),y=Ye(O=>{if(p==null||p(O),d||!i||O.defaultPrevented||h.current||!b()||!g(O))return;const T=O.currentTarget;i.setAnchorElement(T),i.setDisclosureElement(T);const{showTimeout:A,timeout:j}=i.getState(),_=()=>{h.current=0,b()&&(i==null||i.setAnchorElement(T),i==null||i.show(),queueMicrotask(()=>{i==null||i.setDisclosureElement(T)}))},C=A??j;C===0?_():h.current=window.setTimeout(_,C)}),v=o.onClick,E=Ye(O=>{v==null||v(O),i&&(window.clearTimeout(h.current),h.current=0)}),x=w.useCallback(O=>{if(!i)return;const{anchorElement:T}=i.getState();T!=null&&T.isConnected||i.setAnchorElement(O)},[i]);return o=we(se({},o),{ref:Ut(x,o.ref),onMouseMove:y,onClick:E}),o=Ys(o),o});Xe(function(n){const a=Gx(n);return Ie(K3,a)});var X3="button";function Z3(e,n){return{ArrowDown:n==="bottom"||n==="top"?"first":!1,ArrowUp:n==="bottom"||n==="top"?"last":!1,ArrowRight:n==="right"?"first":!1,ArrowLeft:n==="left"?"first":!1}[e.key]}function l0(e,n){return!!(e!=null&&e.some(a=>!a.element||a.element===n?!1:a.element.getAttribute("aria-expanded")==="true"))}var I3=tt(function(n){var a=n,{store:i,focusable:s,accessibleWhenDisabled:o,showOnHover:f}=a,d=Ke(a,["store","focusable","accessibleWhenDisabled","showOnHover"]);const h=Sf();i=i||h,en(i,!1);const p=w.useRef(null),g=i.parent,b=i.menubar,y=!!g,v=!!b&&!y,E=Ps(d),x=()=>{const ee=p.current;ee&&(i==null||i.setDisclosureElement(ee),i==null||i.setAnchorElement(ee),i==null||i.show())},O=d.onFocus,T=Ye(ee=>{if(O==null||O(ee),E||ee.defaultPrevented||(i==null||i.setAutoFocusOnShow(!1),i==null||i.setActiveId(null),!b)||!v)return;const{items:oe}=b.getState();l0(oe,ee.currentTarget)&&x()}),A=qt(i,ee=>ee.placement.split("-")[0]),j=d.onKeyDown,_=Ye(ee=>{if(j==null||j(ee),E||ee.defaultPrevented)return;const oe=Z3(ee,A);oe&&(ee.preventDefault(),x(),i==null||i.setAutoFocusOnShow(!0),i==null||i.setInitialFocus(oe))}),C=d.onClick,q=Ye(ee=>{if(C==null||C(ee),ee.defaultPrevented||!i)return;const oe=!ee.detail,{open:X}=i.getState();(!X||oe)&&((!y||oe)&&i.setAutoFocusOnShow(!0),i.setInitialFocus(oe?"first":"container")),y&&x()});d=vn(d,ee=>D.jsx(Fx,{value:i,children:ee}),[i]),y&&(d=we(se({},d),{render:D.jsx(Fc.div,{render:d.render})}));const U=nu(d.id),k=qt((g==null?void 0:g.combobox)||g,"contentElement"),z=y||v?FS(k,"menuitem"):void 0,K=i.useState("contentElement");return d=we(se({id:U,role:z,"aria-haspopup":gp(K,"menu")},d),{ref:Ut(p,d.ref),onFocus:T,onKeyDown:_,onClick:q}),d=Gx(we(se({store:i,focusable:s,accessibleWhenDisabled:o},d),{showOnHover:ee=>{if(!(()=>{if(typeof f=="function")return f(ee);if(f!=null)return f;if(y)return!0;if(!b)return!1;const{items:ne}=b.getState();return v&&l0(ne)})())return!1;const re=v?b:g;return re&&re.setActiveId(ee.currentTarget.id),!0}})),d=Bx(se({store:i,toggleOnClick:!y,focusable:s,accessibleWhenDisabled:o},d)),d=Ip(se({store:i,typeahead:v},d)),d}),J3=Xe(function(n){const a=I3(n);return Ie(X3,a)}),W3="div";function eA(e,n,a){var i;if(!e)return!1;if(ci(e))return!0;const s=n==null?void 0:n.find(h=>{var p;return h.element===a?!1:((p=h.element)==null?void 0:p.getAttribute("aria-expanded"))==="true"}),o=(i=s==null?void 0:s.element)==null?void 0:i.getAttribute("aria-controls");if(!o)return!1;const d=gt(e).getElementById(o);return d?ci(d)?!0:!!d.querySelector("[role=menuitem][aria-expanded=true]"):!1}var tA=tt(function(n){var a=n,{store:i,hideOnClick:s=!0,preventScrollOnKeyDown:o=!0,focusOnHover:f,blurOnHoverEnd:d}=a,h=Ke(a,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const p=_3(!0),g=M3();i=i||p||g,en(i,!1);const b=h.onClick,y=Un(s),v="hideAll"in i?i.hideAll:void 0,E=!!v,x=Ye(A=>{b==null||b(A),!(A.defaultPrevented||t4(A)||e4(A)||!v||A.currentTarget.getAttribute("aria-haspopup")==="menu")&&y(A)&&v()}),O=qt(i,A=>"contentElement"in A?A.contentElement:null),T=FS(O,"menuitem");return h=we(se({role:T},h),{onClick:x}),h=gx(se({store:i,preventScrollOnKeyDown:o},h)),h=px(we(se({store:i},h),{focusOnHover(A){const j=()=>typeof f=="function"?f(A):f??!0;if(!i||!j())return!1;const{baseElement:_,items:C}=i.getState();return E?(A.currentTarget.hasAttribute("aria-expanded")&&A.currentTarget.focus(),!0):eA(_,C,A.currentTarget)?(A.currentTarget.focus(),!0):!1},blurOnHoverEnd(A){return typeof d=="function"?d(A):d??E}})),h}),nA=Cp(Xe(function(n){const a=tA(n);return Ie(W3,a)})),rA="hr",aA=tt(function(n){var a=n,{store:i}=a,s=Ke(a,["store"]);const o=kx();return i=i||o,s=Ux(se({store:i},s)),s}),iA=Xe(function(n){const a=aA(n);return Ie(rA,a)}),ps={root:"_0bZjG",inputContainer:"f-ccT",input:"BQJSS",startAdornment:"pFIPb",endAdornment:"MBy3g"},kr={legend:"BjkL4",label:"IogM9",errorText:"iCPgd",textErrorMessage:"_1r4K2",helperText:"aW7kV",fieldSet:"LwRcp"};function uA({error:e,className:n,...a}){return D.jsx("fieldset",{...a,className:$e(kr.fieldSet,e&&kr.hasError,n)})}function lA({error:e,className:n,...a}){return D.jsx("div",{...a,className:$e(kr.helperText,e&&kr.hasError,n)})}function Kx({error:e,className:n,...a}){return D.jsx("label",{...a,className:$e(kr.label,e&&kr.hasError,n)})}function Xx({error:e,className:n,...a}){return D.jsx("div",{...a,className:$e(kr.legend,e&&kr.hasError,n)})}function Zs({className:e,...n}){return D.jsx("p",{...n,className:$e(kr.errorText,kr.textErrorMessage,e)})}const xf=function({as:e="input",label:n,disabled:a,error:i,hint:s,size:o,multiline:f,startAdornment:d,endAdornment:h,id:p,style:g,className:b,inputClassName:y,...v}){const E=e==="input"?f?"textarea":"input":e,x=w.useId(),O=p||x;return D.jsxs("div",{className:$e(ps.root,b),style:{maxWidth:o,...g},"data-error":!!i,"aria-disabled":!!a,id:p?`${p}-container`:void 0,children:[n&&D.jsx(Kx,{htmlFor:O,children:n}),s&&D.jsx(lA,{id:`${O}_hint`,children:s}),D.jsxs("div",{className:$e(ps.inputContainer),children:[d&&D.jsx("div",{className:ps.startAdornment,children:d}),D.jsx(E,{disabled:a,id:O,...v,"aria-describedby":$e(v["aria-describedby"],!!s&&`${O}_hint`,!!i&&`${O}_error`),"aria-invalid":!!i,className:$e(ps.input,y)}),h&&D.jsx("div",{className:ps.endAdornment,children:h})]}),i&&D.jsx(Zs,{id:`${O}_error`,role:"alert",children:i})]})};function sA({value:e,ref:n,...a}){const i=w.useRef(void 0),s=wS(n,i),o=()=>{var p,g,b;(g=(p=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:p.set)==null||g.call(i.current,"");const h=new Event("input",{bubbles:!0});(b=i.current)==null||b.dispatchEvent(h)},f=h=>{var p;h.key==="Escape"&&o(),(p=a.onKeyDown)==null||p.call(a,h)},d=(e??"").length>0;return D.jsx(xf,{ref:s,...a,type:"search",onKeyDown:f,value:e,startAdornment:D.jsx(uR,{size:24,style:{marginTop:6}}),endAdornment:D.jsx("button",{type:"button",onClick:o,tabIndex:-1,style:{marginTop:6,opacity:d?1:0,pointerEvents:d?void 0:"none"},children:D.jsx(dp,{size:32,style:{opacity:.75}})})})}var ys={root:"hhIFY",button:"LYR4G",value:"afH1B",hidden:"vxf23",hiddenText:"gO-kQ",numberInput:"MdvMX"};function oA({id:e,name:n,value:a,defaultValue:i,onChange:s,min:o=-1/0,max:f=1/0,step:d=1,disabled:h,error:p,className:g,style:b,onFocus:y,...v}){const E=a!==void 0,x=w.useRef(null),[O,T]=w.useState((E?a:i)??"");E&&a!==O&&T(a);const A=Number(f),j=Number(o),_=Number(d),C=z=>{const K=fA(z,j,A);T(K);const ee=new Event("change"),oe={writable:!1,value:{name:n,value:K}};Object.defineProperty(ee,"target",oe),Object.defineProperty(ee,"currentTarget",oe),s==null||s(ee)},q=z=>{const K=Number(O)||0;z.key==="Home"?(z.preventDefault(),C(`${j}`)):z.key==="End"&&A<1/0?(z.preventDefault(),C(`${A}`)):z.key==="ArrowUp"?(z.preventDefault(),C(`${K+_}`)):z.key==="ArrowDown"&&(z.preventDefault(),C(`${K-_}`))},U=z=>{C(z.target.value)},k=z=>()=>{var ee;const K=Number(O)||0;C(K+z),cA()||((ee=x.current)==null||ee.focus())};return D.jsxs("div",{className:$e(ys.root,g),"aria-valuenow":Number(a||0),"aria-valuemin":j===-1/0?void 0:j,"aria-valuemax":A===1/0?void 0:A,tabIndex:-1,style:b,"aria-invalid":!!p,"aria-disabled":!!h,id:e?`${e}-container`:void 0,children:[D.jsx("button",{type:"button",onClick:k(-_),className:$e(ys.button),disabled:h||Number(O||0)<=j,"aria-label":"Decrease",tabIndex:-1,children:D.jsx(iR,{})}),D.jsx("input",{ref:x,id:e,role:"spinbutton",type:"tel",inputMode:"numeric",pattern:"[0-9]*",className:$e(ys.value,ys.numberInput),name:n,min:j,max:A,value:O,onChange:U,onKeyDown:q,disabled:h,onFocus:z=>{var K;(K=x.current)==null||K.select(),y==null||y(z)},...v}),D.jsx("button",{type:"button",onClick:k(_),className:ys.button,disabled:h||Number(O||0)>=A,"aria-label":"Increase",tabIndex:-1,children:D.jsx(JT,{})})]})}function cA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function fA(e,n,a){const i=typeof e=="string"?parseFloat(e):e;return e==="-"?e:isNaN(i)?"":Math.max(n,Math.min(a,i))}var jr={backdrop:"JKTsp",dialog:"hTxsM",header:"Y-99i",withTitle:"_51P42",title:"GprBx",content:"G5k-W",closeButton:"xWVnm",footer:"NGZT3"};function Wp({title:e,isOpen:n=!0,onDismiss:a,initialFocusRef:i,className:s,style:o,children:f}){return D.jsxs(v5,{initialFocus:i,open:n,onClose:()=>a==null?void 0:a(),backdrop:D.jsx("div",{className:jr.backdrop}),modal:!0,hideOnInteractOutside:!!a,hideOnEscape:!!a,className:$e(jr.dialog,jr.withTitle,s),style:{"--transition-opacity":1,...o},children:[D.jsxs("header",{className:$e(jr.header,jr.withTitle),children:[e&&D.jsx(E3,{className:jr.title,children:e}),D.jsx(v3,{className:jr.closeButton,style:{display:a?void 0:"none"},children:D.jsx(dp,{})})]}),D.jsx("section",{className:$e(jr.content,jr.withTitle),children:f})]})}const dA=({children:e})=>D.jsx("footer",{className:jr.footer,children:e});Wp.Footer=dA;var bc={menuButton:"uQnDM",list:"_5sdh-",listItem:"cYlZh",separator:"WSXYE"};function hA({items:e,label:n="Menu",buttonProps:a={},arrow:i=!0}){const{className:s,style:o}=MS(a);return D.jsxs(G3,{children:[D.jsx(J3,{className:$e(bc.menuButton,s),style:o,children:D.jsxs("span",{className:"dmk-text-with-icon",children:[n,i&&D.jsx(eR,{className:"dmk-margin-left-xxs"})]})}),D.jsx(Q3,{className:bc.list,children:e.map(({action:f,label:d,selected:h,separator:p},g)=>p?D.jsx(iA,{className:bc.separator},g):D.jsxs(nA,{onClick:f,className:bc.listItem,disabled:!f,children:[d," ",h&&D.jsx(nR,{})]},g))})]})}let Zx=class extends w.Component{constructor(){super(...arguments),this.state={error:null},this.resetErrorBoundary=()=>{var n,a;(a=(n=this.props).onReset)==null||a.call(n),this.setState({error:null})}}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,a){this.props.onError&&this.props.onError(n,a)}render(){return this.state.error?w.isValidElement(this.props.fallback)?this.props.fallback:typeof this.props.fallback=="function"?this.props.fallback({error:this.state.error,resetErrorBoundary:this.resetErrorBoundary}):null:this.props.children}};Zx.defaultProps={fallback:D.jsx("div",{className:"dmk-padding-m",children:D.jsx(uf,{intent:"error",title:"Error",children:D.jsx("p",{children:"An error occurred"})})}),onError:(e,n)=>console.error(e,n)};var s0={root:"j5ZL9",hamburgerButton:"wJ6xF"};function mA({open:e=!1,className:n,...a}){return D.jsx("button",{type:"button",...a,className:$e(s0.root,n),"data-open":e,children:D.jsxs("div",{className:s0.hamburgerButton,children:[D.jsx("span",{}),D.jsx("span",{}),D.jsx("span",{}),D.jsx("span",{})]})})}var jc={root:"_2NpgS",radio:"qytUm",input:"_9AxBc",radioGroup:"xYP4R"};const pA=function({as:e=vA,name:n,value:a,onChange:i,disabled:s,children:o,error:f,variant:d="normal",...h}){const p=w.useMemo(()=>({name:n,disabled:s,isChecked:g=>a===g,onChange:i}),[n,a,i,s]);return D.jsx(Ix,{value:p,children:D.jsx(e,{role:"radiogroup","data-radio-group":n,"data-variant":d,...h,"data-error":!!f,"aria-disabled":!!s,className:$e(jc.radioGroup,h.className),children:o})})},Ix=af("RadioGroupContext",null);function yA({children:e,className:n,style:a,error:i,...s}){const o=gA(s);return D.jsxs("label",{className:$e(jc.root,n),"data-checked":o.checked,"data-error":i,"aria-disabled":o.disabled,style:a,children:[D.jsx("input",{...s,className:$e("dmk-visually-hidden",jc.input),"aria-checked":o.checked,"aria-invalid":i?"true":"false",type:"radio",...o}),D.jsx("span",{className:jc.radio,"aria-hidden":"true"}),D.jsx("span",{children:typeof e=="function"?e(o.checked):e})]})}function gA(e){const n=w.use(Ix);return n==null?e:{value:e.value,name:n.name,checked:n.isChecked(e.value),disabled:n.disabled,onChange:n.onChange}}const vA=function(e){return D.jsx(Sr,{spacing:"s",...e})};var dr={root:"piq-R",sidebar:"Og3fR",mobile:"muuLM",overlay:"xZmuk",header:"JYx2J",contentContainer:"_5UdA1",content:"xV9Cb",sidebarMenuItem:"xAYHd",sidebarSectionHeading:"tt-vd"};function ey(e=!1){const[n,a]=w.useState(e),i=w.useCallback(()=>a(f=>!f),[]),s=w.useCallback(()=>a(!0),[]),o=w.useCallback(()=>a(!1),[]);return w.useMemo(()=>({value:n,toggle:i,enable:s,disable:o}),[n,i,s,o])}function bA(e){const n=w.useRef(void 0);return hp(()=>{n.current=e},[e]),n.current}const Jx=w.createContext(null);function Wx(){const e=w.use(Jx);if(e==null)throw new Error("MenuOpenContext not available");return e}function SA({header:e,sidebar:n,children:a,className:i,maxWidth:s,headerHeight:o,style:f}){const d=pp([!0,!1,!1]),h=ey(!d),p=bA(h.value);return hp(()=>{!d&&!p?h.enable():d&&p&&h.disable()},[d,h,p]),D.jsx(Jx,{value:h,children:D.jsxs("div",{className:$e(dr.root,i,d&&dr.mobile),style:{"--max-width":s,"--header-height":o,...f},children:[e,d&&h.value&&D.jsx("div",{className:dr.overlay,onClick:h.disable}),D.jsxs("aside",{className:$e(dr.sidebar,d&&dr.mobile),"data-open":h.value,children:[d&&D.jsx(Sr,{horizontal:!0,justifyContent:"flex-end",className:"dmk-margin-bottom-l",children:D.jsx(e2,{})}),n]}),D.jsx("main",{className:$e(dr.contentContainer,d&&dr.mobile),children:D.jsx("div",{className:dr.content,children:a})})]})})}function e2(){const e=Wx();return D.jsx(mA,{open:e.value,onClick:e.toggle})}function xA({logo:e,children:n,className:a,style:i}){const s=pp([!0,!1,!1]);return D.jsxs(Sr,{horizontal:[!1,!0,!0],justifyContent:"space-between",alignItems:"center",className:$e(dr.header,s&&dr.mobile,a),style:i,children:[D.jsxs(Sr,{horizontal:!0,alignItems:"center",justifyContent:"space-between",children:[s&&D.jsx(e2,{}),e]}),n]})}const EA=function({as:e="a",onClick:n,className:a,children:i,...s}){const o=Wx(),f=pp([!0,!1,!1]);return D.jsx(e,{...s,className:$e(dr.sidebarMenuItem,a),draggable:!1,onClick:d=>{n==null||n(d),!d.defaultPrevented&&f&&o.disable()},children:D.jsx("span",{children:i})})};var gs={root:"ScOVn",selectContainer:"o18SG",arrow:"LsR6O",select:"f1zqA",label:"sVIZA",hint:"_1hf0-"};function wA(e){return Wt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"},child:[]}]})(e)}function OA(e){return Wt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"},child:[]}]})(e)}function t2(e){return Wt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(e)}function n2({style:e,className:n,error:a,hint:i,label:s,value:o,disabled:f,children:d,placeholder:h,id:p,ref:g,...b}){const y=w.useId(),v=p||y;return D.jsxs("div",{className:$e(gs.root,n),"data-error":!!a,"aria-disabled":!!f,style:e,children:[s&&D.jsx(Kx,{htmlFor:v,children:s}),i&&D.jsx("div",{className:gs.hint,id:`${v}_hint`,children:i}),D.jsxs("div",{className:$e(gs.selectContainer),children:[D.jsxs("select",{id:v,ref:g,...b,disabled:f,value:o===null?"":o,className:$e(gs.select),"aria-invalid":!!a,"aria-describedby":$e(b["aria-describedby"],!!i&&`${v}_hint`,!!a&&`${v}_error`),children:[h&&D.jsx("option",{value:"",children:h}),d]}),D.jsx("div",{className:gs.arrow,"aria-hidden":!0,role:"presentation",children:D.jsx(t2,{})})]}),a&&D.jsx(Zs,{role:"alert",id:`${v}_error`,children:a})]})}var CA={visuallyHidden:"zZoQC"};const TA=function({as:e="div",className:n,ref:a,...i}){return D.jsx(e,{ref:a,...i,className:$e(CA.visuallyHidden,n)})};var ty={root:"_7x-oj",scrollableContainer:"Sc0YX",sortPrioIndicator:"tKRSW"};function RA(e){return D.jsx("div",{...e,className:$e(ty.scrollableContainer,e.className)})}function DA({ref:e,renderHeaderRow:n,renderRow:a,items:i,caption:s,footer:o,columnWidthFixedAfterFirstRender:f=!0,...d}){const h=w.useRef(null),p=wS(e,h),g=w.useRef(null);return w.useLayoutEffect(()=>{var E;if(!f)return;const b=Array.from(((E=h.current)==null?void 0:E.querySelectorAll("th"))??[]),y=b.map(x=>window.getComputedStyle(x).width);(g.current==null||y.length!==g.current.length)&&(g.current=y);const v=JSON.stringify(y)!==JSON.stringify(g.current);if(g.current&&v)for(let x=0;x<b.length;x++)b[x].style.width=g.current[x]}),D.jsxs("table",{ref:p,...d,className:$e(ty.root,d.className),children:[s&&D.jsx(TA,{as:"caption",children:s}),D.jsx("thead",{children:n()}),i&&i.length>0&&D.jsx("tbody",{children:(i||[]).map(a)}),o!=null&&D.jsx("tfoot",{children:o})]})}const AA=[10,20,50,100];function MA({limit:e,onLimitChange:n,page:a,onPageChange:i,total:s,limits:o=AA}){const f=Math.ceil(s/Math.max(1,e)),d=e*(Math.max(1,a)-1);return D.jsxs(Sr,{horizontal:!0,alignItems:"center",children:[D.jsxs("span",{style:{whiteSpace:"nowrap"},children:[D.jsx("span",{className:"dmk-text-semibold",children:d+1})," to"," ",D.jsx("span",{className:"dmk-text-semibold",children:Math.min(d+e,s)})," ","of ",D.jsx("span",{className:"dmk-text-semibold",children:s})]}),D.jsx(oA,{name:"page",value:a,onChange:h=>i(+h.currentTarget.value||1),min:1,max:f}),D.jsx("div",{className:"dmk-margin-left-auto",children:D.jsx(hA,{label:`${e} per page`,items:o.map(h=>({label:`${h} per page`,action:()=>n(h),selected:h===e})),buttonProps:{variant:"text",size:"s"}})})]})}const jA=(e,n)=>typeof e=="string"?e.localeCompare(n):aS(e)?ZC(e,n):e<n?-1:e>n?1:0,_A=Symbol();function NA(e,n={},a=void 0,i=jA){const s=vm(e),o=(f,d)=>{var h;if(typeof f=="function")return vm(f(d));if(f===_A)return[d];if(typeof f=="string"&&typeof d=="object"&&d!=null){const p=f.at(0)==="-"?f.slice(1):f;return p in n?[(h=n[p])==null?void 0:h.call(n,d,a)]:[d[p]]}return[d]};return function(f){return f.slice().sort((d,h)=>{if(s.length===0)return i(d,h);for(const p of s){const g=o(p,d),b=o(p,h);for(let y=0;y<g.length;y++){const v=g[y],E=b[y],x=i(v,E);if(x!==0)return typeof p=="string"&&p.at(0)==="-"?x*-1:x}}return 0})}}function zA({multi:e=!0,keys:n}={}){function a(i,s){if(s.column==null)return[];const o=`-${String(s.column)}`;return i.includes(o)?i.filter(f=>f!==o):i.includes(s.column)?i.map(f=>f===s.column?o:f):!e||!s.shiftKey?[s.column]:i.concat([s.column])}return function(i=[],s=void 0){const[o,f]=w.useReducer(a,i),d=w.useMemo(()=>NA(o,n,s),[o,s]);function h(b){const y=o.length>1;let v;return(v=o.indexOf(b))>-1?D.jsx(sm,{direction:"asc",priority:y?v+1:null}):(v=o.indexOf(`-${String(b)}`))>-1?D.jsx(sm,{direction:"desc",priority:y?v+1:null}):D.jsx(sm,{})}function p(b,y){return D.jsxs(D.Fragment,{children:[y??b," ",h(b)]})}function g(b,y){return{"data-sortable":!0,onClick:v=>{f({column:b,shiftKey:v.shiftKey})},children:p(b,y)}}return{sortColumns:o,onSortColumnClick:f,sorted:d,renderSortColumnLabel:p,renderSortingColumnArrow:h,getSortingColumnHeaderProps:g,getThProps:g}}}function sm({direction:e,priority:n}){return e==null?D.jsx(t2,{className:"dmk-text-muted"}):D.jsxs(D.Fragment,{children:[e==="asc"?D.jsx(OA,{}):D.jsx(wA,{})," ",n!=null&&D.jsx("sup",{className:ty.sortPrioIndicator,children:n})]})}function LA(e,n){const a=w.useRef(e);hp(()=>{a.current=e},[e]),w.useEffect(()=>{if(!n&&n!==0)return;const i=setTimeout(()=>a.current(),n);return()=>clearTimeout(i)},[n])}const r2=af("ToastContext",null);function HA(e,n){switch(n.type){case"ADD":return[...e,{_id:Date.now(),...n.payload}].slice(-5);case"REMOVE":return e.filter(a=>a._id!==n.payload);default:return e}}function UA({children:e}){const[n,a]=w.useReducer(HA,[]),i=w.useCallback(o=>{a({type:"ADD",payload:o})},[]),s=o=>{a({type:"REMOVE",payload:o})};return D.jsxs(r2,{value:i,children:[e,D.jsx(Sr,{spacing:"s",style:{position:"fixed",top:0,zIndex:"var(--z-index-9)",right:0,left:0,maxWidth:500,margin:"40px auto"},children:n.map(o=>D.jsx($A,{onClose:()=>s(o._id),...o},o._id))})]})}function a2(){const e=w.use(r2);if(e==null)throw new Error;return e}function $A({title:e,description:n,intent:a,duration:i,onClose:s}){const o=mp(),f=i??1e4,[d,h]=w.useState(f);LA(s,d);const p=()=>{h(null)},g=()=>{h(f)};return D.jsx("div",{style:{boxShadow:o.shadows.elevation1.valueOf(),borderRadius:o.borderRadius.s},children:D.jsx(uf,{title:e,intent:a||"success",onClose:s,onMouseOver:p,onMouseLeave:g,children:n})})}function BA(e,n){const[a,i]=w.useState(e),s=w.useRef(Date.now());return w.useEffect(()=>{const o=setTimeout(()=>{Date.now()-s.current>=n&&(i(e),s.current=Date.now())},n-(Date.now()-s.current));return()=>{clearTimeout(o)}},[e,n]),a}const PA=({fields:e,onRemove:n,texts:a,path:i})=>D.jsxs("div",{"data-bitiforms-array-item":!0,"data-field-path":i,children:[Object.keys(e).map(s=>D.jsx(fp,{...e[s]},s)),D.jsx(hi,{className:"dmk-margin-top-m",variant:"outlined",intent:"danger",type:"button",onClick:n,"data-bitiforms-array-remove-button":!0,children:(a||{})["arrayfield.remove"]??"Remove"})]}),qA=({disabled:e,onClick:n,texts:a})=>D.jsx(Sr,{as:"footer",horizontal:!0,alignItems:"center",className:"dmk-margin-top-l","data-bitiforms-array-add-button":!0,children:!e&&D.jsx(hi,{variant:"outlined",onClick:n,children:(a||{})["arrayfield.add"]??"Add"})}),kA=({schema:e,id:n,name:a,children:i,errors:s,itemCount:o})=>D.jsxs("div",{"data-bitiforms-array-field":a,children:[e.title&&D.jsxs("h3",{id:`${n}_title`,className:"dmk-text-title2 dmk-margin-bottom-s",children:[e.title," ",D.jsxs("span",{"data-bitiforms-array-item-count":!0,children:["(",o,")"]})]}),e.description&&D.jsx("div",{id:`${n}_description`,children:e.description}),s&&D.jsx("div",{children:s}),i]});function FA(e){return D.jsx(MT,{...e,renderItem:PA,renderAddButton:qA,renderContainer:kA})}function i2(e){return D.jsx("div",{"data-bitiforms-description":!0,...e})}function VA({onChange:e,id:n,name:a,value:i,errors:s,schema:o,texts:f,disabled:d,path:h}){const p=nf();sS(QA(o),`CheckboxGroupWidget must be given a schema of type 'object' or 'array'. ${JSON.stringify(o)} given.`);const g=E=>x=>xa(o)&&Array.isArray(i)?e({target:{name:a,value:GA(i,E,x.currentTarget.checked)}}):e({target:{name:a,value:{...i,[E]:x.currentTarget.checked}}}),b=()=>{p.enable()},y=p.value,v=YA(s,o);return D.jsxs(uA,{"aria-labelledby":`${n}-legend`,"data-bitiforms-checkboxgroup":!0,"data-field-path":h,children:[o.title&&D.jsx(Xx,{id:`${n}-legend`,children:o.title}),o.description&&D.jsx(i2,{id:`${n}_description`,children:o.description}),D.jsx(Sr,{spacing:"s",children:KA(o).map(([E,x])=>{const O=Array.isArray(i)?i.includes(E):i[E]===!0,T=Array.isArray(i)?!O&&v.length>0?"invalid":void 0:gr(s[E])?"invalid":void 0;return D.jsx(_S,{id:`${n}_${E}`,checked:O,value:E,error:y?!!T:void 0,onChange:g(E),onBlur:b,disabled:d,children:x},E)})}),y&&v.length>0&&D.jsx(Zs,{role:"alert",children:rf(v,f)})]})}function YA(e,n){return gr(e)?xa(n)?e.all:["errors.checkboxGroup.invalid"]:[]}function QA(e){return!!(xa(e)&&di(e.items)&&e.items.enum||bn(e)&&Object.values(e.properties||{}).every($s))}function GA(e,n,a){const i=new Set(e);return a?[...i.add(n)]:(i.delete(n),[...i])}function KA(e){var n;if(xa(e)&&di(e.items)&&e.items.enum){const a=[];for(let i=0;i<e.items.enum.length;i++)a.push([e.items.enum[i],((n=e.items.$enumNames)==null?void 0:n[i])||e.items.enum[i]]);return a}return bn(e)?Wc(Object.keys(e.properties||{}),(e.$bitiforms||{}).propertyOrder).map(a=>[a,e.properties[a].title]):[]}function XA({name:e,value:n,onChange:a,schema:i,errors:s,texts:o,path:f}){const d=nf(),h=g=>{const{checked:b}=g.currentTarget;return a({target:{name:e,value:b}})},p=d.value&&gr(s);return D.jsxs("div",{"data-field-path":f,children:[D.jsx(_S,{checked:n||!1,onChange:h,onBlur:d.enable,error:p,children:i.title}),p&&D.jsx(Zs,{role:"alert",children:o==null?void 0:o["errors.checkbox.required"]})]})}function ZA(e){const{onBlur:n,onChange:a,error:i,schema:s,id:o,name:f,value:d,disabled:h,$bitiforms:p}=Bs(e);return D.jsx(xf,{"data-field-path":e.path,name:f,type:"date",id:o,label:s.title,hint:s.description,error:i,value:d??"",onChange:a,onBlur:n,disabled:h,...p.widgetProps})}function IA({schema:e,path:n}){return!e.title&&!e.description&&!e.const?null:D.jsxs("div",{"data-bitiforms-helptext":!0,"data-field-path":n,children:[e.title&&D.jsx("h4",{children:e.title}),e.description||e.const||""]})}const JA=({})=>null;function WA({suffix:e="",...n}){const{$bitiforms:a,onBlur:i,onChange:s,error:o,schema:f,id:d,name:h,value:p,disabled:g}=Bs(n,e6),b=f.minimum||0,y=f.maximum||Number.MAX_SAFE_INTEGER,v=E=>{const x=E.currentTarget.name;switch(E.key){case"ArrowDown":return s({target:{name:x,value:Math.max(+p-1,b)}});case"ArrowUp":return s({target:{name:x,value:Math.min(+p+1,y)}})}};return D.jsx(xf,{"data-field-path":n.path,type:"tel",inputMode:"numeric",pattern:"[0-9]*",id:d,name:h,autoComplete:"off",placeholder:a.placeholder,error:o,label:f.title,autoFocus:a.autoFocus,...a.widgetProps,hint:f.description,value:p==null||p===""?"":p,onBlur:i,onChange:E=>{s({target:{name:E.currentTarget.name,value:E.currentTarget.value}})},onKeyDown:v,min:b,max:y,disabled:g,endAdornment:e})}function e6(e){if(typeof e=="number")return e;let n=e;const a=e.lastIndexOf(",");if(a>-1&&(n=n.slice(0,a)),n=n.replace(/\D+/g,""),n.trim()==="")return null;const i=n.slice(0,15);return parseInt(i,10)}function t6(e){return D.jsx(PT,{...e})}const n6={email:"email"};function r6(e){return e.type==="string"&&e.format&&n6[e.format]||"text"}function u2({type:e,...n}){const{$bitiforms:a,onBlur:i,onChange:s,error:o,schema:f,id:d,name:h,value:p,disabled:g}=Bs(n),b=r6(f);return D.jsx(xf,{"data-field-path":n.path,type:e||b,id:d,name:h,placeholder:a.placeholder,error:o,label:f.title,autoFocus:a.autoFocus,hint:f.description,value:p??"",startAdornment:n.startAdornment,endAdornment:n.endAdornment,onBlur:i,onChange:s,disabled:g,...a.widgetProps,autoComplete:typeof a.autoComplete=="string"?a.autoComplete:a.autoComplete===!1?"off":"on"})}function a6(e){const n=ey(!1);return D.jsx(u2,{...e,type:n.value?"text":"password",endAdornment:D.jsx(hi,{tabIndex:-1,variant:"text",style:{fontSize:32,lineHeight:1,padding:0},onClick:n.toggle,children:n.value?D.jsx(aR,{}):D.jsx(rR,{})})})}const i6=({value:e,label:n,disabled:a})=>D.jsx(yA,{value:e,disabled:a,children:n});function u6({className:e,renderOption:n=i6,texts:a,...i}){const{values:s,fromSchemaValue:o,toSchemaValue:f}=yS(i.schema),{onBlur:d,onChange:h,schema:p,id:g,error:b,name:y,value:v,disabled:E}=Bs(i,f);return D.jsxs("div",{"aria-labelledby":`${g}-legend`,"data-field-path":i.path,children:[D.jsx(Xx,{error:!!b,id:`${g}-legend`,children:p.title}),p.description&&D.jsx(i2,{id:`${g}_description`,children:p.description}),D.jsx(pA,{name:y,id:g,className:e,error:!!b,value:o(v)??"",onChange:h,onBlur:d,disabled:E,children:s.map(([x,O],T)=>D.jsx(w.Fragment,{children:n({value:x,label:O,disabled:E||!1,index:T})},x))}),b&&D.jsx(Zs,{children:a==null?void 0:a["errors.radiogroup.required"]})]})}function l6(e){const{values:n,fromSchemaValue:a,toSchemaValue:i}=yS(e.schema),{id:s,name:o,$bitiforms:f,error:d,schema:h,onChange:p,onBlur:g,value:b,disabled:y}=Bs(e,i);return D.jsx(n2,{"data-field-path":e.path,id:s,name:o,label:h.title,autoFocus:f.autoFocus,error:d,hint:h.description,value:a(b),onChange:p,onBlur:g,disabled:y,children:n.map(([v,E])=>D.jsx("option",{value:v,children:E},v))})}function s6({errors:e,onClose:n,title:a="Failed to submit"}){const{texts:i}=sp(),s=Object.values(e);return D.jsx(uf,{intent:"error",title:a,onClose:n,children:D.jsx("ul",{children:s.map((o,f)=>D.jsx("li",{children:rf([o],i)},f))})})}const o6={ArrayWidget:FA,ObjectWidget:t6,CheckboxWidget:XA,CheckboxGroupWidget:VA,DateWidget:ZA,HelpTextWidget:IA,HiddenWidget:JA,NumberWidget:WA,PasswordWidget:a6,RadioGroupWidget:u6,SelectWidget:l6,TextInputWidget:u2};var fl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ji=typeof window>"u"||"Deno"in globalThis;function nr(){}function c6(e,n){return typeof e=="function"?e(n):e}function _m(e){return typeof e=="number"&&e>=0&&e!==1/0}function l2(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Vu(e,n){return typeof e=="function"?e(n):e}function yr(e,n){return typeof e=="function"?e(n):e}function o0(e,n){const{type:a="all",exact:i,fetchStatus:s,predicate:o,queryKey:f,stale:d}=e;if(f){if(i){if(n.queryHash!==ny(f,n.options))return!1}else if(!Ds(n.queryKey,f))return!1}if(a!=="all"){const h=n.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||s&&s!==n.state.fetchStatus||o&&!o(n))}function c0(e,n){const{exact:a,status:i,predicate:s,mutationKey:o}=e;if(o){if(!n.options.mutationKey)return!1;if(a){if(Wi(n.options.mutationKey)!==Wi(o))return!1}else if(!Ds(n.options.mutationKey,o))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function ny(e,n){return((n==null?void 0:n.queryKeyHashFn)||Wi)(e)}function Wi(e){return JSON.stringify(e,(n,a)=>Nm(a)?Object.keys(a).sort().reduce((i,s)=>(i[s]=a[s],i),{}):a)}function Ds(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(a=>!Ds(e[a],n[a])):!1}function s2(e,n){if(e===n)return e;const a=f0(e)&&f0(n);if(a||Nm(e)&&Nm(n)){const i=a?e:Object.keys(e),s=i.length,o=a?n:Object.keys(n),f=o.length,d=a?[]:{};let h=0;for(let p=0;p<f;p++){const g=a?p:o[p];(!a&&i.includes(g)||a)&&e[g]===void 0&&n[g]===void 0?(d[g]=void 0,h++):(d[g]=s2(e[g],n[g]),d[g]===e[g]&&e[g]!==void 0&&h++)}return s===f&&h===s?e:d}return n}function Gc(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function f0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nm(e){if(!d0(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!d0(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function d0(e){return Object.prototype.toString.call(e)==="[object Object]"}function f6(e){return new Promise(n=>{setTimeout(n,e)})}function zm(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?s2(e,n):n}function d6(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function h6(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var ry=Symbol();function o2(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===ry?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Fi,ti,Yu,x0,m6=(x0=class extends fl{constructor(){super();De(this,Fi);De(this,ti);De(this,Yu);me(this,Yu,n=>{if(!Ji&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){L(this,ti)||this.setEventListener(L(this,Yu))}onUnsubscribe(){var n;this.hasListeners()||((n=L(this,ti))==null||n.call(this),me(this,ti,void 0))}setEventListener(n){var a;me(this,Yu,n),(a=L(this,ti))==null||a.call(this),me(this,ti,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){L(this,Fi)!==n&&(me(this,Fi,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){var n;return typeof L(this,Fi)=="boolean"?L(this,Fi):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Fi=new WeakMap,ti=new WeakMap,Yu=new WeakMap,x0),ay=new m6,Qu,ni,Gu,E0,p6=(E0=class extends fl{constructor(){super();De(this,Qu,!0);De(this,ni);De(this,Gu);me(this,Gu,n=>{if(!Ji&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}})}onSubscribe(){L(this,ni)||this.setEventListener(L(this,Gu))}onUnsubscribe(){var n;this.hasListeners()||((n=L(this,ni))==null||n.call(this),me(this,ni,void 0))}setEventListener(n){var a;me(this,Gu,n),(a=L(this,ni))==null||a.call(this),me(this,ni,n(this.setOnline.bind(this)))}setOnline(n){L(this,Qu)!==n&&(me(this,Qu,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return L(this,Qu)}},Qu=new WeakMap,ni=new WeakMap,Gu=new WeakMap,E0),Kc=new p6;function Lm(){let e,n;const a=new Promise((s,o)=>{e=s,n=o});a.status="pending",a.catch(()=>{});function i(s){Object.assign(a,s),delete a.resolve,delete a.reject}return a.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},a.reject=s=>{i({status:"rejected",reason:s}),n(s)},a}function y6(e){return Math.min(1e3*2**e,3e4)}function c2(e){return(e??"online")==="online"?Kc.isOnline():!0}var f2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function om(e){return e instanceof f2}function d2(e){let n=!1,a=0,i=!1,s;const o=Lm(),f=x=>{var O;i||(y(new f2(x)),(O=e.abort)==null||O.call(e))},d=()=>{n=!0},h=()=>{n=!1},p=()=>ay.isFocused()&&(e.networkMode==="always"||Kc.isOnline())&&e.canRun(),g=()=>c2(e.networkMode)&&e.canRun(),b=x=>{var O;i||(i=!0,(O=e.onSuccess)==null||O.call(e,x),s==null||s(),o.resolve(x))},y=x=>{var O;i||(i=!0,(O=e.onError)==null||O.call(e,x),s==null||s(),o.reject(x))},v=()=>new Promise(x=>{var O;s=T=>{(i||p())&&x(T)},(O=e.onPause)==null||O.call(e)}).then(()=>{var x;s=void 0,i||(x=e.onContinue)==null||x.call(e)}),E=()=>{if(i)return;let x;const O=a===0?e.initialPromise:void 0;try{x=O??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(b).catch(T=>{var q;if(i)return;const A=e.retry??(Ji?0:3),j=e.retryDelay??y6,_=typeof j=="function"?j(a,T):j,C=A===!0||typeof A=="number"&&a<A||typeof A=="function"&&A(a,T);if(n||!C){y(T);return}a++,(q=e.onFail)==null||q.call(e,a,T),f6(_).then(()=>p()?void 0:v()).then(()=>{n?y(T):E()})})};return{promise:o,cancel:f,continue:()=>(s==null||s(),o),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?E():v().then(E),o)}}function g6(){let e=[],n=0,a=d=>{d()},i=d=>{d()},s=d=>setTimeout(d,0);const o=d=>{n?e.push(d):s(()=>{a(d)})},f=()=>{const d=e;e=[],d.length&&s(()=>{i(()=>{d.forEach(h=>{a(h)})})})};return{batch:d=>{let h;n++;try{h=d()}finally{n--,n||f()}return h},batchCalls:d=>(...h)=>{o(()=>{d(...h)})},schedule:o,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{s=d}}}var Pt=g6(),Vi,w0,h2=(w0=class{constructor(){De(this,Vi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_m(this.gcTime)&&me(this,Vi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ji?1/0:5*60*1e3))}clearGcTimeout(){L(this,Vi)&&(clearTimeout(L(this,Vi)),me(this,Vi,void 0))}},Vi=new WeakMap,w0),Ku,Xu,er,un,As,Yi,hr,fa,O0,v6=(O0=class extends h2{constructor(n){super();De(this,hr);De(this,Ku);De(this,Xu);De(this,er);De(this,un);De(this,As);De(this,Yi);me(this,Yi,!1),me(this,As,n.defaultOptions),this.setOptions(n.options),this.observers=[],me(this,er,n.cache),this.queryKey=n.queryKey,this.queryHash=n.queryHash,me(this,Ku,b6(this.options)),this.state=n.state??L(this,Ku),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=L(this,un))==null?void 0:n.promise}setOptions(n){this.options={...L(this,As),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,er).remove(this)}setData(n,a){const i=zm(this.state.data,n,this.options);return Ue(this,hr,fa).call(this,{data:i,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),i}setState(n,a){Ue(this,hr,fa).call(this,{type:"setState",state:n,setStateOptions:a})}cancel(n){var i,s;const a=(i=L(this,un))==null?void 0:i.promise;return(s=L(this,un))==null||s.cancel(n),a?a.then(nr).catch(nr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,Ku))}isActive(){return this.observers.some(n=>yr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ry||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!l2(this.state.dataUpdatedAt,n)}onFocus(){var a;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(a=L(this,un))==null||a.continue()}onOnline(){var a;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(a=L(this,un))==null||a.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),L(this,er).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(L(this,un)&&(L(this,Yi)?L(this,un).cancel({revert:!0}):L(this,un).cancelRetry()),this.scheduleGc()),L(this,er).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,hr,fa).call(this,{type:"invalidate"})}fetch(n,a){var h,p,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(L(this,un))return L(this,un).continueRetry(),L(this,un).promise}if(n&&this.setOptions(n),!this.options.queryFn){const b=this.observers.find(y=>y.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(me(this,Yi,!0),i.signal)})},o=()=>{const b=o2(this.options,a),y={queryKey:this.queryKey,meta:this.meta};return s(y),me(this,Yi,!1),this.options.persister?this.options.persister(b,y,this):b(y)},f={fetchOptions:a,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(f),(h=this.options.behavior)==null||h.onFetch(f,this),me(this,Xu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=f.fetchOptions)==null?void 0:p.meta))&&Ue(this,hr,fa).call(this,{type:"fetch",meta:(g=f.fetchOptions)==null?void 0:g.meta});const d=b=>{var y,v,E,x;om(b)&&b.silent||Ue(this,hr,fa).call(this,{type:"error",error:b}),om(b)||((v=(y=L(this,er).config).onError)==null||v.call(y,b,this),(x=(E=L(this,er).config).onSettled)==null||x.call(E,this.state.data,b,this)),this.scheduleGc()};return me(this,un,d2({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var y,v,E,x;if(b===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(O){d(O);return}(v=(y=L(this,er).config).onSuccess)==null||v.call(y,b,this),(x=(E=L(this,er).config).onSettled)==null||x.call(E,b,this.state.error,this),this.scheduleGc()},onError:d,onFail:(b,y)=>{Ue(this,hr,fa).call(this,{type:"failed",failureCount:b,error:y})},onPause:()=>{Ue(this,hr,fa).call(this,{type:"pause"})},onContinue:()=>{Ue(this,hr,fa).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),L(this,un).start()}},Ku=new WeakMap,Xu=new WeakMap,er=new WeakMap,un=new WeakMap,As=new WeakMap,Yi=new WeakMap,hr=new WeakSet,fa=function(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...m2(i.data,this.options),fetchMeta:n.meta??null};case"success":return{...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=n.error;return om(s)&&s.revert&&L(this,Xu)?{...L(this,Xu),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),Pt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),L(this,er).notify({query:this,type:"updated",action:n})})},O0);function m2(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c2(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function b6(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,i=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var _r,C0,S6=(C0=class extends fl{constructor(n={}){super();De(this,_r);this.config=n,me(this,_r,new Map)}build(n,a,i){const s=a.queryKey,o=a.queryHash??ny(s,a);let f=this.get(o);return f||(f=new v6({cache:this,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){L(this,_r).has(n.queryHash)||(L(this,_r).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=L(this,_r).get(n.queryHash);a&&(n.destroy(),a===n&&L(this,_r).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Pt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return L(this,_r).get(n)}getAll(){return[...L(this,_r).values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>o0(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>o0(n,i)):a}notify(n){Pt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},_r=new WeakMap,C0),Nr,yn,Qi,zr,Ja,T0,x6=(T0=class extends h2{constructor(n){super();De(this,zr);De(this,Nr);De(this,yn);De(this,Qi);this.mutationId=n.mutationId,me(this,yn,n.mutationCache),me(this,Nr,[]),this.state=n.state||p2(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){L(this,Nr).includes(n)||(L(this,Nr).push(n),this.clearGcTimeout(),L(this,yn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){me(this,Nr,L(this,Nr).filter(a=>a!==n)),this.scheduleGc(),L(this,yn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){L(this,Nr).length||(this.state.status==="pending"?this.scheduleGc():L(this,yn).remove(this))}continue(){var n;return((n=L(this,Qi))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var s,o,f,d,h,p,g,b,y,v,E,x,O,T,A,j,_,C,q,U;me(this,Qi,d2({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(k,z)=>{Ue(this,zr,Ja).call(this,{type:"failed",failureCount:k,error:z})},onPause:()=>{Ue(this,zr,Ja).call(this,{type:"pause"})},onContinue:()=>{Ue(this,zr,Ja).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,yn).canRun(this)}));const a=this.state.status==="pending",i=!L(this,Qi).canStart();try{if(!a){Ue(this,zr,Ja).call(this,{type:"pending",variables:n,isPaused:i}),await((o=(s=L(this,yn).config).onMutate)==null?void 0:o.call(s,n,this));const z=await((d=(f=this.options).onMutate)==null?void 0:d.call(f,n));z!==this.state.context&&Ue(this,zr,Ja).call(this,{type:"pending",context:z,variables:n,isPaused:i})}const k=await L(this,Qi).start();return await((p=(h=L(this,yn).config).onSuccess)==null?void 0:p.call(h,k,n,this.state.context,this)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,k,n,this.state.context)),await((v=(y=L(this,yn).config).onSettled)==null?void 0:v.call(y,k,null,this.state.variables,this.state.context,this)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,k,null,n,this.state.context)),Ue(this,zr,Ja).call(this,{type:"success",data:k}),k}catch(k){try{throw await((T=(O=L(this,yn).config).onError)==null?void 0:T.call(O,k,n,this.state.context,this)),await((j=(A=this.options).onError)==null?void 0:j.call(A,k,n,this.state.context)),await((C=(_=L(this,yn).config).onSettled)==null?void 0:C.call(_,void 0,k,this.state.variables,this.state.context,this)),await((U=(q=this.options).onSettled)==null?void 0:U.call(q,void 0,k,n,this.state.context)),k}finally{Ue(this,zr,Ja).call(this,{type:"error",error:k})}}finally{L(this,yn).runNext(this)}}},Nr=new WeakMap,yn=new WeakMap,Qi=new WeakMap,zr=new WeakSet,Ja=function(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Pt.batch(()=>{L(this,Nr).forEach(i=>{i.onMutationUpdate(n)}),L(this,yn).notify({mutation:this,type:"updated",action:n})})},T0);function p2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var da,mr,Ms,R0,E6=(R0=class extends fl{constructor(n={}){super();De(this,da);De(this,mr);De(this,Ms);this.config=n,me(this,da,new Set),me(this,mr,new Map),me(this,Ms,0)}build(n,a,i){const s=new x6({mutationCache:this,mutationId:++oc(this,Ms)._,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){L(this,da).add(n);const a=Sc(n);if(typeof a=="string"){const i=L(this,mr).get(a);i?i.push(n):L(this,mr).set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(L(this,da).delete(n)){const a=Sc(n);if(typeof a=="string"){const i=L(this,mr).get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&L(this,mr).delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Sc(n);if(typeof a=="string"){const i=L(this,mr).get(a),s=i==null?void 0:i.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){var i;const a=Sc(n);if(typeof a=="string"){const s=(i=L(this,mr).get(a))==null?void 0:i.find(o=>o!==n&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pt.batch(()=>{L(this,da).forEach(n=>{this.notify({type:"removed",mutation:n})}),L(this,da).clear(),L(this,mr).clear()})}getAll(){return Array.from(L(this,da))}find(n){const a={exact:!0,...n};return this.getAll().find(i=>c0(a,i))}findAll(n={}){return this.getAll().filter(a=>c0(n,a))}notify(n){Pt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Pt.batch(()=>Promise.all(n.map(a=>a.continue().catch(nr))))}},da=new WeakMap,mr=new WeakMap,Ms=new WeakMap,R0);function Sc(e){var n;return(n=e.options.scope)==null?void 0:n.id}function h0(e){return{onFetch:(n,a)=>{var g,b,y,v,E;const i=n.options,s=(y=(b=(g=n.fetchOptions)==null?void 0:g.meta)==null?void 0:b.fetchMore)==null?void 0:y.direction,o=((v=n.state.data)==null?void 0:v.pages)||[],f=((E=n.state.data)==null?void 0:E.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let x=!1;const O=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(n.signal.aborted?x=!0:n.signal.addEventListener("abort",()=>{x=!0}),n.signal)})},T=o2(n.options,n.fetchOptions),A=async(j,_,C)=>{if(x)return Promise.reject();if(_==null&&j.pages.length)return Promise.resolve(j);const q={queryKey:n.queryKey,pageParam:_,direction:C?"backward":"forward",meta:n.options.meta};O(q);const U=await T(q),{maxPages:k}=n.options,z=C?h6:d6;return{pages:z(j.pages,U,k),pageParams:z(j.pageParams,_,k)}};if(s&&o.length){const j=s==="backward",_=j?w6:m0,C={pages:o,pageParams:f},q=_(i,C);d=await A(C,q,j)}else{const j=e??o.length;do{const _=h===0?f[0]??i.initialPageParam:m0(i,d);if(h>0&&_==null)break;d=await A(d,_),h++}while(h<j)}return d};n.options.persister?n.fetchFn=()=>{var x,O;return(O=(x=n.options).persister)==null?void 0:O.call(x,p,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a)}:n.fetchFn=p}}}function m0(e,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,a[i],a):void 0}function w6(e,{pages:n,pageParams:a}){var i;return n.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,n[0],n,a[0],a):void 0}var Tt,ri,ai,Zu,Iu,ii,Ju,Wu,D0,O6=(D0=class{constructor(e={}){De(this,Tt);De(this,ri);De(this,ai);De(this,Zu);De(this,Iu);De(this,ii);De(this,Ju);De(this,Wu);me(this,Tt,e.queryCache||new S6),me(this,ri,e.mutationCache||new E6),me(this,ai,e.defaultOptions||{}),me(this,Zu,new Map),me(this,Iu,new Map),me(this,ii,0)}mount(){oc(this,ii)._++,L(this,ii)===1&&(me(this,Ju,ay.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onFocus())})),me(this,Wu,Kc.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Tt).onOnline())})))}unmount(){var e,n;oc(this,ii)._--,L(this,ii)===0&&((e=L(this,Ju))==null||e.call(this),me(this,Ju,void 0),(n=L(this,Wu))==null||n.call(this),me(this,Wu,void 0))}isFetching(e){return L(this,Tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,ri).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=L(this,Tt).get(n.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=L(this,Tt).build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Vu(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return L(this,Tt).findAll(e).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(e,n,a){const i=this.defaultQueryOptions({queryKey:e}),s=L(this,Tt).get(i.queryHash),o=s==null?void 0:s.state.data,f=c6(n,o);if(f!==void 0)return L(this,Tt).build(this,i).setData(f,{...a,manual:!0})}setQueriesData(e,n,a){return Pt.batch(()=>L(this,Tt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=L(this,Tt).get(n.queryHash))==null?void 0:a.state}removeQueries(e){const n=L(this,Tt);Pt.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=L(this,Tt),i={type:"active",...e};return Pt.batch(()=>(a.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(i,n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=Pt.batch(()=>L(this,Tt).findAll(e).map(s=>s.cancel(a)));return Promise.all(i).then(nr).catch(nr)}invalidateQueries(e,n={}){return Pt.batch(()=>{if(L(this,Tt).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const a={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(a,n)})}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=Pt.batch(()=>L(this,Tt).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,a);return a.throwOnError||(o=o.catch(nr)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(nr)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=L(this,Tt).build(this,n);return a.isStaleByTime(Vu(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nr).catch(nr)}fetchInfiniteQuery(e){return e.behavior=h0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nr).catch(nr)}ensureInfiniteQueryData(e){return e.behavior=h0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Kc.isOnline()?L(this,ri).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Tt)}getMutationCache(){return L(this,ri)}getDefaultOptions(){return L(this,ai)}setDefaultOptions(e){me(this,ai,e)}setQueryDefaults(e,n){L(this,Zu).set(Wi(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...L(this,Zu).values()],a={};return n.forEach(i=>{Ds(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){L(this,Iu).set(Wi(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...L(this,Iu).values()];let a={};return n.forEach(i=>{Ds(e,i.mutationKey)&&(a={...a,...i.defaultOptions})}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...L(this,ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=ny(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ry&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Tt).clear(),L(this,ri).clear()}},Tt=new WeakMap,ri=new WeakMap,ai=new WeakMap,Zu=new WeakMap,Iu=new WeakMap,ii=new WeakMap,Ju=new WeakMap,Wu=new WeakMap,D0),On,Ge,js,gn,Gi,el,ui,Lr,_s,tl,nl,Ki,Xi,li,rl,nt,bs,Hm,Um,$m,Bm,Pm,qm,km,g2,A0,y2=(A0=class extends fl{constructor(n,a){super();De(this,nt);De(this,On);De(this,Ge);De(this,js);De(this,gn);De(this,Gi);De(this,el);De(this,ui);De(this,Lr);De(this,_s);De(this,tl);De(this,nl);De(this,Ki);De(this,Xi);De(this,li);De(this,rl,new Set);this.options=a,me(this,On,n),me(this,Lr,null),me(this,ui,Lm()),this.options.experimental_prefetchInRender||L(this,ui).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,Ge).addObserver(this),p0(L(this,Ge),this.options)?Ue(this,nt,bs).call(this):this.updateResult(),Ue(this,nt,Bm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fm(L(this,Ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fm(L(this,Ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,nt,Pm).call(this),Ue(this,nt,qm).call(this),L(this,Ge).removeObserver(this)}setOptions(n,a){const i=this.options,s=L(this,Ge);if(this.options=L(this,On).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof yr(this.options.enabled,L(this,Ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,nt,km).call(this),L(this,Ge).setOptions(this.options),i._defaulted&&!Gc(this.options,i)&&L(this,On).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,Ge),observer:this});const o=this.hasListeners();o&&y0(L(this,Ge),s,this.options,i)&&Ue(this,nt,bs).call(this),this.updateResult(a),o&&(L(this,Ge)!==s||yr(this.options.enabled,L(this,Ge))!==yr(i.enabled,L(this,Ge))||Vu(this.options.staleTime,L(this,Ge))!==Vu(i.staleTime,L(this,Ge)))&&Ue(this,nt,Hm).call(this);const f=Ue(this,nt,Um).call(this);o&&(L(this,Ge)!==s||yr(this.options.enabled,L(this,Ge))!==yr(i.enabled,L(this,Ge))||f!==L(this,li))&&Ue(this,nt,$m).call(this,f)}getOptimisticResult(n){const a=L(this,On).getQueryCache().build(L(this,On),n),i=this.createResult(a,n);return T6(this,i)&&(me(this,gn,i),me(this,el,this.options),me(this,Gi,L(this,Ge).state)),i}getCurrentResult(){return L(this,gn)}trackResult(n,a){const i={};return Object.keys(n).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),a==null||a(s),n[s])})}),i}trackProp(n){L(this,rl).add(n)}getCurrentQuery(){return L(this,Ge)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=L(this,On).defaultQueryOptions(n),i=L(this,On).getQueryCache().build(L(this,On),a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return Ue(this,nt,bs).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,gn)))}createResult(n,a){var k;const i=L(this,Ge),s=this.options,o=L(this,gn),f=L(this,Gi),d=L(this,el),p=n!==i?n.state:L(this,js),{state:g}=n;let b={...g},y=!1,v;if(a._optimisticResults){const z=this.hasListeners(),K=!z&&p0(n,a),ee=z&&y0(n,i,a,s);(K||ee)&&(b={...b,...m2(g.data,n.options)}),a._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:x,status:O}=b;if(a.select&&b.data!==void 0)if(o&&b.data===(f==null?void 0:f.data)&&a.select===L(this,_s))v=L(this,tl);else try{me(this,_s,a.select),v=a.select(b.data),v=zm(o==null?void 0:o.data,v,a),me(this,tl,v),me(this,Lr,null)}catch(z){me(this,Lr,z)}else v=b.data;if(a.placeholderData!==void 0&&v===void 0&&O==="pending"){let z;if(o!=null&&o.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.placeholderData))z=o.data;else if(z=typeof a.placeholderData=="function"?a.placeholderData((k=L(this,nl))==null?void 0:k.state.data,L(this,nl)):a.placeholderData,a.select&&z!==void 0)try{z=a.select(z),me(this,Lr,null)}catch(K){me(this,Lr,K)}z!==void 0&&(O="success",v=zm(o==null?void 0:o.data,z,a),y=!0)}L(this,Lr)&&(E=L(this,Lr),v=L(this,tl),x=Date.now(),O="error");const T=b.fetchStatus==="fetching",A=O==="pending",j=O==="error",_=A&&T,C=v!==void 0,U={status:O,fetchStatus:b.fetchStatus,isPending:A,isSuccess:O==="success",isError:j,isInitialLoading:_,isLoading:_,data:v,dataUpdatedAt:b.dataUpdatedAt,error:E,errorUpdatedAt:x,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:j&&!C,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:j&&C,isStale:iy(n,a),refetch:this.refetch,promise:L(this,ui)};if(this.options.experimental_prefetchInRender){const z=oe=>{U.status==="error"?oe.reject(U.error):U.data!==void 0&&oe.resolve(U.data)},K=()=>{const oe=me(this,ui,U.promise=Lm());z(oe)},ee=L(this,ui);switch(ee.status){case"pending":n.queryHash===i.queryHash&&z(ee);break;case"fulfilled":(U.status==="error"||U.data!==ee.value)&&K();break;case"rejected":(U.status!=="error"||U.error!==ee.reason)&&K();break}}return U}updateResult(n){const a=L(this,gn),i=this.createResult(L(this,Ge),this.options);if(me(this,Gi,L(this,Ge).state),me(this,el,this.options),L(this,Gi).data!==void 0&&me(this,nl,L(this,Ge)),Gc(i,a))return;me(this,gn,i);const s={},o=()=>{if(!a)return!0;const{notifyOnChangeProps:f}=this.options,d=typeof f=="function"?f():f;if(d==="all"||!d&&!L(this,rl).size)return!0;const h=new Set(d??L(this,rl));return this.options.throwOnError&&h.add("error"),Object.keys(L(this,gn)).some(p=>{const g=p;return L(this,gn)[g]!==a[g]&&h.has(g)})};(n==null?void 0:n.listeners)!==!1&&o()&&(s.listeners=!0),Ue(this,nt,g2).call(this,{...s,...n})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,nt,Bm).call(this)}},On=new WeakMap,Ge=new WeakMap,js=new WeakMap,gn=new WeakMap,Gi=new WeakMap,el=new WeakMap,ui=new WeakMap,Lr=new WeakMap,_s=new WeakMap,tl=new WeakMap,nl=new WeakMap,Ki=new WeakMap,Xi=new WeakMap,li=new WeakMap,rl=new WeakMap,nt=new WeakSet,bs=function(n){Ue(this,nt,km).call(this);let a=L(this,Ge).fetch(this.options,n);return n!=null&&n.throwOnError||(a=a.catch(nr)),a},Hm=function(){Ue(this,nt,Pm).call(this);const n=Vu(this.options.staleTime,L(this,Ge));if(Ji||L(this,gn).isStale||!_m(n))return;const i=l2(L(this,gn).dataUpdatedAt,n)+1;me(this,Ki,setTimeout(()=>{L(this,gn).isStale||this.updateResult()},i))},Um=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,Ge)):this.options.refetchInterval)??!1},$m=function(n){Ue(this,nt,qm).call(this),me(this,li,n),!(Ji||yr(this.options.enabled,L(this,Ge))===!1||!_m(L(this,li))||L(this,li)===0)&&me(this,Xi,setInterval(()=>{(this.options.refetchIntervalInBackground||ay.isFocused())&&Ue(this,nt,bs).call(this)},L(this,li)))},Bm=function(){Ue(this,nt,Hm).call(this),Ue(this,nt,$m).call(this,Ue(this,nt,Um).call(this))},Pm=function(){L(this,Ki)&&(clearTimeout(L(this,Ki)),me(this,Ki,void 0))},qm=function(){L(this,Xi)&&(clearInterval(L(this,Xi)),me(this,Xi,void 0))},km=function(){const n=L(this,On).getQueryCache().build(L(this,On),this.options);if(n===L(this,Ge))return;const a=L(this,Ge);me(this,Ge,n),me(this,js,n.state),this.hasListeners()&&(a==null||a.removeObserver(this),n.addObserver(this))},g2=function(n){Pt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(L(this,gn))}),L(this,On).getQueryCache().notify({query:L(this,Ge),type:"observerResultsUpdated"})})},A0);function C6(e,n){return yr(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function p0(e,n){return C6(e,n)||e.state.data!==void 0&&Fm(e,n,n.refetchOnMount)}function Fm(e,n,a){if(yr(n.enabled,e)!==!1){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&iy(e,n)}return!1}function y0(e,n,a,i){return(e!==n||yr(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&iy(e,a)}function iy(e,n){return yr(n.enabled,e)!==!1&&e.isStaleByTime(Vu(n.staleTime,e))}function T6(e,n){return!Gc(e.getCurrentResult(),n)}var si,oi,Cn,ha,ya,_c,Vm,M0,R6=(M0=class extends fl{constructor(a,i){super();De(this,ya);De(this,si);De(this,oi);De(this,Cn);De(this,ha);me(this,si,a),this.setOptions(i),this.bindMethods(),Ue(this,ya,_c).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var s;const i=this.options;this.options=L(this,si).defaultMutationOptions(a),Gc(this.options,i)||L(this,si).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Cn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Wi(i.mutationKey)!==Wi(this.options.mutationKey)?this.reset():((s=L(this,Cn))==null?void 0:s.state.status)==="pending"&&L(this,Cn).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=L(this,Cn))==null||a.removeObserver(this)}onMutationUpdate(a){Ue(this,ya,_c).call(this),Ue(this,ya,Vm).call(this,a)}getCurrentResult(){return L(this,oi)}reset(){var a;(a=L(this,Cn))==null||a.removeObserver(this),me(this,Cn,void 0),Ue(this,ya,_c).call(this),Ue(this,ya,Vm).call(this)}mutate(a,i){var s;return me(this,ha,i),(s=L(this,Cn))==null||s.removeObserver(this),me(this,Cn,L(this,si).getMutationCache().build(L(this,si),this.options)),L(this,Cn).addObserver(this),L(this,Cn).execute(a)}},si=new WeakMap,oi=new WeakMap,Cn=new WeakMap,ha=new WeakMap,ya=new WeakSet,_c=function(){var i;const a=((i=L(this,Cn))==null?void 0:i.state)??p2();me(this,oi,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Vm=function(a){Pt.batch(()=>{var i,s,o,f,d,h,p,g;if(L(this,ha)&&this.hasListeners()){const b=L(this,oi).variables,y=L(this,oi).context;(a==null?void 0:a.type)==="success"?((s=(i=L(this,ha)).onSuccess)==null||s.call(i,a.data,b,y),(f=(o=L(this,ha)).onSettled)==null||f.call(o,a.data,null,b,y)):(a==null?void 0:a.type)==="error"&&((h=(d=L(this,ha)).onError)==null||h.call(d,a.error,b,y),(g=(p=L(this,ha)).onSettled)==null||g.call(p,void 0,a.error,b,y))}this.listeners.forEach(b=>{b(L(this,oi))})})},M0),v2=w.createContext(void 0),Ef=e=>{const n=w.useContext(v2);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},D6=({client:e,children:n})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(v2.Provider,{value:e,children:n})),b2=w.createContext(!1),A6=()=>w.useContext(b2);b2.Provider;function M6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var j6=w.createContext(M6()),_6=()=>w.useContext(j6);function S2(e,n){return typeof e=="function"?e(...n):!!e}function Ym(){}var N6=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},z6=e=>{w.useEffect(()=>{e.clearReset()},[e])},L6=({result:e,errorResetBoundary:n,throwOnError:a,query:i})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&S2(a,[e.error,i]),H6=(e,n)=>n.state.data===void 0,U6=e=>{const n=e.staleTime;e.suspense&&(e.staleTime=typeof n=="function"?(...a)=>Math.max(n(...a),1e3):Math.max(n??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},$6=(e,n)=>e.isLoading&&e.isFetching&&!n,B6=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,g0=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function x2(e,n,a){var b,y,v,E,x;const i=Ef(),s=A6(),o=_6(),f=i.defaultQueryOptions(e);(y=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||y.call(b,f),f._optimisticResults=s?"isRestoring":"optimistic",U6(f),N6(f,o),z6(o);const d=!i.getQueryCache().get(f.queryHash),[h]=w.useState(()=>new n(i,f)),p=h.getOptimisticResult(f),g=!s&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(O=>{const T=g?h.subscribe(Pt.batchCalls(O)):Ym;return h.updateResult(),T},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(f,{listeners:!1})},[f,h]),B6(f,p))throw g0(f,h,o);if(L6({result:p,errorResetBoundary:o,throwOnError:f.throwOnError,query:i.getQueryCache().get(f.queryHash)}))throw p.error;if((E=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||E.call(v,f,p),f.experimental_prefetchInRender&&!Ji&&$6(p,s)){const O=d?g0(f,h,o):(x=i.getQueryCache().get(f.queryHash))==null?void 0:x.promise;O==null||O.catch(Ym).finally(()=>{h.updateResult()})}return f.notifyOnChangeProps?p:h.trackResult(p)}function P6(e,n){return x2(e,y2)}function uy(e,n){return x2({...e,enabled:!0,suspense:!0,throwOnError:H6,placeholderData:void 0},y2)}function E2(e,n){const a=Ef(),[i]=w.useState(()=>new R6(a,e));w.useEffect(()=>{i.setOptions(e)},[i,e]);const s=w.useSyncExternalStore(w.useCallback(f=>i.subscribe(Pt.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=w.useCallback((f,d)=>{i.mutate(f,d).catch(Ym)},[i]);if(s.error&&S2(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}var q6=Object.defineProperty,k6=Object.defineProperties,F6=Object.getOwnPropertyDescriptors,Xc=Object.getOwnPropertySymbols,w2=Object.prototype.hasOwnProperty,O2=Object.prototype.propertyIsEnumerable,Qm=(e,n,a)=>n in e?q6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,xc=(e,n)=>{for(var a in n||(n={}))w2.call(n,a)&&Qm(e,a,n[a]);if(Xc)for(var a of Xc(n))O2.call(n,a)&&Qm(e,a,n[a]);return e},V6=(e,n)=>k6(e,F6(n)),Y6=(e,n)=>{var a={};for(var i in e)w2.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Xc)for(var i of Xc(e))n.indexOf(i)<0&&O2.call(e,i)&&(a[i]=e[i]);return a},Q6=(e,n,a)=>(Qm(e,n+"",a),a),qu=(e,n,a)=>new Promise((i,s)=>{var o=h=>{try{d(a.next(h))}catch(p){s(p)}},f=h=>{try{d(a.throw(h))}catch(p){s(p)}},d=h=>h.done?i(h.value):Promise.resolve(h.value).then(o,f);d((a=a.apply(e,n)).next())});const G6=()=>Z6({max:5,isRetriable:e=>e instanceof C2?e.response.status===503:e instanceof T2,getDelay:e=>500*e}),K6=()=>globalThis.crypto.randomUUID();function X6(e={}){var n=e,{getRootUrl:a=()=>"",timeout:i=0,retryOn:s=G6,headers:o={},requestIdHeaderName:f="X-Request-ID",getRequestId:d=K6,json:h=!0}=n,p=Y6(n,["getRootUrl","timeout","retryOn","headers","requestIdHeaderName","getRequestId","json"]);const g=[];function b(y){return qu(this,arguments,function*(v,E={}){var x;const O=(x=E.json)!=null?x:h,T=yield a(v),A=yield qu(this,null,function*(){const _=new Headers;_.set(f,d()),O&&(_.set("Accept","application/json"),E.method!=="GET"&&typeof E.body=="string"&&_.set("Content-Type","application/json"));for(const[C,q]of Object.entries(xc(xc({},o),E.headers)))_.set(C,q);return new Request(`${T}${v}`,V6(xc(xc({credentials:"include"},p),E),{headers:_}))}),j=E.retryOn||s();return eM(()=>qu(this,null,function*(){var _,C;const q=(C=(_=E.timeout)!=null?_:i)!=null?C:0,U=yield qu(this,null,function*(){for(const z of g)z.request&&(yield z.request(A));return q?J6(fetch(A),q):fetch(A)}),k=O?yield U.clone().json().then(z=>z,()=>{}):void 0;U.jsonData=k;for(const z of g)z.response&&(yield z.response(U));if(U.status<200||U.status>=400)throw new C2(U);return U}),j)})}return b.intercept=y=>(g.push(y),()=>{const v=g.indexOf(y);v>=0&&g.splice(v,1)}),b}class C2 extends Error{constructor(n){const a=`${n.status} ${n.statusText} at ${n.url}`;super(a),Q6(this,"response"),this.name=this.constructor.name,this.response=n}}class T2 extends Error{constructor(n){super(n),this.name=this.constructor.name}}function Z6({max:e,isRetriable:n,getDelay:a}){let i=0;return function(s){return qu(this,null,function*(){return i++,n(s)&&i<e?(yield W6(a(i)),!0):!1})}}function I6(e=1e3){let n;return{start(){return new Promise((a,i)=>{n=setTimeout(()=>{i(new T2("Timeout"))},e)})},clear(){clearTimeout(n)}}}function J6(e,n){const{start:a,clear:i}=I6(n);return Promise.race([a(),e]).finally(i)}function W6(e){return new Promise(n=>setTimeout(n,e))}function eM(e,n=()=>!0){const a=(...i)=>qu(this,null,function*(){try{return yield e(...i)}catch(s){if(yield n(s))return a();throw s}});return a()}const tM=["number","string","datetime","date","format-string","yes-no","boolean","json","duration"];var j0;const au=X6({getRootUrl:()=>{var e;return`/${(e=document.querySelector('meta[name="x-basename"]'))==null?void 0:e.getAttribute("content")}/api`},headers:{"X-CSRF-Token":((j0=document.querySelector('meta[name="csrf-token"]'))==null?void 0:j0.getAttribute("content"))??""}});async function nM(){return au("/tables")}async function rM(e,n,a,i,s){const o=new URLSearchParams;for(const f of n)o.append("order",f);return o.append("limit",a.toString()),o.append("page",i.toString()),s&&o.append("search",s),au(`/tables/${e}?${o.toString()}`)}async function aM(e,n){return au(`/tables/${e}/${n}`)}async function iM(e,n){return au(`/tables/${e}/${n}`,{method:"DELETE"})}async function uM(e,n){return au(`/tables/${e}`,{method:"POST",body:JSON.stringify(n)})}async function lM(e,n,a){return au(`/tables/${e}/${n}`,{method:"PUT",body:JSON.stringify(a)})}async function sM(e,n){return au(`/tables/${e}/suggestions/${n}`)}function ly(){const e=Ht.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:["database"],queryFn:oM},e[0]=n):n=e[0],uy(n)}async function oM(){var i,s;const e=await nM(),n=[],a={};for(const o of((i=e.jsonData)==null?void 0:i.tables)??[])n.push(o.tableName),a[o.tableName]=o;return{tableIds:n,tables:a,rowCounts:((s=e.jsonData)==null?void 0:s.rowCounts)??{}}}function cM(e,n){const a=Ht.c(17),{order:i,limit:s,page:o,search:f}=n;let d;a[0]!==s||a[1]!==i||a[2]!==o||a[3]!==f?(d={order:i,limit:s,page:o,search:f},a[0]=s,a[1]=i,a[2]=o,a[3]=f,a[4]=d):d=a[4];let h;a[5]!==d||a[6]!==e?(h=["tables",e,d],a[5]=d,a[6]=e,a[7]=h):h=a[7];let p;a[8]!==s||a[9]!==i||a[10]!==o||a[11]!==f||a[12]!==e?(p=()=>rM(e,i,s,o,f).then(fM),a[8]=s,a[9]=i,a[10]=o,a[11]=f,a[12]=e,a[13]=p):p=a[13];let g;return a[14]!==h||a[15]!==p?(g={queryKey:h,queryFn:p},a[14]=h,a[15]=p,a[16]=g):g=a[16],uy(g)}function fM(e){return e.jsonData}function dM(e){const n=Ht.c(11),a=Ef(),i=a2();let s;n[0]!==e?(s=async h=>{const{pk:p,data:g}=h;return p==null?uM(e,g):lM(e,p,g)},n[0]=e,n[1]=s):s=n[1];let o;n[2]!==a||n[3]!==e?(o=()=>{a.invalidateQueries({queryKey:["tables",e]})},n[2]=a,n[3]=e,n[4]=o):o=n[4];let f;n[5]!==i?(f=()=>{i({title:"Failed to update row",description:"",intent:"error"})},n[5]=i,n[6]=f):f=n[6];let d;return n[7]!==s||n[8]!==o||n[9]!==f?(d={mutationFn:s,onSuccess:o,onError:f},n[7]=s,n[8]=o,n[9]=f,n[10]=d):d=n[10],E2(d)}function hM(e){const n=Ht.c(11),a=Ef(),i=a2();let s;n[0]!==e?(s=h=>iM(e,h),n[0]=e,n[1]=s):s=n[1];let o;n[2]!==a||n[3]!==e?(o=()=>{a.invalidateQueries({queryKey:["tables",e]})},n[2]=a,n[3]=e,n[4]=o):o=n[4];let f;n[5]!==i?(f=()=>{i({title:"Failed to delete row",description:"",intent:"error"})},n[5]=i,n[6]=f):f=n[6];let d;return n[7]!==s||n[8]!==o||n[9]!==f?(d={mutationFn:s,onSuccess:o,onError:f},n[7]=s,n[8]=o,n[9]=f,n[10]=d):d=n[10],E2(d)}function mM(e,n){const a=Ht.c(3);let i;return a[0]!==n||a[1]!==e?(i={queryKey:["tables",e,"rows",n],queryFn:()=>n==null?{}:aM(e,n).then(pM)},a[0]=n,a[1]=e,a[2]=i):i=a[2],uy(i)}function pM(e){return e.jsonData}function yM(e,n){const a=Ht.c(3);let i;return a[0]!==n||a[1]!==e?(i={queryKey:["foreign-key-options",e,n],queryFn:()=>sM(e,n).then(gM)},a[0]=n,a[1]=e,a[2]=i):i=a[2],P6(i)}function gM(e){return e.jsonData}const vM=e=>e.name?String(e.name):e.title?String(e.title):e.slug?String(e.slug):JSON.stringify(e);function bM(e){var T;const n=Ht.c(16),a=(T=e.schema.$bitiforms)==null?void 0:T.widgetProps;let i;n[0]!==a?(i=a||{},n[0]=a,n[1]=i):i=n[1];const{foreignTable:s,foreignColumn:o}=i,{data:f}=yM(s,o);let d;n[2]!==f?(d=f===void 0?[]:f,n[2]=f,n[3]=d):d=n[3];const h=d,p=e.value||"";let g;n[4]!==p?(g=p.toString(),n[4]=p,n[5]=g):g=n[5];const b=g;console.log({options:h,stringValue:b});const y=e.schema.title,v=e.schema.description;let E;n[6]!==e?(E=A=>{e.onChange({target:{name:e.name,value:Number(A.target.value)}})},n[6]=e,n[7]=E):E=n[7];let x;n[8]!==h?(x=h.map(SM),n[8]=h,n[9]=x):x=n[9];let O;return n[10]!==e.schema.description||n[11]!==e.schema.title||n[12]!==b||n[13]!==E||n[14]!==x?(O=D.jsx(n2,{label:y,hint:v,value:b,onChange:E,children:x}),n[10]=e.schema.description,n[11]=e.schema.title,n[12]=b,n[13]=E,n[14]=x,n[15]=O):O=n[15],O}function SM(e){return D.jsxs("option",{value:String(e.id),children:[String(e.id),": ",vM(e)]},String(e.id))}const xM=TS({colors:{primary:"#2a2f3b"}}),EM=new O6({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),wM={...o6,ForeignKeyWidget:bM};function OM(e){const n=Ht.c(2),{children:a}=e;let i;return n[0]!==a?(i=D.jsx(w.StrictMode,{children:D.jsx(Zx,{children:D.jsx(xT,{widgets:wM,children:D.jsx(D6,{client:EM,children:D.jsx(SR,{theme:xM,children:D.jsx(UA,{children:a})})})})})}),n[0]=a,n[1]=i):i=n[1],i}const v0=e=>{let n;const a=new Set,i=(p,g)=>{const b=typeof p=="function"?p(n):p;if(!Object.is(b,n)){const y=n;n=g??(typeof b!="object"||b===null)?b:Object.assign({},n,b),a.forEach(v=>v(n,y))}},s=()=>n,d={setState:i,getState:s,getInitialState:()=>h,subscribe:p=>(a.add(p),()=>a.delete(p))},h=n=e(i,s,d);return d},CM=e=>e?v0(e):v0,TM=e=>e;function R2(e,n=TM){const a=Hr.useSyncExternalStore(e.subscribe,()=>n(e.getState()),()=>n(e.getInitialState()));return Hr.useDebugValue(a),a}const RM={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_PORT:"5190"},Gm=new Map,Ec=e=>{const n=Gm.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([a,i])=>[a,i.getState()])):{}},DM=(e,n,a)=>{if(e===void 0)return{type:"untracked",connection:n.connect(a)};const i=Gm.get(a.name);if(i)return{type:"tracked",store:e,...i};const s={connection:n.connect(a),stores:{}};return Gm.set(a.name,s),{type:"tracked",store:e,...s}},AM=(e,n={})=>(a,i,s)=>{const{enabled:o,anonymousActionType:f,store:d,...h}=n;let p;try{p=(o??(RM?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!p)return e(a,i,s);const{connection:g,...b}=DM(d,p,h);let y=!0;s.setState=(x,O,T)=>{const A=a(x,O);if(!y)return A;const j=T===void 0?{type:f||"anonymous"}:typeof T=="string"?{type:T}:T;return d===void 0?(g==null||g.send(j,i()),A):(g==null||g.send({...j,type:`${d}/${j.type}`},{...Ec(h.name),[d]:s.getState()}),A)};const v=(...x)=>{const O=y;y=!1,a(...x),y=O},E=e(s.setState,i,s);if(b.type==="untracked"?g==null||g.init(E):(b.stores[b.store]=s,g==null||g.init(Object.fromEntries(Object.entries(b.stores).map(([x,O])=>[x,x===b.store?E:O.getState()])))),s.dispatchFromDevtools&&typeof s.dispatch=="function"){const x=s.dispatch;s.dispatch=(...O)=>{x(...O)}}return g.subscribe(x=>{var O;switch(x.type){case"ACTION":if(typeof x.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return cm(x.payload,T=>{if(T.type==="__setState"){if(d===void 0){v(T.state);return}Object.keys(T.state).length!==1&&console.error(`
|
|
83
|
-
[zustand devtools middleware] Unsupported __setState action format.
|
|
84
|
-
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
85
|
-
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
86
|
-
`);const A=T.state[d];if(A==null)return;JSON.stringify(s.getState())!==JSON.stringify(A)&&v(A);return}s.dispatchFromDevtools&&typeof s.dispatch=="function"&&s.dispatch(T)});case"DISPATCH":switch(x.payload.type){case"RESET":return v(E),d===void 0?g==null?void 0:g.init(s.getState()):g==null?void 0:g.init(Ec(h.name));case"COMMIT":if(d===void 0){g==null||g.init(s.getState());return}return g==null?void 0:g.init(Ec(h.name));case"ROLLBACK":return cm(x.state,T=>{if(d===void 0){v(T),g==null||g.init(s.getState());return}v(T[d]),g==null||g.init(Ec(h.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return cm(x.state,T=>{if(d===void 0){v(T);return}JSON.stringify(s.getState())!==JSON.stringify(T[d])&&v(T[d])});case"IMPORT_STATE":{const{nextLiftedState:T}=x.payload,A=(O=T.computedStates.slice(-1)[0])==null?void 0:O.state;if(!A)return;v(d===void 0?A:A[d]),g==null||g.send(null,T);return}case"PAUSE_RECORDING":return y=!y}return}}),E},MM=AM,cm=(e,n)=>{let a;try{a=JSON.parse(e)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}a!==void 0&&n(a)};function jM(e,n){let a;try{a=e()}catch{return}return{getItem:s=>{var o;const f=h=>h===null?null:JSON.parse(h,void 0),d=(o=a.getItem(s))!=null?o:null;return d instanceof Promise?d.then(f):f(d)},setItem:(s,o)=>a.setItem(s,JSON.stringify(o,void 0)),removeItem:s=>a.removeItem(s)}}const Km=e=>n=>{try{const a=e(n);return a instanceof Promise?a:{then(i){return Km(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return Km(i)(a)}}}},_M=(e,n)=>(a,i,s)=>{let o={storage:jM(()=>localStorage),partialize:x=>x,version:0,merge:(x,O)=>({...O,...x}),...n},f=!1;const d=new Set,h=new Set;let p=o.storage;if(!p)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),a(...x)},i,s);const g=()=>{const x=o.partialize({...i()});return p.setItem(o.name,{state:x,version:o.version})},b=s.setState;s.setState=(x,O)=>{b(x,O),g()};const y=e((...x)=>{a(...x),g()},i,s);s.getInitialState=()=>y;let v;const E=()=>{var x,O;if(!p)return;f=!1,d.forEach(A=>{var j;return A((j=i())!=null?j:y)});const T=((O=o.onRehydrateStorage)==null?void 0:O.call(o,(x=i())!=null?x:y))||void 0;return Km(p.getItem.bind(p))(o.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==o.version){if(o.migrate){const j=o.migrate(A.state,A.version);return j instanceof Promise?j.then(_=>[!0,_]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var j;const[_,C]=A;if(v=o.merge(C,(j=i())!=null?j:y),a(v,!0),_)return g()}).then(()=>{T==null||T(v,void 0),v=i(),f=!0,h.forEach(A=>A(v))}).catch(A=>{T==null||T(void 0,A)})};return s.persist={setOptions:x=>{o={...o,...x},x.storage&&(p=x.storage)},clearStorage:()=>{p==null||p.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>E(),hasHydrated:()=>f,onHydrate:x=>(d.add(x),()=>{d.delete(x)}),onFinishHydration:x=>(h.add(x),()=>{h.delete(x)})},o.skipHydration||E(),v||y},NM=_M,zM={displayName:"",columns:{},sortBy:[],page:1,limit:10,search:""};function LM(e){return CM(MM(NM(n=>({config:Object.fromEntries(Object.values(e.tables).map(a=>[a.tableName,{...zM,displayName:a.tableName,columns:Object.fromEntries(a.columnNames.concat(a.relatedColumnNames).map(i=>{var s;return[i,{displayName:i,displayType:((s=a.columnMetadata[i])==null?void 0:s.displayType)??"string",valueTemplate:void 0,visible:!0}]}))}])),setConfig:(a,i)=>{n(s=>({config:{...s.config,[a]:{...s.config[a],...i}}}))}}),{name:`tableConfig:${btoa(e.tableIds.join(","))}`})))}const D2=w.createContext(null);function HM(e){const n=Ht.c(5),{children:a,database:i}=e;let s;n[0]!==i?(s=()=>LM(i),n[0]=i,n[1]=s):s=n[1];const[o]=w.useState(s);let f;return n[2]!==a||n[3]!==o?(f=D.jsx(D2.Provider,{value:o,children:a}),n[2]=a,n[3]=o,n[4]=f):f=n[4],f}const A2=()=>{const e=w.useContext(D2);if(e==null)throw new Error("useTableConfig must be used within a StoreProvider");return e},M2=()=>{const e=A2();return R2(e,UM)},sy=()=>{const e=A2();return R2(e,$M)};function UM(e){return e.config}function $M(e){return e.setConfig}function BM(){const e=Ht.c(6),{data:n}=ly();let a;e[0]!==n.tableIds?(a=n.tableIds||[],e[0]=n.tableIds,e[1]=a):a=e[1];let i;e[2]!==a?(i=a.map(PM),e[2]=a,e[3]=i):i=e[3];let s;return e[4]!==i?(s=D.jsx("div",{className:"sidebar-menu",children:D.jsx("ul",{children:i})}),e[4]=i,e[5]=s):s=e[5],s}function PM(e){return D.jsx("li",{children:D.jsx(EA,{as:W0,to:e,children:e})},e)}function qM(){var n;const{data:e}=ly();return D.jsx(HM,{database:e,children:D.jsx(SA,{headerHeight:"64px",header:D.jsx(xA,{style:{"--header-color":"var(--colors-white)","--header-background":"#2a2f3b",color:"var(--colors-white)"},logo:D.jsx("span",{className:"logo",children:(n=document.querySelector('meta[name="x-title"]'))==null?void 0:n.getAttribute("content")}),children:null}),sidebar:D.jsx(BM,{}),children:D.jsx(fC,{})})})}function kM(){const e=Ht.c(2),n=K0();let a;return e[0]!==n.message?(a=D.jsx(uf,{title:"Error",intent:"error",children:n.message}),e[0]=n.message,e[1]=a):a=e[1],a}function FM(){const e=Ht.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=D.jsx("div",{children:"Welcome!"}),e[0]=n):n=e[0],n}function VM(e){return Wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(e)}function j2(e){const n=Ht.c(17),{onSubmit:a,steps:i,submissionErrors:s,submissionState:o,clearSubmission:f,submitButtonText:d}=e,h=d===void 0?"Submit":d;let p;n[0]!==a?(p=O=>{O.preventDefault(),a(O)},n[0]=a,n[1]=p):p=n[1];const g=p;let b;n[2]!==f||n[3]!==s||n[4]!==o?(b=o==="failed"&&D.jsx(s6,{errors:s,onClose:f}),n[2]=f,n[3]=s,n[4]=o,n[5]=b):b=n[5];let y;n[6]!==i?(y=i.flatMap(YM),n[6]=i,n[7]=y):y=n[7];let v;n[8]===Symbol.for("react.memo_cache_sentinel")?(v=D.jsx(RR,{height:"s"}),n[8]=v):v=n[8];let E;n[9]!==o||n[10]!==h?(E=h!=null&&D.jsx(hi,{type:"submit",style:{alignSelf:"flex-start"},disabled:o==="submitting",children:o==="submitting"?"Submitting...":h}),n[9]=o,n[10]=h,n[11]=E):E=n[11];let x;return n[12]!==g||n[13]!==b||n[14]!==y||n[15]!==E?(x=D.jsxs(Sr,{as:"form",onSubmit:g,noValidate:!0,children:[b,y,v,E]}),n[12]=g,n[13]=b,n[14]=y,n[15]=E,n[16]=x):x=n[16],x}function YM(e){return Object.keys(e.fields).map(n=>D.jsx(fp,{...e.fields[n]},n))}function b0(e){const n=Ht.c(18),{table:a}=e,{pk:i}=Q0(),s=i===void 0?null:i,o=tp(),f=dM(a.tableName),{data:d,isLoading:h}=mM(a.tableName,s);let p;n[0]!==d?(p=d===void 0?{}:d,n[0]=d,n[1]=p):p=n[1];const g=p;let b;n[2]!==f||n[3]!==o||n[4]!==s?(b=async T=>{const{values:A,isValid:j}=T;if(!j)throw new Hc({});await f.mutateAsync({pk:s,data:A}),o("..",{replace:!0})},n[2]=f,n[3]=o,n[4]=s,n[5]=b):b=n[5];const y=b,v=s==null?"Add row":`Edit row ${s}`;let E;n[6]!==o?(E=()=>o("..",{replace:!0}),n[6]=o,n[7]=E):E=n[7];let x;n[8]!==y||n[9]!==g||n[10]!==h||n[11]!==a.schema||n[12]!==a.tableName?(x=h?D.jsx(OS,{}):D.jsx(pS,{initialValues:g,schema:a.schema,name:a.tableName,component:j2,onSubmit:y}),n[8]=y,n[9]=g,n[10]=h,n[11]=a.schema,n[12]=a.tableName,n[13]=x):x=n[13];let O;return n[14]!==E||n[15]!==x||n[16]!==v?(O=D.jsx(Wp,{title:v,isOpen:!0,onDismiss:E,children:x}),n[14]=E,n[15]=x,n[16]=v,n[17]=O):O=n[17],O}function QM(e){const n=Ht.c(9),{table:a}=e,i=tp();let s;n[0]!==i?(s=()=>i("..",{replace:!0}),n[0]=i,n[1]=s):s=n[1];const o=s,f=`UI for ${a.tableName}`;let d;n[2]!==o||n[3]!==a?(d=D.jsx(GM,{table:a,onSubmit:o}),n[2]=o,n[3]=a,n[4]=d):d=n[4];let h;return n[5]!==o||n[6]!==f||n[7]!==d?(h=D.jsx(D.Fragment,{children:D.jsx(Wp,{title:f,onDismiss:o,children:d})}),n[5]=o,n[6]=f,n[7]=d,n[8]=h):h=n[8],h}function GM(e){const n=Ht.c(17),{table:a,onSubmit:i}=e,s=M2(),o=s[a.tableName],f=sy();let d,h;n[0]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",title:"Display name"},n[0]=h):h=n[0];let p;n[1]!==a.columnNames||n[2]!==a.relatedColumnNames?(p=Object.fromEntries(a.columnNames.concat(a.relatedColumnNames).map(XM)),n[1]=a.columnNames,n[2]=a.relatedColumnNames,n[3]=p):p=n[3];let g;n[4]!==p?(g={type:"object",properties:{displayName:h,columns:{type:"object",properties:p}}},n[4]=p,n[5]=g):g=n[5],d=g;const b=d;let y;n[6]!==f||n[7]!==a.tableName||n[8]!==s?(y=T=>{Dc(T,s)||f(a.tableName,T)},n[6]=f,n[7]=a.tableName,n[8]=s,n[9]=y):y=n[9];const v=y;let E;n[10]!==i||n[11]!==v?(E=async T=>{const{values:A,isValid:j,errors:_}=T;if(console.log(A,_),!j)throw new Hc({});v(A),i()},n[10]=i,n[11]=v,n[12]=E):E=n[12];const x=E;if(!o)return null;let O;return n[13]!==x||n[14]!==o||n[15]!==b?(O=D.jsx(pS,{initialValues:o,schema:b,onSubmit:x,render:KM}),n[13]=x,n[14]=o,n[15]=b,n[16]=O):O=n[16],O}function KM(e){return D.jsx(j2,{...e,submitButtonText:"Save"})}function XM(e){return[e,{type:"object",title:`Column ${e}`,properties:{displayName:{type:"string",title:"Display name"},displayType:{type:"string",title:"Display type",enum:[""].concat(Array.from(tM)),$bitiforms:{widget:"SelectWidget"}},visible:{type:"boolean",title:"Visible"}},if:{properties:{displayType:{const:"format-string"}}},then:{type:"object",properties:{valueTemplate:{title:"Value template",type:"string",description:`Use placeholders like {{ ${e} }}`}}}}]}function ZM(e,n){return e.replace(/\{\{\s*(\w+)\s*\}\}/g,(a,i)=>{if(Object.prototype.hasOwnProperty.call(n,i)){const s=n[i];return s==null?"":String(s)}return a})}const wc=e=>D.jsx("pre",{style:{maxWidth:250},children:JSON.stringify(e)});function S0(e,n,a){const i=n[e];switch(a.displayType){case"format-string":return ZM(a.valueTemplate||"",n);case"yes-no":return i?"Yes":"No";case"datetime":return typeof i!="string"?wc(i):d1(new Date(i));case"duration":return wc(i);case"date":return typeof i!="string"?wc(i):d1(new Date(i),{representation:"date"});case"number":return String(i);case"string":return String(i);default:return wc(i)}}function IM(e,n,a,i){const s=n[e];if(s===null)return D.jsx(R1,{style:{opacity:.4},children:"NULL"});const o=a.columnMetadata[e]||void 0,f=i[a.tableName].columns[e];if(o&&o.foreignKeys.length>0){const d=o.foreignKeys.at(0),h=s;return D.jsx(al,{to:`/${d==null?void 0:d.table}/edit/${h}`,children:D.jsx(R1,{children:S0(e,n,f)})})}return S0(e,n,i[a.tableName].columns[e])}const JM=zA({multi:!0});function WM(){const e=Ht.c(6),{tableId:n}=Q0();let a;e[0]!==n?(a=n===void 0?cR():n,e[0]=n,e[1]=a):a=e[1];const i=a,{data:s}=ly(),o=s==null?void 0:s.tables[i],f=s.rowCounts[i];let d;return e[2]!==f||e[3]!==o||e[4]!==i?(d=D.jsx(e8,{table:o,rowCount:f},i),e[2]=f,e[3]=o,e[4]=i,e[5]=d):d=e[5],d}function e8(e){const n=Ht.c(56),{table:a,rowCount:i}=e,s=M2(),o=s[a.tableName],f=BA(o.search,500),d=sy(),{sortColumns:h,getThProps:p}=JM(o.sortBy);let g,b;n[0]!==d||n[1]!==h||n[2]!==a.tableName?(g=()=>{d(a.tableName,{sortBy:h})},b=[h,a.tableName,d],n[0]=d,n[1]=h,n[2]=a.tableName,n[3]=g,n[4]=b):(g=n[3],b=n[4]),w.useEffect(g,b);let y;n[5]!==h||n[6]!==o.limit||n[7]!==o.page||n[8]!==f?(y={page:o.page,limit:o.limit,order:h,search:f},n[5]=h,n[6]=o.limit,n[7]=o.page,n[8]=f,n[9]=y):y=n[9];const{data:v}=cM(a.tableName,y);let E;n[10]!==o.columns?(E=Object.keys(o.columns),n[10]=o.columns,n[11]=E):E=n[11];let x;n[12]!==o.columns||n[13]!==E?(x=E.filter(ne=>o.columns[ne].visible),n[12]=o.columns,n[13]=E,n[14]=x):x=n[14];const O=x;if(!a)return null;let T;n[15]!==o.displayName?(T=D.jsx("h1",{className:"dmk-text-title2",children:o.displayName}),n[15]=o.displayName,n[16]=T):T=n[16];let A;n[17]!==i?(A=D.jsxs("div",{className:"dmk-text-subhead dmk-text-muted dmk-margin-top-s",children:[i," rows"]}),n[17]=i,n[18]=A):A=n[18];let j;n[19]!==T||n[20]!==A?(j=D.jsxs("div",{children:[T,A]}),n[19]=T,n[20]=A,n[21]=j):j=n[21];let _;n[22]===Symbol.for("react.memo_cache_sentinel")?(_=D.jsx(hi,{as:al,to:"config",variant:"text",size:"s",children:D.jsx(VM,{className:"dmk-margin-right-xs"})}),n[22]=_):_=n[22];let C;n[23]!==j?(C=D.jsxs(Sr,{horizontal:!0,className:"dmk-margin-bottom-l",spacing:"xs",children:[j,_]}),n[23]=j,n[24]=C):C=n[24];let q;n[25]===Symbol.for("react.memo_cache_sentinel")?(q=D.jsxs(hi,{as:al,to:"new",variant:"outlined",size:"s",children:[D.jsx(IT,{className:"dmk-margin-right-xs"})," Insert row"]}),n[25]=q):q=n[25];let U;n[26]!==C?(U=D.jsxs(Sr,{horizontal:!0,justifyContent:"space-between",children:[C,q]}),n[26]=C,n[27]=U):U=n[27];let k;n[28]!==d||n[29]!==a.tableName?(k=ne=>d(a.tableName,{search:ne.currentTarget.value}),n[28]=d,n[29]=a.tableName,n[30]=k):k=n[30];let z;n[31]!==o.search||n[32]!==k?(z=D.jsx("div",{className:"dmk-margin-bottom-l",children:D.jsx(sA,{value:o.search,onChange:k})}),n[31]=o.search,n[32]=k,n[33]=z):z=n[33];let K;n[34]!==p||n[35]!==o.columns||n[36]!==O?(K=()=>D.jsxs("tr",{children:[O.map(ne=>D.jsx("th",{...p(ne,o.columns[ne].displayName)},ne)),D.jsx("th",{style:{width:200}})]}),n[34]=p,n[35]=o.columns,n[36]=O,n[37]=K):K=n[37];let ee;n[38]!==a||n[39]!==s||n[40]!==O?(ee=ne=>D.jsx(n8,{table:a,row:ne,visibleColumns:O,tableConfig:s},String(ne.id)),n[38]=a,n[39]=s,n[40]=O,n[41]=ee):ee=n[41];let oe;n[42]!==v||n[43]!==K||n[44]!==ee?(oe=D.jsx(RA,{className:"database-table-browser",children:D.jsx(DA,{renderHeaderRow:K,renderRow:ee,items:v})}),n[42]=v,n[43]=K,n[44]=ee,n[45]=oe):oe=n[45];let X;n[46]!==i||n[47]!==o.limit||n[48]!==o.page||n[49]!==a?(X=D.jsx(t8,{limit:o.limit,page:o.page,total:i,table:a}),n[46]=i,n[47]=o.limit,n[48]=o.page,n[49]=a,n[50]=X):X=n[50];let re;return n[51]!==U||n[52]!==z||n[53]!==oe||n[54]!==X?(re=D.jsxs("main",{"data-detail-view":!0,children:[U,z,oe,X]}),n[51]=U,n[52]=z,n[53]=oe,n[54]=X,n[55]=re):re=n[55],re}const t8=w.memo(function(n){const a=Ht.c(26),{limit:i,page:s,total:o,table:f}=n,d=sy();let h;a[0]!==d||a[1]!==f.tableName?(h=T=>d(f.tableName,{limit:T}),a[0]=d,a[1]=f.tableName,a[2]=h):h=a[2];let p;a[3]!==d||a[4]!==f.tableName?(p=T=>d(f.tableName,{page:T}),a[3]=d,a[4]=f.tableName,a[5]=p):p=a[5];let g;a[6]===Symbol.for("react.memo_cache_sentinel")?(g=[10,50,100,500],a[6]=g):g=a[6];let b;a[7]!==i||a[8]!==s||a[9]!==h||a[10]!==p||a[11]!==o?(b=D.jsx("div",{className:"dmk-margin-top-l",children:D.jsx(MA,{limit:i,onLimitChange:h,page:s,onPageChange:p,total:o,limits:g})}),a[7]=i,a[8]=s,a[9]=h,a[10]=p,a[11]=o,a[12]=b):b=a[12];let y;a[13]!==f?(y=D.jsx(Cc,{path:"new",element:D.jsx(b0,{table:f})}),a[13]=f,a[14]=y):y=a[14];let v;a[15]!==f?(v=D.jsx(Cc,{path:"config",element:D.jsx(QM,{table:f})}),a[15]=f,a[16]=v):v=a[16];let E;a[17]!==f?(E=D.jsx(Cc,{path:"edit/:pk",element:D.jsx(b0,{table:f})}),a[17]=f,a[18]=E):E=a[18];let x;a[19]!==y||a[20]!==v||a[21]!==E?(x=D.jsxs(hC,{children:[y,v,E]}),a[19]=y,a[20]=v,a[21]=E,a[22]=x):x=a[22];let O;return a[23]!==b||a[24]!==x?(O=D.jsxs(D.Fragment,{children:[b,x]}),a[23]=b,a[24]=x,a[25]=O):O=a[25],O}),n8=w.memo(function(n){const a=Ht.c(26),{table:i,tableConfig:s,row:o,visibleColumns:f}=n,d=hM(i.tableName),h=ey();let p;a[0]!==h||a[1]!==d||a[2]!==o.id?(p=()=>{h.value?d.mutate(String(o.id)):(h.enable(),setTimeout(()=>h.disable(),3e3))},a[0]=h,a[1]=d,a[2]=o.id,a[3]=p):p=a[3];const g=p,b=String(o.id);let y;if(a[4]!==o||a[5]!==i||a[6]!==s||a[7]!==f){let j;a[9]!==o||a[10]!==i||a[11]!==s?(j=_=>D.jsx("td",{children:IM(_,o,i,s)},_),a[9]=o,a[10]=i,a[11]=s,a[12]=j):j=a[12],y=f.map(j),a[4]=o,a[5]=i,a[6]=s,a[7]=f,a[8]=y}else y=a[8];const v=`edit/${o.id}`;let E;a[13]!==v?(E=D.jsx(hi,{as:al,size:"s",variant:"text",to:v,children:"Edit"}),a[13]=v,a[14]=E):E=a[14];const x=h.value?"Sure?":"Delete";let O;a[15]!==d.isPending||a[16]!==g||a[17]!==x?(O=D.jsx(hi,{size:"s",variant:"text",intent:"danger",disabled:d.isPending,onClick:g,children:x}),a[15]=d.isPending,a[16]=g,a[17]=x,a[18]=O):O=a[18];let T;a[19]!==E||a[20]!==O?(T=D.jsxs("td",{children:[E,O]}),a[19]=E,a[20]=O,a[21]=T):T=a[21];let A;return a[22]!==b||a[23]!==y||a[24]!==T?(A=D.jsxs("tr",{children:[y,T]},b),a[22]=b,a[23]=y,a[24]=T,a[25]=A):A=a[25],A}),r8=[{path:"/",element:D.jsx(qM,{}),children:[{path:":tableId/*",element:D.jsx(WM,{}),errorElement:D.jsx(kM,{})},{index:!0,element:D.jsx(FM,{})}]}];var _0;const a8=UC(r8,{basename:`/${((_0=document.querySelector('meta[name="x-basename"]'))==null?void 0:_0.getAttribute("content"))??""}`});Qw.createRoot(document.getElementById("root")).render(D.jsx(OM,{children:D.jsx(sC,{router:a8})}));
|
|
87
|
-
//# sourceMappingURL=index-d5ZRUuNE.js.map
|