mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-03 22:02:57 +00:00
325 lines
377 KiB
JavaScript
325 lines
377 KiB
JavaScript
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function c(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(o){if(o.ep)return;o.ep=!0;const f=c(o);fetch(o.href,f)}})();function mg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var $c={exports:{}},Ai={};/**
|
|
* @license React
|
|
* react-jsx-runtime.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Em;function Sv(){if(Em)return Ai;Em=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function c(u,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:s,type:u,key:m,ref:o!==void 0?o:null,props:f}}return Ai.Fragment=l,Ai.jsx=c,Ai.jsxs=c,Ai}var jm;function _v(){return jm||(jm=1,$c.exports=Sv()),$c.exports}var h=_v(),Yc={exports:{}},me={};/**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Nm;function xv(){if(Nm)return me;Nm=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),N=Symbol.iterator;function C(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,U={};function D(E,H,Q){this.props=E,this.context=H,this.refs=U,this.updater=Q||T}D.prototype.isReactComponent={},D.prototype.setState=function(E,H){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,H,"setState")},D.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function k(){}k.prototype=D.prototype;function Y(E,H,Q){this.props=E,this.context=H,this.refs=U,this.updater=Q||T}var K=Y.prototype=new k;K.constructor=Y,O(K,D.prototype),K.isPureReactComponent=!0;var X=Array.isArray;function P(){}var F={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function ge(E,H,Q){var J=Q.ref;return{$$typeof:s,type:E,key:H,ref:J!==void 0?J:null,props:Q}}function _e(E,H){return ge(E.type,H,E.props)}function qe(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function ce(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return H[Q]})}var ee=/\/+/g;function ne(E,H){return typeof E=="object"&&E!==null&&E.key!=null?ce(""+E.key):H.toString(36)}function le(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(P,P):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,H,Q,J,se){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var we=!1;if(E===null)we=!0;else switch(ye){case"bigint":case"string":case"number":we=!0;break;case"object":switch(E.$$typeof){case s:case l:we=!0;break;case S:return we=E._init,M(we(E._payload),H,Q,J,se)}}if(we)return se=se(E),we=J===""?"."+ne(E,0):J,X(se)?(Q="",we!=null&&(Q=we.replace(ee,"$&/")+"/"),M(se,H,Q,"",function(da){return da})):se!=null&&(qe(se)&&(se=_e(se,Q+(se.key==null||E&&E.key===se.key?"":(""+se.key).replace(ee,"$&/")+"/")+we)),H.push(se)),1;we=0;var ft=J===""?".":J+":";if(X(E))for(var Ue=0;Ue<E.length;Ue++)J=E[Ue],ye=ft+ne(J,Ue),we+=M(J,H,Q,ye,se);else if(Ue=C(E),typeof Ue=="function")for(E=Ue.call(E),Ue=0;!(J=E.next()).done;)J=J.value,ye=ft+ne(J,Ue++),we+=M(J,H,Q,ye,se);else if(ye==="object"){if(typeof E.then=="function")return M(le(E),H,Q,J,se);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return we}function G(E,H,Q){if(E==null)return E;var J=[],se=0;return M(E,J,"","",function(ye){return H.call(Q,ye,se++)}),J}function W(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var he=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},pe={map:G,forEach:function(E,H,Q){G(E,function(){H.apply(this,arguments)},Q)},count:function(E){var H=0;return G(E,function(){H++}),H},toArray:function(E){return G(E,function(H){return H})||[]},only:function(E){if(!qe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return me.Activity=b,me.Children=pe,me.Component=D,me.Fragment=c,me.Profiler=o,me.PureComponent=Y,me.StrictMode=u,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,me.__COMPILER_RUNTIME={__proto__:null,c:function(E){return F.H.useMemoCache(E)}},me.cache=function(E){return function(){return E.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(E,H,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=O({},E.props),se=E.key;if(H!=null)for(ye in H.key!==void 0&&(se=""+H.key),H)!Te.call(H,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&H.ref===void 0||(J[ye]=H[ye]);var ye=arguments.length-2;if(ye===1)J.children=Q;else if(1<ye){for(var we=Array(ye),ft=0;ft<ye;ft++)we[ft]=arguments[ft+2];J.children=we}return ge(E.type,se,J)},me.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},me.createElement=function(E,H,Q){var J,se={},ye=null;if(H!=null)for(J in H.key!==void 0&&(ye=""+H.key),H)Te.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(se[J]=H[J]);var we=arguments.length-2;if(we===1)se.children=Q;else if(1<we){for(var ft=Array(we),Ue=0;Ue<we;Ue++)ft[Ue]=arguments[Ue+2];se.children=ft}if(E&&E.defaultProps)for(J in we=E.defaultProps,we)se[J]===void 0&&(se[J]=we[J]);return ge(E,ye,se)},me.createRef=function(){return{current:null}},me.forwardRef=function(E){return{$$typeof:g,render:E}},me.isValidElement=qe,me.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:W}},me.memo=function(E,H){return{$$typeof:y,type:E,compare:H===void 0?null:H}},me.startTransition=function(E){var H=F.T,Q={};F.T=Q;try{var J=E(),se=F.S;se!==null&&se(Q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(P,he)}catch(ye){he(ye)}finally{H!==null&&Q.types!==null&&(H.types=Q.types),F.T=H}},me.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},me.use=function(E){return F.H.use(E)},me.useActionState=function(E,H,Q){return F.H.useActionState(E,H,Q)},me.useCallback=function(E,H){return F.H.useCallback(E,H)},me.useContext=function(E){return F.H.useContext(E)},me.useDebugValue=function(){},me.useDeferredValue=function(E,H){return F.H.useDeferredValue(E,H)},me.useEffect=function(E,H){return F.H.useEffect(E,H)},me.useEffectEvent=function(E){return F.H.useEffectEvent(E)},me.useId=function(){return F.H.useId()},me.useImperativeHandle=function(E,H,Q){return F.H.useImperativeHandle(E,H,Q)},me.useInsertionEffect=function(E,H){return F.H.useInsertionEffect(E,H)},me.useLayoutEffect=function(E,H){return F.H.useLayoutEffect(E,H)},me.useMemo=function(E,H){return F.H.useMemo(E,H)},me.useOptimistic=function(E,H){return F.H.useOptimistic(E,H)},me.useReducer=function(E,H,Q){return F.H.useReducer(E,H,Q)},me.useRef=function(E){return F.H.useRef(E)},me.useState=function(E){return F.H.useState(E)},me.useSyncExternalStore=function(E,H,Q){return F.H.useSyncExternalStore(E,H,Q)},me.useTransition=function(){return F.H.useTransition()},me.version="19.2.5",me}var Tm;function vu(){return Tm||(Tm=1,Yc.exports=xv()),Yc.exports}var _=vu();const ra=mg(_);var Vc={exports:{}},Oi={},Gc={exports:{}},Xc={};/**
|
|
* @license React
|
|
* scheduler.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var wm;function Ev(){return wm||(wm=1,(function(s){function l(M,G){var W=M.length;M.push(G);e:for(;0<W;){var he=W-1>>>1,pe=M[he];if(0<o(pe,G))M[he]=G,M[W]=pe,W=he;else break e}}function c(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var G=M[0],W=M.pop();if(W!==G){M[0]=W;e:for(var he=0,pe=M.length,E=pe>>>1;he<E;){var H=2*(he+1)-1,Q=M[H],J=H+1,se=M[J];if(0>o(Q,W))J<pe&&0>o(se,Q)?(M[he]=se,M[J]=W,he=J):(M[he]=Q,M[H]=W,he=H);else if(J<pe&&0>o(se,W))M[he]=se,M[J]=W,he=J;else break e}}return G}function o(M,G){var W=M.sortIndex-G.sortIndex;return W!==0?W:M.id-G.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;s.unstable_now=function(){return f.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var p=[],y=[],S=1,b=null,N=3,C=!1,T=!1,O=!1,U=!1,D=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function K(M){for(var G=c(y);G!==null;){if(G.callback===null)u(y);else if(G.startTime<=M)u(y),G.sortIndex=G.expirationTime,l(p,G);else break;G=c(y)}}function X(M){if(O=!1,K(M),!T)if(c(p)!==null)T=!0,P||(P=!0,ce());else{var G=c(y);G!==null&&le(X,G.startTime-M)}}var P=!1,F=-1,Te=5,ge=-1;function _e(){return U?!0:!(s.unstable_now()-ge<Te)}function qe(){if(U=!1,P){var M=s.unstable_now();ge=M;var G=!0;try{e:{T=!1,O&&(O=!1,k(F),F=-1),C=!0;var W=N;try{t:{for(K(M),b=c(p);b!==null&&!(b.expirationTime>M&&_e());){var he=b.callback;if(typeof he=="function"){b.callback=null,N=b.priorityLevel;var pe=he(b.expirationTime<=M);if(M=s.unstable_now(),typeof pe=="function"){b.callback=pe,K(M),G=!0;break t}b===c(p)&&u(p),K(M)}else u(p);b=c(p)}if(b!==null)G=!0;else{var E=c(y);E!==null&&le(X,E.startTime-M),G=!1}}break e}finally{b=null,N=W,C=!1}G=void 0}}finally{G?ce():P=!1}}}var ce;if(typeof Y=="function")ce=function(){Y(qe)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ne=ee.port2;ee.port1.onmessage=qe,ce=function(){ne.postMessage(null)}}else ce=function(){D(qe,0)};function le(M,G){F=D(function(){M(s.unstable_now())},G)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Te=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return N},s.unstable_next=function(M){switch(N){case 1:case 2:case 3:var G=3;break;default:G=N}var W=N;N=G;try{return M()}finally{N=W}},s.unstable_requestPaint=function(){U=!0},s.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var W=N;N=M;try{return G()}finally{N=W}},s.unstable_scheduleCallback=function(M,G,W){var he=s.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?he+W:he):W=he,M){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=W+pe,M={id:S++,callback:G,priorityLevel:M,startTime:W,expirationTime:pe,sortIndex:-1},W>he?(M.sortIndex=W,l(y,M),c(p)===null&&M===c(y)&&(O?(k(F),F=-1):O=!0,le(X,W-he))):(M.sortIndex=pe,l(p,M),T||C||(T=!0,P||(P=!0,ce()))),M},s.unstable_shouldYield=_e,s.unstable_wrapCallback=function(M){var G=N;return function(){var W=N;N=G;try{return M.apply(this,arguments)}finally{N=W}}}})(Xc)),Xc}var Cm;function jv(){return Cm||(Cm=1,Gc.exports=Ev()),Gc.exports}var Qc={exports:{}},xt={};/**
|
|
* @license React
|
|
* react-dom.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Rm;function Nv(){if(Rm)return xt;Rm=1;var s=vu();function l(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var u={d:{f:c,r:function(){throw Error(l(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:p,containerInfo:y,implementation:S}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,xt.createPortal=function(p,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(l(299));return f(p,y,null,S)},xt.flushSync=function(p){var y=m.T,S=u.p;try{if(m.T=null,u.p=2,p)return p()}finally{m.T=y,u.p=S,u.d.f()}},xt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(p,y))},xt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},xt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var S=y.as,b=g(S,y.crossOrigin),N=typeof y.integrity=="string"?y.integrity:void 0,C=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?u.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:N,fetchPriority:C}):S==="script"&&u.d.X(p,{crossOrigin:b,integrity:N,fetchPriority:C,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},xt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=g(y.as,y.crossOrigin);u.d.M(p,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(p)},xt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=g(S,y.crossOrigin);u.d.L(p,S,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},xt.preloadModule=function(p,y){if(typeof p=="string")if(y){var S=g(y.as,y.crossOrigin);u.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(p)},xt.requestFormReset=function(p){u.d.r(p)},xt.unstable_batchedUpdates=function(p,y){return p(y)},xt.useFormState=function(p,y,S){return m.H.useFormState(p,y,S)},xt.useFormStatus=function(){return m.H.useHostTransitionStatus()},xt.version="19.2.5",xt}var zm;function Tv(){if(zm)return Qc.exports;zm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),Qc.exports=Nv(),Qc.exports}/**
|
|
* @license React
|
|
* react-dom-client.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Am;function wv(){if(Am)return Oi;Am=1;var s=jv(),l=vu(),c=Tv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return p(i),e;if(r===n)return p(i),t;r=r.sibling}throw Error(u(188))}if(a.return!==n.return)a=i,n=r;else{for(var d=!1,v=i.child;v;){if(v===a){d=!0,a=i,n=r;break}if(v===n){d=!0,n=i,a=r;break}v=v.sibling}if(!d){for(v=r.child;v;){if(v===a){d=!0,a=r,n=i;break}if(v===n){d=!0,n=r,a=i;break}v=v.sibling}if(!d)throw Error(u(189))}}if(a.alternate!==n)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,N=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),_e=Symbol.for("react.memo_cache_sentinel"),qe=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=qe&&e[qe]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case U:return"StrictMode";case X:return"Suspense";case P:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case Y:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var le=Array.isArray,M=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},he=[],pe=-1;function E(e){return{current:e}}function H(e){0>pe||(e.current=he[pe],he[pe]=null,pe--)}function Q(e,t){pe++,he[pe]=e.current,e.current=t}var J=E(null),se=E(null),ye=E(null),we=E(null);function ft(e,t){switch(Q(ye,t),Q(se,e),Q(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qh(t),e=Kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(J),Q(J,e)}function Ue(){H(J),H(se),H(ye)}function da(e){e.memoizedState!==null&&Q(we,e);var t=J.current,a=Kh(t,e.type);t!==a&&(Q(se,e),Q(J,a))}function V(e){se.current===e&&(H(J),H(se)),we.current===e&&(H(we),wi._currentValue=W)}var Z,Ae;function Kt(e){if(Z===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Z=t&&t[1]||"",Ae=-1<a.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+Z+e+Ae}var ha=!1;function Ll(e,t){if(!e||ha)return"";ha=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(L){var A=L}Reflect.construct(e,[],$)}else{try{$.call()}catch(L){A=L}e.call($.prototype)}}else{try{throw Error()}catch(L){A=L}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(L){if(L&&A&&typeof L.stack=="string")return[L.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],v=r[1];if(d&&v){var x=d.split(`
|
|
`),z=v.split(`
|
|
`);for(i=n=0;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(n===x.length||i===z.length)for(n=x.length-1,i=z.length-1;1<=n&&0<=i&&x[n]!==z[i];)i--;for(;1<=n&&0<=i;n--,i--)if(x[n]!==z[i]){if(n!==1||i!==1)do if(n--,i--,0>i||x[n]!==z[i]){var B=`
|
|
`+x[n].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=n&&0<=i);break}}}finally{ha=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Kt(a):""}function wu(e,t){switch(e.tag){case 26:case 27:case 5:return Kt(e.type);case 16:return Kt("Lazy");case 13:return e.child!==t&&t!==null?Kt("Suspense Fallback"):Kt("Suspense");case 19:return Kt("SuspenseList");case 0:case 15:return Ll(e.type,!1);case 11:return Ll(e.type.render,!1);case 1:return Ll(e.type,!0);case 31:return Kt("Activity");default:return""}}function Gi(e){try{var t="",a=null;do t+=wu(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var Ul=Object.prototype.hasOwnProperty,Hl=s.unstable_scheduleCallback,Bl=s.unstable_cancelCallback,ie=s.unstable_shouldYield,be=s.unstable_requestPaint,Ee=s.unstable_now,Ke=s.unstable_getCurrentPriorityLevel,Xe=s.unstable_ImmediatePriority,it=s.unstable_UserBlockingPriority,Lt=s.unstable_NormalPriority,Sn=s.unstable_LowPriority,kl=s.unstable_IdlePriority,qn=s.log,Cu=s.unstable_setDisableYieldValue,$n=null,_t=null;function Qa(e){if(typeof qn=="function"&&Cu(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode($n,e)}catch{}}var Ut=Math.clz32?Math.clz32:sp,lp=Math.log,ip=Math.LN2;function sp(e){return e>>>=0,e===0?32:31-(lp(e)/ip|0)|0}var Xi=256,Qi=262144,Ki=4194304;function _n(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=n&134217727;return v!==0?(n=v&~r,n!==0?i=_n(n):(d&=v,d!==0?i=_n(d):a||(a=v&~e,a!==0&&(i=_n(a))))):(v=n&~r,v!==0?i=_n(v):d!==0?i=_n(d):a||(a=n&~e,a!==0&&(i=_n(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function up(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function To(){var e=Ki;return Ki<<=1,(Ki&62914560)===0&&(Ki=4194304),e}function Ru(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function $l(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rp(e,t,a,n,i,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,x=e.expirationTimes,z=e.hiddenUpdates;for(a=d&~a;0<a;){var B=31-Ut(a),$=1<<B;v[B]=0,x[B]=-1;var A=z[B];if(A!==null)for(z[B]=null,B=0;B<A.length;B++){var L=A[B];L!==null&&(L.lane&=-536870913)}a&=~$}n!==0&&wo(e,n,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function wo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ut(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Co(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ut(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function Ro(e,t){var a=t&-t;return a=(a&42)!==0?1:zu(a),(a&(e.suspendedLanes|t))!==0?0:a}function zu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Au(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:pm(e.type))}function Ao(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Ka=Math.random().toString(36).slice(2),gt="__reactFiber$"+Ka,Tt="__reactProps$"+Ka,Yn="__reactContainer$"+Ka,Ou="__reactEvents$"+Ka,cp="__reactListeners$"+Ka,op="__reactHandles$"+Ka,Oo="__reactResources$"+Ka,Yl="__reactMarker$"+Ka;function Du(e){delete e[gt],delete e[Tt],delete e[Ou],delete e[cp],delete e[op]}function Vn(e){var t=e[gt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Yn]||a[gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=em(e);e!==null;){if(a=e[gt])return a;e=em(e)}return t}e=a,a=e.parentNode}return null}function Gn(e){if(e=e[gt]||e[Yn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Xn(e){var t=e[Oo];return t||(t=e[Oo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[Yl]=!0}var Do=new Set,Mo={};function xn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Mo[e]=t,e=0;e<t.length;e++)Do.add(t[e])}var fp=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]*$"),Lo={},Uo={};function dp(e){return Ul.call(Uo,e)?!0:Ul.call(Lo,e)?!1:fp.test(e)?Uo[e]=!0:(Lo[e]=!0,!1)}function Ji(e,t,a){if(dp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Fi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function _a(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ho(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hp(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mu(e){if(!e._valueTracker){var t=Ho(e)?"checked":"value";e._valueTracker=hp(e,t,""+e[t])}}function Bo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Ho(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Wi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var mp=/[\n"\\]/g;function Jt(e){return e.replace(mp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lu(e,t,a,n,i,r,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Uu(e,d,Zt(t)):a!=null?Uu(e,d,Zt(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Zt(v):e.removeAttribute("name")}function ko(e,t,a,n,i,r,d,v){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Mu(e);return}a=a!=null?""+Zt(a):"",t=t!=null?""+Zt(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=v?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Mu(e)}function Uu(e,t,a){t==="number"&&Wi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Zt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qo(e,t,a){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Zt(a):""}function $o(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(u(92));if(le(n)){if(1<n.length)throw Error(u(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Zt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Mu(e)}function Zn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var gp=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 Yo(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||gp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vo(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Yo(e,i,n)}else for(var r in t)t.hasOwnProperty(r)&&Yo(e,r,t[r])}function Hu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pp=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"]]),yp=/^[\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 Ii(e){return yp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xa(){}var Bu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jn=null,Fn=null;function Go(e){var t=Gn(e);if(t&&(e=t.stateNode)){var a=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[Tt]||null;if(!i)throw Error(u(90));Lu(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Bo(n)}break e;case"textarea":qo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kn(e,!!a.multiple,t,!1)}}}var qu=!1;function Xo(e,t,a){if(qu)return e(t,a);qu=!0;try{var n=e(t);return n}finally{if(qu=!1,(Jn!==null||Fn!==null)&&(ks(),Jn&&(t=Jn,e=Fn,Fn=Jn=null,Go(t),e)))for(t=0;t<e.length;t++)Go(e[t])}}function Gl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Tt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=!1;if(Ea)try{var Xl={};Object.defineProperty(Xl,"passive",{get:function(){$u=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{$u=!1}var Za=null,Yu=null,Pi=null;function Qo(){if(Pi)return Pi;var e,t=Yu,a=t.length,n,i="value"in Za?Za.value:Za.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===i[r-n];n++);return Pi=i.slice(e,1<n?1-n:void 0)}function es(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ts(){return!0}function Ko(){return!1}function wt(e){function t(a,n,i,r,d){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(r):r[v]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ts:Ko,this.isPropagationStopped=Ko,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ts)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},as=wt(En),Ql=b({},En,{view:0,detail:0}),vp=wt(Ql),Vu,Gu,Kl,ns=b({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(Vu=e.screenX-Kl.screenX,Gu=e.screenY-Kl.screenY):Gu=Vu=0,Kl=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),Zo=wt(ns),bp=b({},ns,{dataTransfer:0}),Sp=wt(bp),_p=b({},Ql,{relatedTarget:0}),Xu=wt(_p),xp=b({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Ep=wt(xp),jp=b({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Np=wt(jp),Tp=b({},En,{data:0}),Jo=wt(Tp),wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cp={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rp[e])?!!t[e]:!1}function Qu(){return zp}var Ap=b({},Ql,{key:function(e){if(e.key){var t=wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=es(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?es(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?es(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Op=wt(Ap),Dp=b({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fo=wt(Dp),Mp=b({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),Lp=wt(Mp),Up=b({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hp=wt(Up),Bp=b({},ns,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kp=wt(Bp),qp=b({},En,{newState:0,oldState:0}),$p=wt(qp),Yp=[9,13,27,32],Ku=Ea&&"CompositionEvent"in window,Zl=null;Ea&&"documentMode"in document&&(Zl=document.documentMode);var Vp=Ea&&"TextEvent"in window&&!Zl,Wo=Ea&&(!Ku||Zl&&8<Zl&&11>=Zl),Io=" ",Po=!1;function ef(e,t){switch(e){case"keyup":return Yp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wn=!1;function Gp(e,t){switch(e){case"compositionend":return tf(t);case"keypress":return t.which!==32?null:(Po=!0,Io);case"textInput":return e=t.data,e===Io&&Po?null:e;default:return null}}function Xp(e,t){if(Wn)return e==="compositionend"||!Ku&&ef(e,t)?(e=Qo(),Pi=Yu=Za=null,Wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wo&&t.locale!=="ko"?null:t.data;default:return null}}var Qp={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 af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qp[e.type]:t==="textarea"}function nf(e,t,a,n){Jn?Fn?Fn.push(n):Fn=[n]:Jn=n,t=Qs(t,"onChange"),0<t.length&&(a=new as("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Jl=null,Fl=null;function Kp(e){qh(e,0)}function ls(e){var t=Vl(e);if(Bo(t))return e}function lf(e,t){if(e==="change")return t}var sf=!1;if(Ea){var Zu;if(Ea){var Ju="oninput"in document;if(!Ju){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),Ju=typeof uf.oninput=="function"}Zu=Ju}else Zu=!1;sf=Zu&&(!document.documentMode||9<document.documentMode)}function rf(){Jl&&(Jl.detachEvent("onpropertychange",cf),Fl=Jl=null)}function cf(e){if(e.propertyName==="value"&&ls(Fl)){var t=[];nf(t,Fl,e,ku(e)),Xo(Kp,t)}}function Zp(e,t,a){e==="focusin"?(rf(),Jl=t,Fl=a,Jl.attachEvent("onpropertychange",cf)):e==="focusout"&&rf()}function Jp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls(Fl)}function Fp(e,t){if(e==="click")return ls(t)}function Wp(e,t){if(e==="input"||e==="change")return ls(t)}function Ip(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:Ip;function Wl(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Ul.call(t,i)||!Ht(e[i],t[i]))return!1}return!0}function of(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ff(e,t){var a=of(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=of(a)}}function df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Wi(e.document)}return t}function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Pp=Ea&&"documentMode"in document&&11>=document.documentMode,In=null,Wu=null,Il=null,Iu=!1;function mf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Iu||In==null||In!==Wi(n)||(n=In,"selectionStart"in n&&Fu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Il&&Wl(Il,n)||(Il=n,n=Qs(Wu,"onSelect"),0<n.length&&(t=new as("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=In)))}function jn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Pn={animationend:jn("Animation","AnimationEnd"),animationiteration:jn("Animation","AnimationIteration"),animationstart:jn("Animation","AnimationStart"),transitionrun:jn("Transition","TransitionRun"),transitionstart:jn("Transition","TransitionStart"),transitioncancel:jn("Transition","TransitionCancel"),transitionend:jn("Transition","TransitionEnd")},Pu={},gf={};Ea&&(gf=document.createElement("div").style,"AnimationEvent"in window||(delete Pn.animationend.animation,delete Pn.animationiteration.animation,delete Pn.animationstart.animation),"TransitionEvent"in window||delete Pn.transitionend.transition);function Nn(e){if(Pu[e])return Pu[e];if(!Pn[e])return e;var t=Pn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in gf)return Pu[e]=t[a];return e}var pf=Nn("animationend"),yf=Nn("animationiteration"),vf=Nn("animationstart"),ey=Nn("transitionrun"),ty=Nn("transitionstart"),ay=Nn("transitioncancel"),bf=Nn("transitionend"),Sf=new Map,er="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");er.push("scrollEnd");function la(e,t){Sf.set(e,t),xn(t,[e])}var is=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],el=0,tr=0;function ss(){for(var e=el,t=tr=el=0;t<e;){var a=Ft[t];Ft[t++]=null;var n=Ft[t];Ft[t++]=null;var i=Ft[t];Ft[t++]=null;var r=Ft[t];if(Ft[t++]=null,n!==null&&i!==null){var d=n.pending;d===null?i.next=i:(i.next=d.next,d.next=i),n.pending=i}r!==0&&_f(a,i,r)}}function us(e,t,a,n){Ft[el++]=e,Ft[el++]=t,Ft[el++]=a,Ft[el++]=n,tr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function ar(e,t,a,n){return us(e,t,a,n),rs(e)}function Tn(e,t){return us(e,null,null,t),rs(e)}function _f(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-Ut(a),e=r.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),r):null}function rs(e){if(50<Si)throw Si=0,fc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var tl={};function ny(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,a,n){return new ny(e,t,a,n)}function nr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var a=e.alternate;return a===null?(a=Bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function xf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cs(e,t,a,n,i,r){var d=0;if(n=e,typeof e=="function")nr(e)&&(d=1);else if(typeof e=="string")d=rv(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=Bt(31,a,t,i),e.elementType=ge,e.lanes=r,e;case O:return wn(a.children,i,r,t);case U:d=8,i|=24;break;case D:return e=Bt(12,a,t,i|2),e.elementType=D,e.lanes=r,e;case X:return e=Bt(13,a,t,i),e.elementType=X,e.lanes=r,e;case P:return e=Bt(19,a,t,i),e.elementType=P,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case k:d=9;break e;case K:d=11;break e;case F:d=14;break e;case Te:d=16,n=null;break e}d=29,a=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=Bt(d,a,t,i),t.elementType=e,t.type=n,t.lanes=r,t}function wn(e,t,a,n){return e=Bt(7,e,n,t),e.lanes=a,e}function lr(e,t,a){return e=Bt(6,e,null,t),e.lanes=a,e}function Ef(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function ir(e,t,a){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jf=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var a=jf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Gi(t)},jf.set(e,t),t)}return{value:e,source:t,stack:Gi(t)}}var al=[],nl=0,os=null,Pl=0,It=[],Pt=0,Ja=null,ma=1,ga="";function Na(e,t){al[nl++]=Pl,al[nl++]=os,os=e,Pl=t}function Nf(e,t,a){It[Pt++]=ma,It[Pt++]=ga,It[Pt++]=Ja,Ja=e;var n=ma;e=ga;var i=32-Ut(n)-1;n&=~(1<<i),a+=1;var r=32-Ut(t)+i;if(30<r){var d=i-i%5;r=(n&(1<<d)-1).toString(32),n>>=d,i-=d,ma=1<<32-Ut(t)+i|a<<i|n,ga=r+e}else ma=1<<r|a<<i|n,ga=e}function sr(e){e.return!==null&&(Na(e,1),Nf(e,1,0))}function ur(e){for(;e===os;)os=al[--nl],al[nl]=null,Pl=al[--nl],al[nl]=null;for(;e===Ja;)Ja=It[--Pt],It[Pt]=null,ga=It[--Pt],It[Pt]=null,ma=It[--Pt],It[Pt]=null}function Tf(e,t){It[Pt++]=ma,It[Pt++]=ga,It[Pt++]=Ja,ma=t.id,ga=t.overflow,Ja=e}var pt=null,Ze=null,ze=!1,Fa=null,ea=!1,rr=Error(u(519));function Wa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ei(Wt(t,e)),rr}function wf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[gt]=e,t[Tt]=n,a){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(a=0;a<xi.length;a++)Ne(xi[a],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),ko(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),$o(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Gh(t.textContent,a)?(n.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),n.onScroll!=null&&Ne("scroll",t),n.onScrollEnd!=null&&Ne("scrollend",t),n.onClick!=null&&(t.onclick=xa),t=!0):t=!1,t||Wa(e,!0)}function Cf(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:pt=pt.return}}function ll(e){if(e!==pt)return!1;if(!ze)return Cf(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Tc(e.type,e.memoizedProps)),a=!a),a&&Ze&&Wa(e),Cf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=Ph(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=Ph(e)}else t===27?(t=Ze,dn(e.type)?(e=Ac,Ac=null,Ze=e):Ze=t):Ze=pt?aa(e.stateNode.nextSibling):null;return!0}function Cn(){Ze=pt=null,ze=!1}function cr(){var e=Fa;return e!==null&&(At===null?At=e:At.push.apply(At,e),Fa=null),e}function ei(e){Fa===null?Fa=[e]:Fa.push(e)}var or=E(null),Rn=null,Ta=null;function Ia(e,t,a){Q(or,t._currentValue),t._currentValue=a}function wa(e){e._currentValue=or.current,H(or)}function fr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function dr(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var v=r;r=i;for(var x=0;x<t.length;x++)if(v.context===t[x]){r.lanes|=a,v=r.alternate,v!==null&&(v.lanes|=a),fr(r.return,a,e),n||(d=null);break e}r=v.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(u(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),fr(d,a,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function il(e,t,a,n){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=i.type;Ht(i.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(i===we.current){if(d=i.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(wi):e=[wi])}i=i.return}e!==null&&dr(t,e,a,n),t.flags|=262144}function fs(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zn(e){Rn=e,Ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Rf(Rn,e)}function ds(e,t){return Rn===null&&zn(e),Rf(e,t)}function Rf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ta===null){if(e===null)throw Error(u(308));Ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ta=Ta.next=t;return a}var ly=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},iy=s.unstable_scheduleCallback,sy=s.unstable_NormalPriority,st={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hr(){return{controller:new ly,data:new Map,refCount:0}}function ti(e){e.refCount--,e.refCount===0&&iy(sy,function(){e.controller.abort()})}var ai=null,mr=0,sl=0,ul=null;function uy(e,t){if(ai===null){var a=ai=[];mr=0,sl=yc(),ul={status:"pending",value:void 0,then:function(n){a.push(n)}}}return mr++,t.then(zf,zf),t}function zf(){if(--mr===0&&ai!==null){ul!==null&&(ul.status="fulfilled");var e=ai;ai=null,sl=0,ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ry(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Af=M.S;M.S=function(e,t){mh=Ee(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uy(e,t),Af!==null&&Af(e,t)};var An=E(null);function gr(){var e=An.current;return e!==null?e:Ge.pooledCache}function hs(e,t){t===null?Q(An,An.current):Q(An,t.pool)}function Of(){var e=gr();return e===null?null:{parent:st._currentValue,pool:e}}var rl=Error(u(460)),pr=Error(u(474)),ms=Error(u(542)),gs={then:function(){}};function Df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(xa,xa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uf(e),e;default:if(typeof t.status=="string")t.then(xa,xa);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uf(e),e}throw Dn=t,rl}}function On(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Dn=a,rl):a}}var Dn=null;function Lf(){if(Dn===null)throw Error(u(459));var e=Dn;return Dn=null,e}function Uf(e){if(e===rl||e===ms)throw Error(u(483))}var cl=null,ni=0;function ps(e){var t=ni;return ni+=1,cl===null&&(cl=[]),Mf(cl,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ys(e,t){throw t.$$typeof===N?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hf(e){function t(w,j){if(e){var R=w.deletions;R===null?(w.deletions=[j],w.flags|=16):R.push(j)}}function a(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function n(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=ja(w,j),w.index=0,w.sibling=null,w}function r(w,j,R){return w.index=R,e?(R=w.alternate,R!==null?(R=R.index,R<j?(w.flags|=67108866,j):R):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function d(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function v(w,j,R,q){return j===null||j.tag!==6?(j=lr(R,w.mode,q),j.return=w,j):(j=i(j,R),j.return=w,j)}function x(w,j,R,q){var ae=R.type;return ae===O?B(w,j,R.props.children,q,R.key):j!==null&&(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Te&&On(ae)===j.type)?(j=i(j,R.props),li(j,R),j.return=w,j):(j=cs(R.type,R.key,R.props,null,w.mode,q),li(j,R),j.return=w,j)}function z(w,j,R,q){return j===null||j.tag!==4||j.stateNode.containerInfo!==R.containerInfo||j.stateNode.implementation!==R.implementation?(j=ir(R,w.mode,q),j.return=w,j):(j=i(j,R.children||[]),j.return=w,j)}function B(w,j,R,q,ae){return j===null||j.tag!==7?(j=wn(R,w.mode,q,ae),j.return=w,j):(j=i(j,R),j.return=w,j)}function $(w,j,R){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=lr(""+j,w.mode,R),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case C:return R=cs(j.type,j.key,j.props,null,w.mode,R),li(R,j),R.return=w,R;case T:return j=ir(j,w.mode,R),j.return=w,j;case Te:return j=On(j),$(w,j,R)}if(le(j)||ce(j))return j=wn(j,w.mode,R,null),j.return=w,j;if(typeof j.then=="function")return $(w,ps(j),R);if(j.$$typeof===Y)return $(w,ds(w,j),R);ys(w,j)}return null}function A(w,j,R,q){var ae=j!==null?j.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ae!==null?null:v(w,j,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case C:return R.key===ae?x(w,j,R,q):null;case T:return R.key===ae?z(w,j,R,q):null;case Te:return R=On(R),A(w,j,R,q)}if(le(R)||ce(R))return ae!==null?null:B(w,j,R,q,null);if(typeof R.then=="function")return A(w,j,ps(R),q);if(R.$$typeof===Y)return A(w,j,ds(w,R),q);ys(w,R)}return null}function L(w,j,R,q,ae){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(R)||null,v(j,w,""+q,ae);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case C:return w=w.get(q.key===null?R:q.key)||null,x(j,w,q,ae);case T:return w=w.get(q.key===null?R:q.key)||null,z(j,w,q,ae);case Te:return q=On(q),L(w,j,R,q,ae)}if(le(q)||ce(q))return w=w.get(R)||null,B(j,w,q,ae,null);if(typeof q.then=="function")return L(w,j,R,ps(q),ae);if(q.$$typeof===Y)return L(w,j,R,ds(j,q),ae);ys(j,q)}return null}function I(w,j,R,q){for(var ae=null,Oe=null,te=j,Se=j=0,Re=null;te!==null&&Se<R.length;Se++){te.index>Se?(Re=te,te=null):Re=te.sibling;var De=A(w,te,R[Se],q);if(De===null){te===null&&(te=Re);break}e&&te&&De.alternate===null&&t(w,te),j=r(De,j,Se),Oe===null?ae=De:Oe.sibling=De,Oe=De,te=Re}if(Se===R.length)return a(w,te),ze&&Na(w,Se),ae;if(te===null){for(;Se<R.length;Se++)te=$(w,R[Se],q),te!==null&&(j=r(te,j,Se),Oe===null?ae=te:Oe.sibling=te,Oe=te);return ze&&Na(w,Se),ae}for(te=n(te);Se<R.length;Se++)Re=L(te,w,Se,R[Se],q),Re!==null&&(e&&Re.alternate!==null&&te.delete(Re.key===null?Se:Re.key),j=r(Re,j,Se),Oe===null?ae=Re:Oe.sibling=Re,Oe=Re);return e&&te.forEach(function(yn){return t(w,yn)}),ze&&Na(w,Se),ae}function ue(w,j,R,q){if(R==null)throw Error(u(151));for(var ae=null,Oe=null,te=j,Se=j=0,Re=null,De=R.next();te!==null&&!De.done;Se++,De=R.next()){te.index>Se?(Re=te,te=null):Re=te.sibling;var yn=A(w,te,De.value,q);if(yn===null){te===null&&(te=Re);break}e&&te&&yn.alternate===null&&t(w,te),j=r(yn,j,Se),Oe===null?ae=yn:Oe.sibling=yn,Oe=yn,te=Re}if(De.done)return a(w,te),ze&&Na(w,Se),ae;if(te===null){for(;!De.done;Se++,De=R.next())De=$(w,De.value,q),De!==null&&(j=r(De,j,Se),Oe===null?ae=De:Oe.sibling=De,Oe=De);return ze&&Na(w,Se),ae}for(te=n(te);!De.done;Se++,De=R.next())De=L(te,w,Se,De.value,q),De!==null&&(e&&De.alternate!==null&&te.delete(De.key===null?Se:De.key),j=r(De,j,Se),Oe===null?ae=De:Oe.sibling=De,Oe=De);return e&&te.forEach(function(bv){return t(w,bv)}),ze&&Na(w,Se),ae}function Ve(w,j,R,q){if(typeof R=="object"&&R!==null&&R.type===O&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case C:e:{for(var ae=R.key;j!==null;){if(j.key===ae){if(ae=R.type,ae===O){if(j.tag===7){a(w,j.sibling),q=i(j,R.props.children),q.return=w,w=q;break e}}else if(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Te&&On(ae)===j.type){a(w,j.sibling),q=i(j,R.props),li(q,R),q.return=w,w=q;break e}a(w,j);break}else t(w,j);j=j.sibling}R.type===O?(q=wn(R.props.children,w.mode,q,R.key),q.return=w,w=q):(q=cs(R.type,R.key,R.props,null,w.mode,q),li(q,R),q.return=w,w=q)}return d(w);case T:e:{for(ae=R.key;j!==null;){if(j.key===ae)if(j.tag===4&&j.stateNode.containerInfo===R.containerInfo&&j.stateNode.implementation===R.implementation){a(w,j.sibling),q=i(j,R.children||[]),q.return=w,w=q;break e}else{a(w,j);break}else t(w,j);j=j.sibling}q=ir(R,w.mode,q),q.return=w,w=q}return d(w);case Te:return R=On(R),Ve(w,j,R,q)}if(le(R))return I(w,j,R,q);if(ce(R)){if(ae=ce(R),typeof ae!="function")throw Error(u(150));return R=ae.call(R),ue(w,j,R,q)}if(typeof R.then=="function")return Ve(w,j,ps(R),q);if(R.$$typeof===Y)return Ve(w,j,ds(w,R),q);ys(w,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,j!==null&&j.tag===6?(a(w,j.sibling),q=i(j,R),q.return=w,w=q):(a(w,j),q=lr(R,w.mode,q),q.return=w,w=q),d(w)):a(w,j)}return function(w,j,R,q){try{ni=0;var ae=Ve(w,j,R,q);return cl=null,ae}catch(te){if(te===rl||te===ms)throw te;var Oe=Bt(29,te,null,w.mode);return Oe.lanes=q,Oe.return=w,Oe}finally{}}}var Mn=Hf(!0),Bf=Hf(!1),Pa=!1;function yr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function en(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function tn(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Me&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=rs(e),_f(e,null,a),t}return us(e,n,t,a),rs(e)}function ii(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Co(e,a)}}function br(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Sr=!1;function si(){if(Sr){var e=ul;if(e!==null)throw e}}function ui(e,t,a,n){Sr=!1;var i=e.updateQueue;Pa=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,v=i.shared.pending;if(v!==null){i.shared.pending=null;var x=v,z=x.next;x.next=null,d===null?r=z:d.next=z,d=x;var B=e.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==d&&(v===null?B.firstBaseUpdate=z:v.next=z,B.lastBaseUpdate=x))}if(r!==null){var $=i.baseState;d=0,B=z=x=null,v=r;do{var A=v.lane&-536870913,L=A!==v.lane;if(L?(Ce&A)===A:(n&A)===A){A!==0&&A===sl&&(Sr=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var I=e,ue=v;A=t;var Ve=a;switch(ue.tag){case 1:if(I=ue.payload,typeof I=="function"){$=I.call(Ve,$,A);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ue.payload,A=typeof I=="function"?I.call(Ve,$,A):I,A==null)break e;$=b({},$,A);break e;case 2:Pa=!0}}A=v.callback,A!==null&&(e.flags|=64,L&&(e.flags|=8192),L=i.callbacks,L===null?i.callbacks=[A]:L.push(A))}else L={lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(z=B=L,x=$):B=B.next=L,d|=A;if(v=v.next,v===null){if(v=i.shared.pending,v===null)break;L=v,v=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);B===null&&(x=$),i.baseState=x,i.firstBaseUpdate=z,i.lastBaseUpdate=B,r===null&&(i.shared.lanes=0),un|=d,e.lanes=d,e.memoizedState=$}}function kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function qf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kf(a[e],t)}var ol=E(null),vs=E(0);function $f(e,t){e=Ua,Q(vs,e),Q(ol,t),Ua=e|t.baseLanes}function _r(){Q(vs,Ua),Q(ol,ol.current)}function xr(){Ua=vs.current,H(ol),H(vs)}var kt=E(null),ta=null;function an(e){var t=e.alternate;Q(nt,nt.current&1),Q(kt,e),ta===null&&(t===null||ol.current!==null||t.memoizedState!==null)&&(ta=e)}function Er(e){Q(nt,nt.current),Q(kt,e),ta===null&&(ta=e)}function Yf(e){e.tag===22?(Q(nt,nt.current),Q(kt,e),ta===null&&(ta=e)):nn()}function nn(){Q(nt,nt.current),Q(kt,kt.current)}function qt(e){H(kt),ta===e&&(ta=null),H(nt)}var nt=E(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rc(a)||zc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ca=0,ve=null,$e=null,ut=null,Ss=!1,fl=!1,Ln=!1,_s=0,ri=0,dl=null,cy=0;function tt(){throw Error(u(321))}function jr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ht(e[a],t[a]))return!1;return!0}function Nr(e,t,a,n,i,r){return Ca=r,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Nd:qr,Ln=!1,r=a(n,i),Ln=!1,fl&&(r=Gf(t,a,n,i)),Vf(e),r}function Vf(e){M.H=fi;var t=$e!==null&&$e.next!==null;if(Ca=0,ut=$e=ve=null,Ss=!1,ri=0,dl=null,t)throw Error(u(300));e===null||rt||(e=e.dependencies,e!==null&&fs(e)&&(rt=!0))}function Gf(e,t,a,n){ve=e;var i=0;do{if(fl&&(dl=null),ri=0,fl=!1,25<=i)throw Error(u(301));if(i+=1,ut=$e=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}M.H=Td,r=t(a,n)}while(fl);return r}function oy(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(ve.flags|=1024),t}function Tr(){var e=_s!==0;return _s=0,e}function wr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Cr(e){if(Ss){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ss=!1}Ca=0,ut=$e=ve=null,fl=!1,ri=_s=0,dl=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?ve.memoizedState=ut=e:ut=ut.next=e,ut}function lt(){if($e===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=ut===null?ve.memoizedState:ut.next;if(t!==null)ut=t,$e=e;else{if(e===null)throw ve.alternate===null?Error(u(467)):Error(u(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ut===null?ve.memoizedState=ut=e:ut=ut.next=e}return ut}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=ri;return ri+=1,dl===null&&(dl=[]),e=Mf(dl,e,t),t=ve,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Nd:qr),e}function Es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===Y)return yt(e)}throw Error(u(438,String(e)))}function Rr(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ve.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xs(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=_e;return t.index++,a}function Ra(e,t){return typeof t=="function"?t(e):t}function js(e){var t=lt();return zr(t,$e,e)}function zr(e,t,a){var n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=a;var i=e.baseQueue,r=n.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,n.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var v=d=null,x=null,z=t,B=!1;do{var $=z.lane&-536870913;if($!==z.lane?(Ce&$)===$:(Ca&$)===$){var A=z.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),$===sl&&(B=!0);else if((Ca&A)===A){z=z.next,A===sl&&(B=!0);continue}else $={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=$,d=r):x=x.next=$,ve.lanes|=A,un|=A;$=z.action,Ln&&a(r,$),r=z.hasEagerState?z.eagerState:a(r,$)}else A={lane:$,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=A,d=r):x=x.next=A,ve.lanes|=$,un|=$;z=z.next}while(z!==null&&z!==t);if(x===null?d=r:x.next=v,!Ht(r,e.memoizedState)&&(rt=!0,B&&(a=ul,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=x,n.lastRenderedState=r}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ar(e){var t=lt(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Ht(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Xf(e,t,a){var n=ve,i=lt(),r=ze;if(r){if(a===void 0)throw Error(u(407));a=a()}else a=t();var d=!Ht(($e||i).memoizedState,a);if(d&&(i.memoizedState=a,rt=!0),i=i.queue,Mr(Zf.bind(null,n,i,e),[e]),i.getSnapshot!==t||d||ut!==null&&ut.memoizedState.tag&1){if(n.flags|=2048,hl(9,{destroy:void 0},Kf.bind(null,n,i,a,t),null),Ge===null)throw Error(u(349));r||(Ca&127)!==0||Qf(n,t,a)}return a}function Qf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=xs(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Kf(e,t,a,n){t.value=a,t.getSnapshot=n,Jf(t)&&Ff(e)}function Zf(e,t,a){return a(function(){Jf(t)&&Ff(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ht(e,a)}catch{return!0}}function Ff(e){var t=Tn(e,2);t!==null&&Ot(t,e,2)}function Or(e){var t=jt();if(typeof e=="function"){var a=e;if(e=a(),Ln){Qa(!0);try{a()}finally{Qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t}function Wf(e,t,a,n){return e.baseState=a,zr(e,$e,typeof n=="function"?n:Ra)}function fy(e,t,a,n,i){if(ws(e))throw Error(u(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};M.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,If(t,r)):(r.next=a.next,t.pending=a.next=r)}}function If(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var r=M.T,d={};M.T=d;try{var v=a(i,n),x=M.S;x!==null&&x(d,v),Pf(e,t,v)}catch(z){Dr(e,t,z)}finally{r!==null&&d.types!==null&&(r.types=d.types),M.T=r}}else try{r=a(i,n),Pf(e,t,r)}catch(z){Dr(e,t,z)}}function Pf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){ed(e,t,n)},function(n){return Dr(e,t,n)}):ed(e,t,a)}function ed(e,t,a){t.status="fulfilled",t.value=a,td(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,If(e,a)))}function Dr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,td(t),t=t.next;while(t!==n)}e.action=null}function td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ad(e,t){return t}function nd(e,t){if(ze){var a=Ge.formState;if(a!==null){e:{var n=ve;if(ze){if(Ze){t:{for(var i=Ze,r=ea;i.nodeType!==8;){if(!r){i=null;break t}if(i=aa(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Ze=aa(i.nextSibling),n=i.data==="F!";break e}}Wa(n)}n=!1}n&&(t=a[0])}}return a=jt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ad,lastRenderedState:t},a.queue=n,a=xd.bind(null,ve,n),n.dispatch=a,n=Or(!1),r=kr.bind(null,ve,!1,n.queue),n=jt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=fy.bind(null,ve,i,r,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function ld(e){var t=lt();return id(t,$e,e)}function id(e,t,a){if(t=zr(e,t,ad)[0],e=js(Ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ci(t)}catch(d){throw d===rl?ms:d}else n=t;t=lt();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,hl(9,{destroy:void 0},dy.bind(null,i,a),null)),[n,r,e]}function dy(e,t){e.action=t}function sd(e){var t=lt(),a=$e;if(a!==null)return id(t,a,e);lt(),t=t.memoizedState,a=lt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function hl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ve.updateQueue,t===null&&(t=xs(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function ud(){return lt().memoizedState}function Ns(e,t,a,n){var i=jt();ve.flags|=e,i.memoizedState=hl(1|t,{destroy:void 0},a,n===void 0?null:n)}function Ts(e,t,a,n){var i=lt();n=n===void 0?null:n;var r=i.memoizedState.inst;$e!==null&&n!==null&&jr(n,$e.memoizedState.deps)?i.memoizedState=hl(t,r,a,n):(ve.flags|=e,i.memoizedState=hl(1|t,r,a,n))}function rd(e,t){Ns(8390656,8,e,t)}function Mr(e,t){Ts(2048,8,e,t)}function hy(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=xs(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function cd(e){var t=lt().memoizedState;return hy({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function od(e,t){return Ts(4,2,e,t)}function fd(e,t){return Ts(4,4,e,t)}function dd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hd(e,t,a){a=a!=null?a.concat([e]):null,Ts(4,4,dd.bind(null,t,e),a)}function Lr(){}function md(e,t){var a=lt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&jr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function gd(e,t){var a=lt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&jr(t,n[1]))return n[0];if(n=e(),Ln){Qa(!0);try{e()}finally{Qa(!1)}}return a.memoizedState=[n,t],n}function Ur(e,t,a){return a===void 0||(Ca&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ph(),ve.lanes|=e,un|=e,a)}function pd(e,t,a,n){return Ht(a,t)?a:ol.current!==null?(e=Ur(e,a,n),Ht(e,t)||(rt=!0),e):(Ca&42)===0||(Ca&1073741824)!==0&&(Ce&261930)===0?(rt=!0,e.memoizedState=a):(e=ph(),ve.lanes|=e,un|=e,t)}function yd(e,t,a,n,i){var r=G.p;G.p=r!==0&&8>r?r:8;var d=M.T,v={};M.T=v,kr(e,!1,t,a);try{var x=i(),z=M.S;if(z!==null&&z(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var B=ry(x,n);oi(e,t,B,Vt(e))}else oi(e,t,n,Vt(e))}catch($){oi(e,t,{then:function(){},status:"rejected",reason:$},Vt())}finally{G.p=r,d!==null&&v.types!==null&&(d.types=v.types),M.T=d}}function my(){}function Hr(e,t,a,n){if(e.tag!==5)throw Error(u(476));var i=vd(e).queue;yd(e,i,t,W,a===null?my:function(){return bd(e),a(n)})}function vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bd(e){var t=vd(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},Vt())}function Br(){return yt(wi)}function Sd(){return lt().memoizedState}function _d(){return lt().memoizedState}function gy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Vt();e=en(a);var n=tn(t,e,a);n!==null&&(Ot(n,t,a),ii(n,t,a)),t={cache:hr()},e.payload=t;return}t=t.return}}function py(e,t,a){var n=Vt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ws(e)?Ed(t,a):(a=ar(e,t,a,n),a!==null&&(Ot(a,e,n),jd(a,t,n)))}function xd(e,t,a){var n=Vt();oi(e,t,a,n)}function oi(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ws(e))Ed(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,v=r(d,a);if(i.hasEagerState=!0,i.eagerState=v,Ht(v,d))return us(e,t,i,0),Ge===null&&ss(),!1}catch{}finally{}if(a=ar(e,t,i,n),a!==null)return Ot(a,e,n),jd(a,t,n),!0}return!1}function kr(e,t,a,n){if(n={lane:2,revertLane:yc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ws(e)){if(t)throw Error(u(479))}else t=ar(e,a,n,2),t!==null&&Ot(t,e,2)}function ws(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Ed(e,t){fl=Ss=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function jd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Co(e,a)}}var fi={readContext:yt,use:Es,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};fi.useEffectEvent=tt;var Nd={readContext:yt,use:Es,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:rd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ns(4194308,4,dd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var a=jt();t=t===void 0?null:t;var n=e();if(Ln){Qa(!0);try{e()}finally{Qa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=jt();if(a!==void 0){var i=a(t);if(Ln){Qa(!0);try{a(t)}finally{Qa(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=py.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Or(e);var t=e.queue,a=xd.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lr,useDeferredValue:function(e,t){var a=jt();return Ur(a,e,t)},useTransition:function(){var e=Or(!1);return e=yd.bind(null,ve,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ve,i=jt();if(ze){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ge===null)throw Error(u(349));(Ce&127)!==0||Qf(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,rd(Zf.bind(null,n,r,e),[e]),n.flags|=2048,hl(9,{destroy:void 0},Kf.bind(null,n,r,a,t),null),a},useId:function(){var e=jt(),t=Ge.identifierPrefix;if(ze){var a=ga,n=ma;a=(n&~(1<<32-Ut(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=_s++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=cy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Br,useFormState:nd,useActionState:nd,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=kr.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:Rr,useCacheRefresh:function(){return jt().memoizedState=gy.bind(null,ve)},useEffectEvent:function(e){var t=jt(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},qr={readContext:yt,use:Es,useCallback:md,useContext:yt,useEffect:Mr,useImperativeHandle:hd,useInsertionEffect:od,useLayoutEffect:fd,useMemo:gd,useReducer:js,useRef:ud,useState:function(){return js(Ra)},useDebugValue:Lr,useDeferredValue:function(e,t){var a=lt();return pd(a,$e.memoizedState,e,t)},useTransition:function(){var e=js(Ra)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Xf,useId:Sd,useHostTransitionStatus:Br,useFormState:ld,useActionState:ld,useOptimistic:function(e,t){var a=lt();return Wf(a,$e,e,t)},useMemoCache:Rr,useCacheRefresh:_d};qr.useEffectEvent=cd;var Td={readContext:yt,use:Es,useCallback:md,useContext:yt,useEffect:Mr,useImperativeHandle:hd,useInsertionEffect:od,useLayoutEffect:fd,useMemo:gd,useReducer:Ar,useRef:ud,useState:function(){return Ar(Ra)},useDebugValue:Lr,useDeferredValue:function(e,t){var a=lt();return $e===null?Ur(a,e,t):pd(a,$e.memoizedState,e,t)},useTransition:function(){var e=Ar(Ra)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Xf,useId:Sd,useHostTransitionStatus:Br,useFormState:sd,useActionState:sd,useOptimistic:function(e,t){var a=lt();return $e!==null?Wf(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Rr,useCacheRefresh:_d};Td.useEffectEvent=cd;function $r(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yr={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Vt(),i=en(n);i.payload=t,a!=null&&(i.callback=a),t=tn(e,i,n),t!==null&&(Ot(t,e,n),ii(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Vt(),i=en(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=tn(e,i,n),t!==null&&(Ot(t,e,n),ii(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Vt(),n=en(a);n.tag=2,t!=null&&(n.callback=t),t=tn(e,n,a),t!==null&&(Ot(t,e,a),ii(t,e,a))}};function wd(e,t,a,n,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!Wl(a,n)||!Wl(i,r):!0}function Cd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Yr.enqueueReplaceState(t,t.state,null)}function Un(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Rd(e){is(e)}function zd(e){console.error(e)}function Ad(e){is(e)}function Cs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Od(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Vr(e,t,a){return a=en(a),a.tag=3,a.payload={element:null},a.callback=function(){Cs(e,t)},a}function Dd(e){return e=en(e),e.tag=3,e}function Md(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=n.value;e.payload=function(){return i(r)},e.callback=function(){Od(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Od(t,a,n),typeof i!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var v=n.stack;this.componentDidCatch(n.value,{componentStack:v!==null?v:""})})}function yy(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&il(t,a,i,!0),a=kt.current,a!==null){switch(a.tag){case 31:case 13:return ta===null?qs():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===gs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),mc(e,n,i)),!1;case 22:return a.flags|=65536,n===gs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),mc(e,n,i)),!1}throw Error(u(435,a.tag))}return mc(e,n,i),qs(),!1}if(ze)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==rr&&(e=Error(u(422),{cause:n}),ei(Wt(e,a)))):(n!==rr&&(t=Error(u(423),{cause:n}),ei(Wt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Wt(n,a),i=Vr(e.stateNode,n,i),br(e,i),at!==4&&(at=2)),!1;var r=Error(u(520),{cause:n});if(r=Wt(r,a),bi===null?bi=[r]:bi.push(r),at!==4&&(at=2),t===null)return!0;n=Wt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Vr(a.stateNode,n,e),br(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(rn===null||!rn.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Dd(i),Md(i,e,a,n),br(a,i),!1}a=a.return}while(a!==null);return!1}var Gr=Error(u(461)),rt=!1;function vt(e,t,a,n){t.child=e===null?Bf(t,null,a,n):Mn(t,e.child,a,n)}function Ld(e,t,a,n,i){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var v in n)v!=="ref"&&(d[v]=n[v])}else d=n;return zn(t),n=Nr(e,t,a,d,r,i),v=Tr(),e!==null&&!rt?(wr(e,t,i),za(e,t,i)):(ze&&v&&sr(t),t.flags|=1,vt(e,t,n,i),t.child)}function Ud(e,t,a,n,i){if(e===null){var r=a.type;return typeof r=="function"&&!nr(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Hd(e,t,r,n,i)):(e=cs(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ir(e,i)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:Wl,a(d,n)&&e.ref===t.ref)return za(e,t,i)}return t.flags|=1,e=ja(r,n),e.ref=t.ref,e.return=t,t.child=e}function Hd(e,t,a,n,i){if(e!==null){var r=e.memoizedProps;if(Wl(r,n)&&e.ref===t.ref)if(rt=!1,t.pendingProps=n=r,Ir(e,i))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,za(e,t,i)}return Xr(e,t,a,n,i)}function Bd(e,t,a,n){var i=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~r}else n=0,t.child=null;return kd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hs(t,r!==null?r.cachePool:null),r!==null?$f(t,r):_r(),Yf(t);else return n=t.lanes=536870912,kd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(hs(t,r.cachePool),$f(t,r),nn(),t.memoizedState=null):(e!==null&&hs(t,null),_r(),nn());return vt(e,t,i,a),t.child}function di(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kd(e,t,a,n,i){var r=gr();return r=r===null?null:{parent:st._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&hs(t,null),_r(),Yf(t),e!==null&&il(e,t,n,!0),t.childLanes=i,null}function Rs(e,t){return t=As({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qd(e,t,a){return Mn(t,e.child,null,a),e=Rs(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function vy(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(n.mode==="hidden")return e=Rs(t,n),t.lanes=536870912,di(null,e);if(Er(t),(e=Ze)?(e=Ih(e,ea),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:ma,overflow:ga}:null,retryLane:536870912,hydrationErrors:null},a=Ef(e),a.return=t,t.child=a,pt=t,Ze=null)):e=null,e===null)throw Wa(t);return t.lanes=536870912,null}return Rs(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(Er(t),i)if(t.flags&256)t.flags&=-257,t=qd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(rt||il(e,t,a,!1),i=(a&e.childLanes)!==0,rt||i){if(n=Ge,n!==null&&(d=Ro(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,Tn(e,d),Ot(n,e,d),Gr;qs(),t=qd(e,t,a)}else e=r.treeContext,Ze=aa(d.nextSibling),pt=t,ze=!0,Fa=null,ea=!1,e!==null&&Tf(t,e),t=Rs(t,n),t.flags|=4096;return t}return e=ja(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Xr(e,t,a,n,i){return zn(t),a=Nr(e,t,a,n,void 0,i),n=Tr(),e!==null&&!rt?(wr(e,t,i),za(e,t,i)):(ze&&n&&sr(t),t.flags|=1,vt(e,t,a,i),t.child)}function $d(e,t,a,n,i,r){return zn(t),t.updateQueue=null,a=Gf(t,n,a,i),Vf(e),n=Tr(),e!==null&&!rt?(wr(e,t,r),za(e,t,r)):(ze&&n&&sr(t),t.flags|=1,vt(e,t,a,r),t.child)}function Yd(e,t,a,n,i){if(zn(t),t.stateNode===null){var r=tl,d=a.contextType;typeof d=="object"&&d!==null&&(r=yt(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Yr,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},yr(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?yt(d):tl,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&($r(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Yr.enqueueReplaceState(r,r.state,null),ui(t,n,r,i),si(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var v=t.memoizedProps,x=Un(a,v);r.props=x;var z=r.context,B=a.contextType;d=tl,typeof B=="object"&&B!==null&&(d=yt(B));var $=a.getDerivedStateFromProps;B=typeof $=="function"||typeof r.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,B||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(v||z!==d)&&Cd(t,r,n,d),Pa=!1;var A=t.memoizedState;r.state=A,ui(t,n,r,i),si(),z=t.memoizedState,v||A!==z||Pa?(typeof $=="function"&&($r(t,a,$,n),z=t.memoizedState),(x=Pa||wd(t,a,x,n,A,z,d))?(B||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=z),r.props=n,r.state=z,r.context=d,n=x):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,vr(e,t),d=t.memoizedProps,B=Un(a,d),r.props=B,$=t.pendingProps,A=r.context,z=a.contextType,x=tl,typeof z=="object"&&z!==null&&(x=yt(z)),v=a.getDerivedStateFromProps,(z=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==$||A!==x)&&Cd(t,r,n,x),Pa=!1,A=t.memoizedState,r.state=A,ui(t,n,r,i),si();var L=t.memoizedState;d!==$||A!==L||Pa||e!==null&&e.dependencies!==null&&fs(e.dependencies)?(typeof v=="function"&&($r(t,a,v,n),L=t.memoizedState),(B=Pa||wd(t,a,B,n,A,L,x)||e!==null&&e.dependencies!==null&&fs(e.dependencies))?(z||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,L,x),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,L,x)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=L),r.props=n,r.state=L,r.context=x,n=B):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,zs(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=Mn(t,e.child,null,i),t.child=Mn(t,null,a,i)):vt(e,t,a,i),t.memoizedState=r.state,e=t.child):e=za(e,t,i),e}function Vd(e,t,a,n){return Cn(),t.flags|=256,vt(e,t,a,n),t.child}var Qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kr(e){return{baseLanes:e,cachePool:Of()}}function Zr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Yt),e}function Gd(e,t,a){var n=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?an(t):nn(),(e=Ze)?(e=Ih(e,ea),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:ma,overflow:ga}:null,retryLane:536870912,hydrationErrors:null},a=Ef(e),a.return=t,t.child=a,pt=t,Ze=null)):e=null,e===null)throw Wa(t);return zc(e)?t.lanes=32:t.lanes=536870912,null}var v=n.children;return n=n.fallback,i?(nn(),i=t.mode,v=As({mode:"hidden",children:v},i),n=wn(n,i,a,null),v.return=t,n.return=t,v.sibling=n,t.child=v,n=t.child,n.memoizedState=Kr(a),n.childLanes=Zr(e,d,a),t.memoizedState=Qr,di(null,n)):(an(t),Jr(t,v))}var x=e.memoizedState;if(x!==null&&(v=x.dehydrated,v!==null)){if(r)t.flags&256?(an(t),t.flags&=-257,t=Fr(e,t,a)):t.memoizedState!==null?(nn(),t.child=e.child,t.flags|=128,t=null):(nn(),v=n.fallback,i=t.mode,n=As({mode:"visible",children:n.children},i),v=wn(v,i,a,null),v.flags|=2,n.return=t,v.return=t,n.sibling=v,t.child=n,Mn(t,e.child,null,a),n=t.child,n.memoizedState=Kr(a),n.childLanes=Zr(e,d,a),t.memoizedState=Qr,t=di(null,n));else if(an(t),zc(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var z=d.dgst;d=z,n=Error(u(419)),n.stack="",n.digest=d,ei({value:n,source:null,stack:null}),t=Fr(e,t,a)}else if(rt||il(e,t,a,!1),d=(a&e.childLanes)!==0,rt||d){if(d=Ge,d!==null&&(n=Ro(d,a),n!==0&&n!==x.retryLane))throw x.retryLane=n,Tn(e,n),Ot(d,e,n),Gr;Rc(v)||qs(),t=Fr(e,t,a)}else Rc(v)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Ze=aa(v.nextSibling),pt=t,ze=!0,Fa=null,ea=!1,e!==null&&Tf(t,e),t=Jr(t,n.children),t.flags|=4096);return t}return i?(nn(),v=n.fallback,i=t.mode,x=e.child,z=x.sibling,n=ja(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&65011712,z!==null?v=ja(z,v):(v=wn(v,i,a,null),v.flags|=2),v.return=t,n.return=t,n.sibling=v,t.child=n,di(null,n),n=t.child,v=e.child.memoizedState,v===null?v=Kr(a):(i=v.cachePool,i!==null?(x=st._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=Of(),v={baseLanes:v.baseLanes|a,cachePool:i}),n.memoizedState=v,n.childLanes=Zr(e,d,a),t.memoizedState=Qr,di(e.child,n)):(an(t),a=e.child,e=a.sibling,a=ja(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Jr(e,t){return t=As({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function As(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Fr(e,t,a){return Mn(t,e.child,null,a),e=Jr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),fr(e.return,t,a)}function Wr(e,t,a,n,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=i,d.treeForkCount=r)}function Qd(e,t,a){var n=t.pendingProps,i=n.revealOrder,r=n.tail;n=n.children;var d=nt.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,Q(nt,d),vt(e,t,n,a),n=ze?Pl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xd(e,a,t);else if(e.tag===19)Xd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&bs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Wr(t,!1,i,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Wr(t,!0,a,null,r,n);break;case"together":Wr(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function za(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),un|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(il(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=ja(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ja(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fs(e)))}function by(e,t,a){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),Ia(t,st,e.memoizedState.cache),Cn();break;case 27:case 5:da(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:Ia(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Er(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(an(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Gd(e,t,a):(an(t),e=za(e,t,a),e!==null?e.sibling:null);an(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(il(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Qd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(nt,nt.current),n)break;return null;case 22:return t.lanes=0,Bd(e,t,a,t.pendingProps);case 24:Ia(t,st,e.memoizedState.cache)}return za(e,t,a)}function Kd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ir(e,a)&&(t.flags&128)===0)return rt=!1,by(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,ze&&(t.flags&1048576)!==0&&Nf(t,Pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=On(t.elementType),t.type=e,typeof e=="function")nr(e)?(n=Un(e,n),t.tag=1,t=Yd(null,t,e,n,a)):(t.tag=0,t=Xr(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===K){t.tag=11,t=Ld(null,t,e,n,a);break e}else if(i===F){t.tag=14,t=Ud(null,t,e,n,a);break e}}throw t=ne(e)||e,Error(u(306,t,""))}}return t;case 0:return Xr(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=Un(n,t.pendingProps),Yd(e,t,n,i,a);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(u(387));n=t.pendingProps;var r=t.memoizedState;i=r.element,vr(e,t),ui(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Ia(t,st,n),n!==r.cache&&dr(t,[st],a,!0),si(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Vd(e,t,n,a);break e}else if(n!==i){i=Wt(Error(u(424)),t),ei(i),t=Vd(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=aa(e.firstChild),pt=t,ze=!0,Fa=null,ea=!0,a=Bf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Cn(),n===i){t=za(e,t,a);break e}vt(e,t,n,a)}t=t.child}return t;case 26:return zs(e,t),e===null?(a=lm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,n=Ks(ye.current).createElement(a),n[gt]=t,n[Tt]=e,bt(n,a,e),ht(n),t.stateNode=n):t.memoizedState=lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return da(t),e===null&&ze&&(n=t.stateNode=tm(t.type,t.pendingProps,ye.current),pt=t,ea=!0,i=Ze,dn(t.type)?(Ac=i,Ze=aa(n.firstChild)):Ze=i),vt(e,t,t.pendingProps.children,a),zs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((i=n=Ze)&&(n=Jy(n,t.type,t.pendingProps,ea),n!==null?(t.stateNode=n,pt=t,Ze=aa(n.firstChild),ea=!1,i=!0):i=!1),i||Wa(t)),da(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,Tc(i,r)?n=null:d!==null&&Tc(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Nr(e,t,oy,null,null,a),wi._currentValue=i),zs(e,t),vt(e,t,n,a),t.child;case 6:return e===null&&ze&&((e=a=Ze)&&(a=Fy(a,t.pendingProps,ea),a!==null?(t.stateNode=a,pt=t,Ze=null,e=!0):e=!1),e||Wa(t)),null;case 13:return Gd(e,t,a);case 4:return ft(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Mn(t,null,n,a):vt(e,t,n,a),t.child;case 11:return Ld(e,t,t.type,t.pendingProps,a);case 7:return vt(e,t,t.pendingProps,a),t.child;case 8:return vt(e,t,t.pendingProps.children,a),t.child;case 12:return vt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ia(t,t.type,n.value),vt(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,zn(t),i=yt(i),n=n(i),t.flags|=1,vt(e,t,n,a),t.child;case 14:return Ud(e,t,t.type,t.pendingProps,a);case 15:return Hd(e,t,t.type,t.pendingProps,a);case 19:return Qd(e,t,a);case 31:return vy(e,t,a);case 22:return Bd(e,t,a,t.pendingProps);case 24:return zn(t),n=yt(st),e===null?(i=gr(),i===null&&(i=Ge,r=hr(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:n,cache:i},yr(t),Ia(t,st,i)):((e.lanes&a)!==0&&(vr(e,t),ui(t,null,null,a),si()),i=e.memoizedState,r=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ia(t,st,n)):(n=r.cache,Ia(t,st,n),n!==i.cache&&dr(t,[st],a,!0))),vt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Aa(e){e.flags|=4}function Pr(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Sh())e.flags|=8192;else throw Dn=gs,pr}else e.flags&=-16777217}function Zd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cm(t))if(Sh())e.flags|=8192;else throw Dn=gs,pr}function Os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?To():536870912,e.lanes|=t,yl|=t)}function hi(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Sy(e,t,a){var n=t.pendingProps;switch(ur(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(st),Ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ll(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr())),Je(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(Aa(t),r!==null?(Je(t),Zd(t,r)):(Je(t),Pr(t,i,null,n,a))):r?r!==e.memoizedState?(Aa(t),Je(t),Zd(t,r)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Aa(t),Je(t),Pr(t,i,e,n,a)),null;case 27:if(V(t),a=ye.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return Je(t),null}e=J.current,ll(t)?wf(t):(e=tm(i,n,a),t.stateNode=e,Aa(t))}return Je(t),null;case 5:if(V(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return Je(t),null}if(r=J.current,ll(t))wf(t);else{var d=Ks(ye.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(i,{is:n.is}):d.createElement(i)}}r[gt]=t,r[Tt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(bt(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Aa(t)}}return Je(t),Pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=ye.current,ll(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=pt,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Gh(e.nodeValue,a)),e||Wa(t,!0)}else e=Ks(e).createTextNode(n),e[gt]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=ll(t),a!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[gt]=t}else Cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Je(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ll(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[gt]=t}else Cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),i=!1}else i=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Os(t,t.updateQueue),Je(t),null);case 4:return Ue(),e===null&&_c(t.stateNode.containerInfo),Je(t),null;case 10:return wa(t.type),Je(t),null;case 19:if(H(nt),n=t.memoizedState,n===null)return Je(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)hi(n,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=bs(e),r!==null){for(t.flags|=128,hi(n,!1),e=r.updateQueue,t.updateQueue=e,Os(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)xf(a,e),a=a.sibling;return Q(nt,nt.current&1|2),ze&&Na(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Ee()>Hs&&(t.flags|=128,i=!0,hi(n,!1),t.lanes=4194304)}else{if(!i)if(e=bs(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Os(t,e),hi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!ze)return Je(t),null}else 2*Ee()-n.renderingStartTime>Hs&&a!==536870912&&(t.flags|=128,i=!0,hi(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Ee(),e.sibling=null,a=nt.current,Q(nt,i?a&1|2:a&1),ze&&Na(t,n.treeForkCount),e):(Je(t),null);case 22:case 23:return qt(t),xr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Os(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&H(An),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wa(st),Je(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function _y(e,t){switch(ur(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(st),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return V(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(nt),null;case 4:return Ue(),null;case 10:return wa(t.type),null;case 22:case 23:return qt(t),xr(),e!==null&&H(An),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(st),null;case 25:return null;default:return null}}function Jd(e,t){switch(ur(t),t.tag){case 3:wa(st),Ue();break;case 26:case 27:case 5:V(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:H(nt);break;case 10:wa(t.type);break;case 22:case 23:qt(t),xr(),e!==null&&H(An);break;case 24:wa(st)}}function mi(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==i)}}catch(v){Be(t,t.return,v)}}function ln(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var d=n.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,i=t;var x=a,z=v;try{z()}catch(B){Be(i,x,B)}}}n=n.next}while(n!==r)}}catch(B){Be(t,t.return,B)}}function Fd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{qf(t,a)}catch(n){Be(e,e.return,n)}}}function Wd(e,t,a){a.props=Un(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Be(e,t,n)}}function gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Be(e,t,i)}}function pa(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Be(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Be(e,t,i)}else a.current=null}function Id(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Be(e,e.return,i)}}function ec(e,t,a){try{var n=e.stateNode;Vy(n,e.type,a,t),n[Tt]=t}catch(i){Be(e,e.return,i)}}function Pd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dn(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&dn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ac(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=xa));else if(n!==4&&(n===27&&dn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ac(e,t,a),e=e.sibling;e!==null;)ac(e,t,a),e=e.sibling}function Ds(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&dn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ds(e,t,a),e=e.sibling;e!==null;)Ds(e,t,a),e=e.sibling}function eh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);bt(t,n,a),t[gt]=e,t[Tt]=a}catch(r){Be(e,e.return,r)}}var Oa=!1,ct=!1,nc=!1,th=typeof WeakSet=="function"?WeakSet:Set,mt=null;function xy(e,t){if(e=e.containerInfo,jc=eu,e=hf(e),Fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,v=-1,x=-1,z=0,B=0,$=e,A=null;t:for(;;){for(var L;$!==a||i!==0&&$.nodeType!==3||(v=d+i),$!==r||n!==0&&$.nodeType!==3||(x=d+n),$.nodeType===3&&(d+=$.nodeValue.length),(L=$.firstChild)!==null;)A=$,$=L;for(;;){if($===e)break t;if(A===a&&++z===i&&(v=d),A===r&&++B===n&&(x=d),(L=$.nextSibling)!==null)break;$=A,A=$.parentNode}$=L}a=v===-1||x===-1?null:{start:v,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Nc={focusedElem:e,selectionRange:a},eu=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var I=Un(a.type,i);e=n.getSnapshotBeforeUpdate(I,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Be(a,a.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Cc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function ah(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ma(e,a),n&4&&mi(5,a);break;case 1:if(Ma(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Be(a,a.return,d)}else{var i=Un(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Be(a,a.return,d)}}n&64&&Fd(a),n&512&&gi(a,a.return);break;case 3:if(Ma(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{qf(e,t)}catch(d){Be(a,a.return,d)}}break;case 27:t===null&&n&4&&eh(a);case 26:case 5:Ma(e,a),t===null&&n&4&&Id(a),n&512&&gi(a,a.return);break;case 12:Ma(e,a);break;case 31:Ma(e,a),n&4&&ih(e,a);break;case 13:Ma(e,a),n&4&&sh(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ay.bind(null,a),Wy(e,a))));break;case 22:if(n=a.memoizedState!==null||Oa,!n){t=t!==null&&t.memoizedState!==null||ct,i=Oa;var r=ct;Oa=n,(ct=t)&&!r?La(e,a,(a.subtreeFlags&8772)!==0):Ma(e,a),Oa=i,ct=r}break;case 30:break;default:Ma(e,a)}}function nh(e){var t=e.alternate;t!==null&&(e.alternate=null,nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Du(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ct=!1;function Da(e,t,a){for(a=a.child;a!==null;)lh(e,t,a),a=a.sibling}function lh(e,t,a){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount($n,a)}catch{}switch(a.tag){case 26:ct||pa(a,t),Da(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||pa(a,t);var n=Pe,i=Ct;dn(a.type)&&(Pe=a.stateNode,Ct=!1),Da(e,t,a),ji(a.stateNode),Pe=n,Ct=i;break;case 5:ct||pa(a,t);case 6:if(n=Pe,i=Ct,Pe=null,Da(e,t,a),Pe=n,Ct=i,Pe!==null)if(Ct)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(a.stateNode)}catch(r){Be(a,t,r)}else try{Pe.removeChild(a.stateNode)}catch(r){Be(a,t,r)}break;case 18:Pe!==null&&(Ct?(e=Pe,Fh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nl(e)):Fh(Pe,a.stateNode));break;case 4:n=Pe,i=Ct,Pe=a.stateNode.containerInfo,Ct=!0,Da(e,t,a),Pe=n,Ct=i;break;case 0:case 11:case 14:case 15:ln(2,a,t),ct||ln(4,a,t),Da(e,t,a);break;case 1:ct||(pa(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Wd(a,t,n)),Da(e,t,a);break;case 21:Da(e,t,a);break;case 22:ct=(n=ct)||a.memoizedState!==null,Da(e,t,a),ct=n;break;default:Da(e,t,a)}}function ih(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nl(e)}catch(a){Be(t,t.return,a)}}}function sh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nl(e)}catch(a){Be(t,t.return,a)}}function Ey(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new th),t;default:throw Error(u(435,e.tag))}}function Ms(e,t){var a=Ey(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Oy.bind(null,e,n);n.then(i,i)}})}function Rt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],r=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(dn(v.type)){Pe=v.stateNode,Ct=!1;break e}break;case 5:Pe=v.stateNode,Ct=!1;break e;case 3:case 4:Pe=v.stateNode.containerInfo,Ct=!0;break e}v=v.return}if(Pe===null)throw Error(u(160));lh(r,d,i),Pe=null,Ct=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)uh(t,e),t=t.sibling}var ia=null;function uh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rt(t,e),zt(e),n&4&&(ln(3,e,e.return),mi(3,e),ln(5,e,e.return));break;case 1:Rt(t,e),zt(e),n&512&&(ct||a===null||pa(a,a.return)),n&64&&Oa&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=ia;if(Rt(t,e),zt(e),n&512&&(ct||a===null||pa(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Yl]||r[gt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(n),i.head.insertBefore(r,i.querySelector("head > title"))),bt(r,n,a),r[gt]=e,ht(r),n=r;break e;case"link":var d=um("link","href",i).get(n+(a.href||""));if(d){for(var v=0;v<d.length;v++)if(r=d[v],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(v,1);break t}}r=i.createElement(n),bt(r,n,a),i.head.appendChild(r);break;case"meta":if(d=um("meta","content",i).get(n+(a.content||""))){for(v=0;v<d.length;v++)if(r=d[v],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(v,1);break t}}r=i.createElement(n),bt(r,n,a),i.head.appendChild(r);break;default:throw Error(u(468,n))}r[gt]=e,ht(r),n=r}e.stateNode=n}else rm(i,e.type,e.stateNode);else e.stateNode=sm(i,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?rm(i,e.type,e.stateNode):sm(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ec(e,e.memoizedProps,a.memoizedProps)}break;case 27:Rt(t,e),zt(e),n&512&&(ct||a===null||pa(a,a.return)),a!==null&&n&4&&ec(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Rt(t,e),zt(e),n&512&&(ct||a===null||pa(a,a.return)),e.flags&32){i=e.stateNode;try{Zn(i,"")}catch(I){Be(e,e.return,I)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,ec(e,i,a!==null?a.memoizedProps:i)),n&1024&&(nc=!0);break;case 6:if(Rt(t,e),zt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(I){Be(e,e.return,I)}}break;case 3:if(Fs=null,i=ia,ia=Zs(t.containerInfo),Rt(t,e),ia=i,zt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Nl(t.containerInfo)}catch(I){Be(e,e.return,I)}nc&&(nc=!1,rh(e));break;case 4:n=ia,ia=Zs(e.stateNode.containerInfo),Rt(t,e),zt(e),ia=n;break;case 12:Rt(t,e),zt(e);break;case 31:Rt(t,e),zt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ms(e,n)));break;case 13:Rt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Us=Ee()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ms(e,n)));break;case 22:i=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,z=Oa,B=ct;if(Oa=z||i,ct=B||x,Rt(t,e),ct=B,Oa=z,zt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||x||Oa||ct||Hn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(r=x.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=x.stateNode;var $=x.memoizedProps.style,A=$!=null&&$.hasOwnProperty("display")?$.display:null;v.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(I){Be(x,x.return,I)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(I){Be(x,x.return,I)}}}else if(t.tag===18){if(a===null){x=t;try{var L=x.stateNode;i?Wh(L,!0):Wh(x.stateNode,!1)}catch(I){Be(x,x.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Ms(e,a))));break;case 19:Rt(t,e),zt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ms(e,n)));break;case 30:break;case 21:break;default:Rt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Pd(n)){a=n;break}n=n.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var i=a.stateNode,r=tc(e);Ds(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(Zn(d,""),a.flags&=-33);var v=tc(e);Ds(e,v,d);break;case 3:case 4:var x=a.stateNode.containerInfo,z=tc(e);ac(e,z,x);break;default:throw Error(u(161))}}catch(B){Be(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ah(e,t.alternate,t),t=t.sibling}function Hn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ln(4,t,t.return),Hn(t);break;case 1:pa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Wd(t,t.return,a),Hn(t);break;case 27:ji(t.stateNode);case 26:case 5:pa(t,t.return),Hn(t);break;case 22:t.memoizedState===null&&Hn(t);break;case 30:Hn(t);break;default:Hn(t)}e=e.sibling}}function La(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:La(i,r,a),mi(4,r);break;case 1:if(La(i,r,a),n=r,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){Be(n,n.return,z)}if(n=r,i=n.updateQueue,i!==null){var v=n.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)kf(x[i],v)}catch(z){Be(n,n.return,z)}}a&&d&64&&Fd(r),gi(r,r.return);break;case 27:eh(r);case 26:case 5:La(i,r,a),a&&n===null&&d&4&&Id(r),gi(r,r.return);break;case 12:La(i,r,a);break;case 31:La(i,r,a),a&&d&4&&ih(i,r);break;case 13:La(i,r,a),a&&d&4&&sh(i,r);break;case 22:r.memoizedState===null&&La(i,r,a),gi(r,r.return);break;case 30:break;default:La(i,r,a)}t=t.sibling}}function lc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ti(a))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ti(e))}function sa(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ch(e,t,a,n),t=t.sibling}function ch(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:sa(e,t,a,n),i&2048&&mi(9,t);break;case 1:sa(e,t,a,n);break;case 3:sa(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ti(e)));break;case 12:if(i&2048){sa(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,v=r.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Be(t,t.return,x)}}else sa(e,t,a,n);break;case 31:sa(e,t,a,n);break;case 13:sa(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?sa(e,t,a,n):pi(e,t):r._visibility&2?sa(e,t,a,n):(r._visibility|=2,ml(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&lc(d,t);break;case 24:sa(e,t,a,n),i&2048&&ic(t.alternate,t);break;default:sa(e,t,a,n)}}function ml(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,v=a,x=n,z=d.flags;switch(d.tag){case 0:case 11:case 15:ml(r,d,v,x,i),mi(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?ml(r,d,v,x,i):pi(r,d):(B._visibility|=2,ml(r,d,v,x,i)),i&&z&2048&&lc(d.alternate,d);break;case 24:ml(r,d,v,x,i),i&&z&2048&&ic(d.alternate,d);break;default:ml(r,d,v,x,i)}t=t.sibling}}function pi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:pi(a,n),i&2048&&lc(n.alternate,n);break;case 24:pi(a,n),i&2048&&ic(n.alternate,n);break;default:pi(a,n)}t=t.sibling}}var yi=8192;function gl(e,t,a){if(e.subtreeFlags&yi)for(e=e.child;e!==null;)oh(e,t,a),e=e.sibling}function oh(e,t,a){switch(e.tag){case 26:gl(e,t,a),e.flags&yi&&e.memoizedState!==null&&cv(a,ia,e.memoizedState,e.memoizedProps);break;case 5:gl(e,t,a);break;case 3:case 4:var n=ia;ia=Zs(e.stateNode.containerInfo),gl(e,t,a),ia=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=yi,yi=16777216,gl(e,t,a),yi=n):gl(e,t,a));break;default:gl(e,t,a)}}function fh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];mt=n,hh(n,e)}fh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dh(e),e=e.sibling}function dh(e){switch(e.tag){case 0:case 11:case 15:vi(e),e.flags&2048&&ln(9,e,e.return);break;case 3:vi(e);break;case 12:vi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ls(e)):vi(e);break;default:vi(e)}}function Ls(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];mt=n,hh(n,e)}fh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ln(8,t,t.return),Ls(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ls(t));break;default:Ls(t)}e=e.sibling}}function hh(e,t){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:ln(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ti(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,mt=n;else e:for(a=e;mt!==null;){n=mt;var i=n.sibling,r=n.return;if(nh(n),n===a){mt=null;break e}if(i!==null){i.return=r,mt=i;break e}mt=r}}}var jy={getCacheForType:function(e){var t=yt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return yt(st).controller.signal}},Ny=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ge=null,je=null,Ce=0,He=0,$t=null,sn=!1,pl=!1,sc=!1,Ua=0,at=0,un=0,Bn=0,uc=0,Yt=0,yl=0,bi=null,At=null,rc=!1,Us=0,mh=0,Hs=1/0,Bs=null,rn=null,dt=0,cn=null,vl=null,Ha=0,cc=0,oc=null,gh=null,Si=0,fc=null;function Vt(){return(Me&2)!==0&&Ce!==0?Ce&-Ce:M.T!==null?yc():zo()}function ph(){if(Yt===0)if((Ce&536870912)===0||ze){var e=Qi;Qi<<=1,(Qi&3932160)===0&&(Qi=262144),Yt=e}else Yt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Yt}function Ot(e,t,a){(e===Ge&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bl(e,0),on(e,Ce,Yt,!1)),$l(e,a),((Me&2)===0||e!==Ge)&&(e===Ge&&((Me&2)===0&&(Bn|=a),at===4&&on(e,Ce,Yt,!1)),ya(e))}function yh(e,t,a){if((Me&6)!==0)throw Error(u(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ql(e,t),i=n?Cy(e,t):hc(e,t,!0),r=n;do{if(i===0){pl&&!n&&on(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Ty(a)){i=hc(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;i=bi;var x=v.current.memoizedState.isDehydrated;if(x&&(bl(v,d).flags|=256),d=hc(v,d,!1),d!==2){if(sc&&!x){v.errorRecoveryDisabledLanes|=r,Bn|=r,i=4;break e}r=At,At=i,r!==null&&(At===null?At=r:At.push.apply(At,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){bl(e,0),on(e,t,0,!0);break}e:{switch(n=e,r=i,r){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:on(n,t,Yt,!sn);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(i=Us+300-Ee(),10<i)){if(on(n,t,Yt,!sn),Zi(n,0,!0)!==0)break e;Ha=t,n.timeoutHandle=Zh(vh.bind(null,n,a,At,Bs,rc,t,Yt,Bn,yl,sn,r,"Throttled",-0,0),i);break e}vh(n,a,At,Bs,rc,t,Yt,Bn,yl,sn,r,null,-0,0)}}break}while(!0);ya(e)}function vh(e,t,a,n,i,r,d,v,x,z,B,$,A,L){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xa},oh(t,r,$);var I=(r&62914560)===r?Us-Ee():(r&4194048)===r?mh-Ee():0;if(I=ov($,I),I!==null){Ha=r,e.cancelPendingCommit=I(Th.bind(null,e,t,r,a,n,i,d,v,x,B,$,null,A,L)),on(e,r,d,!z);return}}Th(e,t,r,a,n,i,d,v,x)}function Ty(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],r=i.getSnapshot;i=i.value;try{if(!Ht(r(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t,a,n){t&=~uc,t&=~Bn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var r=31-Ut(i),d=1<<r;n[r]=-1,i&=~d}a!==0&&wo(e,a,t)}function ks(){return(Me&6)===0?(_i(0),!1):!0}function dc(){if(je!==null){if(He===0)var e=je.return;else e=je,Ta=Rn=null,Cr(e),cl=null,ni=0,e=je;for(;e!==null;)Jd(e.alternate,e),e=e.return;je=null}}function bl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Qy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ha=0,dc(),Ge=e,je=a=ja(e.current,null),Ce=t,He=0,$t=null,sn=!1,pl=ql(e,t),sc=!1,yl=Yt=uc=Bn=un=at=0,At=bi=null,rc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Ut(n),r=1<<i;t|=e[i],n&=~r}return Ua=t,ss(),a}function bh(e,t){ve=null,M.H=fi,t===rl||t===ms?(t=Lf(),He=3):t===pr?(t=Lf(),He=4):He=t===Gr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,je===null&&(at=1,Cs(e,Wt(t,e.current)))}function Sh(){var e=kt.current;return e===null?!0:(Ce&4194048)===Ce?ta===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===ta:!1}function _h(){var e=M.H;return M.H=fi,e===null?fi:e}function xh(){var e=M.A;return M.A=jy,e}function qs(){at=4,sn||(Ce&4194048)!==Ce&&kt.current!==null||(pl=!0),(un&134217727)===0&&(Bn&134217727)===0||Ge===null||on(Ge,Ce,Yt,!1)}function hc(e,t,a){var n=Me;Me|=2;var i=_h(),r=xh();(Ge!==e||Ce!==t)&&(Bs=null,bl(e,t)),t=!1;var d=at;e:do try{if(He!==0&&je!==null){var v=je,x=$t;switch(He){case 8:dc(),d=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var z=He;if(He=0,$t=null,Sl(e,v,x,z),a&&pl){d=0;break e}break;default:z=He,He=0,$t=null,Sl(e,v,x,z)}}wy(),d=at;break}catch(B){bh(e,B)}while(!0);return t&&e.shellSuspendCounter++,Ta=Rn=null,Me=n,M.H=i,M.A=r,je===null&&(Ge=null,Ce=0,ss()),d}function wy(){for(;je!==null;)Eh(je)}function Cy(e,t){var a=Me;Me|=2;var n=_h(),i=xh();Ge!==e||Ce!==t?(Bs=null,Hs=Ee()+500,bl(e,t)):pl=ql(e,t);e:do try{if(He!==0&&je!==null){t=je;var r=$t;t:switch(He){case 1:He=0,$t=null,Sl(e,t,r,1);break;case 2:case 9:if(Df(r)){He=0,$t=null,jh(t);break}t=function(){He!==2&&He!==9||Ge!==e||(He=7),ya(e)},r.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Df(r)?(He=0,$t=null,jh(t)):(He=0,$t=null,Sl(e,t,r,7));break;case 5:var d=null;switch(je.tag){case 26:d=je.memoizedState;case 5:case 27:var v=je;if(d?cm(d):v.stateNode.complete){He=0,$t=null;var x=v.sibling;if(x!==null)je=x;else{var z=v.return;z!==null?(je=z,$s(z)):je=null}break t}}He=0,$t=null,Sl(e,t,r,5);break;case 6:He=0,$t=null,Sl(e,t,r,6);break;case 8:dc(),at=6;break e;default:throw Error(u(462))}}Ry();break}catch(B){bh(e,B)}while(!0);return Ta=Rn=null,M.H=n,M.A=i,Me=a,je!==null?0:(Ge=null,Ce=0,ss(),at)}function Ry(){for(;je!==null&&!ie();)Eh(je)}function Eh(e){var t=Kd(e.alternate,e,Ua);e.memoizedProps=e.pendingProps,t===null?$s(e):je=t}function jh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=$d(a,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=$d(a,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:Cr(t);default:Jd(a,t),t=je=xf(t,Ua),t=Kd(a,t,Ua)}e.memoizedProps=e.pendingProps,t===null?$s(e):je=t}function Sl(e,t,a,n){Ta=Rn=null,Cr(t),cl=null,ni=0;var i=t.return;try{if(yy(e,i,t,a,Ce)){at=1,Cs(e,Wt(a,e.current)),je=null;return}}catch(r){if(i!==null)throw je=i,r;at=1,Cs(e,Wt(a,e.current)),je=null;return}t.flags&32768?(ze||n===1?e=!0:pl||(Ce&536870912)!==0?e=!1:(sn=e=!0,(n===2||n===9||n===3||n===6)&&(n=kt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Nh(t,e)):$s(t)}function $s(e){var t=e;do{if((t.flags&32768)!==0){Nh(t,sn);return}e=t.return;var a=Sy(t.alternate,t,Ua);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);at===0&&(at=5)}function Nh(e,t){do{var a=_y(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);at=6,je=null}function Th(e,t,a,n,i,r,d,v,x){e.cancelPendingCommit=null;do Ys();while(dt!==0);if((Me&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(r=t.lanes|t.childLanes,r|=tr,rp(e,a,r,d,v,x),e===Ge&&(je=Ge=null,Ce=0),vl=t,cn=e,Ha=a,cc=r,oc=i,gh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dy(Lt,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,i=G.p,G.p=2,d=Me,Me|=4;try{xy(e,t,a)}finally{Me=d,G.p=i,M.T=n}}dt=1,wh(),Ch(),Rh()}}function wh(){if(dt===1){dt=0;var e=cn,t=vl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var n=G.p;G.p=2;var i=Me;Me|=4;try{uh(t,e);var r=Nc,d=hf(e.containerInfo),v=r.focusedElem,x=r.selectionRange;if(d!==v&&v&&v.ownerDocument&&df(v.ownerDocument.documentElement,v)){if(x!==null&&Fu(v)){var z=x.start,B=x.end;if(B===void 0&&(B=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(B,v.value.length);else{var $=v.ownerDocument||document,A=$&&$.defaultView||window;if(A.getSelection){var L=A.getSelection(),I=v.textContent.length,ue=Math.min(x.start,I),Ve=x.end===void 0?ue:Math.min(x.end,I);!L.extend&&ue>Ve&&(d=Ve,Ve=ue,ue=d);var w=ff(v,ue),j=ff(v,Ve);if(w&&j&&(L.rangeCount!==1||L.anchorNode!==w.node||L.anchorOffset!==w.offset||L.focusNode!==j.node||L.focusOffset!==j.offset)){var R=$.createRange();R.setStart(w.node,w.offset),L.removeAllRanges(),ue>Ve?(L.addRange(R),L.extend(j.node,j.offset)):(R.setEnd(j.node,j.offset),L.addRange(R))}}}}for($=[],L=v;L=L.parentNode;)L.nodeType===1&&$.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<$.length;v++){var q=$[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}eu=!!jc,Nc=jc=null}finally{Me=i,G.p=n,M.T=a}}e.current=t,dt=2}}function Ch(){if(dt===2){dt=0;var e=cn,t=vl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var n=G.p;G.p=2;var i=Me;Me|=4;try{ah(e,t.alternate,t)}finally{Me=i,G.p=n,M.T=a}}dt=3}}function Rh(){if(dt===4||dt===3){dt=0,be();var e=cn,t=vl,a=Ha,n=gh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,vl=cn=null,zh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(rn=null),Au(a),t=t.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot($n,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=M.T,i=G.p,G.p=2,M.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var v=n[d];r(v.value,{componentStack:v.stack})}}finally{M.T=t,G.p=i}}(Ha&3)!==0&&Ys(),ya(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===fc?Si++:(Si=0,fc=e):Si=0,_i(0)}}function zh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ti(t)))}function Ys(){return wh(),Ch(),Rh(),Ah()}function Ah(){if(dt!==5)return!1;var e=cn,t=cc;cc=0;var a=Au(Ha),n=M.T,i=G.p;try{G.p=32>a?32:a,M.T=null,a=oc,oc=null;var r=cn,d=Ha;if(dt=0,vl=cn=null,Ha=0,(Me&6)!==0)throw Error(u(331));var v=Me;if(Me|=4,dh(r.current),ch(r,r.current,d,a),Me=v,_i(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot($n,r)}catch{}return!0}finally{G.p=i,M.T=n,zh(e,t)}}function Oh(e,t,a){t=Wt(a,t),t=Vr(e.stateNode,t,2),e=tn(e,t,2),e!==null&&($l(e,2),ya(e))}function Be(e,t,a){if(e.tag===3)Oh(e,e,a);else for(;t!==null;){if(t.tag===3){Oh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(rn===null||!rn.has(n))){e=Wt(a,e),a=Dd(2),n=tn(t,a,2),n!==null&&(Md(a,n,t,e),$l(n,2),ya(n));break}}t=t.return}}function mc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Ny;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(sc=!0,i.add(a),e=zy.bind(null,e,t,a),t.then(e,e))}function zy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Ce&a)===a&&(at===4||at===3&&(Ce&62914560)===Ce&&300>Ee()-Us?(Me&2)===0&&bl(e,0):uc|=a,yl===Ce&&(yl=0)),ya(e)}function Dh(e,t){t===0&&(t=To()),e=Tn(e,t),e!==null&&($l(e,t),ya(e))}function Ay(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Dh(e,a)}function Oy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),Dh(e,a)}function Dy(e,t){return Hl(e,t)}var Vs=null,_l=null,gc=!1,Gs=!1,pc=!1,fn=0;function ya(e){e!==_l&&e.next===null&&(_l===null?Vs=_l=e:_l=_l.next=e),Gs=!0,gc||(gc=!0,Ly())}function _i(e,t){if(!pc&&Gs){pc=!0;do for(var a=!1,n=Vs;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var d=n.suspendedLanes,v=n.pingedLanes;r=(1<<31-Ut(42|e)+1)-1,r&=i&~(d&~v),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Hh(n,r))}else r=Ce,r=Zi(n,n===Ge?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||ql(n,r)||(a=!0,Hh(n,r));n=n.next}while(a);pc=!1}}function My(){Mh()}function Mh(){Gs=gc=!1;var e=0;fn!==0&&Xy()&&(e=fn);for(var t=Ee(),a=null,n=Vs;n!==null;){var i=n.next,r=Lh(n,t);r===0?(n.next=null,a===null?Vs=i:a.next=i,i===null&&(_l=a)):(a=n,(e!==0||(r&3)!==0)&&(Gs=!0)),n=i}dt!==0&&dt!==5||_i(e),fn!==0&&(fn=0)}function Lh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ut(r),v=1<<d,x=i[d];x===-1?((v&a)===0||(v&n)!==0)&&(i[d]=up(v,t)):x<=t&&(e.expiredLanes|=v),r&=~v}if(t=Ge,a=Ce,a=Zi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Bl(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ql(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Bl(n),Au(a)){case 2:case 8:a=it;break;case 32:a=Lt;break;case 268435456:a=kl;break;default:a=Lt}return n=Uh.bind(null,e),a=Hl(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Bl(n),e.callbackPriority=2,e.callbackNode=null,2}function Uh(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ys()&&e.callbackNode!==a)return null;var n=Ce;return n=Zi(e,e===Ge?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(yh(e,n,t),Lh(e,Ee()),e.callbackNode!=null&&e.callbackNode===a?Uh.bind(null,e):null)}function Hh(e,t){if(Ys())return null;yh(e,t,!0)}function Ly(){Ky(function(){(Me&6)!==0?Hl(Xe,My):Mh()})}function yc(){if(fn===0){var e=sl;e===0&&(e=Xi,Xi<<=1,(Xi&261888)===0&&(Xi=256)),fn=e}return fn}function Bh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function kh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Uy(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var r=Bh((i[Tt]||null).action),d=n.submitter;d&&(t=(t=d[Tt]||null)?Bh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var v=new as("action","action",null,n,i);e.push({event:v,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(fn!==0){var x=d?kh(i,d):new FormData(i);Hr(a,{pending:!0,data:x,method:i.method,action:r},null,x)}}else typeof r=="function"&&(v.preventDefault(),x=d?kh(i,d):new FormData(i),Hr(a,{pending:!0,data:x,method:i.method,action:r},r,x))},currentTarget:i}]})}}for(var vc=0;vc<er.length;vc++){var bc=er[vc],Hy=bc.toLowerCase(),By=bc[0].toUpperCase()+bc.slice(1);la(Hy,"on"+By)}la(pf,"onAnimationEnd"),la(yf,"onAnimationIteration"),la(vf,"onAnimationStart"),la("dblclick","onDoubleClick"),la("focusin","onFocus"),la("focusout","onBlur"),la(ey,"onTransitionRun"),la(ty,"onTransitionStart"),la(ay,"onTransitionCancel"),la(bf,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function qh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var v=n[d],x=v.instance,z=v.currentTarget;if(v=v.listener,x!==r&&i.isPropagationStopped())break e;r=v,i.currentTarget=z;try{r(i)}catch(B){is(B)}i.currentTarget=null,r=x}else for(d=0;d<n.length;d++){if(v=n[d],x=v.instance,z=v.currentTarget,v=v.listener,x!==r&&i.isPropagationStopped())break e;r=v,i.currentTarget=z;try{r(i)}catch(B){is(B)}i.currentTarget=null,r=x}}}}function Ne(e,t){var a=t[Ou];a===void 0&&(a=t[Ou]=new Set);var n=e+"__bubble";a.has(n)||($h(t,e,2,!1),a.add(n))}function Sc(e,t,a){var n=0;t&&(n|=4),$h(a,e,n,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function _c(e){if(!e[Xs]){e[Xs]=!0,Do.forEach(function(a){a!=="selectionchange"&&(ky.has(a)||Sc(a,!1,e),Sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,Sc("selectionchange",!1,t))}}function $h(e,t,a,n){switch(pm(t)){case 2:var i=hv;break;case 8:i=mv;break;default:i=Uc}a=i.bind(null,t,a,e),i=void 0,!$u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function xc(e,t,a,n,i){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var v=n.stateNode.containerInfo;if(v===i)break;if(d===4)for(d=n.return;d!==null;){var x=d.tag;if((x===3||x===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;v!==null;){if(d=Vn(v),d===null)return;if(x=d.tag,x===5||x===6||x===26||x===27){n=r=d;continue e}v=v.parentNode}}n=n.return}Xo(function(){var z=r,B=ku(a),$=[];e:{var A=Sf.get(e);if(A!==void 0){var L=as,I=e;switch(e){case"keypress":if(es(a)===0)break e;case"keydown":case"keyup":L=Op;break;case"focusin":I="focus",L=Xu;break;case"focusout":I="blur",L=Xu;break;case"beforeblur":case"afterblur":L=Xu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Zo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Lp;break;case pf:case yf:case vf:L=Ep;break;case bf:L=Hp;break;case"scroll":case"scrollend":L=vp;break;case"wheel":L=kp;break;case"copy":case"cut":case"paste":L=Np;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Fo;break;case"toggle":case"beforetoggle":L=$p}var ue=(t&4)!==0,Ve=!ue&&(e==="scroll"||e==="scrollend"),w=ue?A!==null?A+"Capture":null:A;ue=[];for(var j=z,R;j!==null;){var q=j;if(R=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||R===null||w===null||(q=Gl(j,w),q!=null&&ue.push(Ei(j,q,R))),Ve)break;j=j.return}0<ue.length&&(A=new L(A,I,null,a,B),$.push({event:A,listeners:ue}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",A&&a!==Bu&&(I=a.relatedTarget||a.fromElement)&&(Vn(I)||I[Yn]))break e;if((L||A)&&(A=B.window===B?B:(A=B.ownerDocument)?A.defaultView||A.parentWindow:window,L?(I=a.relatedTarget||a.toElement,L=z,I=I?Vn(I):null,I!==null&&(Ve=f(I),ue=I.tag,I!==Ve||ue!==5&&ue!==27&&ue!==6)&&(I=null)):(L=null,I=z),L!==I)){if(ue=Zo,q="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Fo,q="onPointerLeave",w="onPointerEnter",j="pointer"),Ve=L==null?A:Vl(L),R=I==null?A:Vl(I),A=new ue(q,j+"leave",L,a,B),A.target=Ve,A.relatedTarget=R,q=null,Vn(B)===z&&(ue=new ue(w,j+"enter",I,a,B),ue.target=R,ue.relatedTarget=Ve,q=ue),Ve=q,L&&I)t:{for(ue=qy,w=L,j=I,R=0,q=w;q;q=ue(q))R++;q=0;for(var ae=j;ae;ae=ue(ae))q++;for(;0<R-q;)w=ue(w),R--;for(;0<q-R;)j=ue(j),q--;for(;R--;){if(w===j||j!==null&&w===j.alternate){ue=w;break t}w=ue(w),j=ue(j)}ue=null}else ue=null;L!==null&&Yh($,A,L,ue,!1),I!==null&&Ve!==null&&Yh($,Ve,I,ue,!0)}}e:{if(A=z?Vl(z):window,L=A.nodeName&&A.nodeName.toLowerCase(),L==="select"||L==="input"&&A.type==="file")var Oe=lf;else if(af(A))if(sf)Oe=Wp;else{Oe=Jp;var te=Zp}else L=A.nodeName,!L||L.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?z&&Hu(z.elementType)&&(Oe=lf):Oe=Fp;if(Oe&&(Oe=Oe(e,z))){nf($,Oe,a,B);break e}te&&te(e,A,z),e==="focusout"&&z&&A.type==="number"&&z.memoizedProps.value!=null&&Uu(A,"number",A.value)}switch(te=z?Vl(z):window,e){case"focusin":(af(te)||te.contentEditable==="true")&&(In=te,Wu=z,Il=null);break;case"focusout":Il=Wu=In=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,mf($,a,B);break;case"selectionchange":if(Pp)break;case"keydown":case"keyup":mf($,a,B)}var Se;if(Ku)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Wn?ef(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(Wo&&a.locale!=="ko"&&(Wn||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Wn&&(Se=Qo()):(Za=B,Yu="value"in Za?Za.value:Za.textContent,Wn=!0)),te=Qs(z,Re),0<te.length&&(Re=new Jo(Re,e,null,a,B),$.push({event:Re,listeners:te}),Se?Re.data=Se:(Se=tf(a),Se!==null&&(Re.data=Se)))),(Se=Vp?Gp(e,a):Xp(e,a))&&(Re=Qs(z,"onBeforeInput"),0<Re.length&&(te=new Jo("onBeforeInput","beforeinput",null,a,B),$.push({event:te,listeners:Re}),te.data=Se)),Uy($,e,z,a,B)}qh($,t)})}function Ei(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Qs(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=Gl(e,a),i!=null&&n.unshift(Ei(e,i,r)),i=Gl(e,t),i!=null&&n.push(Ei(e,i,r))),e.tag===3)return n;e=e.return}return[]}function qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yh(e,t,a,n,i){for(var r=t._reactName,d=[];a!==null&&a!==n;){var v=a,x=v.alternate,z=v.stateNode;if(v=v.tag,x!==null&&x===n)break;v!==5&&v!==26&&v!==27||z===null||(x=z,i?(z=Gl(a,r),z!=null&&d.unshift(Ei(a,z,x))):i||(z=Gl(a,r),z!=null&&d.push(Ei(a,z,x)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var $y=/\r\n?/g,Yy=/\u0000|\uFFFD/g;function Vh(e){return(typeof e=="string"?e:""+e).replace($y,`
|
|
`).replace(Yy,"")}function Gh(e,t){return t=Vh(t),Vh(e)===t}function Ye(e,t,a,n,i,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Zn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Zn(e,""+n);break;case"className":Fi(e,"class",n);break;case"tabIndex":Fi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Fi(e,a,n);break;case"style":Vo(e,n,r);break;case"data":if(t!=="object"){Fi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ii(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ii(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=xa);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Ii(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Ji(e,"popover",n);break;case"xlinkActuate":_a(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":_a(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":_a(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":_a(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":_a(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":_a(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":_a(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":_a(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":_a(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ji(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=pp.get(a)||a,Ji(e,a,n))}}function Ec(e,t,a,n,i,r){switch(a){case"style":Vo(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Zn(e,n):(typeof n=="number"||typeof n=="bigint")&&Zn(e,""+n);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"onClick":n!=null&&(e.onclick=xa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[Tt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ji(e,a,n)}}}function bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var n=!1,i=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ye(e,t,r,d,a,null)}}i&&Ye(e,t,"srcSet",a.srcSet,a,null),n&&Ye(e,t,"src",a.src,a,null);return;case"input":Ne("invalid",e);var v=r=d=i=null,x=null,z=null;for(n in a)if(a.hasOwnProperty(n)){var B=a[n];if(B!=null)switch(n){case"name":i=B;break;case"type":d=B;break;case"checked":x=B;break;case"defaultChecked":z=B;break;case"value":r=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ye(e,t,n,B,a,null)}}ko(e,r,v,x,z,d,i,!1);return;case"select":Ne("invalid",e),n=d=r=null;for(i in a)if(a.hasOwnProperty(i)&&(v=a[i],v!=null))switch(i){case"value":r=v;break;case"defaultValue":d=v;break;case"multiple":n=v;default:Ye(e,t,i,v,a,null)}t=r,a=d,e.multiple=!!n,t!=null?Kn(e,!!n,t,!1):a!=null&&Kn(e,!!n,a,!0);return;case"textarea":Ne("invalid",e),r=i=n=null;for(d in a)if(a.hasOwnProperty(d)&&(v=a[d],v!=null))switch(d){case"value":n=v;break;case"defaultValue":i=v;break;case"children":r=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ye(e,t,d,v,a,null)}$o(e,n,i,r);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(n=a[x],n!=null))switch(x){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ye(e,t,x,n,a,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(n=0;n<xi.length;n++)Ne(xi[n],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(n=a[z],n!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ye(e,t,z,n,a,null)}return;default:if(Hu(t)){for(B in a)a.hasOwnProperty(B)&&(n=a[B],n!==void 0&&Ec(e,t,B,n,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(n=a[v],n!=null&&Ye(e,t,v,n,a,null))}function Vy(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,v=null,x=null,z=null,B=null;for(L in a){var $=a[L];if(a.hasOwnProperty(L)&&$!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":x=$;default:n.hasOwnProperty(L)||Ye(e,t,L,null,n,$)}}for(var A in n){var L=n[A];if($=a[A],n.hasOwnProperty(A)&&(L!=null||$!=null))switch(A){case"type":r=L;break;case"name":i=L;break;case"checked":z=L;break;case"defaultChecked":B=L;break;case"value":d=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:L!==$&&Ye(e,t,A,L,n,$)}}Lu(e,d,v,x,z,B,r,i);return;case"select":L=d=v=A=null;for(r in a)if(x=a[r],a.hasOwnProperty(r)&&x!=null)switch(r){case"value":break;case"multiple":L=x;default:n.hasOwnProperty(r)||Ye(e,t,r,null,n,x)}for(i in n)if(r=n[i],x=a[i],n.hasOwnProperty(i)&&(r!=null||x!=null))switch(i){case"value":A=r;break;case"defaultValue":v=r;break;case"multiple":d=r;default:r!==x&&Ye(e,t,i,r,n,x)}t=v,a=d,n=L,A!=null?Kn(e,!!a,A,!1):!!n!=!!a&&(t!=null?Kn(e,!!a,t,!0):Kn(e,!!a,a?[]:"",!1));return;case"textarea":L=A=null;for(v in a)if(i=a[v],a.hasOwnProperty(v)&&i!=null&&!n.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ye(e,t,v,null,n,i)}for(d in n)if(i=n[d],r=a[d],n.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":A=i;break;case"defaultValue":L=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(u(91));break;default:i!==r&&Ye(e,t,d,i,n,r)}qo(e,A,L);return;case"option":for(var I in a)if(A=a[I],a.hasOwnProperty(I)&&A!=null&&!n.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ye(e,t,I,null,n,A)}for(x in n)if(A=n[x],L=a[x],n.hasOwnProperty(x)&&A!==L&&(A!=null||L!=null))switch(x){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ye(e,t,x,A,n,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in a)A=a[ue],a.hasOwnProperty(ue)&&A!=null&&!n.hasOwnProperty(ue)&&Ye(e,t,ue,null,n,A);for(z in n)if(A=n[z],L=a[z],n.hasOwnProperty(z)&&A!==L&&(A!=null||L!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(137,t));break;default:Ye(e,t,z,A,n,L)}return;default:if(Hu(t)){for(var Ve in a)A=a[Ve],a.hasOwnProperty(Ve)&&A!==void 0&&!n.hasOwnProperty(Ve)&&Ec(e,t,Ve,void 0,n,A);for(B in n)A=n[B],L=a[B],!n.hasOwnProperty(B)||A===L||A===void 0&&L===void 0||Ec(e,t,B,A,n,L);return}}for(var w in a)A=a[w],a.hasOwnProperty(w)&&A!=null&&!n.hasOwnProperty(w)&&Ye(e,t,w,null,n,A);for($ in n)A=n[$],L=a[$],!n.hasOwnProperty($)||A===L||A==null&&L==null||Ye(e,t,$,A,n,L)}function Xh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],r=i.transferSize,d=i.initiatorType,v=i.duration;if(r&&v&&Xh(d)){for(d=0,v=i.responseEnd,n+=1;n<a.length;n++){var x=a[n],z=x.startTime;if(z>v)break;var B=x.transferSize,$=x.initiatorType;B&&Xh($)&&(x=x.responseEnd,d+=B*(x<v?1:(v-z)/(x-z)))}if(--n,t+=8*(r+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jc=null,Nc=null;function Ks(e){return e.nodeType===9?e:e.ownerDocument}function Qh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Tc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wc=null;function Xy(){var e=window.event;return e&&e.type==="popstate"?e===wc?!1:(wc=e,!0):(wc=null,!1)}var Zh=typeof setTimeout=="function"?setTimeout:void 0,Qy=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,Ky=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(e){return Jh.resolve(null).then(e).catch(Zy)}:Zh;function Zy(e){setTimeout(function(){throw e})}function dn(e){return e==="head"}function Fh(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),Nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ji(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ji(a);for(var r=a.firstChild;r;){var d=r.nextSibling,v=r.nodeName;r[Yl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&ji(e.ownerDocument.body);a=i}while(a);Nl(t)}function Wh(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Cc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Cc(a),Du(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Jy(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Yl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=aa(e.nextSibling),e===null)break}return null}function Fy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=aa(e.nextSibling),e===null))return null;return e}function Ih(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=aa(e.nextSibling),e===null))return null;return e}function Rc(e){return e.data==="$?"||e.data==="$~"}function zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wy(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function aa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ac=null;function Ph(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return aa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function em(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function tm(e,t,a){switch(t=Ks(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Du(e)}var na=new Map,am=new Set;function Zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ba=G.d;G.d={f:Iy,r:Py,D:ev,C:tv,L:av,m:nv,X:iv,S:lv,M:sv};function Iy(){var e=Ba.f(),t=ks();return e||t}function Py(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?bd(t):Ba.r(e)}var xl=typeof document>"u"?null:document;function nm(e,t,a){var n=xl;if(n&&typeof t=="string"&&t){var i=Jt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),am.has(i)||(am.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),bt(t,"link",e),ht(t),n.head.appendChild(t)))}}function ev(e){Ba.D(e),nm("dns-prefetch",e,null)}function tv(e,t){Ba.C(e,t),nm("preconnect",e,t)}function av(e,t,a){Ba.L(e,t,a);var n=xl;if(n&&e&&t){var i='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Jt(a.imageSizes)+'"]')):i+='[href="'+Jt(e)+'"]';var r=i;switch(t){case"style":r=El(e);break;case"script":r=jl(e)}na.has(r)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),na.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Ni(r))||t==="script"&&n.querySelector(Ti(r))||(t=n.createElement("link"),bt(t,"link",e),ht(t),n.head.appendChild(t)))}}function nv(e,t){Ba.m(e,t);var a=xl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Jt(n)+'"][href="'+Jt(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=jl(e)}if(!na.has(r)&&(e=b({rel:"modulepreload",href:e},t),na.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ti(r)))return}n=a.createElement("link"),bt(n,"link",e),ht(n),a.head.appendChild(n)}}}function lv(e,t,a){Ba.S(e,t,a);var n=xl;if(n&&e){var i=Xn(n).hoistableStyles,r=El(e);t=t||"default";var d=i.get(r);if(!d){var v={loading:0,preload:null};if(d=n.querySelector(Ni(r)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=na.get(r))&&Oc(e,a);var x=d=n.createElement("link");ht(x),bt(x,"link",e),x._p=new Promise(function(z,B){x.onload=z,x.onerror=B}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Js(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:v},i.set(r,d)}}}function iv(e,t){Ba.X(e,t);var a=xl;if(a&&e){var n=Xn(a).hoistableScripts,i=jl(e),r=n.get(i);r||(r=a.querySelector(Ti(i)),r||(e=b({src:e,async:!0},t),(t=na.get(i))&&Dc(e,t),r=a.createElement("script"),ht(r),bt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function sv(e,t){Ba.M(e,t);var a=xl;if(a&&e){var n=Xn(a).hoistableScripts,i=jl(e),r=n.get(i);r||(r=a.querySelector(Ti(i)),r||(e=b({src:e,async:!0,type:"module"},t),(t=na.get(i))&&Dc(e,t),r=a.createElement("script"),ht(r),bt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function lm(e,t,a,n){var i=(i=ye.current)?Zs(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=El(a.href),a=Xn(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=El(a.href);var r=Xn(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Ni(e)))&&!r._p&&(d.instance=r,d.state.loading=5),na.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},na.set(e,a),r||uv(i,e,a,d.state))),t&&n===null)throw Error(u(528,""));return d}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=jl(a),a=Xn(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function El(e){return'href="'+Jt(e)+'"'}function Ni(e){return'link[rel="stylesheet"]['+e+"]"}function im(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function uv(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),bt(t,"link",a),ht(t),e.head.appendChild(t))}function jl(e){return'[src="'+Jt(e)+'"]'}function Ti(e){return"script[async]"+e}function sm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(n)return t.instance=n,ht(n),n;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ht(n),bt(n,"style",i),Js(n,a.precedence,e),t.instance=n;case"stylesheet":i=El(a.href);var r=e.querySelector(Ni(i));if(r)return t.state.loading|=4,t.instance=r,ht(r),r;n=im(a),(i=na.get(i))&&Oc(n,i),r=(e.ownerDocument||e).createElement("link"),ht(r);var d=r;return d._p=new Promise(function(v,x){d.onload=v,d.onerror=x}),bt(r,"link",n),t.state.loading|=4,Js(r,a.precedence,e),t.instance=r;case"script":return r=jl(a.src),(i=e.querySelector(Ti(r)))?(t.instance=i,ht(i),i):(n=a,(i=na.get(r))&&(n=b({},a),Dc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),ht(i),bt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Js(n,a.precedence,e));return t.instance}function Js(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,d=0;d<n.length;d++){var v=n[d];if(v.dataset.precedence===t)r=v;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fs=null;function um(e,t,a){if(Fs===null){var n=new Map,i=Fs=new Map;i.set(a,n)}else i=Fs,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[Yl]||r[gt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var v=n.get(d);v?v.push(r):n.set(d,[r])}}return n}function rm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function rv(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cv(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=El(n.href),r=t.querySelector(Ni(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ws.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,ht(r);return}r=t.ownerDocument||t,n=im(n),(i=na.get(i))&&Oc(n,i),r=r.createElement("link"),ht(r);var d=r;d._p=new Promise(function(v,x){d.onload=v,d.onerror=x}),bt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ws.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Mc=0;function ov(e,t){return e.stylesheets&&e.count===0&&Ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Ps(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Mc===0&&(Mc=62500*Gy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ps(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Mc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Is=null;function Ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Is=new Map,t.forEach(fv,e),Is=null,Ws.call(e))}function fv(e,t){if(!(t.state.loading&4)){var a=Is.get(e);if(a)var n=a.get(null);else{a=new Map,Is.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}i=t.instance,d=i.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,i),a.set(d,i),this.count++,n=Ws.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var wi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function dv(e,t,a,n,i,r,d,v,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.hiddenUpdates=Ru(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function om(e,t,a,n,i,r,d,v,x,z,B,$){return e=new dv(e,t,a,d,x,z,B,$,v),t=1,r===!0&&(t|=24),r=Bt(3,null,null,t),e.current=r,r.stateNode=e,t=hr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},yr(r),e}function fm(e){return e?(e=tl,e):tl}function dm(e,t,a,n,i,r){i=fm(i),n.context===null?n.context=i:n.pendingContext=i,n=en(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=tn(e,n,t),a!==null&&(Ot(a,e,t),ii(a,e,t))}function hm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){hm(e,t),(e=e.alternate)&&hm(e,t)}function mm(e){if(e.tag===13||e.tag===31){var t=Tn(e,67108864);t!==null&&Ot(t,e,67108864),Lc(e,67108864)}}function gm(e){if(e.tag===13||e.tag===31){var t=Vt();t=zu(t);var a=Tn(e,t);a!==null&&Ot(a,e,t),Lc(e,t)}}var eu=!0;function hv(e,t,a,n){var i=M.T;M.T=null;var r=G.p;try{G.p=2,Uc(e,t,a,n)}finally{G.p=r,M.T=i}}function mv(e,t,a,n){var i=M.T;M.T=null;var r=G.p;try{G.p=8,Uc(e,t,a,n)}finally{G.p=r,M.T=i}}function Uc(e,t,a,n){if(eu){var i=Hc(n);if(i===null)xc(e,t,n,tu,a),ym(e,n);else if(pv(i,e,t,a,n))n.stopPropagation();else if(ym(e,n),t&4&&-1<gv.indexOf(e)){for(;i!==null;){var r=Gn(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=_n(r.pendingLanes);if(d!==0){var v=r;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var x=1<<31-Ut(d);v.entanglements[1]|=x,d&=~x}ya(r),(Me&6)===0&&(Hs=Ee()+500,_i(0))}}break;case 31:case 13:v=Tn(r,2),v!==null&&Ot(v,r,2),ks(),Lc(r,2)}if(r=Hc(n),r===null&&xc(e,t,n,tu,a),r===i)break;i=r}i!==null&&n.stopPropagation()}else xc(e,t,n,null,a)}}function Hc(e){return e=ku(e),Bc(e)}var tu=null;function Bc(e){if(tu=null,e=Vn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return tu=e,null}function pm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ke()){case Xe:return 2;case it:return 8;case Lt:case Sn:return 32;case kl:return 268435456;default:return 32}default:return 32}}var kc=!1,hn=null,mn=null,gn=null,Ci=new Map,Ri=new Map,pn=[],gv="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 ym(e,t){switch(e){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function zi(e,t,a,n,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[i]},t!==null&&(t=Gn(t),t!==null&&mm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pv(e,t,a,n,i){switch(t){case"focusin":return hn=zi(hn,e,t,a,n,i),!0;case"dragenter":return mn=zi(mn,e,t,a,n,i),!0;case"mouseover":return gn=zi(gn,e,t,a,n,i),!0;case"pointerover":var r=i.pointerId;return Ci.set(r,zi(Ci.get(r)||null,e,t,a,n,i)),!0;case"gotpointercapture":return r=i.pointerId,Ri.set(r,zi(Ri.get(r)||null,e,t,a,n,i)),!0}return!1}function vm(e){var t=Vn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,Ao(e.priority,function(){gm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ao(e.priority,function(){gm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function au(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Bu=n,a.target.dispatchEvent(n),Bu=null}else return t=Gn(a),t!==null&&mm(t),e.blockedOn=a,!1;t.shift()}return!0}function bm(e,t,a){au(e)&&a.delete(t)}function yv(){kc=!1,hn!==null&&au(hn)&&(hn=null),mn!==null&&au(mn)&&(mn=null),gn!==null&&au(gn)&&(gn=null),Ci.forEach(bm),Ri.forEach(bm)}function nu(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,yv)))}var lu=null;function Sm(e){lu!==e&&(lu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Bc(n||a)===null)continue;break}var r=Gn(a);r!==null&&(e.splice(t,3),t-=3,Hr(r,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function Nl(e){function t(x){return nu(x,e)}hn!==null&&nu(hn,e),mn!==null&&nu(mn,e),gn!==null&&nu(gn,e),Ci.forEach(t),Ri.forEach(t);for(var a=0;a<pn.length;a++){var n=pn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<pn.length&&(a=pn[0],a.blockedOn===null);)vm(a),a.blockedOn===null&&pn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],r=a[n+1],d=i[Tt]||null;if(typeof r=="function")d||Sm(a);else if(d){var v=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[Tt]||null)v=d.formAction;else if(Bc(i)!==null)continue}else v=d.action;typeof v=="function"?a[n+1]=v:(a.splice(n,3),n-=3),Sm(a)}}}function _m(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function qc(e){this._internalRoot=e}iu.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,n=Vt();dm(a,n,e,t,null,null)},iu.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dm(e.current,2,null,e,null,null),ks(),t[Yn]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=zo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<pn.length&&t!==0&&t<pn[a].priority;a++);pn.splice(a,0,e),a===0&&vm(e)}};var xm=l.version;if(xm!=="19.2.5")throw Error(u(527,xm,"19.2.5"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var vv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{$n=su.inject(vv),_t=su}catch{}}return Oi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var a=!1,n="",i=Rd,r=zd,d=Ad;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=om(e,1,!1,null,null,a,n,null,i,r,d,_m),e[Yn]=t.current,_c(e),new qc(t)},Oi.hydrateRoot=function(e,t,a){if(!o(e))throw Error(u(299));var n=!1,i="",r=Rd,d=zd,v=Ad,x=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=om(e,1,!0,t,a??null,n,i,x,r,d,v,_m),t.context=fm(null),a=t.current,n=Vt(),n=zu(n),i=en(n),i.callback=null,tn(a,i,n),a=n,t.current.lanes=a,$l(t,a),ya(t),e[Yn]=t.current,_c(e),new iu(t)},Oi.version="19.2.5",Oi}var Om;function Cv(){if(Om)return Vc.exports;Om=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),Vc.exports=wv(),Vc.exports}var Rv=Cv();const zv=mg(Rv);/**
|
|
* react-router v7.14.1
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/var Dm="popstate";function Mm(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function Av(s={}){function l(u,o){var y;let f=(y=o.state)==null?void 0:y.masked,{pathname:m,search:g,hash:p}=f||u.location;return lo("",{pathname:m,search:g,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function c(u,o){return typeof o=="string"?o:Bi(o)}return Dv(l,c,null,s)}function et(s,l){if(s===!1||s===null||typeof s>"u")throw new Error(l)}function oa(s,l){if(!s){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Ov(){return Math.random().toString(36).substring(2,10)}function Lm(s,l){return{usr:s.state,key:s.key,idx:l,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function lo(s,l,c=null,u,o){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof l=="string"?Ol(l):l,state:c,key:l&&l.key||u||Ov(),unstable_mask:o}}function Bi({pathname:s="/",search:l="",hash:c=""}){return l&&l!=="?"&&(s+=l.charAt(0)==="?"?l:"?"+l),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Ol(s){let l={};if(s){let c=s.indexOf("#");c>=0&&(l.hash=s.substring(c),s=s.substring(0,c));let u=s.indexOf("?");u>=0&&(l.search=s.substring(u),s=s.substring(0,u)),s&&(l.pathname=s)}return l}function Dv(s,l,c,u={}){let{window:o=document.defaultView,v5Compat:f=!1}=u,m=o.history,g="POP",p=null,y=S();y==null&&(y=0,m.replaceState({...m.state,idx:y},""));function S(){return(m.state||{idx:null}).idx}function b(){g="POP";let U=S(),D=U==null?null:U-y;y=U,p&&p({action:g,location:O.location,delta:D})}function N(U,D){g="PUSH";let k=Mm(U)?U:lo(O.location,U,D);y=S()+1;let Y=Lm(k,y),K=O.createHref(k.unstable_mask||k);try{m.pushState(Y,"",K)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;o.location.assign(K)}f&&p&&p({action:g,location:O.location,delta:1})}function C(U,D){g="REPLACE";let k=Mm(U)?U:lo(O.location,U,D);y=S();let Y=Lm(k,y),K=O.createHref(k.unstable_mask||k);m.replaceState(Y,"",K),f&&p&&p({action:g,location:O.location,delta:0})}function T(U){return Mv(U)}let O={get action(){return g},get location(){return s(o,m)},listen(U){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Dm,b),p=U,()=>{o.removeEventListener(Dm,b),p=null}},createHref(U){return l(o,U)},createURL:T,encodeLocation(U){let D=T(U);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:N,replace:C,go(U){return m.go(U)}};return O}function Mv(s,l=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),et(c,"No window.location.(origin|href) available to create URL");let u=typeof s=="string"?s:Bi(s);return u=u.replace(/ $/,"%20"),!l&&u.startsWith("//")&&(u=c+u),new URL(u,c)}function gg(s,l,c="/"){return Lv(s,l,c,!1)}function Lv(s,l,c,u){let o=typeof l=="string"?Ol(l):l,f=Va(o.pathname||"/",c);if(f==null)return null;let m=pg(s);Uv(m);let g=null;for(let p=0;g==null&&p<m.length;++p){let y=Kv(f);g=Xv(m[p],y,u)}return g}function pg(s,l=[],c=[],u="",o=!1){let f=(m,g,p=o,y)=>{let S={relativePath:y===void 0?m.path||"":y,caseSensitive:m.caseSensitive===!0,childrenIndex:g,route:m};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(u)&&p)return;et(S.relativePath.startsWith(u),`Absolute route path "${S.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(u.length)}let b=ca([u,S.relativePath]),N=c.concat(S);m.children&&m.children.length>0&&(et(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),pg(m.children,l,N,b,p)),!(m.path==null&&!m.index)&&l.push({path:b,score:Vv(b,m.index),routesMeta:N})};return s.forEach((m,g)=>{var p;if(m.path===""||!((p=m.path)!=null&&p.includes("?")))f(m,g);else for(let y of yg(m.path))f(m,g,!0,y)}),l}function yg(s){let l=s.split("/");if(l.length===0)return[];let[c,...u]=l,o=c.endsWith("?"),f=c.replace(/\?$/,"");if(u.length===0)return o?[f,""]:[f];let m=yg(u.join("/")),g=[];return g.push(...m.map(p=>p===""?f:[f,p].join("/"))),o&&g.push(...m),g.map(p=>s.startsWith("/")&&p===""?"/":p)}function Uv(s){s.sort((l,c)=>l.score!==c.score?c.score-l.score:Gv(l.routesMeta.map(u=>u.childrenIndex),c.routesMeta.map(u=>u.childrenIndex)))}var Hv=/^:[\w-]+$/,Bv=3,kv=2,qv=1,$v=10,Yv=-2,Um=s=>s==="*";function Vv(s,l){let c=s.split("/"),u=c.length;return c.some(Um)&&(u+=Yv),l&&(u+=kv),c.filter(o=>!Um(o)).reduce((o,f)=>o+(Hv.test(f)?Bv:f===""?qv:$v),u)}function Gv(s,l){return s.length===l.length&&s.slice(0,-1).every((u,o)=>u===l[o])?s[s.length-1]-l[l.length-1]:0}function Xv(s,l,c=!1){let{routesMeta:u}=s,o={},f="/",m=[];for(let g=0;g<u.length;++g){let p=u[g],y=g===u.length-1,S=f==="/"?l:l.slice(f.length)||"/",b=du({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},S),N=p.route;if(!b&&y&&c&&!u[u.length-1].route.index&&(b=du({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},S)),!b)return null;Object.assign(o,b.params),m.push({params:o,pathname:ca([f,b.pathname]),pathnameBase:Wv(ca([f,b.pathnameBase])),route:N}),b.pathnameBase!=="/"&&(f=ca([f,b.pathnameBase]))}return m}function du(s,l){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,u]=Qv(s.path,s.caseSensitive,s.end),o=l.match(c);if(!o)return null;let f=o[0],m=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:u.reduce((y,{paramName:S,isOptional:b},N)=>{if(S==="*"){let T=g[N]||"";m=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const C=g[N];return b&&!C?y[S]=void 0:y[S]=(C||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:m,pattern:s}}function Qv(s,l=!1,c=!0){oa(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let u=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,g,p,y,S)=>{if(u.push({paramName:g,isOptional:p!=null}),p){let b=S.charAt(y+m.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(u.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),u]}function Kv(s){try{return s.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return oa(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),s}}function Va(s,l){if(l==="/")return s;if(!s.toLowerCase().startsWith(l.toLowerCase()))return null;let c=l.endsWith("/")?l.length-1:l.length,u=s.charAt(c);return u&&u!=="/"?null:s.slice(c)||"/"}var Zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Jv(s,l="/"){let{pathname:c,search:u="",hash:o=""}=typeof s=="string"?Ol(s):s,f;return c?(c=vg(c),c.startsWith("/")?f=Hm(c.substring(1),"/"):f=Hm(c,l)):f=l,{pathname:f,search:Iv(u),hash:Pv(o)}}function Hm(s,l){let c=hu(l).split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Kc(s,l,c,u){return`Cannot include a '${s}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Fv(s){return s.filter((l,c)=>c===0||l.route.path&&l.route.path.length>0)}function ho(s){let l=Fv(s);return l.map((c,u)=>u===l.length-1?c.pathname:c.pathnameBase)}function bu(s,l,c,u=!1){let o;typeof s=="string"?o=Ol(s):(o={...s},et(!o.pathname||!o.pathname.includes("?"),Kc("?","pathname","search",o)),et(!o.pathname||!o.pathname.includes("#"),Kc("#","pathname","hash",o)),et(!o.search||!o.search.includes("#"),Kc("#","search","hash",o)));let f=s===""||o.pathname==="",m=f?"/":o.pathname,g;if(m==null)g=c;else{let b=l.length-1;if(!u&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),b-=1;o.pathname=N.join("/")}g=b>=0?l[b]:"/"}let p=Jv(o,g),y=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(y||S)&&(p.pathname+="/"),p}var vg=s=>s.replace(/\/\/+/g,"/"),ca=s=>vg(s.join("/")),hu=s=>s.replace(/\/+$/,""),Wv=s=>hu(s).replace(/^\/*/,"/"),Iv=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Pv=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,e0=class{constructor(s,l,c,u=!1){this.status=s,this.statusText=l||"",this.internal=u,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function t0(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function a0(s){let l=s.map(c=>c.route.path).filter(Boolean);return ca(l)||"/"}var bg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sg(s,l){let c=s;if(typeof c!="string"||!Zv.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let u=c,o=!1;if(bg)try{let f=new URL(window.location.href),m=c.startsWith("//")?new URL(f.protocol+c):new URL(c),g=Va(m.pathname,l);m.origin===f.origin&&g!=null?c=g+m.search+m.hash:o=!0}catch{oa(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:o,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _g=["POST","PUT","PATCH","DELETE"];new Set(_g);var n0=["GET",..._g];new Set(n0);var Dl=_.createContext(null);Dl.displayName="DataRouter";var Su=_.createContext(null);Su.displayName="DataRouterState";var xg=_.createContext(!1);function l0(){return _.useContext(xg)}var Eg=_.createContext({isTransitioning:!1});Eg.displayName="ViewTransition";var i0=_.createContext(new Map);i0.displayName="Fetchers";var s0=_.createContext(null);s0.displayName="Await";var Qt=_.createContext(null);Qt.displayName="Navigation";var $i=_.createContext(null);$i.displayName="Location";var fa=_.createContext({outlet:null,matches:[],isDataRoute:!1});fa.displayName="Route";var mo=_.createContext(null);mo.displayName="RouteError";var jg="REACT_ROUTER_ERROR",u0="REDIRECT",r0="ROUTE_ERROR_RESPONSE";function c0(s){if(s.startsWith(`${jg}:${u0}:{`))try{let l=JSON.parse(s.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function o0(s){if(s.startsWith(`${jg}:${r0}:{`))try{let l=JSON.parse(s.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new e0(l.status,l.statusText,l.data)}catch{}}function f0(s,{relative:l}={}){et(Ml(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:u}=_.useContext(Qt),{hash:o,pathname:f,search:m}=Yi(s,{relative:l}),g=f;return c!=="/"&&(g=f==="/"?c:ca([c,f])),u.createHref({pathname:g,search:m,hash:o})}function Ml(){return _.useContext($i)!=null}function Sa(){return et(Ml(),"useLocation() may be used only in the context of a <Router> component."),_.useContext($i).location}var Ng="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tg(s){_.useContext(Qt).static||_.useLayoutEffect(s)}function Ga(){let{isDataRoute:s}=_.useContext(fa);return s?j0():d0()}function d0(){et(Ml(),"useNavigate() may be used only in the context of a <Router> component.");let s=_.useContext(Dl),{basename:l,navigator:c}=_.useContext(Qt),{matches:u}=_.useContext(fa),{pathname:o}=Sa(),f=JSON.stringify(ho(u)),m=_.useRef(!1);return Tg(()=>{m.current=!0}),_.useCallback((p,y={})=>{if(oa(m.current,Ng),!m.current)return;if(typeof p=="number"){c.go(p);return}let S=bu(p,JSON.parse(f),o,y.relative==="path");s==null&&l!=="/"&&(S.pathname=S.pathname==="/"?l:ca([l,S.pathname])),(y.replace?c.replace:c.push)(S,y.state,y)},[l,c,f,o,s])}_.createContext(null);function wg(){let{matches:s}=_.useContext(fa),l=s[s.length-1];return l?l.params:{}}function Yi(s,{relative:l}={}){let{matches:c}=_.useContext(fa),{pathname:u}=Sa(),o=JSON.stringify(ho(c));return _.useMemo(()=>bu(s,JSON.parse(o),u,l==="path"),[s,o,u,l])}function h0(s,l){return Cg(s,l)}function Cg(s,l,c){var U;et(Ml(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=_.useContext(Qt),{matches:o}=_.useContext(fa),f=o[o.length-1],m=f?f.params:{},g=f?f.pathname:"/",p=f?f.pathnameBase:"/",y=f&&f.route;{let D=y&&y.path||"";zg(g,!y||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${D}">) 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.
|
|
|
|
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let S=Sa(),b;if(l){let D=typeof l=="string"?Ol(l):l;et(p==="/"||((U=D.pathname)==null?void 0:U.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 "${D.pathname}" was given in the \`location\` prop.`),b=D}else b=S;let N=b.pathname||"/",C=N;if(p!=="/"){let D=p.replace(/^\//,"").split("/");C="/"+N.replace(/^\//,"").split("/").slice(D.length).join("/")}let T=gg(s,{pathname:C});oa(y||T!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),oa(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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=v0(T&&T.map(D=>Object.assign({},D,{params:Object.assign({},m,D.params),pathname:ca([p,u.encodeLocation?u.encodeLocation(D.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:ca([p,u.encodeLocation?u.encodeLocation(D.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),o,c);return l&&O?_.createElement($i.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},O):O}function m0(){let s=E0(),l=t0(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,u="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},m=null;return console.error("Error handled by React Router default ErrorBoundary:",s),m=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:f},"ErrorBoundary")," or"," ",_.createElement("code",{style:f},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},l),c?_.createElement("pre",{style:o},c):null,m)}var g0=_.createElement(m0,null),Rg=class extends _.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,l){return l.location!==s.location||l.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:l.error,location:l.location,revalidation:s.revalidation||l.revalidation}}componentDidCatch(s,l){this.props.onError?this.props.onError(s,l):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=o0(s.digest);c&&(s=c)}let l=s!==void 0?_.createElement(fa.Provider,{value:this.props.routeContext},_.createElement(mo.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?_.createElement(p0,{error:s},l):l}};Rg.contextType=xg;var Zc=new WeakMap;function p0({children:s,error:l}){let{basename:c}=_.useContext(Qt);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let u=c0(l.digest);if(u){let o=Zc.get(l);if(o)throw o;let f=Sg(u.location,c);if(bg&&!Zc.get(l))if(f.isExternal||u.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:u.replace}));throw Zc.set(l,m),m}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return s}function y0({routeContext:s,match:l,children:c}){let u=_.useContext(Dl);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),_.createElement(fa.Provider,{value:s},c)}function v0(s,l=[],c){let u=c==null?void 0:c.state;if(s==null){if(!u)return null;if(u.errors)s=u.matches;else if(l.length===0&&!u.initialized&&u.matches.length>0)s=u.matches;else return null}let o=s,f=u==null?void 0:u.errors;if(f!=null){let S=o.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);et(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,S+1))}let m=!1,g=-1;if(c&&u){m=u.renderFallback;for(let S=0;S<o.length;S++){let b=o[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=S),b.route.id){let{loaderData:N,errors:C}=u,T=b.route.loader&&!N.hasOwnProperty(b.route.id)&&(!C||C[b.route.id]===void 0);if(b.route.lazy||T){c.isStatic&&(m=!0),g>=0?o=o.slice(0,g+1):o=[o[0]];break}}}}let p=c==null?void 0:c.onError,y=u&&p?(S,b)=>{var N,C;p(S,{location:u.location,params:((C=(N=u.matches)==null?void 0:N[0])==null?void 0:C.params)??{},unstable_pattern:a0(u.matches),errorInfo:b})}:void 0;return o.reduceRight((S,b,N)=>{let C,T=!1,O=null,U=null;u&&(C=f&&b.route.id?f[b.route.id]:void 0,O=b.route.errorElement||g0,m&&(g<0&&N===0?(zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,U=null):g===N&&(T=!0,U=b.route.hydrateFallbackElement||null)));let D=l.concat(o.slice(0,N+1)),k=()=>{let Y;return C?Y=O:T?Y=U:b.route.Component?Y=_.createElement(b.route.Component,null):b.route.element?Y=b.route.element:Y=S,_.createElement(y0,{match:b,routeContext:{outlet:S,matches:D,isDataRoute:u!=null},children:Y})};return u&&(b.route.ErrorBoundary||b.route.errorElement||N===0)?_.createElement(Rg,{location:u.location,revalidation:u.revalidation,component:O,error:C,children:k(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:y}):k()},null)}function go(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function b0(s){let l=_.useContext(Dl);return et(l,go(s)),l}function S0(s){let l=_.useContext(Su);return et(l,go(s)),l}function _0(s){let l=_.useContext(fa);return et(l,go(s)),l}function po(s){let l=_0(s),c=l.matches[l.matches.length-1];return et(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function x0(){return po("useRouteId")}function E0(){var u;let s=_.useContext(mo),l=S0("useRouteError"),c=po("useRouteError");return s!==void 0?s:(u=l.errors)==null?void 0:u[c]}function j0(){let{router:s}=b0("useNavigate"),l=po("useNavigate"),c=_.useRef(!1);return Tg(()=>{c.current=!0}),_.useCallback(async(o,f={})=>{oa(c.current,Ng),c.current&&(typeof o=="number"?await s.navigate(o):await s.navigate(o,{fromRouteId:l,...f}))},[s,l])}var Bm={};function zg(s,l,c){!l&&!Bm[s]&&(Bm[s]=!0,oa(!1,c))}_.memo(N0);function N0({routes:s,future:l,state:c,isStatic:u,onError:o}){return Cg(s,void 0,{state:c,isStatic:u,onError:o})}function Jc({to:s,replace:l,state:c,relative:u}){et(Ml(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=_.useContext(Qt);oa(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=_.useContext(fa),{pathname:m}=Sa(),g=Ga(),p=bu(s,ho(f),m,u==="path"),y=JSON.stringify(p);return _.useEffect(()=>{g(JSON.parse(y),{replace:l,state:c,relative:u})},[g,y,u,l,c]),null}function va(s){et(!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 T0({basename:s="/",children:l=null,location:c,navigationType:u="POP",navigator:o,static:f=!1,unstable_useTransitions:m}){et(!Ml(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),p=_.useMemo(()=>({basename:g,navigator:o,static:f,unstable_useTransitions:m,future:{}}),[g,o,f,m]);typeof c=="string"&&(c=Ol(c));let{pathname:y="/",search:S="",hash:b="",state:N=null,key:C="default",unstable_mask:T}=c,O=_.useMemo(()=>{let U=Va(y,g);return U==null?null:{location:{pathname:U,search:S,hash:b,state:N,key:C,unstable_mask:T},navigationType:u}},[g,y,S,b,N,C,u,T]);return oa(O!=null,`<Router basename="${g}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:_.createElement(Qt.Provider,{value:p},_.createElement($i.Provider,{children:l,value:O}))}function km({children:s,location:l}){return h0(io(s),l)}function io(s,l=[]){let c=[];return _.Children.forEach(s,(u,o)=>{if(!_.isValidElement(u))return;let f=[...l,o];if(u.type===_.Fragment){c.push.apply(c,io(u.props.children,f));return}et(u.type===va,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!u.props.index||!u.props.children,"An index route cannot have child routes.");let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=io(u.props.children,f)),c.push(m)}),c}var cu="get",ou="application/x-www-form-urlencoded";function _u(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function w0(s){return _u(s)&&s.tagName.toLowerCase()==="button"}function C0(s){return _u(s)&&s.tagName.toLowerCase()==="form"}function R0(s){return _u(s)&&s.tagName.toLowerCase()==="input"}function z0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function A0(s,l){return s.button===0&&(!l||l==="_self")&&!z0(s)}var uu=null;function O0(){if(uu===null)try{new FormData(document.createElement("form"),0),uu=!1}catch{uu=!0}return uu}var D0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fc(s){return s!=null&&!D0.has(s)?(oa(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ou}"`),null):s}function M0(s,l){let c,u,o,f,m;if(C0(s)){let g=s.getAttribute("action");u=g?Va(g,l):null,c=s.getAttribute("method")||cu,o=Fc(s.getAttribute("enctype"))||ou,f=new FormData(s)}else if(w0(s)||R0(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=s.getAttribute("formaction")||g.getAttribute("action");if(u=p?Va(p,l):null,c=s.getAttribute("formmethod")||g.getAttribute("method")||cu,o=Fc(s.getAttribute("formenctype"))||Fc(g.getAttribute("enctype"))||ou,f=new FormData(g,s),!O0()){let{name:y,type:S,value:b}=s;if(S==="image"){let N=y?`${y}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else y&&f.append(y,b)}}else{if(_u(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=cu,u=null,o=ou,m=s}return f&&o==="text/plain"&&(m=f,f=void 0),{action:u,method:c.toLowerCase(),encType:o,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function yo(s,l){if(s===!1||s===null||typeof s>"u")throw new Error(l)}function Ag(s,l,c,u){let o=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${u}`:o.pathname=`${o.pathname}.${u}`:o.pathname==="/"?o.pathname=`_root.${u}`:l&&Va(o.pathname,l)==="/"?o.pathname=`${hu(l)}/_root.${u}`:o.pathname=`${hu(o.pathname)}.${u}`,o}async function L0(s,l){if(s.id in l)return l[s.id];try{let c=await import(s.module);return l[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function U0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function H0(s,l,c){let u=await Promise.all(s.map(async o=>{let f=l.routes[o.route.id];if(f){let m=await L0(f,c);return m.links?m.links():[]}return[]}));return $0(u.flat(1).filter(U0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function qm(s,l,c,u,o,f){let m=(p,y)=>c[y]?p.route.id!==c[y].route.id:!0,g=(p,y)=>{var S;return c[y].pathname!==p.pathname||((S=c[y].route.path)==null?void 0:S.endsWith("*"))&&c[y].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,y)=>m(p,y)||g(p,y)):f==="data"?l.filter((p,y)=>{var b;let S=u.routes[p.route.id];if(!S||!S.hasLoader)return!1;if(m(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let N=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=c[0])==null?void 0:b.params)||{},nextUrl:new URL(s,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function B0(s,l,{includeHydrateFallback:c}={}){return k0(s.map(u=>{let o=l.routes[u.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function k0(s){return[...new Set(s)]}function q0(s){let l={},c=Object.keys(s).sort();for(let u of c)l[u]=s[u];return l}function $0(s,l){let c=new Set;return new Set(l),s.reduce((u,o)=>{let f=JSON.stringify(q0(o));return c.has(f)||(c.add(f),u.push({key:f,link:o})),u},[])}function vo(){let s=_.useContext(Dl);return yo(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Y0(){let s=_.useContext(Su);return yo(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var bo=_.createContext(void 0);bo.displayName="FrameworkContext";function So(){let s=_.useContext(bo);return yo(s,"You must render this element inside a <HydratedRouter> element"),s}function V0(s,l){let c=_.useContext(bo),[u,o]=_.useState(!1),[f,m]=_.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=l,N=_.useRef(null);_.useEffect(()=>{if(s==="render"&&m(!0),s==="viewport"){let O=D=>{D.forEach(k=>{m(k.isIntersecting)})},U=new IntersectionObserver(O,{threshold:.5});return N.current&&U.observe(N.current),()=>{U.disconnect()}}},[s]),_.useEffect(()=>{if(u){let O=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(O)}}},[u]);let C=()=>{o(!0)},T=()=>{o(!1),m(!1)};return c?s!=="intent"?[f,N,{}]:[f,N,{onFocus:Di(g,C),onBlur:Di(p,T),onMouseEnter:Di(y,C),onMouseLeave:Di(S,T),onTouchStart:Di(b,C)}]:[!1,N,{}]}function Di(s,l){return c=>{s&&s(c),c.defaultPrevented||l(c)}}function G0({page:s,...l}){let c=l0(),{router:u}=vo(),o=_.useMemo(()=>gg(u.routes,s,u.basename),[u.routes,s,u.basename]);return o?c?_.createElement(Q0,{page:s,matches:o,...l}):_.createElement(K0,{page:s,matches:o,...l}):null}function X0(s){let{manifest:l,routeModules:c}=So(),[u,o]=_.useState([]);return _.useEffect(()=>{let f=!1;return H0(s,l,c).then(m=>{f||o(m)}),()=>{f=!0}},[s,l,c]),u}function Q0({page:s,matches:l,...c}){let u=Sa(),{future:o}=So(),{basename:f}=vo(),m=_.useMemo(()=>{if(s===u.pathname+u.search+u.hash)return[];let g=Ag(s,f,o.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,y=[];for(let S of l)typeof S.route.shouldRevalidate=="function"?p=!0:y.push(S.route.id);return p&&y.length>0&&g.searchParams.set("_routes",y.join(",")),[g.pathname+g.search]},[f,o.unstable_trailingSlashAwareDataRequests,s,u,l]);return _.createElement(_.Fragment,null,m.map(g=>_.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...c})))}function K0({page:s,matches:l,...c}){let u=Sa(),{future:o,manifest:f,routeModules:m}=So(),{basename:g}=vo(),{loaderData:p,matches:y}=Y0(),S=_.useMemo(()=>qm(s,l,y,f,u,"data"),[s,l,y,f,u]),b=_.useMemo(()=>qm(s,l,y,f,u,"assets"),[s,l,y,f,u]),N=_.useMemo(()=>{if(s===u.pathname+u.search+u.hash)return[];let O=new Set,U=!1;if(l.forEach(k=>{var K;let Y=f.routes[k.route.id];!Y||!Y.hasLoader||(!S.some(X=>X.route.id===k.route.id)&&k.route.id in p&&((K=m[k.route.id])!=null&&K.shouldRevalidate)||Y.hasClientLoader?U=!0:O.add(k.route.id))}),O.size===0)return[];let D=Ag(s,g,o.unstable_trailingSlashAwareDataRequests,"data");return U&&O.size>0&&D.searchParams.set("_routes",l.filter(k=>O.has(k.route.id)).map(k=>k.route.id).join(",")),[D.pathname+D.search]},[g,o.unstable_trailingSlashAwareDataRequests,p,u,f,S,l,s,m]),C=_.useMemo(()=>B0(b,f),[b,f]),T=X0(b);return _.createElement(_.Fragment,null,N.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...c})),C.map(O=>_.createElement("link",{key:O,rel:"modulepreload",href:O,...c})),T.map(({key:O,link:U})=>_.createElement("link",{key:O,nonce:c.nonce,...U,crossOrigin:U.crossOrigin??c.crossOrigin})))}function Z0(...s){return l=>{s.forEach(c=>{typeof c=="function"?c(l):c!=null&&(c.current=l)})}}var J0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{J0&&(window.__reactRouterVersion="7.14.1")}catch{}function F0({basename:s,children:l,unstable_useTransitions:c,window:u}){let o=_.useRef();o.current==null&&(o.current=Av({window:u,v5Compat:!0}));let f=o.current,[m,g]=_.useState({action:f.action,location:f.location}),p=_.useCallback(y=>{c===!1?g(y):_.startTransition(()=>g(y))},[c]);return _.useLayoutEffect(()=>f.listen(p),[f,p]),_.createElement(T0,{basename:s,children:l,location:m.location,navigationType:m.action,navigator:f,unstable_useTransitions:c})}var Og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xu=_.forwardRef(function({onClick:l,discover:c="render",prefetch:u="none",relative:o,reloadDocument:f,replace:m,unstable_mask:g,state:p,target:y,to:S,preventScrollReset:b,viewTransition:N,unstable_defaultShouldRevalidate:C,...T},O){let{basename:U,navigator:D,unstable_useTransitions:k}=_.useContext(Qt),Y=typeof S=="string"&&Og.test(S),K=Sg(S,U);S=K.to;let X=f0(S,{relative:o}),P=Sa(),F=null;if(g){let le=bu(g,[],P.unstable_mask?P.unstable_mask.pathname:"/",!0);U!=="/"&&(le.pathname=le.pathname==="/"?U:ca([U,le.pathname])),F=D.createHref(le)}let[Te,ge,_e]=V0(u,T),qe=P0(S,{replace:m,unstable_mask:g,state:p,target:y,preventScrollReset:b,relative:o,viewTransition:N,unstable_defaultShouldRevalidate:C,unstable_useTransitions:k});function ce(le){l&&l(le),le.defaultPrevented||qe(le)}let ee=!(K.isExternal||f),ne=_.createElement("a",{...T,..._e,href:(ee?F:void 0)||K.absoluteURL||X,onClick:ee?ce:l,ref:Z0(O,ge),target:y,"data-discover":!Y&&c==="render"?"true":void 0});return Te&&!Y?_.createElement(_.Fragment,null,ne,_.createElement(G0,{page:X})):ne});xu.displayName="Link";var Dg=_.forwardRef(function({"aria-current":l="page",caseSensitive:c=!1,className:u="",end:o=!1,style:f,to:m,viewTransition:g,children:p,...y},S){let b=Yi(m,{relative:y.relative}),N=Sa(),C=_.useContext(Su),{navigator:T,basename:O}=_.useContext(Qt),U=C!=null&&l1(b)&&g===!0,D=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,k=N.pathname,Y=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;c||(k=k.toLowerCase(),Y=Y?Y.toLowerCase():null,D=D.toLowerCase()),Y&&O&&(Y=Va(Y,O)||Y);const K=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let X=k===D||!o&&k.startsWith(D)&&k.charAt(K)==="/",P=Y!=null&&(Y===D||!o&&Y.startsWith(D)&&Y.charAt(D.length)==="/"),F={isActive:X,isPending:P,isTransitioning:U},Te=X?l:void 0,ge;typeof u=="function"?ge=u(F):ge=[u,X?"active":null,P?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let _e=typeof f=="function"?f(F):f;return _.createElement(xu,{...y,"aria-current":Te,className:ge,ref:S,style:_e,to:m,viewTransition:g},typeof p=="function"?p(F):p)});Dg.displayName="NavLink";var W0=_.forwardRef(({discover:s="render",fetcherKey:l,navigate:c,reloadDocument:u,replace:o,state:f,method:m=cu,action:g,onSubmit:p,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:N,...C},T)=>{let{unstable_useTransitions:O}=_.useContext(Qt),U=a1(),D=n1(g,{relative:y}),k=m.toLowerCase()==="get"?"get":"post",Y=typeof g=="string"&&Og.test(g),K=X=>{if(p&&p(X),X.defaultPrevented)return;X.preventDefault();let P=X.nativeEvent.submitter,F=(P==null?void 0:P.getAttribute("formmethod"))||m,Te=()=>U(P||X.currentTarget,{fetcherKey:l,method:F,navigate:c,replace:o,state:f,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:N});O&&c!==!1?_.startTransition(()=>Te()):Te()};return _.createElement("form",{ref:T,method:k,action:D,onSubmit:u?p:K,...C,"data-discover":!Y&&s==="render"?"true":void 0})});W0.displayName="Form";function I0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mg(s){let l=_.useContext(Dl);return et(l,I0(s)),l}function P0(s,{target:l,replace:c,unstable_mask:u,state:o,preventScrollReset:f,relative:m,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let S=Ga(),b=Sa(),N=Yi(s,{relative:m});return _.useCallback(C=>{if(A0(C,l)){C.preventDefault();let T=c!==void 0?c:Bi(b)===Bi(N),O=()=>S(s,{replace:T,unstable_mask:u,state:o,preventScrollReset:f,relative:m,viewTransition:g,unstable_defaultShouldRevalidate:p});y?_.startTransition(()=>O()):O()}},[b,S,N,c,u,o,l,s,f,m,g,p,y])}var e1=0,t1=()=>`__${String(++e1)}__`;function a1(){let{router:s}=Mg("useSubmit"),{basename:l}=_.useContext(Qt),c=x0(),u=s.fetch,o=s.navigate;return _.useCallback(async(f,m={})=>{let{action:g,method:p,encType:y,formData:S,body:b}=M0(f,l);if(m.navigate===!1){let N=m.fetcherKey||t1();await u(N,c,m.action||g,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:S,body:b,formMethod:m.method||p,formEncType:m.encType||y,flushSync:m.flushSync})}else await o(m.action||g,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:S,body:b,formMethod:m.method||p,formEncType:m.encType||y,replace:m.replace,state:m.state,fromRouteId:c,flushSync:m.flushSync,viewTransition:m.viewTransition})},[u,o,l,c])}function n1(s,{relative:l}={}){let{basename:c}=_.useContext(Qt),u=_.useContext(fa);et(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),f={...Yi(s||".",{relative:l})},m=Sa();if(s==null){f.search=m.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(S=>S==="")){g.delete("index"),p.filter(b=>b).forEach(b=>g.append("index",b));let S=g.toString();f.search=S?`?${S}`:""}}return(!s||s===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:ca([c,f.pathname])),Bi(f)}function l1(s,{relative:l}={}){let c=_.useContext(Eg);et(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Mg("useViewTransitionState"),o=Yi(s,{relative:l});if(!c.isTransitioning)return!1;let f=Va(c.currentLocation.pathname,u)||c.currentLocation.pathname,m=Va(c.nextLocation.pathname,u)||c.nextLocation.pathname;return du(o.pathname,m)!=null||du(o.pathname,f)!=null}const fe=s=>typeof s=="string",Mi=()=>{let s,l;const c=new Promise((u,o)=>{s=u,l=o});return c.resolve=s,c.reject=l,c},$m=s=>s==null?"":String(s),i1=(s,l,c)=>{s.forEach(u=>{l[u]&&(c[u]=l[u])})},s1=/###/g,Ym=s=>s&&s.includes("###")?s.replace(s1,"."):s,Vm=s=>!s||fe(s),Ui=(s,l,c)=>{const u=fe(l)?l.split("."):l;let o=0;for(;o<u.length-1;){if(Vm(s))return{};const f=Ym(u[o]);!s[f]&&c&&(s[f]=new c),Object.prototype.hasOwnProperty.call(s,f)?s=s[f]:s={},++o}return Vm(s)?{}:{obj:s,k:Ym(u[o])}},Gm=(s,l,c)=>{const{obj:u,k:o}=Ui(s,l,Object);if(u!==void 0||l.length===1){u[o]=c;return}let f=l[l.length-1],m=l.slice(0,l.length-1),g=Ui(s,m,Object);for(;g.obj===void 0&&m.length;)f=`${m[m.length-1]}.${f}`,m=m.slice(0,m.length-1),g=Ui(s,m,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=c},u1=(s,l,c,u)=>{const{obj:o,k:f}=Ui(s,l,Object);o[f]=o[f]||[],o[f].push(c)},mu=(s,l)=>{const{obj:c,k:u}=Ui(s,l);if(c&&Object.prototype.hasOwnProperty.call(c,u))return c[u]},r1=(s,l,c)=>{const u=mu(s,c);return u!==void 0?u:mu(l,c)},Lg=(s,l,c)=>{for(const u in l)u!=="__proto__"&&u!=="constructor"&&(u in s?fe(s[u])||s[u]instanceof String||fe(l[u])||l[u]instanceof String?c&&(s[u]=l[u]):Lg(s[u],l[u],c):s[u]=l[u]);return s},ka=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),c1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},o1=s=>fe(s)?s.replace(/[&<>"'\/]/g,l=>c1[l]):s;class f1{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const c=this.regExpMap.get(l);if(c!==void 0)return c;const u=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,u),this.regExpQueue.push(l),u}}const d1=[" ",",","?","!",";"],h1=new f1(20),m1=(s,l,c)=>{l=l||"",c=c||"";const u=d1.filter(m=>!l.includes(m)&&!c.includes(m));if(u.length===0)return!0;const o=h1.getRegExp(`(${u.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!o.test(s);if(!f){const m=s.indexOf(c);m>0&&!o.test(s.substring(0,m))&&(f=!0)}return f},so=(s,l,c=".")=>{if(!s)return;if(s[l])return Object.prototype.hasOwnProperty.call(s,l)?s[l]:void 0;const u=l.split(c);let o=s;for(let f=0;f<u.length;){if(!o||typeof o!="object")return;let m,g="";for(let p=f;p<u.length;++p)if(p!==f&&(g+=c),g+=u[p],m=o[g],m!==void 0){if(["string","number","boolean"].includes(typeof m)&&p<u.length-1)continue;f+=p-f+1;break}o=m}return o},ki=s=>s==null?void 0:s.replace(/_/g,"-"),g1={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,l){var c,u;(u=(c=console==null?void 0:console[s])==null?void 0:c.apply)==null||u.call(c,console,l)}};class gu{constructor(l,c={}){this.init(l,c)}init(l,c={}){this.prefix=c.prefix||"i18next:",this.logger=l||g1,this.options=c,this.debug=c.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,c,u,o){return o&&!this.debug?null:(l=l.map(f=>fe(f)?f.replace(/[\r\n\x00-\x1F\x7F]/g," "):f),fe(l[0])&&(l[0]=`${u}${this.prefix} ${l[0]}`),this.logger[c](l))}create(l){return new gu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new gu(this.logger,l)}}var ba=new gu;class Eu{constructor(){this.observers={}}on(l,c){return l.split(" ").forEach(u=>{this.observers[u]||(this.observers[u]=new Map);const o=this.observers[u].get(c)||0;this.observers[u].set(c,o+1)}),this}off(l,c){if(this.observers[l]){if(!c){delete this.observers[l];return}this.observers[l].delete(c)}}once(l,c){const u=(...o)=>{c(...o),this.off(l,u)};return this.on(l,u),this}emit(l,...c){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([o,f])=>{for(let m=0;m<f;m++)o(...c)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let m=0;m<f;m++)o(l,...c)})}}class Xm extends Eu{constructor(l,c={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.includes(l)||this.options.ns.push(l)}removeNamespaces(l){const c=this.options.ns.indexOf(l);c>-1&&this.options.ns.splice(c,1)}getResource(l,c,u,o={}){var y,S;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,m=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;l.includes(".")?g=l.split("."):(g=[l,c],u&&(Array.isArray(u)?g.push(...u):fe(u)&&f?g.push(...u.split(f)):g.push(u)));const p=mu(this.data,g);return!p&&!c&&!u&&l.includes(".")&&(l=g[0],c=g[1],u=g.slice(2).join(".")),p||!m||!fe(u)?p:so((S=(y=this.data)==null?void 0:y[l])==null?void 0:S[c],u,f)}addResource(l,c,u,o,f={silent:!1}){const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,c];u&&(g=g.concat(m?u.split(m):u)),l.includes(".")&&(g=l.split("."),o=c,c=g[1]),this.addNamespaces(c),Gm(this.data,g,o),f.silent||this.emit("added",l,c,u,o)}addResources(l,c,u,o={silent:!1}){for(const f in u)(fe(u[f])||Array.isArray(u[f]))&&this.addResource(l,c,f,u[f],{silent:!0});o.silent||this.emit("added",l,c,u)}addResourceBundle(l,c,u,o,f,m={silent:!1,skipCopy:!1}){let g=[l,c];l.includes(".")&&(g=l.split("."),o=u,u=c,c=g[1]),this.addNamespaces(c);let p=mu(this.data,g)||{};m.skipCopy||(u=JSON.parse(JSON.stringify(u))),o?Lg(p,u,f):p={...p,...u},Gm(this.data,g,p),m.silent||this.emit("added",l,c,u)}removeResourceBundle(l,c){this.hasResourceBundle(l,c)&&delete this.data[l][c],this.removeNamespaces(c),this.emit("removed",l,c)}hasResourceBundle(l,c){return this.getResource(l,c)!==void 0}getResourceBundle(l,c){return c||(c=this.options.defaultNS),this.getResource(l,c)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const c=this.getDataByLanguage(l);return!!(c&&Object.keys(c)||[]).find(o=>c[o]&&Object.keys(c[o]).length>0)}toJSON(){return this.data}}var Ug={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,l,c,u,o){return s.forEach(f=>{var m;l=((m=this.processors[f])==null?void 0:m.process(l,c,u,o))??l}),l}};const Hg=Symbol("i18next/PATH_KEY");function p1(){const s=[],l=Object.create(null);let c;return l.get=(u,o)=>{var f;return(f=c==null?void 0:c.revoke)==null||f.call(c),o===Hg?s:(s.push(o),c=Proxy.revocable(u,l),c.proxy)},Proxy.revocable(Object.create(null),l).proxy}function Al(s,l){const{[Hg]:c}=s(p1()),u=(l==null?void 0:l.keySeparator)??".",o=(l==null?void 0:l.nsSeparator)??":";if(c.length>1&&o){const f=l==null?void 0:l.ns,m=Array.isArray(f)?f:null;if(m&&m.length>1&&m.slice(1).includes(c[0]))return`${c[0]}${o}${c.slice(1).join(u)}`}return c.join(u)}const Wc=s=>!fe(s)&&typeof s!="boolean"&&typeof s!="number";class pu extends Eu{constructor(l,c={}){super(),i1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ba.create("translator"),this.checkedLoadedFor={}}changeLanguage(l){l&&(this.language=l)}exists(l,c={interpolation:{}}){const u={...c};if(l==null)return!1;const o=this.resolve(l,u);if((o==null?void 0:o.res)===void 0)return!1;const f=Wc(o.res);return!(u.returnObjects===!1&&f)}extractFromKey(l,c){let u=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const o=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let f=c.ns||this.options.defaultNS||[];const m=u&&l.includes(u),g=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!m1(l,u,o);if(m&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:fe(f)?[f]:f};const y=l.split(u);(u!==o||u===o&&this.options.ns.includes(y[0]))&&(f=y.shift()),l=y.join(o)}return{key:l,namespaces:fe(f)?[f]:f}}translate(l,c,u){let o=typeof c=="object"?{...c}:c;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),l==null)return"";typeof l=="function"&&(l=Al(l,{...this.options,...o})),Array.isArray(l)||(l=[String(l)]),l=l.map(ee=>typeof ee=="function"?Al(ee,{...this.options,...o}):String(ee));const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,m=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:g,namespaces:p}=this.extractFromKey(l[l.length-1],o),y=p[p.length-1];let S=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;S===void 0&&(S=":");const b=o.lng||this.language,N=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((b==null?void 0:b.toLowerCase())==="cimode")return N?f?{res:`${y}${S}${g}`,usedKey:g,exactUsedKey:g,usedLng:b,usedNS:y,usedParams:this.getUsedParamsDetails(o)}:`${y}${S}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:b,usedNS:y,usedParams:this.getUsedParamsDetails(o)}:g;const C=this.resolve(l,o);let T=C==null?void 0:C.res;const O=(C==null?void 0:C.usedKey)||g,U=(C==null?void 0:C.exactUsedKey)||g,D=["[object Number]","[object Function]","[object RegExp]"],k=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject,K=o.count!==void 0&&!fe(o.count),X=pu.hasDefaultValue(o),P=K?this.pluralResolver.getSuffix(b,o.count,o):"",F=o.ordinal&&K?this.pluralResolver.getSuffix(b,o.count,{ordinal:!1}):"",Te=K&&!o.ordinal&&o.count===0,ge=Te&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${F}`]||o.defaultValue;let _e=T;Y&&!T&&X&&(_e=ge);const qe=Wc(_e),ce=Object.prototype.toString.apply(_e);if(Y&&_e&&qe&&!D.includes(ce)&&!(fe(k)&&Array.isArray(_e))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,_e,{...o,ns:p}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(C.res=ee,C.usedParams=this.getUsedParamsDetails(o),C):ee}if(m){const ee=Array.isArray(_e),ne=ee?[]:{},le=ee?U:O;for(const M in _e)if(Object.prototype.hasOwnProperty.call(_e,M)){const G=`${le}${m}${M}`;X&&!T?ne[M]=this.translate(G,{...o,defaultValue:Wc(ge)?ge[M]:void 0,joinArrays:!1,ns:p}):ne[M]=this.translate(G,{...o,joinArrays:!1,ns:p}),ne[M]===G&&(ne[M]=_e[M])}T=ne}}else if(Y&&fe(k)&&Array.isArray(T))T=T.join(k),T&&(T=this.extendTranslation(T,l,o,u));else{let ee=!1,ne=!1;!this.isValidLookup(T)&&X&&(ee=!0,T=ge),this.isValidLookup(T)||(ne=!0,T=g);const M=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:T,G=X&&ge!==T&&this.options.updateMissing;if(ne||ee||G){if(this.logger.log(G?"updateKey":"missingKey",b,y,K&&!G?`${g}${this.pluralResolver.getSuffix(b,o.count,o)}`:g,G?ge:T),m){const E=this.resolve(g,{...o,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let E=0;E<he.length;E++)W.push(he[E]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);const pe=(E,H,Q)=>{var se;const J=X&&Q!==T?Q:M;this.options.missingKeyHandler?this.options.missingKeyHandler(E,y,H,J,G,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(E,y,H,J,G,o),this.emit("missingKey",E,y,H,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&K?W.forEach(E=>{const H=this.pluralResolver.getSuffixes(E,o);Te&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!H.includes(`${this.options.pluralSeparator}zero`)&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(Q=>{pe([E],g+Q,o[`defaultValue${Q}`]||ge)})}):pe(W,g,ge))}T=this.extendTranslation(T,l,o,C,u),ne&&T===g&&this.options.appendNamespaceToMissingKey&&(T=`${y}${S}${g}`),(ne||ee)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}${S}${g}`:g,ee?T:void 0,o))}return f?(C.res=T,C.usedParams=this.getUsedParamsDetails(o),C):T}extendTranslation(l,c,u,o,f){var p,y;if((p=this.i18nFormat)!=null&&p.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const S=fe(l)&&(((y=u==null?void 0:u.interpolation)==null?void 0:y.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(S){const C=l.match(this.interpolator.nestingRegexp);b=C&&C.length}let N=u.replace&&!fe(u.replace)?u.replace:u;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),l=this.interpolator.interpolate(l,N,u.lng||this.language||o.usedLng,u),S){const C=l.match(this.interpolator.nestingRegexp),T=C&&C.length;b<T&&(u.nest=!1)}!u.lng&&o&&o.res&&(u.lng=this.language||o.usedLng),u.nest!==!1&&(l=this.interpolator.nest(l,(...C)=>(f==null?void 0:f[0])===C[0]&&!u.context?(this.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${c[0]}`),null):this.translate(...C,c),u)),u.interpolation&&this.interpolator.reset()}const m=u.postProcess||this.options.postProcess,g=fe(m)?[m]:m;return l!=null&&(g!=null&&g.length)&&u.applyPostProcessor!==!1&&(l=Ug.handle(g,l,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),l}resolve(l,c={}){let u,o,f,m,g;return fe(l)&&(l=[l]),Array.isArray(l)&&(l=l.map(p=>typeof p=="function"?Al(p,{...this.options,...c}):p)),l.forEach(p=>{if(this.isValidLookup(u))return;const y=this.extractFromKey(p,c),S=y.key;o=S;let b=y.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const N=c.count!==void 0&&!fe(c.count),C=N&&!c.ordinal&&c.count===0,T=c.context!==void 0&&(fe(c.context)||typeof c.context=="number")&&c.context!=="",O=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);b.forEach(U=>{var D,k;this.isValidLookup(u)||(g=U,!this.checkedLoadedFor[`${O[0]}-${U}`]&&((D=this.utils)!=null&&D.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(g))&&(this.checkedLoadedFor[`${O[0]}-${U}`]=!0,this.logger.warn(`key "${o}" for languages "${O.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(Y=>{var P;if(this.isValidLookup(u))return;m=Y;const K=[S];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(K,S,Y,U,c);else{let F;N&&(F=this.pluralResolver.getSuffix(Y,c.count,c));const Te=`${this.options.pluralSeparator}zero`,ge=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(c.ordinal&&F.startsWith(ge)&&K.push(S+F.replace(ge,this.options.pluralSeparator)),K.push(S+F),C&&K.push(S+Te)),T){const _e=`${S}${this.options.contextSeparator||"_"}${c.context}`;K.push(_e),N&&(c.ordinal&&F.startsWith(ge)&&K.push(_e+F.replace(ge,this.options.pluralSeparator)),K.push(_e+F),C&&K.push(_e+Te))}}let X;for(;X=K.pop();)this.isValidLookup(u)||(f=X,u=this.getResource(Y,U,X,c))}))})}),{res:u,usedKey:o,exactUsedKey:f,usedLng:m,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,c,u,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,c,u,o):this.resourceStore.getResource(l,c,u,o)}getUsedParamsDetails(l={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=l.replace&&!fe(l.replace);let o=u?l.replace:l;if(u&&typeof l.count<"u"&&(o.count=l.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!u){o={...o};for(const f of c)delete o[f]}return o}static hasDefaultValue(l){const c="defaultValue";for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)&&u.startsWith(c)&&l[u]!==void 0)return!0;return!1}}class Qm{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ba.create("languageUtils")}getScriptPartFromCode(l){if(l=ki(l),!l||!l.includes("-"))return null;const c=l.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(l){if(l=ki(l),!l||!l.includes("-"))return l;const c=l.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(l){if(fe(l)&&l.includes("-")){let c;try{c=Intl.getCanonicalLocales(l)[0]}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(l)}getBestMatchFromCodes(l){if(!l)return null;let c;return l.forEach(u=>{if(c)return;const o=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(o))&&(c=o)}),!c&&this.options.supportedLngs&&l.forEach(u=>{if(c)return;const o=this.getScriptPartFromCode(u);if(this.isSupportedCode(o))return c=o;const f=this.getLanguagePartFromCode(u);if(this.isSupportedCode(f))return c=f;c=this.options.supportedLngs.find(m=>m===f?!0:!m.includes("-")&&!f.includes("-")?!1:!!(m.includes("-")&&!f.includes("-")&&m.slice(0,m.indexOf("-"))===f||m.startsWith(f)&&f.length>1))}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(l,c){if(!l)return[];if(typeof l=="function"&&(l=l(c)),fe(l)&&(l=[l]),Array.isArray(l))return l;if(!c)return l.default||[];let u=l[c];return u||(u=l[this.getScriptPartFromCode(c)]),u||(u=l[this.formatLanguageCode(c)]),u||(u=l[this.getLanguagePartFromCode(c)]),u||(u=l.default),u||[]}toResolveHierarchy(l,c){const u=this.getFallbackCodes((c===!1?[]:c)||this.options.fallbackLng||[],l),o=[],f=m=>{m&&(this.isSupportedCode(m)?o.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return fe(l)&&(l.includes("-")||l.includes("_"))?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):fe(l)&&f(this.formatLanguageCode(l)),u.forEach(m=>{o.includes(m)||f(this.formatLanguageCode(m))}),o}}const Km={zero:0,one:1,two:2,few:3,many:4,other:5},Zm={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class y1{constructor(l,c={}){this.languageUtils=l,this.options=c,this.logger=ba.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(l,c={}){const u=ki(l==="dev"?"en":l),o=c.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:u,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let m;try{m=new Intl.PluralRules(u,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Zm;if(!l.match(/-|_/))return Zm;const p=this.languageUtils.getLanguagePartFromCode(l);m=this.getRule(p,c)}return this.pluralRulesCache[f]=m,m}needsPlural(l,c={}){let u=this.getRule(l,c);return u||(u=this.getRule("dev",c)),(u==null?void 0:u.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,c,u={}){return this.getSuffixes(l,u).map(o=>`${c}${o}`)}getSuffixes(l,c={}){let u=this.getRule(l,c);return u||(u=this.getRule("dev",c)),u?u.resolvedOptions().pluralCategories.sort((o,f)=>Km[o]-Km[f]).map(o=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(l,c,u={}){const o=this.getRule(l,u);return o?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${o.select(c)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",c,u))}}const Jm=(s,l,c,u=".",o=!0)=>{let f=r1(s,l,c);return!f&&o&&fe(c)&&(f=so(s,c,u),f===void 0&&(f=so(l,c,u))),f},Ic=s=>s.replace(/\$/g,"$$$$");class Fm{constructor(l={}){var c;this.logger=ba.create("interpolator"),this.options=l,this.format=((c=l==null?void 0:l.interpolation)==null?void 0:c.format)||(u=>u),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:c,escapeValue:u,useRawValueToEscape:o,prefix:f,prefixEscaped:m,suffix:g,suffixEscaped:p,formatSeparator:y,unescapeSuffix:S,unescapePrefix:b,nestingPrefix:N,nestingPrefixEscaped:C,nestingSuffix:T,nestingSuffixEscaped:O,nestingOptionsSeparator:U,maxReplaces:D,alwaysFormat:k}=l.interpolation;this.escape=c!==void 0?c:o1,this.escapeValue=u!==void 0?u:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?ka(f):m||"{{",this.suffix=g?ka(g):p||"}}",this.formatSeparator=y||",",this.unescapePrefix=S?"":b?ka(b):"-",this.unescapeSuffix=this.unescapePrefix?"":S?ka(S):"",this.nestingPrefix=N?ka(N):C||ka("$t("),this.nestingSuffix=T?ka(T):O||ka(")"),this.nestingOptionsSeparator=U||",",this.maxReplaces=D||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(c,u)=>(c==null?void 0:c.source)===u?(c.lastIndex=0,c):new RegExp(u,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(l,c,u,o){var C;let f,m,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=T=>{if(!T.includes(this.formatSeparator)){const k=Jm(c,p,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,u,{...o,...c,interpolationkey:T}):k}const O=T.split(this.formatSeparator),U=O.shift().trim(),D=O.join(this.formatSeparator).trim();return this.format(Jm(c,p,U,this.options.keySeparator,this.options.ignoreJSONStructure),D,u,{...o,...c,interpolationkey:U})};this.resetRegExp(),!this.escapeValue&&typeof l=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(l)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const S=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,b=((C=o==null?void 0:o.interpolation)==null?void 0:C.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Ic(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Ic(this.escape(T)):Ic(T)}].forEach(T=>{for(g=0;f=T.regex.exec(l);){const O=f[1].trim();if(m=y(O),m===void 0)if(typeof S=="function"){const D=S(l,f,o);m=fe(D)?D:""}else if(o&&Object.prototype.hasOwnProperty.call(o,O))m="";else if(b){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${l}`),m="";else!fe(m)&&!this.useRawValueToEscape&&(m=$m(m));const U=T.safeValue(m);if(l=l.replace(f[0],U),b?(T.regex.lastIndex+=m.length,T.regex.lastIndex-=f[0].length):T.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,c,u={}){let o,f,m;const g=(p,y)=>{const S=this.nestingOptionsSeparator;if(!p.includes(S))return p;const b=p.split(new RegExp(`${ka(S)}[ ]*{`));let N=`{${b[1]}`;p=b[0],N=this.interpolate(N,m);const C=N.match(/'/g),T=N.match(/"/g);(((C==null?void 0:C.length)??0)%2===0&&!T||((T==null?void 0:T.length)??0)%2!==0)&&(N=N.replace(/'/g,'"'));try{m=JSON.parse(N),y&&(m={...y,...m})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,O),`${p}${S}${N}`}return m.defaultValue&&m.defaultValue.includes(this.prefix)&&delete m.defaultValue,p};for(;o=this.nestingRegexp.exec(l);){let p=[];m={...u},m=m.replace&&!fe(m.replace)?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;const y=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(y!==-1&&(p=o[1].slice(y).split(this.formatSeparator).map(S=>S.trim()).filter(Boolean),o[1]=o[1].slice(0,y)),f=c(g.call(this,o[1].trim(),m),m),f&&o[0]===l&&!fe(f))return f;fe(f)||(f=$m(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${l}`),f=""),p.length&&(f=p.reduce((S,b)=>this.format(S,b,u.lng,{...u,interpolationkey:o[1].trim()}),f.trim())),l=l.replace(o[0],f),this.regexp.lastIndex=0}return l}}const v1=s=>{let l=s.toLowerCase().trim();const c={};if(s.includes("(")){const u=s.split("(");l=u[0].toLowerCase().trim();const o=u[1].slice(0,-1);l==="currency"&&!o.includes(":")?c.currency||(c.currency=o.trim()):l==="relativetime"&&!o.includes(":")?c.range||(c.range=o.trim()):o.split(";").forEach(m=>{if(m){const[g,...p]=m.split(":"),y=p.join(":").trim().replace(/^'+|'+$/g,""),S=g.trim();c[S]||(c[S]=y),y==="false"&&(c[S]=!1),y==="true"&&(c[S]=!0),isNaN(y)||(c[S]=parseInt(y,10))}})}return{formatName:l,formatOptions:c}},Wm=s=>{const l={};return(c,u,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const m=u+JSON.stringify(f);let g=l[m];return g||(g=s(ki(u),o),l[m]=g),g(c)}},b1=s=>(l,c,u)=>s(ki(c),u)(l);class S1{constructor(l={}){this.logger=ba.create("formatter"),this.options=l,this.init(l)}init(l,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const u=c.cacheInBuiltFormats?Wm:b1;this.formats={number:u((o,f)=>{const m=new Intl.NumberFormat(o,{...f});return g=>m.format(g)}),currency:u((o,f)=>{const m=new Intl.NumberFormat(o,{...f,style:"currency"});return g=>m.format(g)}),datetime:u((o,f)=>{const m=new Intl.DateTimeFormat(o,{...f});return g=>m.format(g)}),relativetime:u((o,f)=>{const m=new Intl.RelativeTimeFormat(o,{...f});return g=>m.format(g,f.range||"day")}),list:u((o,f)=>{const m=new Intl.ListFormat(o,{...f});return g=>m.format(g)})}}add(l,c){this.formats[l.toLowerCase().trim()]=c}addCached(l,c){this.formats[l.toLowerCase().trim()]=Wm(c)}format(l,c,u,o={}){if(!c||l==null)return l;const f=c.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&!f[0].includes(")")&&f.find(g=>g.includes(")"))){const g=f.findIndex(p=>p.includes(")"));f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var b;const{formatName:y,formatOptions:S}=v1(p);if(this.formats[y]){let N=g;try{const C=((b=o==null?void 0:o.formatParams)==null?void 0:b[o.interpolationkey])||{},T=C.locale||C.lng||o.locale||o.lng||u;N=this.formats[y](g,T,{...S,...o,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${y}`);return g},l)}}const _1=(s,l)=>{s.pending[l]!==void 0&&(delete s.pending[l],s.pendingCount--)};class x1 extends Eu{constructor(l,c,u,o={}){var f,m;super(),this.backend=l,this.store=c,this.services=u,this.languageUtils=u.languageUtils,this.options=o,this.logger=ba.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(m=(f=this.backend)==null?void 0:f.init)==null||m.call(f,u,o.backend,o)}queueLoad(l,c,u,o){const f={},m={},g={},p={};return l.forEach(y=>{let S=!0;c.forEach(b=>{const N=`${y}|${b}`;!u.reload&&this.store.hasResourceBundle(y,b)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?m[N]===void 0&&(m[N]=!0):(this.state[N]=1,S=!1,m[N]===void 0&&(m[N]=!0),f[N]===void 0&&(f[N]=!0),p[b]===void 0&&(p[b]=!0)))}),S||(g[y]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(l,c,u){const o=l.split("|"),f=o[0],m=o[1];c&&this.emit("failedLoading",f,m,c),!c&&u&&this.store.addResourceBundle(f,m,u,void 0,void 0,{skipCopy:!0}),this.state[l]=c?-1:2,c&&u&&(this.state[l]=0);const g={};this.queue.forEach(p=>{u1(p.loaded,[f],m),_1(p,l),c&&p.errors.push(c),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(y=>{g[y]||(g[y]={});const S=p.loaded[y];S.length&&S.forEach(b=>{g[y][b]===void 0&&(g[y][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,c,u,o=0,f=this.retryTimeout,m){if(!l.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:c,fcName:u,tried:o,wait:f,callback:m});return}this.readingCalls++;const g=(y,S)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(y&&S&&o<this.maxRetries){setTimeout(()=>{this.read(l,c,u,o+1,f*2,m)},f);return}m(y,S)},p=this.backend[u].bind(this.backend);if(p.length===2){try{const y=p(l,c);y&&typeof y.then=="function"?y.then(S=>g(null,S)).catch(g):g(null,y)}catch(y){g(y)}return}return p(l,c,g)}prepareLoading(l,c,u={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();fe(l)&&(l=this.languageUtils.toResolveHierarchy(l)),fe(c)&&(c=[c]);const f=this.queueLoad(l,c,u,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(l,c,u){this.prepareLoading(l,c,{},u)}reload(l,c,u){this.prepareLoading(l,c,{reload:!0},u)}loadOne(l,c=""){const u=l.split("|"),o=u[0],f=u[1];this.read(o,f,"read",void 0,void 0,(m,g)=>{m&&this.logger.warn(`${c}loading namespace ${f} for language ${o} failed`,m),!m&&g&&this.logger.log(`${c}loaded namespace ${f} for language ${o}`,g),this.loaded(l,m,g)})}saveMissing(l,c,u,o,f,m={},g=()=>{}){var p,y,S,b,N;if((y=(p=this.services)==null?void 0:p.utils)!=null&&y.hasLoadedNamespace&&!((b=(S=this.services)==null?void 0:S.utils)!=null&&b.hasLoadedNamespace(c))){this.logger.warn(`did not save key "${u}" as the namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(u==null||u==="")){if((N=this.backend)!=null&&N.create){const C={...m,isUpdate:f},T=this.backend.create.bind(this.backend);if(T.length<6)try{let O;T.length===5?O=T(l,c,u,o,C):O=T(l,c,u,o),O&&typeof O.then=="function"?O.then(U=>g(null,U)).catch(g):g(null,O)}catch(O){g(O)}else T(l,c,u,o,g,C)}!l||!l[0]||this.store.addResource(l[0],c,u,o)}}}const Pc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let l={};if(typeof s[1]=="object"&&(l=s[1]),fe(s[1])&&(l.defaultValue=s[1]),fe(s[2])&&(l.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const c=s[3]||s[2];Object.keys(c).forEach(u=>{l[u]=c[u]})}return l},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Im=s=>(fe(s.ns)&&(s.ns=[s.ns]),fe(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),fe(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&!s.supportedLngs.includes("cimode")&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),ru=()=>{},E1=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(c=>{typeof s[c]=="function"&&(s[c]=s[c].bind(s))})};class Hi extends Eu{constructor(l={},c){if(super(),this.options=Im(l),this.services={},this.logger=ba,this.modules={external:[]},E1(this),c&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,c),this;setTimeout(()=>{this.init(l,c)},0)}}init(l={},c){this.isInitializing=!0,typeof l=="function"&&(c=l,l={}),l.defaultNS==null&&l.ns&&(fe(l.ns)?l.defaultNS=l.ns:l.ns.includes("translation")||(l.defaultNS=l.ns[0]));const u=Pc();this.options={...u,...this.options,...Im(l)},this.options.interpolation={...u.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=u.overloadTranslationOptionHandler);const o=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?ba.init(o(this.modules.logger),this.options):ba.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=S1;const S=new Qm(this.options);this.store=new Xm(this.options.resources,this.options);const b=this.services;b.logger=ba,b.resourceStore=this.store,b.languageUtils=S,b.pluralResolver=new y1(S,{prepend:this.options.pluralSeparator}),y&&(b.formatter=o(y),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new Fm(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new x1(o(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(N,...C)=>{this.emit(N,...C)}),this.modules.languageDetector&&(b.languageDetector=o(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=o(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new pu(this.services,this.options),this.translator.on("*",(N,...C)=>{this.emit(N,...C)}),this.modules.external.forEach(N=>{N.init&&N.init(this)})}if(this.format=this.options.interpolation.format,c||(c=ru),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(y=>{this[y]=(...S)=>this.store[y](...S)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=(...S)=>(this.store[y](...S),this)});const g=Mi(),p=()=>{const y=(S,b)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(b),c(S,b)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),g}loadResources(l,c=ru){var f,m;let u=c;const o=fe(l)?l:this.language;if(typeof l=="function"&&(u=l),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const g=[],p=y=>{if(!y||y==="cimode")return;this.services.languageUtils.toResolveHierarchy(y).forEach(b=>{b!=="cimode"&&(g.includes(b)||g.push(b))})};o?p(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(S=>p(S)),(m=(f=this.options.preload)==null?void 0:f.forEach)==null||m.call(f,y=>p(y)),this.services.backendConnector.load(g,this.options.ns,y=>{!y&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(y)})}else u(null)}reloadResources(l,c,u){const o=Mi();return typeof l=="function"&&(u=l,l=void 0),typeof c=="function"&&(u=c,c=void 0),l||(l=this.languages),c||(c=this.options.ns),u||(u=ru),this.services.backendConnector.reload(l,c,f=>{o.resolve(),u(f)}),o}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Ug.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!["cimode","dev"].includes(l)){for(let c=0;c<this.languages.length;c++){const u=this.languages[c];if(!["cimode","dev"].includes(u)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}!this.resolvedLanguage&&!this.languages.includes(l)&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,c){this.isLanguageChangingTo=l;const u=Mi();this.emit("languageChanging",l);const o=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,p)=>{p?this.isLanguageChangingTo===l&&(o(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,u.resolve((...y)=>this.t(...y)),c&&c(g,(...y)=>this.t(...y))},m=g=>{var S,b;!l&&!g&&this.services.languageDetector&&(g=[]);const p=fe(g)?g:g&&g[0],y=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(fe(g)?[g]:g);y&&(this.language||o(y),this.translator.language||this.translator.changeLanguage(y),(b=(S=this.services.languageDetector)==null?void 0:S.cacheUserLanguage)==null||b.call(S,y)),this.loadResources(y,N=>{f(N,y)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(l),u}getFixedT(l,c,u){const o=(f,m,...g)=>{let p;typeof m!="object"?p=this.options.overloadTranslationOptionHandler([f,m].concat(g)):p={...m},p.lng=p.lng||o.lng,p.lngs=p.lngs||o.lngs,p.ns=p.ns||o.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||u||o.keyPrefix);const y={...this.options,...p};typeof p.keyPrefix=="function"&&(p.keyPrefix=Al(p.keyPrefix,y));const S=this.options.keySeparator||".";let b;return p.keyPrefix&&Array.isArray(f)?b=f.map(N=>(typeof N=="function"&&(N=Al(N,y)),`${p.keyPrefix}${S}${N}`)):(typeof f=="function"&&(f=Al(f,y)),b=p.keyPrefix?`${p.keyPrefix}${S}${f}`:f),this.t(b,p)};return fe(l)?o.lng=l:o.lngs=l,o.ns=c,o.keyPrefix=u,o}t(...l){var c;return(c=this.translator)==null?void 0:c.translate(...l)}exists(...l){var c;return(c=this.translator)==null?void 0:c.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const u=c.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const m=(g,p)=>{const y=this.services.backendConnector.state[`${g}|${p}`];return y===-1||y===0||y===2};if(c.precheck){const g=c.precheck(this,m);if(g!==void 0)return g}return!!(this.hasResourceBundle(u,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(u,l)&&(!o||m(f,l)))}loadNamespaces(l,c){const u=Mi();return this.options.ns?(fe(l)&&(l=[l]),l.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{u.resolve(),c&&c(o)}),u):(c&&c(),Promise.resolve())}loadLanguages(l,c){const u=Mi();fe(l)&&(l=[l]);const o=this.options.preload||[],f=l.filter(m=>!o.includes(m)&&this.services.languageUtils.isSupportedCode(m));return f.length?(this.options.preload=o.concat(f),this.loadResources(m=>{u.resolve(),c&&c(m)}),u):(c&&c(),Promise.resolve())}dir(l){var o,f;if(l||(l=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!l)return"rtl";try{const m=new Intl.Locale(l);if(m&&m.getTextInfo){const g=m.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const c=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],u=((f=this.services)==null?void 0:f.languageUtils)||new Qm(Pc());return l.toLowerCase().indexOf("-latn")>1?"ltr":c.includes(u.getLanguagePartFromCode(l))||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},c){const u=new Hi(l,c);return u.createInstance=Hi.createInstance,u}cloneInstance(l={},c=ru){const u=l.forkResourceStore;u&&delete l.forkResourceStore;const o={...this.options,...l,isClone:!0},f=new Hi(o);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},u){const g=Object.keys(this.store.data).reduce((p,y)=>(p[y]={...this.store.data[y]},p[y]=Object.keys(p[y]).reduce((S,b)=>(S[b]={...p[y][b]},S),p[y]),p),{});f.store=new Xm(g,o),f.services.resourceStore=f.store}if(l.interpolation){const p={...Pc().interpolation,...this.options.interpolation,...l.interpolation},y={...o,interpolation:p};f.services.interpolator=new Fm(y)}return f.translator=new pu(f.services,o),f.translator.on("*",(g,...p)=>{f.emit(g,...p)}),f.init(o,c),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Nt=Hi.createInstance();Nt.createInstance;Nt.dir;Nt.init;Nt.loadResources;Nt.reloadResources;Nt.use;Nt.changeLanguage;Nt.getFixedT;Nt.t;Nt.exists;Nt.setDefaultNamespace;Nt.hasLoadedNamespace;Nt.loadNamespaces;Nt.loadLanguages;const j1=(s,l,c,u)=>{var f,m,g,p;const o=[c,{code:l,...u||{}}];if((m=(f=s==null?void 0:s.services)==null?void 0:f.logger)!=null&&m.forward)return s.services.logger.forward(o,"warn","react-i18next::",!0);kn(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(p=(g=s==null?void 0:s.services)==null?void 0:g.logger)!=null&&p.warn?s.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},Pm={},uo=(s,l,c,u)=>{kn(c)&&Pm[c]||(kn(c)&&(Pm[c]=new Date),j1(s,l,c,u))},Bg=(s,l)=>()=>{if(s.isInitialized)l();else{const c=()=>{setTimeout(()=>{s.off("initialized",c)},0),l()};s.on("initialized",c)}},ro=(s,l,c)=>{s.loadNamespaces(l,Bg(s,c))},eg=(s,l,c,u)=>{if(kn(c)&&(c=[c]),s.options.preload&&s.options.preload.indexOf(l)>-1)return ro(s,c,u);c.forEach(o=>{s.options.ns.indexOf(o)<0&&s.options.ns.push(o)}),s.loadLanguages(l,Bg(s,u))},N1=(s,l,c={})=>!l.languages||!l.languages.length?(uo(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(s,{lng:c.lng,precheck:(u,o)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!o(u.isLanguageChangingTo,s))return!1}}),kn=s=>typeof s=="string",T1=s=>typeof s=="object"&&s!==null,w1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,C1={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},R1=s=>C1[s],z1=s=>s.replace(w1,R1);let co={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:z1,transDefaultProps:void 0};const A1=(s={})=>{co={...co,...s}},O1=()=>co;let kg;const D1=s=>{kg=s},M1=()=>kg,L1={type:"3rdParty",init(s){A1(s.options.react),D1(s)}},U1=_.createContext();class H1{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var eo={exports:{}},to={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var tg;function B1(){if(tg)return to;tg=1;var s=vu();function l(b,N){return b===N&&(b!==0||1/b===1/N)||b!==b&&N!==N}var c=typeof Object.is=="function"?Object.is:l,u=s.useState,o=s.useEffect,f=s.useLayoutEffect,m=s.useDebugValue;function g(b,N){var C=N(),T=u({inst:{value:C,getSnapshot:N}}),O=T[0].inst,U=T[1];return f(function(){O.value=C,O.getSnapshot=N,p(O)&&U({inst:O})},[b,C,N]),o(function(){return p(O)&&U({inst:O}),b(function(){p(O)&&U({inst:O})})},[b]),m(C),C}function p(b){var N=b.getSnapshot;b=b.value;try{var C=N();return!c(b,C)}catch{return!0}}function y(b,N){return N()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:g;return to.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:S,to}var ag;function k1(){return ag||(ag=1,eo.exports=B1()),eo.exports}var q1=k1();const $1=(s,l)=>{if(kn(l))return l;if(T1(l)&&kn(l.defaultValue))return l.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const c=s[s.length-1];return typeof c=="function"?"":c}return s},Y1={t:$1,ready:!1},V1=()=>()=>{},Xa=(s,l={})=>{var ge,_e,qe;const{i18n:c}=l,{i18n:u,defaultNS:o}=_.useContext(U1)||{},f=c||u||M1();f&&!f.reportNamespaces&&(f.reportNamespaces=new H1),f||uo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const m=_.useMemo(()=>{var ce;return{...O1(),...(ce=f==null?void 0:f.options)==null?void 0:ce.react,...l}},[f,l]),{useSuspense:g,keyPrefix:p}=m,y=o||((ge=f==null?void 0:f.options)==null?void 0:ge.defaultNS),S=kn(y)?[y]:y||["translation"],b=_.useMemo(()=>S,S);(qe=(_e=f==null?void 0:f.reportNamespaces)==null?void 0:_e.addUsedNamespaces)==null||qe.call(_e,b);const N=_.useRef(0),C=_.useCallback(ce=>{if(!f)return V1;const{bindI18n:ee,bindI18nStore:ne}=m,le=()=>{N.current+=1,ce()};return ee&&f.on(ee,le),ne&&f.store.on(ne,le),()=>{ee&&ee.split(" ").forEach(M=>f.off(M,le)),ne&&ne.split(" ").forEach(M=>f.store.off(M,le))}},[f,m]),T=_.useRef(),O=_.useCallback(()=>{if(!f)return Y1;const ce=!!(f.isInitialized||f.initializedStoreOnce)&&b.every(W=>N1(W,f,m)),ee=l.lng||f.language,ne=N.current,le=T.current;if(le&&le.ready===ce&&le.lng===ee&&le.keyPrefix===p&&le.revision===ne)return le;const G={t:f.getFixedT(ee,m.nsMode==="fallback"?b:b[0],p),ready:ce,lng:ee,keyPrefix:p,revision:ne};return T.current=G,G},[f,b,p,m,l.lng]),[U,D]=_.useState(0),{t:k,ready:Y}=q1.useSyncExternalStore(C,O,O);_.useEffect(()=>{if(f&&!Y&&!g){const ce=()=>D(ee=>ee+1);l.lng?eg(f,l.lng,b,ce):ro(f,b,ce)}},[f,l.lng,b,Y,g,U]);const K=f||{},X=_.useRef(null),P=_.useRef(),F=ce=>{const ee=Object.getOwnPropertyDescriptors(ce);ee.__original&&delete ee.__original;const ne=Object.create(Object.getPrototypeOf(ce),ee);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:ce,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},Te=_.useMemo(()=>{const ce=K,ee=ce==null?void 0:ce.language;let ne=ce;ce&&(X.current&&X.current.__original===ce?P.current!==ee?(ne=F(ce),X.current=ne,P.current=ee):ne=X.current:(ne=F(ce),X.current=ne,P.current=ee));const le=!Y&&!g?(...G)=>(uo(f,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),k(...G)):k,M=[le,ne,Y];return M.t=le,M.i18n=ne,M.ready=Y,M},[k,K,Y,K.resolvedLanguage,K.language,K.languages]);if(f&&g&&!Y)throw new Promise(ce=>{const ee=()=>ce();l.lng?eg(f,l.lng,b,ee):ro(f,b,ee)});return Te},{slice:G1,forEach:X1}=[];function Q1(s){return X1.call(G1.call(arguments,1),l=>{if(l)for(const c in l)s[c]===void 0&&(s[c]=l[c])}),s}function K1(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(c=>c.test(s))}const ng=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Z1=function(s,l){const u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(l);let f=`${s}=${o}`;if(u.maxAge>0){const m=u.maxAge-0;if(Number.isNaN(m))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(m)}`}if(u.domain){if(!ng.test(u.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${u.domain}`}if(u.path){if(!ng.test(u.path))throw new TypeError("option path is invalid");f+=`; Path=${u.path}`}if(u.expires){if(typeof u.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${u.expires.toUTCString()}`}if(u.httpOnly&&(f+="; HttpOnly"),u.secure&&(f+="; Secure"),u.sameSite)switch(typeof u.sameSite=="string"?u.sameSite.toLowerCase():u.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return u.partitioned&&(f+="; Partitioned"),f},lg={create(s,l,c,u){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};c&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+c*60*1e3)),u&&(o.domain=u),document.cookie=Z1(s,l,o)},read(s){const l=`${s}=`,c=document.cookie.split(";");for(let u=0;u<c.length;u++){let o=c[u];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(l)===0)return o.substring(l.length,o.length)}return null},remove(s,l){this.create(s,"",-1,l)}};var J1={name:"cookie",lookup(s){let{lookupCookie:l}=s;if(l&&typeof document<"u")return lg.read(l)||void 0},cacheUserLanguage(s,l){let{lookupCookie:c,cookieMinutes:u,cookieDomain:o,cookieOptions:f}=l;c&&typeof document<"u"&&lg.create(c,s,u,o,f)}},F1={name:"querystring",lookup(s){var u;let{lookupQuerystring:l}=s,c;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((u=window.location.hash)==null?void 0:u.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const m=o.substring(1).split("&");for(let g=0;g<m.length;g++){const p=m[g].indexOf("=");p>0&&m[g].substring(0,p)===l&&(c=m[g].substring(p+1))}}return c}},W1={name:"hash",lookup(s){var o;let{lookupHash:l,lookupFromHashIndex:c}=s,u;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const m=f.substring(1);if(l){const g=m.split("&");for(let p=0;p<g.length;p++){const y=g[p].indexOf("=");y>0&&g[p].substring(0,y)===l&&(u=g[p].substring(y+1))}}if(u)return u;if(!u&&c>-1){const g=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(g)?(o=g[typeof c=="number"?c:0])==null?void 0:o.replace("/",""):void 0}}}return u}};let Tl=null;const ig=()=>{if(Tl!==null)return Tl;try{if(Tl=typeof window<"u"&&window.localStorage!==null,!Tl)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{Tl=!1}return Tl};var I1={name:"localStorage",lookup(s){let{lookupLocalStorage:l}=s;if(l&&ig())return window.localStorage.getItem(l)||void 0},cacheUserLanguage(s,l){let{lookupLocalStorage:c}=l;c&&ig()&&window.localStorage.setItem(c,s)}};let wl=null;const sg=()=>{if(wl!==null)return wl;try{if(wl=typeof window<"u"&&window.sessionStorage!==null,!wl)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{wl=!1}return wl};var P1={name:"sessionStorage",lookup(s){let{lookupSessionStorage:l}=s;if(l&&sg())return window.sessionStorage.getItem(l)||void 0},cacheUserLanguage(s,l){let{lookupSessionStorage:c}=l;c&&sg()&&window.sessionStorage.setItem(c,s)}},eb={name:"navigator",lookup(s){const l=[];if(typeof navigator<"u"){const{languages:c,userLanguage:u,language:o}=navigator;if(c)for(let f=0;f<c.length;f++)l.push(c[f]);u&&l.push(u),o&&l.push(o)}return l.length>0?l:void 0}},tb={name:"htmlTag",lookup(s){let{htmlTag:l}=s,c;const u=l||(typeof document<"u"?document.documentElement:null);return u&&typeof u.getAttribute=="function"&&(c=u.getAttribute("lang")),c}},ab={name:"path",lookup(s){var o;let{lookupFromPathIndex:l}=s;if(typeof window>"u")return;const c=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?(o=c[typeof l=="number"?l:0])==null?void 0:o.replace("/",""):void 0}},nb={name:"subdomain",lookup(s){var o,f;let{lookupFromSubdomainIndex:l}=s;const c=typeof l=="number"?l+1:1,u=typeof window<"u"&&((f=(o=window.location)==null?void 0:o.hostname)==null?void 0:f.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(u)return u[c]}};let qg=!1;try{document.cookie,qg=!0}catch{}const $g=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];qg||$g.splice(1,1);const lb=()=>({order:$g,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class Yg{constructor(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(l,c)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=l,this.options=Q1(c,this.options||{},lb()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=u,this.addDetector(J1),this.addDetector(F1),this.addDetector(I1),this.addDetector(P1),this.addDetector(eb),this.addDetector(tb),this.addDetector(ab),this.addDetector(nb),this.addDetector(W1)}addDetector(l){return this.detectors[l.name]=l,this}detect(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,c=[];return l.forEach(u=>{if(this.detectors[u]){let o=this.detectors[u].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(c=c.concat(o))}}),c=c.filter(u=>u!=null&&!K1(u)).map(u=>this.options.convertDetectedLanguage(u)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?c:c.length>0?c[0]:null}cacheUserLanguage(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;c&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(l)>-1||c.forEach(u=>{this.detectors[u]&&this.detectors[u].cacheUserLanguage(l,this.options)}))}}Yg.type="languageDetector";const ib={name:"Excalidraw FULL"},sb={loading:"Loading...",save:"Save",cancel:"Cancel",delete:"Delete",create:"Create",edit:"Edit",back:"Back",search:"Search",submit:"Submit",close:"Close",confirm:"Confirm",error:"Error",success:"Success",or:"or",continueWith:"or continue with"},ub={login:{title:"Welcome back",subtitle:"Sign in to your Excalidraw FULL account",emailLabel:"Email",emailPlaceholder:"you@example.com",passwordLabel:"Password",passwordPlaceholder:"Enter your password",signIn:"Sign In",noAccount:"Don't have an account?",signUpLink:"Sign up",errorInvalid:"Invalid email or password"},signup:{title:"Create account",subtitle:"Start your visual workspace journey",nameLabel:"Full Name",namePlaceholder:"John Doe",emailLabel:"Email",emailPlaceholder:"you@example.com",passwordLabel:"Password",passwordPlaceholder:"Create a strong password",createAccount:"Create Account",hasAccount:"Already have an account?",signInLink:"Sign in",errorCreate:"Could not create account"},oauth:{github:"GitHub"}},rb={dashboard:"Dashboard",files:"Files",projects:"Projects",templates:"Templates",library:"Library",team:"Team",settings:"Settings"},cb={welcome:"Welcome back, {{name}}",subtitle:"Here's what's happening in your workspace",newDrawing:"New Drawing",creating:"Creating...",stats:{drawings:"Drawings",projects:"Projects",folders:"Folders",teams:"Teams",revisions:"Revisions",storage:"Storage"},recentDrawings:"Recent Drawings",noDrawings:"No recent drawings",noDrawingsSub:"Create your first drawing to get started"},ob={back:"Back",saveNow:"Save Now",loadingCanvas:"Loading Excalidraw...",errorLoad:"Failed to load drawing",errorSave:"Failed to save:",saving:"Saving...",saved:"Saved",unsaved:"Unsaved changes",revisions:"revisions",revision:"Revision",revisionBrowser:"Revision Browser",noRevisions:"No revisions yet",goToDashboard:"Go to Dashboard",notFound:"Drawing not found",presenterNotes:"Presenter Notes",notesPlaceholder:"Add notes for your presentation..."},fb={title:"Projects"},db={title:"Templates"},hb={title:"Team Settings"},mb={title:"Settings",subtitle:"Manage your account preferences",language:"Language",theme:"Theme",tabProfile:"Profile",tabAccount:"Account",tabNotifications:"Notifications",tabAppearance:"Appearance",profileInfo:"Profile Information",changeAvatar:"Change Avatar",username:"Username",saveChanges:"Save Changes",accountSecurity:"Account Security",currentPassword:"Current Password",newPassword:"New Password",confirmPassword:"Confirm New Password",updatePassword:"Update Password",notificationPrefs:"Notification Preferences",emailMentions:"Email notifications for mentions",emailInvites:"Email notifications for team invites",weeklySummary:"Weekly activity summary",appearance:"Appearance",light:"Light",dark:"Dark"},gb={placeholder:"Search commands...",noResults:"No matching commands"},pb={noResults:"No results"},yb={app:ib,common:sb,auth:ub,sidebar:rb,dashboard:cb,editor:ob,fileBrowser:fb,templates:db,teamSettings:hb,userSettings:mb,commandPalette:gb,search:pb};Nt.use(Yg).use(L1).init({resources:{en:{translation:yb}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const vb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vg=(...s)=>s.filter((l,c,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===c).join(" ").trim();/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var bb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Sb=_.forwardRef(({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:o="",children:f,iconNode:m,...g},p)=>_.createElement("svg",{ref:p,...bb,width:l,height:l,stroke:s,strokeWidth:u?Number(c)*24/Number(l):c,className:Vg("lucide",o),...g},[...m.map(([y,S])=>_.createElement(y,S)),...Array.isArray(f)?f:[f]]));/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const de=(s,l)=>{const c=_.forwardRef(({className:u,...o},f)=>_.createElement(Sb,{ref:f,iconNode:l,className:Vg(`lucide-${vb(s)}`,u),...o}));return c.displayName=`${s}`,c};/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _b=de("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xb=de("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Eb=de("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Gg=de("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xg=de("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fu=de("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qg=de("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Li=de("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const jb=de("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Nb=de("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Tb=de("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wb=de("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Cb=de("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _o=de("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kg=de("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ug=de("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ao=de("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Zg=de("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Rb=de("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const zb=de("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ab=de("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ob=de("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jg=de("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fg=de("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Db=de("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wg=de("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const bn=de("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Mb=de("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Lb=de("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ig=de("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ub=de("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Hb=de("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xo=de("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bb=de("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Eo=de("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const kb=de("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Pg=de("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qb=de("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $b=de("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Yb=de("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vb=de("StickyNote",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ep=de("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const rg=de("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const tp=de("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qi=de("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ju=de("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Nu=de("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cg=s=>{let l;const c=new Set,u=(y,S)=>{const b=typeof y=="function"?y(l):y;if(!Object.is(b,l)){const N=l;l=S??(typeof b!="object"||b===null)?b:Object.assign({},l,b),c.forEach(C=>C(l,N))}},o=()=>l,g={setState:u,getState:o,getInitialState:()=>p,subscribe:y=>(c.add(y),()=>c.delete(y))},p=l=s(u,o,g);return g},Gb=(s=>s?cg(s):cg),Xb=s=>s;function Qb(s,l=Xb){const c=ra.useSyncExternalStore(s.subscribe,ra.useCallback(()=>l(s.getState()),[s,l]),ra.useCallback(()=>l(s.getInitialState()),[s,l]));return ra.useDebugValue(c),c}const og=s=>{const l=Gb(s),c=u=>Qb(l,u);return Object.assign(c,l),c},Tu=(s=>s?og(s):og),Vi=Tu(s=>({user:null,session:null,isLoading:!0,isAuthenticated:!1,setUser:l=>s({user:l,isAuthenticated:!!l}),setSession:l=>s({session:l}),setLoading:l=>s({isLoading:l}),logout:()=>s({user:null,session:null,isAuthenticated:!1})})),Kb=Tu(s=>({currentTeam:null,teams:[],members:[],invites:[],isLoading:!1,setCurrentTeam:l=>s({currentTeam:l}),setTeams:l=>s({teams:l}),addTeam:l=>s(c=>({teams:[...c.teams,l]})),removeTeam:l=>s(c=>({teams:c.teams.filter(u=>u.id!==l)})),setMembers:l=>s({members:l}),setInvites:l=>s({invites:l}),setLoading:l=>s({isLoading:l})})),ap=Tu(s=>({drawings:[],folders:[],projects:[],templates:[],recentDrawings:[],activity:[],isLoading:!1,setDrawings:l=>s({drawings:l}),setFolders:l=>s({folders:l}),setProjects:l=>s({projects:l}),setTemplates:l=>s({templates:l}),setRecentDrawings:l=>s({recentDrawings:l}),setActivity:l=>s({activity:l}),addDrawing:l=>s(c=>({drawings:[l,...c.drawings]})),updateDrawing:(l,c)=>s(u=>({drawings:u.drawings.map(o=>o.id===l?{...o,...c}:o)})),removeDrawing:l=>s(c=>({drawings:c.drawings.filter(u=>u.id!==l)})),setLoading:l=>s({isLoading:l})}));function Zb(s,l){let c;try{c=s()}catch{return}return{getItem:o=>{var f;const m=p=>p===null?null:JSON.parse(p,void 0),g=(f=c.getItem(o))!=null?f:null;return g instanceof Promise?g.then(m):m(g)},setItem:(o,f)=>c.setItem(o,JSON.stringify(f,void 0)),removeItem:o=>c.removeItem(o)}}const oo=s=>l=>{try{const c=s(l);return c instanceof Promise?c:{then(u){return oo(u)(c)},catch(u){return this}}}catch(c){return{then(u){return this},catch(u){return oo(u)(c)}}}},Jb=(s,l)=>(c,u,o)=>{let f={storage:Zb(()=>window.localStorage),partialize:U=>U,version:0,merge:(U,D)=>({...D,...U}),...l},m=!1,g=0;const p=new Set,y=new Set;let S=f.storage;if(!S)return s((...U)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),c(...U)},u,o);const b=()=>{const U=f.partialize({...u()});return S.setItem(f.name,{state:U,version:f.version})},N=o.setState;o.setState=(U,D)=>(N(U,D),b());const C=s((...U)=>(c(...U),b()),u,o);o.getInitialState=()=>C;let T;const O=()=>{var U,D;if(!S)return;const k=++g;m=!1,p.forEach(K=>{var X;return K((X=u())!=null?X:C)});const Y=((D=f.onRehydrateStorage)==null?void 0:D.call(f,(U=u())!=null?U:C))||void 0;return oo(S.getItem.bind(S))(f.name).then(K=>{if(K)if(typeof K.version=="number"&&K.version!==f.version){if(f.migrate){const X=f.migrate(K.state,K.version);return X instanceof Promise?X.then(P=>[!0,P]):[!0,X]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,K.state];return[!1,void 0]}).then(K=>{var X;if(k!==g)return;const[P,F]=K;if(T=f.merge(F,(X=u())!=null?X:C),c(T,!0),P)return b()}).then(()=>{k===g&&(Y==null||Y(u(),void 0),T=u(),m=!0,y.forEach(K=>K(T)))}).catch(K=>{k===g&&(Y==null||Y(void 0,K))})};return o.persist={setOptions:U=>{f={...f,...U},U.storage&&(S=U.storage)},clearStorage:()=>{S==null||S.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>O(),hasHydrated:()=>m,onHydrate:U=>(p.add(U),()=>{p.delete(U)}),onFinishHydration:U=>(y.add(U),()=>{y.delete(U)})},f.skipHydration||O(),T||C},Fb=Jb,Wb=()=>{if(typeof document<"u"){const s=document.documentElement.getAttribute("data-theme");return s==="dark"||s==="light"?s:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}return"light"},no=s=>{typeof document<"u"&&document.documentElement.setAttribute("data-theme",s)},jo=Tu()(Fb((s,l)=>({theme:Wb(),_hasHydrated:!1,setHasHydrated:c=>s({_hasHydrated}),setTheme:c=>{no(c),s({theme:c})},toggleTheme:()=>{const c=l().theme==="light"?"dark":"light";no(c),s({theme:c})}}),{name:"excalidraw-theme",onRehydrateStorage:()=>s=>{s&&(no(s.theme),s.setHasHydrated(!0))}})),Ib="_layout_gd6a7_190",Pb="_sidebar_gd6a7_195",e2="_open_gd6a7_213",t2="_sidebarOverlay_gd6a7_218",a2="_mobileMenuToggle_gd6a7_231",n2="_sidebarHeader_gd6a7_248",l2="_logo_gd6a7_256",i2="_logoImg_gd6a7_265",s2="_sidebarCloseBtn_gd6a7_271",u2="_nav_gd6a7_288",r2="_navItem_gd6a7_295",c2="_active_gd6a7_309",o2="_footer_gd6a7_315",f2="_user_gd6a7_324",d2="_avatar_gd6a7_330",h2="_userName_gd6a7_349",m2="_logout_gd6a7_358",g2="_main_gd6a7_372",p2="_header_gd6a7_384",y2="_search_gd6a7_402",v2="_actions_gd6a7_436",b2="_iconButton_gd6a7_442",S2="_content_gd6a7_459",_2="_searchSpinner_gd6a7_465",x2="_searchDropdown_gd6a7_477",E2="_searchResult_gd6a7_491",j2="_searchResultTitle_gd6a7_508",N2="_searchResultMeta_gd6a7_517",T2="_searchEmpty_gd6a7_522",Le={layout:Ib,sidebar:Pb,open:e2,sidebarOverlay:t2,mobileMenuToggle:a2,sidebarHeader:n2,logo:l2,logoImg:i2,sidebarCloseBtn:s2,nav:u2,navItem:r2,active:c2,footer:o2,user:f2,avatar:d2,userName:h2,logout:m2,main:g2,header:p2,search:y2,actions:v2,iconButton:b2,content:S2,searchSpinner:_2,searchDropdown:x2,searchResult:E2,searchResultTitle:j2,searchResultMeta:N2,searchEmpty:T2},w2=({open:s,onClose:l})=>{var m;const{t:c}=Xa(),{user:u,logout:o}=Vi(),f=[{to:"/",icon:Jg,label:c("sidebar.dashboard")},{to:"/files",icon:Kg,label:c("sidebar.projects")},{to:"/team",icon:ju,label:c("sidebar.team")},{to:"/settings",icon:Pg,label:c("sidebar.settings")}];return h.jsxs("aside",{id:"app-sidebar",className:`${Le.sidebar} ${s?Le.open:""}`,role:"navigation","aria-label":"Main navigation",children:[h.jsxs("div",{className:Le.sidebarHeader,children:[h.jsx("div",{className:Le.logo,children:h.jsx("img",{src:"https://plus.excalidraw.com/images/logo.svg",alt:"Excalidraw",className:Le.logoImg})}),l&&h.jsx("button",{className:Le.sidebarCloseBtn,onClick:l,"aria-label":"Close menu",children:h.jsx(Nu,{size:20})})]}),h.jsx("nav",{className:Le.nav,children:f.map(g=>h.jsxs(Dg,{to:g.to,className:({isActive:p})=>`${Le.navItem} ${p?Le.active:""}`,onClick:l,"aria-label":g.label,children:[h.jsx(g.icon,{size:20,"aria-hidden":"true"}),h.jsx("span",{children:g.label})]},g.to))}),h.jsxs("div",{className:Le.footer,children:[h.jsxs("div",{className:Le.user,children:[h.jsx("div",{className:Le.avatar,children:u!=null&&u.avatar_url?h.jsx("img",{src:u.avatar_url,alt:u.name}):((m=u==null?void 0:u.name)==null?void 0:m[0])||"?"}),h.jsx("span",{className:Le.userName,children:u==null?void 0:u.name})]}),h.jsx("button",{className:Le.logout,onClick:o,"aria-label":"Log out",title:"Log out",children:h.jsx(Mb,{size:18,"aria-hidden":"true"})})]})]})};function np(s){var l,c,u="";if(typeof s=="string"||typeof s=="number")u+=s;else if(typeof s=="object")if(Array.isArray(s)){var o=s.length;for(l=0;l<o;l++)s[l]&&(c=np(s[l]))&&(u&&(u+=" "),u+=c)}else for(c in s)s[c]&&(u&&(u+=" "),u+=c);return u}function C2(){for(var s,l,c=0,u="",o=arguments.length;c<o;c++)(s=arguments[c])&&(l=np(s))&&(u&&(u+=" "),u+=l);return u}const R2="_button_c9eip_190",z2="_fullWidth_c9eip_228",A2="_iconOnly_c9eip_285",O2="_loading_c9eip_295",D2="_spin_c9eip_1",Cl={button:R2,"size-sm":"_size-sm_c9eip_220","size-lg":"_size-lg_c9eip_224",fullWidth:z2,"variant-primary":"_variant-primary_c9eip_232","variant-secondary":"_variant-secondary_c9eip_246","variant-ghost":"_variant-ghost_c9eip_259","variant-danger":"_variant-danger_c9eip_271",iconOnly:A2,loading:O2,spin:D2},ke=ra.forwardRef(({variant:s="primary",size:l="md",loading:c=!1,fullWidth:u=!1,children:o,className:f,disabled:m,...g},p)=>{const y=ra.Children.count(o)===1&&ra.isValidElement(o)&&(o.type==="svg"||String(o.type).includes("Icon"));return h.jsx("button",{ref:p,className:C2(Cl.button,Cl[`variant-${s}`],Cl[`size-${l}`],{[Cl.loading]:c,[Cl.fullWidth]:u,[Cl.iconOnly]:y},f),disabled:m||c,...g,children:o})});ke.displayName="Button";const M2="_card_16p69_190",L2="_hover_16p69_198",U2="_header_16p69_206",H2="_content_16p69_211",yu={card:M2,hover:L2,header:U2,content:H2},Xt=({children:s,className:l,onClick:c,hover:u=!0,...o})=>h.jsx("div",{className:`${yu.card} ${u?yu.hover:""} ${l||""}`,onClick:c,role:c?"button":o.role,...o,children:s}),vn=({children:s,className:l})=>h.jsx("div",{className:`${yu.header} ${l||""}`,children:s}),Ya=({children:s,className:l})=>h.jsx("div",{className:`${yu.content} ${l||""}`,children:s}),B2="_wrapper_vcy30_190",k2="_label_vcy30_196",q2="_input_vcy30_202",$2="_error_vcy30_228",Y2="_errorText_vcy30_236",V2="_helperText_vcy30_241",Rl={wrapper:B2,label:k2,input:q2,error:$2,errorText:Y2,helperText:V2},Et=_.forwardRef(({label:s,error:l,helperText:c,className:u,id:o,...f},m)=>{const g=o||ra.useId();return h.jsxs("div",{className:Rl.wrapper,children:[s&&h.jsx("label",{htmlFor:g,className:Rl.label,children:s}),h.jsx("input",{ref:m,id:g,className:`${Rl.input} ${l?Rl.error:""} ${u||""}`,"aria-invalid":l?"true":void 0,"aria-describedby":l?`${g}-error`:c?`${g}-helper`:void 0,...f}),l&&h.jsx("span",{id:`${g}-error`,className:Rl.errorText,role:"alert",children:l}),c&&!l&&h.jsx("span",{id:`${g}-helper`,className:Rl.helperText,children:c})]})});Et.displayName="Input";const G2="_overlay_yfnb7_1",X2="_dialog_yfnb7_12",Q2="_inputRow_yfnb7_22",K2="_inputIcon_yfnb7_30",Z2="_input_yfnb7_22",J2="_kbd_yfnb7_48",F2="_list_yfnb7_62",W2="_item_yfnb7_68",I2="_selected_yfnb7_82",P2="_itemIcon_yfnb7_86",eS="_itemLabel_yfnb7_91",tS="_itemShortcut_yfnb7_97",aS="_empty_yfnb7_107",Gt={overlay:G2,dialog:X2,inputRow:Q2,inputIcon:K2,input:Z2,kbd:J2,list:F2,item:W2,selected:I2,itemIcon:P2,itemLabel:eS,itemShortcut:tS,empty:aS},nS=()=>{const{t:s}=Xa(),l=Ga(),[c,u]=_.useState(!1),[o,f]=_.useState(""),[m,g]=_.useState(0),p=_.useRef(null),y=_.useRef(null),S=[{id:"dashboard",label:s("sidebar.dashboard"),icon:Jg,action:()=>l("/")},{id:"files",label:s("sidebar.files"),icon:Kg,action:()=>l("/files")},{id:"templates",label:s("sidebar.templates"),icon:Cb,action:()=>l("/templates")},{id:"team",label:s("sidebar.team"),icon:ju,action:()=>l("/team")},{id:"settings",label:s("sidebar.settings"),icon:Pg,action:()=>l("/settings")},{id:"new-drawing",label:s("dashboard.newDrawing"),icon:_o,action:()=>l("/drawing/new")}],b=o.trim()?S.filter(T=>T.label.toLowerCase().includes(o.toLowerCase())):S,N=_.useCallback(()=>{u(!0),f(""),g(0),setTimeout(()=>{var T;return(T=p.current)==null?void 0:T.focus()},0)},[]),C=_.useCallback(()=>{u(!1),f("")},[]);return _.useEffect(()=>{const T=O=>{(O.metaKey||O.ctrlKey)&&O.key.toLowerCase()==="k"&&(O.preventDefault(),N()),O.key==="Escape"&&C()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[N,C]),_.useEffect(()=>{if(!c)return;const T=O=>{if(O.key==="ArrowDown")O.preventDefault(),g(U=>Math.min(U+1,b.length-1));else if(O.key==="ArrowUp")O.preventDefault(),g(U=>Math.max(U-1,0));else if(O.key==="Enter"){O.preventDefault();const U=b[m];U&&(U.action(),C())}};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[c,b,m,C]),_.useEffect(()=>{g(0)},[o]),c?h.jsx("div",{className:Gt.overlay,onClick:C,role:"dialog","aria-modal":"true","aria-label":"Command palette",children:h.jsxs("div",{className:Gt.dialog,onClick:T=>T.stopPropagation(),children:[h.jsxs("div",{className:Gt.inputRow,children:[h.jsx(Eo,{size:18,className:Gt.inputIcon,"aria-hidden":"true"}),h.jsx("input",{ref:p,type:"text",className:Gt.input,placeholder:s("commandPalette.placeholder"),value:o,onChange:T=>f(T.target.value),autoComplete:"off","aria-label":"Search commands","aria-autocomplete":"list","aria-controls":"command-list","aria-activedescendant":b[m]?`cmd-${b[m].id}`:void 0}),h.jsxs("span",{className:Gt.kbd,"aria-label":"Keyboard shortcut",children:[h.jsx(Nb,{size:12,"aria-hidden":"true"})," K"]})]}),h.jsx("div",{ref:y,className:Gt.list,id:"command-list",role:"listbox",children:b.length===0?h.jsx("div",{className:Gt.empty,children:s("commandPalette.noResults")}):b.map((T,O)=>{const U=T.icon;return h.jsxs("button",{id:`cmd-${T.id}`,className:`${Gt.item} ${O===m?Gt.selected:""}`,onMouseEnter:()=>g(O),onClick:()=>{T.action(),C()},role:"option","aria-selected":O===m,children:[U&&h.jsx(U,{size:16,className:Gt.itemIcon,"aria-hidden":"true"}),h.jsx("span",{className:Gt.itemLabel,children:T.label}),T.shortcut&&h.jsx("span",{className:Gt.itemShortcut,children:T.shortcut})]},T.id)})})]})}):null},lS="_overlay_r8af3_190",iS="_modal_r8af3_201",sS="_header_r8af3_212",uS="_closeBtn_r8af3_227",rS="_grid_r8af3_240",cS="_card_r8af3_246",oS="_iconWrap_r8af3_261",fS="_title_r8af3_266",dS="_desc_r8af3_272",qa={overlay:lS,modal:iS,header:sS,closeBtn:uS,grid:rS,card:cS,iconWrap:oS,title:fS,desc:dS};function ua(s,l,c,u,o){return{id:`el-${Math.random().toString(36).slice(2)}`,type:"rectangle",x:s,y:l,width:c,height:u,angle:0,strokeColor:"#1e1e1e",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,groupIds:[],frameId:null,roundness:{type:3,value:32},seed:Math.floor(Math.random()*1e4),version:2,versionNonce:Math.floor(Math.random()*1e5),isDeleted:!1,boundElements:[],updated:Date.now(),link:null,locked:!1}}function ot(s,l,c,u=20){return{id:`txt-${Math.random().toString(36).slice(2)}`,type:"text",x:s,y:l,width:c.length*(u*.55),height:u*1.4,angle:0,strokeColor:"#1e1e1e",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,groupIds:[],frameId:null,roundness:null,seed:Math.floor(Math.random()*1e4),version:2,versionNonce:Math.floor(Math.random()*1e5),isDeleted:!1,boundElements:[],updated:Date.now(),link:null,locked:!1,text:c,fontSize:u,fontFamily:1,textAlign:"left",verticalAlign:"top",baseline:18,containerId:null,originalText:c,lineHeight:1.25}}function zl(s,l,c=!1){const u=ua(s,l,20,20);return u.backgroundColor=c?"#a5eba8":"transparent",u}const fo={blank:[],todo:[ua(50,50,500,50),ot(70,65,"To-Do List",28),zl(60,130,!1),ot(90,130,"First task"),zl(60,170,!1),ot(90,170,"Second task"),zl(60,210,!1),ot(90,210,"Third task"),ua(50,280,500,2),ot(60,300,"Notes:",18)],checklist:[ua(50,50,500,50),ot(70,65,"Checklist",28),zl(60,130,!0),ot(90,130,"Completed item",18),zl(60,170,!1),ot(90,170,"Pending item",18),zl(60,210,!1),ot(90,210,"Another task",18),ua(60,250,480,1),ot(70,265,"Add more items below",14)],list:[ua(50,50,500,50),ot(70,65,"Bullet List",28),ot(60,130,"- First bullet point"),ot(60,170,"- Second bullet point"),ot(60,210,"- Third bullet point"),ot(60,250,"- Fourth item with details"),ua(50,300,500,2),ot(60,320,"Add your own items...",14)],flow:[ua(200,50,200,60),ot(230,70,"Start",20),ua(200,150,200,60),ot(220,170,"Process A",20),ua(200,250,200,60),ot(220,270,"Process B",20),ua(200,350,200,60),ot(230,370,"End",20)]},hS=[{id:"blank",label:"Blank Canvas",description:"Start with an empty canvas",icon:Hb,elements:[]},{id:"todo",label:"To-Do List",description:"Checkbox tasks with a title",icon:Db,elements:[]},{id:"checklist",label:"Checklist",description:"Simple checklist with status",icon:$b,elements:[]},{id:"list",label:"Bullet List",description:"Bulleted list with notes area",icon:Wg,elements:[]},{id:"flow",label:"Flow Chart",description:"Simple process flow diagram",icon:Eb,elements:[]}],mS=({isOpen:s,onClose:l,onSelect:c})=>s?h.jsx("div",{className:qa.overlay,role:"dialog","aria-modal":"true","aria-labelledby":"template-title",onClick:u=>{u.target===u.currentTarget&&l()},children:h.jsxs("div",{className:qa.modal,children:[h.jsxs("div",{className:qa.header,children:[h.jsxs("h2",{id:"template-title",children:[h.jsx(Fg,{size:20})," Choose a Template"]}),h.jsx("button",{onClick:l,className:qa.closeBtn,"aria-label":"Close",children:h.jsx(Nu,{size:18})})]}),h.jsx("div",{className:qa.grid,children:hS.map(u=>{const o=u.icon;return h.jsxs(Xt,{className:qa.card,hover:!0,onClick:()=>c(u.id),role:"button",tabIndex:0,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&c(u.id)},children:[h.jsx("div",{className:qa.iconWrap,children:h.jsx(o,{size:32})}),h.jsx("h3",{className:qa.title,children:u.label}),h.jsx("p",{className:qa.desc,children:u.description})]},u.id)})})]})}):null,gS="_panel_5g235_190",pS="_header_5g235_210",yS="_title_5g235_218",vS="_closeBtn_5g235_227",bS="_messages_5g235_240",SS="_message_5g235_240",_S="_user_5g235_255",xS="_bubble_5g235_258",ES="_assistant_5g235_263",jS="_avatar_5g235_268",NS="_inputRow_5g235_289",TS="_chatInput_5g235_297",wS="_spinner_5g235_304",St={panel:gS,header:pS,title:yS,closeBtn:vS,messages:bS,message:SS,user:_S,bubble:xS,assistant:ES,avatar:jS,inputRow:NS,chatInput:TS,spinner:wS},CS=({onClose:s,drawingContext:l})=>{const[c,u]=_.useState([{role:"assistant",content:"I can help you create or refine diagrams. What would you like to do?"}]),[o,f]=_.useState(""),[m,g]=_.useState(!1),p=_.useRef(null);_.useEffect(()=>{var S;(S=p.current)==null||S.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[c]);const y=_.useCallback(async()=>{var b,N,C;if(!o.trim()||m)return;const S=o.trim();f(""),u(T=>[...T,{role:"user",content:S}]),g(!0);try{const T=l?`You are an AI assistant for Excalidraw. The user is working on a diagram. Context: ${l}. Help them create, refine, or explain their diagram. Respond with concise, actionable suggestions. When suggesting diagram structures, describe elements and their layout clearly.`:"You are an AI assistant for Excalidraw. Help users create, refine, or explain diagrams. Respond with concise, actionable suggestions.",O=await fetch("/api/v2/chat/completions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:"gpt-4o-mini",messages:[{role:"system",content:T},...c.slice(-6).map(k=>({role:k.role,content:k.content})),{role:"user",content:S}],max_tokens:800})});if(!O.ok)throw new Error(`HTTP ${O.status}`);const D=((C=(N=(b=(await O.json()).choices)==null?void 0:b[0])==null?void 0:N.message)==null?void 0:C.content)||"Sorry, I could not generate a response.";u(k=>[...k,{role:"assistant",content:D}])}catch{u(O=>[...O,{role:"assistant",content:"Sorry, something went wrong. Please try again later."}])}finally{g(!1)}},[o,m,c,l]);return h.jsxs("div",{className:St.panel,role:"complementary","aria-label":"AI chat panel",children:[h.jsxs("div",{className:St.header,children:[h.jsxs("div",{className:St.title,children:[h.jsx(fu,{size:18,"aria-hidden":"true"}),h.jsx("span",{children:"AI Assistant"})]}),h.jsx("button",{className:St.closeBtn,onClick:s,"aria-label":"Close chat panel",children:h.jsx(Nu,{size:16})})]}),h.jsxs("div",{className:St.messages,ref:p,role:"log","aria-live":"polite","aria-atomic":"false",children:[c.map((S,b)=>h.jsxs("div",{className:`${St.message} ${S.role==="user"?St.user:St.assistant}`,children:[h.jsx("div",{className:St.avatar,"aria-hidden":"true",children:S.role==="user"?h.jsx(qi,{size:14}):h.jsx(fu,{size:14})}),h.jsx("div",{className:St.bubble,children:S.content})]},b)),m&&h.jsxs("div",{className:`${St.message} ${St.assistant}`,children:[h.jsx("div",{className:St.avatar,"aria-hidden":"true",children:h.jsx(fu,{size:14})}),h.jsx("div",{className:St.bubble,children:h.jsx(bn,{size:16,className:St.spinner})})]})]}),h.jsxs("div",{className:St.inputRow,children:[h.jsx(Et,{className:St.chatInput,placeholder:"Ask about your diagram...",value:o,onChange:S=>f(S.target.value),onKeyDown:S=>S.key==="Enter"&&!S.shiftKey&&y(),"aria-label":"Chat input"}),h.jsx(ke,{size:"sm",onClick:y,disabled:m||!o.trim(),"aria-label":"Send message",children:h.jsx(kb,{size:16})})]})]})},RS="_overlay_ph2zo_190",zS="_modal_ph2zo_201",AS="_header_ph2zo_211",OS="_icon_ph2zo_218",DS="_iconWarning_ph2zo_224",MS="_iconDanger_ph2zo_228",LS="_iconInfo_ph2zo_232",US="_title_ph2zo_236",HS="_closeBtn_ph2zo_244",BS="_message_ph2zo_260",kS="_actions_ph2zo_267",qS="_btnPrimary_ph2zo_273",$S="_btnSecondary_ph2zo_274",YS="_btnDanger_ph2zo_275",Dt={overlay:RS,modal:zS,header:AS,icon:OS,iconWarning:DS,iconDanger:MS,iconInfo:LS,title:US,closeBtn:HS,message:BS,actions:kS,btnPrimary:qS,btnSecondary:$S,btnDanger:YS},VS=({isOpen:s,title:l,message:c,type:u="info",confirmText:o="OK",cancelText:f="Cancel",onConfirm:m,onCancel:g,onClose:p})=>{const y=_.useRef(null);if(_.useEffect(()=>{const b=N=>{N.key==="Escape"&&((g==null?void 0:g())??(p==null||p()))};return s&&(document.addEventListener("keydown",b),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",b),document.body.style.overflow=""}},[s,g,p]),!s)return null;const S={confirm:h.jsx(rg,{size:24,className:Dt.iconWarning}),alert:h.jsx(rg,{size:24,className:Dt.iconDanger}),info:h.jsx(Ab,{size:24,className:Dt.iconInfo})};return h.jsx("div",{ref:y,className:Dt.overlay,onClick:b=>{b.target===y.current&&((g==null?void 0:g())??(p==null||p()))},role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:h.jsxs("div",{className:Dt.modal,children:[h.jsxs("div",{className:Dt.header,children:[h.jsx("div",{className:Dt.icon,children:S[u]}),h.jsx("h3",{id:"modal-title",className:Dt.title,children:l}),h.jsx("button",{className:Dt.closeBtn,onClick:()=>(g==null?void 0:g())??(p==null?void 0:p()),"aria-label":"Close",children:h.jsx(Nu,{size:18})})]}),h.jsx("p",{className:Dt.message,children:c}),h.jsxs("div",{className:Dt.actions,children:[u==="confirm"&&h.jsx("button",{className:Dt.btnSecondary,onClick:()=>(g==null?void 0:g())??(p==null?void 0:p()),children:f}),h.jsx("button",{className:u==="alert"?Dt.btnDanger:Dt.btnPrimary,onClick:()=>(m==null?void 0:m())??(p==null?void 0:p()),children:o})]})]})})},GS="/api";class XS extends Error{constructor(l,c){super(c),this.status=l}}async function Qe(s,l){const c=await fetch(`${GS}${s}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!c.ok)throw new XS(c.status,await c.text());return c.json()}const Ie={auth:{me:()=>Qe("/auth/me"),setupStatus:()=>Qe("/auth/setup-status"),login:(s,l)=>Qe("/auth/login",{method:"POST",body:JSON.stringify({email:s,password:l})}),signup:(s,l,c)=>Qe("/auth/signup",{method:"POST",body:JSON.stringify({name:s,email:l,password:c})}),logout:()=>Qe("/auth/logout",{method:"POST"})},drawings:{list:s=>Qe(`/drawings${s?`?team_id=${s}`:""}`),get:s=>Qe(`/drawings/${s}`),create:s=>Qe("/drawings",{method:"POST",body:JSON.stringify(s)}),update:(s,l)=>Qe(`/drawings/${s}`,{method:"PATCH",body:JSON.stringify(l)}),delete:s=>Qe(`/drawings/${s}`,{method:"DELETE"})},revisions:{list:s=>Qe(`/drawings/${s}/revisions`),create:(s,l,c)=>Qe(`/drawings/${s}/revisions`,{method:"POST",body:JSON.stringify({snapshot:l,change_summary:c})})},folders:{list:()=>Qe("/folders"),create:s=>Qe("/folders",{method:"POST",body:JSON.stringify(s)})},teams:{list:()=>Qe("/teams"),create:s=>Qe("/teams",{method:"POST",body:JSON.stringify(s)}),members:s=>Qe(`/teams/${s}/members`),invites:s=>Qe(`/teams/${s}/invites`),createInvite:(s,l)=>Qe(`/teams/${s}/invites`,{method:"POST",body:JSON.stringify(l)}),acceptInvite:s=>Qe("/invites/accept",{method:"POST",body:JSON.stringify({token:s})}),createUser:(s,l)=>Qe(`/teams/${s}/users`,{method:"POST",body:JSON.stringify(l)})},templates:{list:()=>Qe("/templates"),create:s=>Qe("/templates",{method:"POST",body:JSON.stringify(s)})},stats:{get:s=>Qe(`/stats${s?`?team_id=${s}`:""}`)},activity:{list:()=>Qe("/activity")},search:{get:s=>Qe(`/search?q=${encodeURIComponent(s)}`)}},QS=({children:s})=>{const{t:l}=Xa(),c=Ga(),{theme:u,toggleTheme:o}=jo(),[f,m]=_.useState(""),[g,p]=_.useState([]),[y,S]=_.useState(!1),[b,N]=_.useState(!1),C=_.useRef(null),T=_.useRef(void 0),O=_.useCallback(async k=>{if(!k.trim()){p([]);return}S(!0);try{const Y=await Ie.search.get(k);p(Y)}catch(Y){console.error("Search failed:",Y),p([])}finally{S(!1)}},[]),U=k=>{const Y=k.target.value;m(Y),N(!0),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>O(Y),250)},D=k=>{m(""),p([]),N(!1),k.folder_id?c(`/folder/${k.folder_id}/drawing/${k.id}`):c(`/drawing/${k.id}`)};return _.useEffect(()=>{const k=Y=>{var K;(K=C.current)!=null&&K.contains(Y.target)||N(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]),h.jsxs("header",{className:Le.header,children:[s,h.jsxs("div",{className:Le.search,ref:C,role:"search","aria-label":"Search drawings",children:[h.jsx(Eo,{size:18}),h.jsx("input",{type:"text",placeholder:l("common.search")+"...",value:f,onChange:U,onFocus:()=>f&&N(!0),"aria-label":"Search drawings","aria-autocomplete":"list","aria-controls":"search-results","aria-expanded":b}),y&&h.jsx(bn,{size:14,className:Le.searchSpinner}),b&&(f.trim()||g.length>0)&&h.jsx("div",{id:"search-results",className:Le.searchDropdown,role:"listbox",children:g.length===0?h.jsx("div",{className:Le.searchEmpty,children:l(y?"common.loading":"search.noResults")}):g.map(k=>{var Y;return h.jsxs("button",{className:Le.searchResult,onClick:()=>D(k),role:"option","aria-label":`Open drawing ${k.title}`,children:[h.jsx(_o,{size:14,"aria-hidden":"true"}),h.jsx("span",{className:Le.searchResultTitle,children:k.title}),((Y=k.owner)==null?void 0:Y.name)&&h.jsx("span",{className:Le.searchResultMeta,children:k.owner.name})]},k.id)})})]}),h.jsxs("div",{className:Le.actions,children:[h.jsx("button",{className:Le.iconButton,onClick:o,title:l("userSettings.theme"),"aria-label":l("userSettings.theme"),children:u==="light"?h.jsx(ep,{size:20,"aria-hidden":"true"}):h.jsx(Ig,{size:20,"aria-hidden":"true"})}),h.jsx("button",{className:Le.iconButton,"aria-label":"Notifications",title:"Notifications",children:h.jsx(Gg,{size:20,"aria-hidden":"true"})}),h.jsxs(ke,{children:[h.jsx(xo,{size:18}),l("dashboard.newDrawing")]})]})]})},KS=({children:s})=>{const[l,c]=_.useState(!1),u=_.useCallback(()=>c(!0),[]),o=_.useCallback(()=>c(!1),[]);return h.jsxs("div",{className:Le.layout,children:[h.jsx(w2,{open:l,onClose:o}),l&&h.jsx("div",{className:Le.sidebarOverlay,onClick:o,role:"presentation","aria-hidden":"true"}),h.jsxs("div",{className:Le.main,children:[h.jsx(QS,{children:h.jsx("button",{className:Le.mobileMenuToggle,onClick:u,"aria-label":"Open menu","aria-expanded":l,"aria-controls":"app-sidebar",children:h.jsx(Lb,{size:20})})}),h.jsx("div",{className:Le.content,children:s})]})]})},ZS="_container_fcb5y_190",JS="_header_fcb5y_195",FS="_quickActions_fcb5y_208",WS="_actionBtn_fcb5y_219",IS="_createButton_fcb5y_225",PS="_spinner_fcb5y_231",e_="_subtitle_fcb5y_243",t_="_statsGrid_fcb5y_248",a_="_statCard_fcb5y_265",n_="_statIcon_fcb5y_273",l_="_statValue_fcb5y_278",i_="_statLabel_fcb5y_285",s_="_chartBarWrap_fcb5y_291",u_="_chartBarBg_fcb5y_300",r_="_chartBar_fcb5y_291",c_="_activityResource_fcb5y_314",o_="_twoColumn_fcb5y_326",f_="_column_fcb5y_337",d_="_empty_fcb5y_343",h_="_emptySub_fcb5y_348",m_="_drawingList_fcb5y_354",g_="_drawingItem_fcb5y_358",p_="_drawingThumb_fcb5y_369",y_="_drawingInfo_fcb5y_389",v_="_drawingTitle_fcb5y_394",b_="_drawingMeta_fcb5y_402",S_="_activityCard_fcb5y_448",__="_activityList_fcb5y_452",x_="_activityItem_fcb5y_456",E_="_activityAvatar_fcb5y_467",j_="_activityInfo_fcb5y_481",N_="_activityText_fcb5y_485",T_="_activityTime_fcb5y_490",xe={container:ZS,header:JS,quickActions:FS,actionBtn:WS,createButton:IS,spinner:PS,subtitle:e_,statsGrid:t_,statCard:a_,statIcon:n_,statValue:l_,statLabel:i_,chartBarWrap:s_,chartBarBg:u_,chartBar:r_,activityResource:c_,twoColumn:o_,column:f_,empty:d_,emptySub:h_,drawingList:m_,drawingItem:g_,drawingThumb:p_,drawingInfo:y_,drawingTitle:v_,drawingMeta:b_,activityCard:S_,activityList:__,activityItem:x_,activityAvatar:E_,activityInfo:j_,activityText:N_,activityTime:T_},w_=({value:s,max:l,color:c="#6965db"})=>{const u=l>0?s/l*100:0;return h.jsxs("div",{className:xe.chartBarWrap,"aria-hidden":"true",children:[h.jsx("div",{className:xe.chartBarBg}),h.jsx("div",{className:xe.chartBar,style:{width:`${u}%`,background:c}})]})},C_=()=>{const{t:s}=Xa(),l=Ga(),{recentDrawings:c,setRecentDrawings:u,activity:o,setActivity:f}=ap(),{user:m}=Vi(),[g,p]=_.useState(!1),[y,S]=_.useState(!1),[b,N]=_.useState({teams:0,members:0,projects:0,folders:0,drawings:0,templates:0,revisions:0,assets:0,storage_bytes:0});_.useEffect(()=>{(async()=>{try{const[k,Y,K]=await Promise.all([Ie.drawings.list(),Ie.stats.get(),Ie.activity.list()]);u(k),N(Y),f(K)}catch(k){console.error("Failed to load dashboard data:",k)}})()},[u,f]);const C=async(D="blank")=>{p(!0);try{const k=await Ie.drawings.create({title:D==="blank"?"Untitled Drawing":`${D.charAt(0).toUpperCase()+D.slice(1)}`,visibility:"team"});u([k,...c]),D!=="blank"&&fo[D]&&localStorage.setItem(`template_${k.id}`,JSON.stringify({elements:fo[D],appState:{},files:{}})),l(`/drawing/${k.id}`)}catch(k){console.error("Failed to create drawing:",k)}finally{p(!1)}},T=D=>{if(D===0)return"0 B";const k=1024,Y=["B","KB","MB","GB"],K=Math.floor(Math.log(D)/Math.log(k));return`${parseFloat((D/Math.pow(k,K)).toFixed(1))} ${Y[K]}`},O=Math.max(b.drawings,b.projects+b.folders,b.teams,b.revisions,1),U=[{label:s("dashboard.stats.drawings"),value:b.drawings,icon:_o,color:"#6965db"},{label:s("dashboard.stats.projects"),value:b.projects+b.folders,icon:ug,color:"#4dabf7"},{label:s("dashboard.stats.teams"),value:b.teams,icon:ju,color:"#51cf66"},{label:s("dashboard.stats.revisions"),value:b.revisions,icon:jb,color:"#fcc419"},{label:s("dashboard.stats.storage"),value:T(Number(b.storage_bytes)),raw:b.storage_bytes,icon:Yb,color:"#ff6b6b"}];return h.jsxs("div",{className:xe.container,children:[h.jsxs("div",{className:xe.header,children:[h.jsxs("div",{children:[h.jsx("h1",{children:s("dashboard.welcome",{name:(m==null?void 0:m.name)||s("common.user")})}),h.jsx("p",{className:xe.subtitle,children:s("dashboard.subtitle")})]}),h.jsxs("div",{className:xe.quickActions,children:[h.jsx(mS,{isOpen:y,onClose:()=>S(!1),onSelect:D=>{S(!1),C(D)}}),h.jsxs(ke,{variant:"secondary",onClick:()=>l("/files"),className:xe.actionBtn,children:[h.jsx(ug,{size:16}),"New Project"]}),h.jsxs(ke,{variant:"secondary",onClick:()=>l("/team"),className:xe.actionBtn,children:[h.jsx(tp,{size:16}),"Invite"]}),h.jsxs(ke,{variant:"secondary",onClick:()=>l("/library"),className:xe.actionBtn,children:[h.jsx(Xg,{size:16}),"Library"]}),h.jsxs(ke,{onClick:()=>S(!0),loading:g,className:xe.createButton,children:[g?h.jsx(bn,{size:18,className:xe.spinner}):h.jsx(xo,{size:18}),s("dashboard.newDrawing")]})]})]}),h.jsx("div",{className:xe.statsGrid,children:U.map(D=>h.jsx(Xt,{children:h.jsxs(Ya,{className:xe.statCard,children:[h.jsx("div",{className:xe.statIcon,children:h.jsx(D.icon,{size:24})}),h.jsx("div",{className:xe.statValue,children:D.value}),h.jsx("div",{className:xe.statLabel,children:D.label}),h.jsx(w_,{value:typeof D.value=="number"?D.value:0,max:O,color:D.color})]})},D.label))}),h.jsxs("div",{className:xe.twoColumn,children:[h.jsx("div",{className:xe.column,children:h.jsxs(Xt,{children:[h.jsx(vn,{children:h.jsx("h3",{children:s("dashboard.recentDrawings")})}),h.jsx(Ya,{children:c.length===0?h.jsxs("div",{className:xe.empty,children:[h.jsx("p",{children:s("dashboard.noDrawings")}),h.jsx("p",{className:xe.emptySub,children:s("dashboard.noDrawingsSub")})]}):h.jsx("ul",{className:xe.drawingList,role:"list","aria-label":"Recent drawings",children:c.slice(0,5).map(D=>h.jsxs("li",{className:xe.drawingItem,role:"listitem",tabIndex:0,onClick:()=>{D.folder_id?l(`/folder/${D.folder_id}/drawing/${D.id}`):l(`/drawing/${D.id}`)},onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),D.folder_id?l(`/folder/${D.folder_id}/drawing/${D.id}`):l(`/drawing/${D.id}`))},"aria-label":`Open drawing ${D.title}`,children:[h.jsx("div",{className:xe.drawingThumb,children:D.thumbnail_url?h.jsx("img",{src:D.thumbnail_url,alt:"",loading:"lazy"}):h.jsx("img",{src:`/api/drawings/${D.id}/thumbnail`,alt:"",loading:"lazy",onError:k=>{k.currentTarget.style.display="none"}})}),h.jsxs("div",{className:xe.drawingInfo,children:[h.jsx("p",{className:xe.drawingTitle,children:D.title}),h.jsxs("p",{className:xe.drawingMeta,children:["Edited ",new Date(D.updated_at).toLocaleDateString()]})]})]},D.id))})})]})}),h.jsx("div",{className:xe.column,children:h.jsxs(Xt,{className:xe.activityCard,children:[h.jsx(vn,{children:h.jsxs("h3",{children:[h.jsx(_b,{size:16,style:{display:"inline",marginRight:8,verticalAlign:"middle"}}),"Recent Activity"]})}),h.jsx(Ya,{children:o.length===0?h.jsx("div",{className:xe.empty,children:h.jsx("p",{className:xe.emptySub,children:"No recent activity"})}):h.jsx("ul",{className:xe.activityList,children:o.slice(0,8).map(D=>{var k,Y,K;return h.jsxs("li",{className:xe.activityItem,children:[h.jsx("div",{className:xe.activityAvatar,children:((Y=(k=D.actor)==null?void 0:k.name)==null?void 0:Y[0])||"?"}),h.jsxs("div",{className:xe.activityInfo,children:[h.jsxs("p",{className:xe.activityText,children:[h.jsx("strong",{children:((K=D.actor)==null?void 0:K.name)||"Unknown"})," ",D.event_type.replace(/_/g," ")," ",h.jsx("span",{className:xe.activityResource,children:D.resource_type})]}),h.jsx("p",{className:xe.activityTime,children:new Date(D.created_at).toLocaleString()})]})]},D.id)})})})]})})]})]})};function No(){const{setUser:s,setSession:l,setLoading:c,logout:u,isAuthenticated:o}=Vi();return _.useEffect(()=>{(async()=>{try{const y=await Ie.auth.me();s(y)}catch{}finally{c(!1)}})()},[s,c]),{login:async(p,y)=>{const{user:S,session:b}=await Ie.auth.login(p,y);return s(S),l(b),S},signup:async(p,y,S)=>{const{user:b,session:N}=await Ie.auth.signup(p,y,S);return s(b),l(N),b},logout:async()=>{await Ie.auth.logout(),u()},isAuthenticated:o}}const R_="_container_10bc4_190",z_="_card_10bc4_199",A_="_header_10bc4_205",O_="_form_10bc4_219",D_="_divider_10bc4_226",M_="_footer_10bc4_241",L_="_error_10bc4_252",Mt={container:R_,card:z_,header:A_,form:O_,divider:D_,footer:M_,error:L_},$a={title:"auth.login.title",subtitle:"auth.login.subtitle",emailLabel:"auth.login.emailLabel",emailPlaceholder:"auth.login.emailPlaceholder",passwordLabel:"auth.login.passwordLabel",passwordPlaceholder:"auth.login.passwordPlaceholder",signIn:"auth.login.signIn",noAccount:"auth.login.noAccount",signUpLink:"auth.login.signUpLink"},U_={continueWith:"common.continueWith"},H_=({hasUsers:s})=>{const{t:l}=Xa(),[c,u]=_.useState(""),[o,f]=_.useState(""),[m,g]=_.useState(!1),[p,y]=_.useState(""),{login:S}=No(),b=Ga(),N=async C=>{C.preventDefault(),g(!0),y("");try{await S(c,o),b("/")}catch{y("Invalid email or password")}finally{g(!1)}};return h.jsx("div",{className:Mt.container,children:h.jsxs(Xt,{className:Mt.card,children:[h.jsxs("div",{className:Mt.header,children:[h.jsx("h1",{children:l($a.title)}),h.jsx("p",{children:l($a.subtitle)})]}),p&&h.jsx("div",{className:Mt.error,children:p}),h.jsxs("form",{onSubmit:N,className:Mt.form,children:[h.jsx(Et,{label:l($a.emailLabel),type:"email",value:c,onChange:C=>u(C.target.value),placeholder:l($a.emailPlaceholder),required:!0}),h.jsx(Et,{label:l($a.passwordLabel),type:"password",value:o,onChange:C=>f(C.target.value),placeholder:l($a.passwordPlaceholder),required:!0}),h.jsx(ke,{type:"submit",fullWidth:!0,loading:m,children:l($a.signIn)})]}),h.jsx("div",{className:Mt.divider,children:h.jsx("span",{children:l(U_.continueWith)})}),h.jsxs(ke,{variant:"secondary",fullWidth:!0,children:[h.jsx(Zg,{size:18}),"GitHub"]}),!s&&h.jsxs("p",{className:Mt.footer,children:[l($a.noAccount)," ",h.jsx(xu,{to:"/signup",children:l($a.signUpLink)})]})]})})},B_=({hasUsers:s})=>{const{t:l}=Xa(),[c,u]=_.useState(""),[o,f]=_.useState(""),[m,g]=_.useState(""),[p,y]=_.useState(!1),[S,b]=_.useState(""),{signup:N}=No(),C=Ga(),T=async O=>{O.preventDefault(),y(!0),b("");try{await N(c,o,m),C("/")}catch{b("Could not create account")}finally{y(!1)}};return h.jsx("div",{className:Mt.container,children:h.jsxs(Xt,{className:Mt.card,children:[h.jsxs("div",{className:Mt.header,children:[h.jsx("h1",{children:l("auth.signup.title")}),h.jsx("p",{children:l("auth.signup.subtitle")})]}),S&&h.jsx("div",{className:Mt.error,children:S}),h.jsxs("form",{onSubmit:T,className:Mt.form,children:[h.jsx(Et,{label:l("auth.signup.nameLabel"),type:"text",value:c,onChange:O=>u(O.target.value),placeholder:l("auth.signup.namePlaceholder"),required:!0}),h.jsx(Et,{label:l("auth.signup.emailLabel"),type:"email",value:o,onChange:O=>f(O.target.value),placeholder:l("auth.signup.emailPlaceholder"),required:!0}),h.jsx(Et,{label:l("auth.signup.passwordLabel"),type:"password",value:m,onChange:O=>g(O.target.value),placeholder:l("auth.signup.passwordPlaceholder"),required:!0}),h.jsx(ke,{type:"submit",fullWidth:!0,loading:p,children:l("auth.signup.createAccount")})]}),h.jsx("div",{className:Mt.divider,children:h.jsx("span",{children:l("common.continueWith")})}),h.jsxs(ke,{variant:"secondary",fullWidth:!0,children:[h.jsx(Zg,{size:18}),"GitHub"]}),s&&h.jsxs("p",{className:Mt.footer,children:[l("auth.signup.hasAccount")," ",h.jsx(xu,{to:"/login",children:l("auth.signup.signInLink")})]})]})})},k_="_container_1ubh7_190",q_="_header_1ubh7_196",$_="_breadcrumb_1ubh7_211",Y_="_breadcrumbLink_1ubh7_223",V_="_breadcrumbCurrent_1ubh7_236",G_="_actions_1ubh7_240",X_="_filterSelect_1ubh7_247",Q_="_viewToggle_1ubh7_262",K_="_active_1ubh7_271",Z_="_content_1ubh7_277",J_="_sidebar_1ubh7_289",F_="_folderTree_1ubh7_299",W_="_folderItem_1ubh7_308",I_="_folderActive_1ubh7_327",P_="_grid_1ubh7_337",ex="_list_1ubh7_350",tx="_empty_1ubh7_357",ax="_emptySub_1ubh7_364",nx="_loading_1ubh7_369",lx="_spinner_1ubh7_379",ix="_drawingCard_1ubh7_391",sx="_thumbnail_1ubh7_395",ux="_info_1ubh7_413",rx="_title_1ubh7_417",cx="_meta_1ubh7_426",ox="_more_1ubh7_432",fx="_moreWrap_1ubh7_453",dx="_dropdown_1ubh7_459",hx="_dropdownItem_1ubh7_474",mx="_dropdownDanger_1ubh7_488",gx="_dropdownDivider_1ubh7_495",px="_dropdownSubmenu_1ubh7_501",yx="_dropdownSubheader_1ubh7_506",vx="_newProjectForm_1ubh7_514",bx="_newProjectInput_1ubh7_521",Sx="_newProjectBtn_1ubh7_537",_x="_newProjectBtnCancel_1ubh7_551",xx="_renameInput_1ubh7_564",re={container:k_,header:q_,breadcrumb:$_,breadcrumbLink:Y_,breadcrumbCurrent:V_,actions:G_,filterSelect:X_,viewToggle:Q_,active:K_,content:Z_,sidebar:J_,folderTree:F_,folderItem:W_,folderActive:I_,grid:P_,list:ex,empty:tx,emptySub:ax,loading:nx,spinner:lx,drawingCard:ix,thumbnail:sx,info:ux,title:rx,meta:cx,more:ox,moreWrap:fx,dropdown:dx,dropdownItem:hx,dropdownDanger:mx,dropdownDivider:gx,dropdownSubmenu:px,dropdownSubheader:yx,newProjectForm:vx,newProjectInput:bx,newProjectBtn:Sx,newProjectBtnCancel:_x,renameInput:xx},Ex=()=>{const{t:s}=Xa(),l=Ga(),c=wg(),{drawings:u,folders:o,setDrawings:f,setFolders:m}=ap(),[g,p]=_.useState("grid"),[y,S]=_.useState("updated"),[b,N]=_.useState("desc"),[C,T]=_.useState("all"),[O,U]=_.useState(!0),[D,k]=_.useState(!1),[Y,K]=_.useState(c.folderId||null),[X,P]=_.useState(null),F=_.useRef(null),[Te,ge]=_.useState(!1),[_e,qe]=_.useState(""),[ce,ee]=_.useState(null),[ne,le]=_.useState(""),[M,G]=_.useState(null),[W,he]=_.useState({open:!1,type:"info",title:"",message:""}),pe=(V,Z,Ae,Kt)=>{he({open:!0,type:V,title:Z,message:Ae,onConfirm:Kt,onCancel:()=>he(ha=>({...ha,open:!1}))})};_.useEffect(()=>{(async()=>{try{U(!0);const[Z,Ae]=await Promise.all([Ie.drawings.list(),Ie.folders.list()]);f(Z),m(Ae)}catch(Z){console.error("Failed to load file browser data:",Z)}finally{U(!1)}})()},[f,m]),_.useEffect(()=>{K(c.folderId||null)},[c.folderId]);const E=o.find(V=>V.id===Y);let H=Y?u.filter(V=>V.folder_id===Y):u;C!=="all"&&(H=H.filter(V=>V.visibility===C)),H=[...H].sort((V,Z)=>{let Ae=0;return y==="name"?Ae=V.title.localeCompare(Z.title):y==="updated"?Ae=new Date(V.updated_at).getTime()-new Date(Z.updated_at).getTime():y==="created"&&(Ae=new Date(V.created_at).getTime()-new Date(Z.created_at).getTime()),b==="asc"?Ae:-Ae});const Q=_.useCallback(V=>{K(V),l(V?`/files/folder/${V}`:"/files")},[l]),J=_.useCallback(V=>{V.folder_id?l(`/folder/${V.folder_id}/drawing/${V.id}`):l(`/drawing/${V.id}`)},[l]),se=async()=>{k(!0);try{const V=await Ie.drawings.create({title:"Untitled Drawing",visibility:"team",folder_id:Y||null});f([V,...u]),V.folder_id?l(`/folder/${V.folder_id}/drawing/${V.id}`):l(`/drawing/${V.id}`)}catch(V){console.error("Failed to create drawing:",V),pe("alert","Error","Failed to create drawing. Please try again.")}finally{k(!1)}},ye=async()=>{const V=_e.trim();if(V)try{const Z=await Ie.folders.create({name:V});m([...o,Z]),ge(!1),qe(""),l(`/files/folder/${Z.id}`)}catch(Z){console.error("Failed to create project:",Z),pe("alert","Error","Failed to create project. Please try again.")}},we=V=>{pe("confirm","Delete Drawing",`Delete "${V.title}"? This cannot be undone.`,async()=>{try{await Ie.drawings.delete(V.id),f(u.filter(Z=>Z.id!==V.id)),P(null),he(Z=>({...Z,open:!1}))}catch(Z){console.error("Failed to delete drawing:",Z),he(Ae=>({...Ae,open:!1})),setTimeout(()=>pe("alert","Error","Failed to delete drawing."),100)}})},ft=async V=>{try{const Z=await Ie.drawings.create({title:`Copy of ${V.title}`,visibility:V.visibility,folder_id:V.folder_id||null});f([Z,...u]),P(null),l(`/drawing/${Z.id}`)}catch(Z){console.error("Failed to duplicate drawing:",Z),pe("alert","Error","Failed to duplicate drawing. Please try again.")}},Ue=async V=>{const Z=ne.trim();if(!Z||Z===V.title){ee(null);return}try{await Ie.drawings.update(V.id,{title:Z}),f(u.map(Ae=>Ae.id===V.id?{...Ae,title:Z}:Ae)),ee(null)}catch(Ae){console.error("Failed to rename drawing:",Ae),pe("alert","Error","Failed to rename drawing. Please try again.")}},da=async(V,Z)=>{try{await Ie.drawings.update(V.id,{folder_id:Z}),f(u.map(Ae=>Ae.id===V.id?{...Ae,folder_id:Z}:Ae)),G(null),P(null)}catch(Ae){console.error("Failed to move drawing:",Ae),pe("alert","Error","Failed to move drawing. Please try again.")}};return _.useEffect(()=>{const V=Z=>{F.current&&!F.current.contains(Z.target)&&P(null)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]),O?h.jsx("div",{className:re.container,children:h.jsxs("div",{className:re.loading,children:[h.jsx(bn,{size:32,className:re.spinner}),h.jsx("p",{children:s("common.loading")})]})}):h.jsxs(h.Fragment,{children:[h.jsx(VS,{isOpen:W.open,type:W.type,title:W.title,message:W.message,onConfirm:W.onConfirm,onCancel:W.onCancel,confirmText:W.type==="confirm"?"Delete":"OK"}),h.jsxs("div",{className:re.container,role:"region","aria-label":s("fileBrowser.title"),children:[h.jsxs("div",{className:re.header,children:[h.jsxs("nav",{className:re.breadcrumb,"aria-label":"Breadcrumb",children:[h.jsx("button",{className:re.breadcrumbLink,onClick:()=>Q(null),"aria-current":Y?void 0:"page",children:"All Projects"}),E&&h.jsxs(h.Fragment,{children:[h.jsx(Li,{size:16,"aria-hidden":"true"}),h.jsx("span",{className:re.breadcrumbCurrent,"aria-current":"page",children:E.name})]})]}),h.jsxs("div",{className:re.actions,children:[h.jsxs("select",{className:re.filterSelect,value:C,onChange:V=>T(V.target.value),"aria-label":"Filter by visibility",title:"Filter by visibility",children:[h.jsx("option",{value:"all",children:"All"}),h.jsx("option",{value:"private",children:"Private"}),h.jsx("option",{value:"team",children:"Team"}),h.jsx("option",{value:"public-link",children:"Public"})]}),h.jsxs("select",{className:re.filterSelect,value:`${y}-${b}`,onChange:V=>{const[Z,Ae]=V.target.value.split("-");S(Z),N(Ae)},"aria-label":"Sort drawings",title:"Sort drawings",children:[h.jsx("option",{value:"updated-desc",children:"Recently updated"}),h.jsx("option",{value:"updated-asc",children:"Oldest updated"}),h.jsx("option",{value:"created-desc",children:"Recently created"}),h.jsx("option",{value:"created-asc",children:"Oldest created"}),h.jsx("option",{value:"name-asc",children:"Name A-Z"}),h.jsx("option",{value:"name-desc",children:"Name Z-A"})]}),h.jsx("button",{className:`${re.viewToggle} ${g==="grid"?re.active:""}`,onClick:()=>p("grid"),"aria-label":"Grid view","aria-pressed":g==="grid",children:h.jsx(Rb,{size:18})}),h.jsx("button",{className:`${re.viewToggle} ${g==="list"?re.active:""}`,onClick:()=>p("list"),"aria-label":"List view","aria-pressed":g==="list",children:h.jsx(Wg,{size:18})}),h.jsxs(ke,{onClick:se,loading:D,"aria-label":"Create new drawing",children:[h.jsx(xo,{size:16}),"New Drawing"]}),h.jsxs(ke,{variant:"secondary",onClick:()=>{ge(!0),qe("")},"aria-label":"Create new project",children:[h.jsx(ao,{size:16}),"New Project"]})]})]}),h.jsxs("div",{className:re.content,children:[h.jsxs("aside",{className:re.sidebar,role:"navigation","aria-label":"Project tree",children:[Te&&h.jsxs("div",{className:re.newProjectForm,children:[h.jsx("input",{type:"text",autoFocus:!0,placeholder:"Project name...",value:_e,onChange:V=>qe(V.target.value),onKeyDown:V=>{V.key==="Enter"&&ye(),V.key==="Escape"&&(ge(!1),qe(""))},className:re.newProjectInput}),h.jsx("button",{className:re.newProjectBtn,onClick:ye,children:"Create"}),h.jsx("button",{className:re.newProjectBtnCancel,onClick:()=>{ge(!1),qe("")},children:"Cancel"})]}),h.jsxs("ul",{className:re.folderTree,role:"tree",children:[h.jsx("li",{children:h.jsxs("button",{className:`${re.folderItem} ${Y?"":re.folderActive}`,onClick:()=>Q(null),"aria-current":Y?void 0:"true",role:"treeitem",children:[h.jsx(ao,{size:18,"aria-hidden":"true"}),h.jsx("span",{children:"All Projects"})]})}),o.map(V=>h.jsx("li",{children:h.jsxs("button",{className:`${re.folderItem} ${Y===V.id?re.folderActive:""}`,onClick:()=>Q(V.id),"aria-current":Y===V.id?"true":void 0,role:"treeitem",children:[h.jsx(ao,{size:18,"aria-hidden":"true"}),h.jsx("span",{children:V.name})]})},V.id))]})]}),h.jsx("main",{className:g==="grid"?re.grid:re.list,role:"list","aria-label":"Drawing list",children:H.length===0?h.jsxs("div",{className:re.empty,role:"status",children:[h.jsx("p",{children:"No drawings yet"}),h.jsx("p",{className:re.emptySub,children:E?"Create a new drawing in this project":"Create a new drawing or import existing files"})]}):H.map(V=>h.jsxs(Xt,{className:re.drawingCard,hover:!0,role:"listitem",tabIndex:0,onClick:()=>J(V),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),J(V))},"aria-label":`Open drawing ${V.title}`,children:[h.jsx("div",{className:re.thumbnail,children:V.thumbnail_url?h.jsx("img",{src:V.thumbnail_url,alt:"",loading:"lazy"}):h.jsx("img",{src:`/api/drawings/${V.id}/thumbnail`,alt:"",loading:"lazy",onError:Z=>{Z.currentTarget.style.display="none"}})}),h.jsx("div",{className:re.info,children:ce===V.id?h.jsx("input",{autoFocus:!0,className:re.renameInput,value:ne,onChange:Z=>le(Z.target.value),onKeyDown:Z=>{Z.key==="Enter"&&Ue(V),Z.key==="Escape"&&ee(null)},onBlur:()=>Ue(V)}):h.jsxs(h.Fragment,{children:[h.jsx("h4",{className:re.title,children:V.title}),h.jsxs("p",{className:re.meta,children:["Edited ",new Date(V.updated_at).toLocaleDateString()]})]})}),h.jsxs("div",{className:re.moreWrap,ref:X===V.id?F:void 0,children:[h.jsx("button",{className:re.more,onClick:Z=>{Z.stopPropagation(),P(X===V.id?null:V.id),ee(null)},"aria-label":`More options for ${V.title}`,"aria-expanded":X===V.id,children:h.jsx(wb,{size:16})}),X===V.id&&h.jsxs("div",{className:re.dropdown,children:[h.jsx("button",{onClick:Z=>{Z.stopPropagation(),J(V),P(null)},className:re.dropdownItem,children:"Open"}),h.jsx("button",{onClick:Z=>{Z.stopPropagation(),ee(V.id),le(V.title),P(null)},className:re.dropdownItem,children:"Rename"}),h.jsx("button",{onClick:Z=>{Z.stopPropagation(),ft(V)},className:re.dropdownItem,children:"Duplicate"}),M===V.id?h.jsxs("div",{className:re.dropdownSubmenu,children:[h.jsx("button",{className:re.dropdownSubheader,children:"Move to:"}),h.jsx("button",{onClick:Z=>{Z.stopPropagation(),da(V,null)},className:re.dropdownItem,children:"All Projects"}),o.map(Z=>h.jsx("button",{onClick:Ae=>{Ae.stopPropagation(),da(V,Z.id)},className:re.dropdownItem,children:Z.name},Z.id)),h.jsx("button",{onClick:Z=>{Z.stopPropagation(),G(null)},className:re.dropdownItem,children:"Cancel"})]}):h.jsx("button",{onClick:Z=>{Z.stopPropagation(),G(V.id)},className:re.dropdownItem,children:"Move to..."}),h.jsx("div",{className:re.dropdownDivider}),h.jsx("button",{onClick:Z=>{Z.stopPropagation(),we(V)},className:`${re.dropdownItem} ${re.dropdownDanger}`,children:"Delete"})]})]})]},V.id))})]})]})]})},jx="_container_lqxgl_190",Nx="_header_lqxgl_195",Tx="_subtitle_lqxgl_205",wx="_grid_lqxgl_210",Cx="_sidePanel_lqxgl_216",Rx="_membersList_lqxgl_222",zx="_empty_lqxgl_228",Ax="_emptySub_lqxgl_238",Ox="_memberItem_lqxgl_243",Dx="_memberAvatar_lqxgl_254",Mx="_memberInfo_lqxgl_267",Lx="_memberName_lqxgl_271",Ux="_memberEmail_lqxgl_276",Hx="_memberRole_lqxgl_281",Bx="_inviteForm_lqxgl_294",kx="_inviteInput_lqxgl_300",qx="_roleLabel_lqxgl_338",$x="_roleSelect_lqxgl_346",Yx="_error_lqxgl_355",Vx="_success_lqxgl_363",Gx="_loading_lqxgl_374",Xx="_spinner_lqxgl_383",Fe={container:jx,header:Nx,subtitle:Tx,grid:wx,sidePanel:Cx,membersList:Rx,empty:zx,emptySub:Ax,memberItem:Ox,memberAvatar:Dx,memberInfo:Mx,memberName:Lx,memberEmail:Ux,memberRole:Hx,inviteForm:Bx,inviteInput:kx,roleLabel:qx,roleSelect:$x,error:Yx,success:Vx,loading:Gx,spinner:Xx},Qx={owner:Tb,admin:qb,editor:qi,viewer:qi},Kx=["viewer","editor","admin"],Zx=()=>{const{currentTeam:s,members:l,setMembers:c,setCurrentTeam:u}=Kb(),[o,f]=_.useState(!0),[m,g]=_.useState(""),[p,y]=_.useState(""),[S,b]=_.useState(""),[N,C]=_.useState("editor"),[T,O]=_.useState(!1),[U,D]=_.useState(!1),[k,Y]=_.useState("");_.useEffect(()=>{(async()=>{try{f(!0);const[P,F]=await Promise.all([Ie.teams.list(),s?Ie.teams.members(s.id):Promise.resolve([])]);P.length>0&&u(P[0]),c(F)}catch(P){console.error("Failed to load team data:",P)}finally{f(!1)}})()},[s==null?void 0:s.id,c,u]);const K=async X=>{if(X.preventDefault(),!(!m.trim()||!p.trim()||!S.trim()||!s)){if(S.length<8){Y("Password must be at least 8 characters");return}O(!0),Y(""),D(!1);try{await Ie.teams.createUser(s.id,{name:m.trim(),email:p.trim(),password:S,role:N});const P=await Ie.teams.members(s.id);c(P),D(!0),g(""),y(""),b(""),C("editor")}catch(P){Y((P==null?void 0:P.message)||"Failed to create user")}finally{O(!1)}}};return o?h.jsx("div",{className:Fe.container,children:h.jsxs("div",{className:Fe.loading,children:[h.jsx(bn,{size:32,className:Fe.spinner}),h.jsx("p",{children:"Loading team..."})]})}):h.jsxs("div",{className:Fe.container,children:[h.jsxs("div",{className:Fe.header,children:[h.jsx("h1",{children:"Team Settings"}),h.jsx("p",{className:Fe.subtitle,"aria-label":"Current team",children:(s==null?void 0:s.name)||"My Team"})]}),h.jsxs("div",{className:Fe.grid,children:[h.jsxs(Xt,{role:"region","aria-label":"Team members",children:[h.jsx(vn,{children:h.jsxs("h3",{children:["Members (",l.length,")"]})}),h.jsx(Ya,{children:h.jsx("div",{className:Fe.membersList,role:"list","aria-label":"Team members list",children:l.length===0?h.jsxs("div",{className:Fe.empty,children:[h.jsx(ju,{size:32}),h.jsx("p",{children:"No team members yet"}),h.jsx("p",{className:Fe.emptySub,children:"Add members to collaborate"})]}):l.map(X=>{var F,Te,ge,_e,qe;const P=Qx[X.role]||qi;return h.jsxs("div",{className:Fe.memberItem,role:"listitem","aria-label":`Member ${((F=X.user)==null?void 0:F.name)||"Unknown"}`,children:[h.jsx("div",{className:Fe.memberAvatar,"aria-hidden":"true",children:((ge=(Te=X.user)==null?void 0:Te.name)==null?void 0:ge[0])||"?"}),h.jsxs("div",{className:Fe.memberInfo,children:[h.jsx("p",{className:Fe.memberName,children:((_e=X.user)==null?void 0:_e.name)||"Unknown"}),h.jsx("p",{className:Fe.memberEmail,children:(qe=X.user)==null?void 0:qe.email})]}),h.jsxs("div",{className:Fe.memberRole,"aria-label":`Role: ${X.role}`,children:[h.jsx(P,{size:14,"aria-hidden":"true"}),h.jsx("span",{children:X.role})]})]},X.id)})})})]}),h.jsx("div",{className:Fe.sidePanel,children:h.jsxs(Xt,{role:"region","aria-label":"Add team member",children:[h.jsx(vn,{children:h.jsx("h3",{children:"Add Member"})}),h.jsx(Ya,{children:h.jsxs("form",{onSubmit:K,className:Fe.inviteForm,children:[h.jsx(Et,{type:"text",label:"Full name",value:m,onChange:X=>g(X.target.value),placeholder:"Jane Doe",required:!0,className:Fe.inviteInput}),h.jsx(Et,{type:"email",label:"Email address",value:p,onChange:X=>y(X.target.value),placeholder:"jane@company.com",required:!0,className:Fe.inviteInput}),h.jsx(Et,{type:"password",label:"Initial password",value:S,onChange:X=>b(X.target.value),placeholder:"Min 8 characters",required:!0,className:Fe.inviteInput}),h.jsxs("label",{className:Fe.roleLabel,children:["Role",h.jsx("select",{value:N,onChange:X=>C(X.target.value),className:Fe.roleSelect,children:Kx.map(X=>h.jsx("option",{value:X,children:X},X))})]}),k&&h.jsx("p",{className:Fe.error,children:k}),U&&h.jsxs("p",{className:Fe.success,children:[h.jsx(Qg,{size:14})," User created!"]}),h.jsxs(ke,{fullWidth:!0,type:"submit",loading:T,disabled:!m.trim()||!p.trim()||!S.trim(),children:[h.jsx(tp,{size:16}),"Create User"]})]})})]})})]})]})},Jx="_container_1chv2_190",Fx="_header_1chv2_195",Wx="_subtitle_1chv2_205",Ix="_layout_1chv2_210",Px="_sidebar_1chv2_216",e3="_tab_1chv2_222",t3="_active_1chv2_240",a3="_form_1chv2_246",n3="_avatarSection_1chv2_252",l3="_avatar_1chv2_252",i3="_actions_1chv2_278",s3="_toggleList_1chv2_284",u3="_toggle_1chv2_284",r3="_themeSelect_1chv2_304",c3="_label_1chv2_308",o3="_themeOptions_1chv2_315",f3="_themeOption_1chv2_315",We={container:Jx,header:Fx,subtitle:Wx,layout:Ix,sidebar:Px,tab:e3,active:t3,form:a3,avatarSection:n3,avatar:l3,actions:i3,toggleList:s3,toggle:u3,themeSelect:r3,label:c3,themeOptions:o3,themeOption:f3},d3=()=>{var g;const{t:s}=Xa(),{user:l}=Vi(),{theme:c,setTheme:u}=jo(),[o,f]=_.useState("profile"),m=[{id:"profile",label:s("userSettings.tabProfile"),icon:qi},{id:"account",label:s("userSettings.tabAccount"),icon:Ob},{id:"notifications",label:s("userSettings.tabNotifications"),icon:Gg},{id:"appearance",label:s("userSettings.tabAppearance"),icon:Ub}];return h.jsxs("div",{className:We.container,children:[h.jsxs("div",{className:We.header,children:[h.jsx("h1",{children:s("userSettings.title")}),h.jsx("p",{className:We.subtitle,children:s("userSettings.subtitle")})]}),h.jsxs("div",{className:We.layout,children:[h.jsx("div",{className:We.sidebar,role:"tablist","aria-label":"Settings tabs",children:m.map(p=>h.jsxs("button",{className:`${We.tab} ${o===p.id?We.active:""}`,onClick:()=>f(p.id),role:"tab","aria-selected":o===p.id,"aria-controls":`panel-${p.id}`,id:`tab-${p.id}`,"aria-label":p.label,children:[h.jsx(p.icon,{size:18,"aria-hidden":"true"}),h.jsx("span",{children:p.label})]},p.id))}),h.jsxs("div",{className:We.content,children:[o==="profile"&&h.jsxs(Xt,{role:"tabpanel",id:"panel-profile","aria-labelledby":"tab-profile",children:[h.jsx(vn,{children:h.jsx("h3",{children:s("userSettings.profileInfo")})}),h.jsx(Ya,{children:h.jsxs("div",{className:We.form,children:[h.jsxs("div",{className:We.avatarSection,children:[h.jsx("div",{className:We.avatar,children:l!=null&&l.avatar_url?h.jsx("img",{src:l.avatar_url,alt:l.name}):((g=l==null?void 0:l.name)==null?void 0:g[0])||"?"}),h.jsx(ke,{variant:"secondary",size:"sm",children:s("userSettings.changeAvatar")})]}),h.jsx(Et,{label:s("auth.signup.nameLabel"),defaultValue:l==null?void 0:l.name}),h.jsx(Et,{label:s("userSettings.username"),defaultValue:l==null?void 0:l.username}),h.jsx(Et,{label:s("auth.login.emailLabel"),type:"email",defaultValue:l==null?void 0:l.email}),h.jsx("div",{className:We.actions,children:h.jsx(ke,{children:s("userSettings.saveChanges")})})]})})]}),o==="account"&&h.jsxs(Xt,{role:"tabpanel",id:"panel-account","aria-labelledby":"tab-account",children:[h.jsx(vn,{children:h.jsx("h3",{children:s("userSettings.accountSecurity")})}),h.jsx(Ya,{children:h.jsxs("div",{className:We.form,children:[h.jsx(Et,{label:s("userSettings.currentPassword"),type:"password"}),h.jsx(Et,{label:s("userSettings.newPassword"),type:"password"}),h.jsx(Et,{label:s("userSettings.confirmPassword"),type:"password"}),h.jsx("div",{className:We.actions,children:h.jsx(ke,{children:s("userSettings.updatePassword")})})]})})]}),o==="notifications"&&h.jsxs(Xt,{role:"tabpanel",id:"panel-notifications","aria-labelledby":"tab-notifications",children:[h.jsx(vn,{children:h.jsx("h3",{children:s("userSettings.notificationPrefs")})}),h.jsx(Ya,{children:h.jsxs("div",{className:We.toggleList,children:[h.jsxs("label",{className:We.toggle,children:[h.jsx("input",{type:"checkbox",defaultChecked:!0}),h.jsx("span",{children:s("userSettings.emailMentions")})]}),h.jsxs("label",{className:We.toggle,children:[h.jsx("input",{type:"checkbox",defaultChecked:!0}),h.jsx("span",{children:s("userSettings.emailInvites")})]}),h.jsxs("label",{className:We.toggle,children:[h.jsx("input",{type:"checkbox"}),h.jsx("span",{children:s("userSettings.weeklySummary")})]})]})})]}),o==="appearance"&&h.jsxs(Xt,{role:"tabpanel",id:"panel-appearance","aria-labelledby":"tab-appearance",children:[h.jsx(vn,{children:h.jsx("h3",{children:s("userSettings.appearance")})}),h.jsx(Ya,{children:h.jsxs("div",{className:We.themeSelect,children:[h.jsx("p",{className:We.label,children:s("userSettings.theme")}),h.jsxs("div",{className:We.themeOptions,children:[h.jsxs("button",{className:`${We.themeOption} ${c==="light"?We.active:""}`,onClick:()=>u("light"),children:[h.jsx(ep,{size:16}),s("userSettings.light")]}),h.jsxs("button",{className:`${We.themeOption} ${c==="dark"?We.active:""}`,onClick:()=>u("dark"),children:[h.jsx(Ig,{size:16}),s("userSettings.dark")]})]})]})})]})]})]})]})},h3="modulepreload",m3=function(s){return"/"+s},fg={},g3=function(l,c,u){let o=Promise.resolve();if(c&&c.length>0){let m=function(y){return Promise.all(y.map(S=>Promise.resolve(S).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));o=m(c.map(y=>{if(y=m3(y),y in fg)return;fg[y]=!0;const S=y.endsWith(".css"),b=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${b}`))return;const N=document.createElement("link");if(N.rel=S?"stylesheet":h3,S||(N.as="script"),N.crossOrigin="",N.href=y,p&&N.setAttribute("nonce",p),document.head.appendChild(N),S)return new Promise((C,T)=>{N.addEventListener("load",C),N.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return o.then(m=>{for(const g of m||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})},p3="_container_o3n6y_190",y3="_toolbar_o3n6y_197",v3="_left_o3n6y_207",b3="_right_o3n6y_213",S3="_title_o3n6y_219",_3="_saveStatus_o3n6y_225",x3="_unsaved_o3n6y_233",E3="_spinner_o3n6y_237",j3="_canvas_o3n6y_249",N3="_loadingCanvas_o3n6y_259",T3="_loading_o3n6y_259",w3="_error_o3n6y_285",C3="_revisionBadge_o3n6y_300",R3="_canvasWrapper_o3n6y_309",z3="_canvasNarrow_o3n6y_315",A3="_revisionPanel_o3n6y_319",O3="_revisionHeader_o3n6y_327",D3="_revisionList_o3n6y_341",M3="_revisionItem_o3n6y_347",L3="_revisionActive_o3n6y_366",U3="_revisionMeta_o3n6y_374",H3="_revisionLabel_o3n6y_381",B3="_revisionDate_o3n6y_389",k3="_revisionEditor_o3n6y_394",q3="_notesPanel_o3n6y_401",$3="_notesHeader_o3n6y_409",Y3="_notesTextarea_o3n6y_423",V3="_revisionEmpty_o3n6y_439",G3="_sidePanel_o3n6y_446",X3="_sidePanelHeader_o3n6y_454",Q3="_sidePanelContent_o3n6y_468",K3="_sidePanelItem_o3n6y_474",Z3="_sidePanelItemTitle_o3n6y_493",J3="_sidePanelItemDesc_o3n6y_498",F3="_sidePanelSearch_o3n6y_503",W3="_sidePanelInput_o3n6y_518",I3="_sidePanelSelect_o3n6y_527",P3="_sidePanelLoading_o3n6y_539",eE="_sidePanelEmpty_o3n6y_540",tE="_sidePanelError_o3n6y_541",oe={container:p3,toolbar:y3,left:v3,right:b3,title:S3,saveStatus:_3,unsaved:x3,spinner:E3,canvas:j3,loadingCanvas:N3,loading:T3,error:w3,revisionBadge:C3,canvasWrapper:R3,canvasNarrow:z3,revisionPanel:A3,revisionHeader:O3,revisionList:D3,revisionItem:M3,revisionActive:L3,revisionMeta:U3,revisionLabel:H3,revisionDate:B3,revisionEditor:k3,notesPanel:q3,notesHeader:$3,notesTextarea:Y3,revisionEmpty:V3,sidePanel:G3,sidePanelHeader:X3,sidePanelContent:Q3,sidePanelItem:K3,sidePanelItemTitle:Z3,sidePanelItemDesc:J3,sidePanelSearch:F3,sidePanelInput:W3,sidePanelSelect:I3,sidePanelLoading:P3,sidePanelEmpty:eE,sidePanelError:tE},aE=ra.lazy(()=>g3(()=>import("./main-BoEkPOV0.js").then(s=>s.m),[]).then(s=>({default:s.Excalidraw})));function dg(s,l,c){if(!s||!s.length)return[];const u=new Map;return s.forEach(o=>{u.set(o.id,`${o.type}-${Math.random().toString(36).slice(2,9)}`)}),s.map(o=>{const f={...o};return f.id=u.get(o.id)||o.id,f.x=(o.x||0)+l,f.y=(o.y||0)+c,f.version=(o.version||1)+1,f.versionNonce=Math.floor(Math.random()*1e6),f.updated=Date.now(),f.seed=Math.floor(Math.random()*1e5),f.boundElements&&(f.boundElements=f.boundElements.map(m=>({...m,id:u.get(m.id)||m.id}))),f.containerId&&u.has(f.containerId)&&(f.containerId=u.get(f.containerId)),f})}const hg=()=>{const{t:s}=Xa(),{id:l}=wg(),c=Ga(),[u,o]=_.useState(null),[f,m]=_.useState([]),[g,p]=_.useState(null),[y,S]=_.useState(!0),[b,N]=_.useState(!1),[C,T]=_.useState("saved"),[O,U]=_.useState(null),[D,k]=_.useState(!1),[Y,K]=_.useState(!1),[X,P]=_.useState(!1),[F,Te]=_.useState(""),[ge,_e]=_.useState(null),{theme:qe}=jo(),ce=_.useRef(null),ee=_.useRef(null),ne=_.useRef(""),[le,M]=_.useState(null),[G,W]=_.useState(!1),[he,pe]=_.useState(!1),[E,H]=_.useState([]),[Q,J]=_.useState([]),[se,ye]=_.useState(!1),[we,ft]=_.useState(""),[Ue,da]=_.useState(""),[V,Z]=_.useState("All");_.useEffect(()=>{(async()=>{if(l)try{S(!0);const[be,Ee]=await Promise.all([Ie.drawings.get(l),Ie.revisions.list(l)]);if(o(be),m(Ee),Ee.length>0&&Ee[0].snapshot){const Ke=JSON.parse(String(Ee[0].snapshot));p({elements:Ke.elements||[],appState:Ke.appState||{},files:Ke.files||{}}),ne.current=JSON.stringify(Ke)}else{const Ke=localStorage.getItem(`template_${l}`);if(Ke){const Xe=JSON.parse(Ke);p({elements:Xe.elements||[],appState:Xe.appState||{},files:Xe.files||{}}),ne.current=JSON.stringify(Xe),localStorage.removeItem(`template_${l}`)}else p({elements:[],appState:{},files:{}}),ne.current=JSON.stringify({elements:[],appState:{},files:{}})}}catch(be){U("Failed to load drawing"),console.error(be)}finally{S(!1)}})()},[l]);const Ae=_.useCallback((ie,be,Ee)=>{ce.current={elements:ie,appState:be,files:Ee},T("unsaved"),ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>{Kt()},2e3)},[]),Kt=_.useCallback(async()=>{if(!l||!ce.current||b)return;const{elements:ie,appState:be,files:Ee}=ce.current,Ke={type:"excalidraw",version:2,source:window.location.hostname,elements:ie,appState:{viewBackgroundColor:be.viewBackgroundColor,gridSize:be.gridSize,gridStep:be.gridStep,gridModeEnabled:be.gridModeEnabled,theme:be.theme,zenModeEnabled:be.zenModeEnabled,viewModeEnabled:be.viewModeEnabled,editingGroup:be.editingGroup,selectedElementIds:be.selectedElementIds},files:Ee},Xe=JSON.stringify(Ke);if(Xe===ne.current){T("saved");return}try{N(!0),T("saving"),await Ie.revisions.create(l,Ke,"Auto-save"),ne.current=Xe,T("saved")}catch(it){console.error("Failed to save:",it),T("unsaved")}finally{N(!1)}},[l,b]),ha=f.length,Ll=ie=>{if(ie.snapshot)try{const be=JSON.parse(String(ie.snapshot));p({elements:be.elements||[],appState:be.appState||{},files:be.files||{}}),ne.current=JSON.stringify(be),_e(ie.id),T("saved")}catch(be){console.error("Failed to restore revision:",be)}},wu=async()=>{ee.current&&clearTimeout(ee.current),await Kt()};_.useEffect(()=>()=>{ee.current&&clearTimeout(ee.current)},[]),_.useEffect(()=>{if(!he||E.length>0)return;(async()=>{ye(!0);try{const be=await fetch("https://libraries.excalidraw.com/libraries.json",{headers:{Accept:"application/json"}});if(!be.ok)throw new Error("Failed to load libraries");const Ee=await be.json(),Ke=Object.entries(Ee).map(([Xe,it])=>{var Lt;return{key:Xe,name:it.name||Xe,description:it.description||"",authors:it.authors||[{name:"Unknown"}],source:`https://libraries.excalidraw.com/${Xe}.excalidrawlib`,preview:(Lt=it.preview)!=null&&Lt.startsWith("http")?it.preview:`https://libraries.excalidraw.com/${Xe}.png`,tags:it.tags||[],downloads:it.downloads||0}});H(Ke),J(Ke)}catch(be){console.error(be),ft("Could not load library marketplace.")}finally{ye(!1)}})()},[he,E.length]),_.useEffect(()=>{let ie=E;if(Ue.trim()){const be=Ue.toLowerCase();ie=ie.filter(Ee=>Ee.name.toLowerCase().includes(be)||Ee.description.toLowerCase().includes(be)||Ee.tags.some(Ke=>Ke.toLowerCase().includes(be)))}V!=="All"&&(ie=ie.filter(be=>be.tags.some(Ee=>Ee.toLowerCase()===V.toLowerCase()))),J(ie)},[Ue,V,E]);const Gi=ie=>{var Sn;const be=fo[ie];if(!be||!le)return;const Ee=((Sn=le.getSceneElements)==null?void 0:Sn.call(le))||[];let Ke=100,Xe=100;Ee.length>0&&(Ke=Math.max(...Ee.map(qn=>(qn.x||0)+(qn.width||0)))+100);const it=dg(be,Ke,Xe),Lt=[...Ee,...it];le.updateScene({elements:Lt}),W(!1),T("unsaved")},Ul=async ie=>{var be,Ee;if(!(!le||!ie.source))try{const Ke=await fetch(ie.source);if(!Ke.ok)throw new Error("Failed to load library");const Xe=await Ke.json();let it=[];if(Xe.libraryItems&&Array.isArray(Xe.libraryItems)?it=((be=Xe.libraryItems[0])==null?void 0:be.elements)||[]:Array.isArray(Xe)?it=Xe:Xe.elements&&Array.isArray(Xe.elements)&&(it=Xe.elements),!it.length){alert("This library appears to be empty");return}const Lt=((Ee=le.getSceneElements)==null?void 0:Ee.call(le))||[];let Sn=100,kl=100;Lt.length>0&&(Sn=Math.max(...Lt.map(_t=>(_t.x||0)+(_t.width||0)))+100);const qn=dg(it,Sn,kl),Cu=[...Lt,...qn];le.updateScene({elements:Cu}),pe(!1),T("unsaved")}catch(Ke){console.error("Failed to load library item:",Ke),alert("Failed to load library item")}},Hl=[{id:"blank",label:"Blank",description:"Empty canvas start",icon:null},{id:"todo",label:"To-Do List",description:"Checkbox tasks",icon:null},{id:"checklist",label:"Checklist",description:"Status checklist",icon:null},{id:"list",label:"Bullet List",description:"Bulleted notes",icon:null},{id:"flow",label:"Flow Chart",description:"Process diagram",icon:null}],Bl=["All","Arrows","Charts","Cloud","Devops","Diagrams","Education","Food","Frames","Gaming","Icons","Illustrations","Machines","Misc","People","Software","Systems","Tech","Workflow"];return y?h.jsx("div",{className:oe.container,children:h.jsxs("div",{className:oe.loading,children:[h.jsx(bn,{size:32,className:oe.spinner}),h.jsx("p",{children:s("common.loading")})]})}):O||!u?h.jsx("div",{className:oe.container,children:h.jsxs("div",{className:oe.error,children:[h.jsx("p",{children:O||s("editor.notFound")}),h.jsx(ke,{onClick:()=>c("/"),children:s("editor.goToDashboard")})]})}):h.jsxs("div",{className:oe.container,children:[h.jsxs("div",{className:oe.toolbar,children:[h.jsxs("div",{className:oe.left,children:[h.jsxs(ke,{variant:"ghost",size:"sm",onClick:()=>c(-1),children:[h.jsx(xb,{size:18}),s("editor.back")]}),h.jsx("span",{className:oe.title,children:u.title}),h.jsxs("span",{className:oe.saveStatus,children:[C==="saving"&&h.jsxs(h.Fragment,{children:[h.jsx(bn,{size:14,className:oe.spinner})," ",s("editor.saving")]}),C==="saved"&&h.jsxs(h.Fragment,{children:[h.jsx(Qg,{size:14})," ",s("editor.saved")," ",ha>0&&`(${ha} ${s("editor.revisions")})`]}),C==="unsaved"&&h.jsx("span",{className:oe.unsaved,children:s("editor.unsaved")})]})]}),h.jsxs("div",{className:oe.right,children:[h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>K(!Y),title:"AI Assistant","aria-pressed":Y,"aria-label":"Toggle AI chat panel",children:h.jsx(fu,{size:16})}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>P(!X),title:"Presenter notes","aria-pressed":X,"aria-label":"Toggle presenter notes",children:h.jsx(Vb,{size:16})}),h.jsxs(ke,{variant:"ghost",size:"sm",onClick:()=>k(!D),title:s("editor.revisionBrowser"),"aria-pressed":D,"aria-label":"Toggle revision browser",children:[h.jsx(zb,{size:16}),ha>0&&h.jsx("span",{className:oe.revisionBadge,children:ha})]}),h.jsxs(ke,{size:"sm",onClick:wu,loading:b,disabled:C==="saved",children:[h.jsx(Bb,{size:16}),s("editor.saveNow")]}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>{W(!G),pe(!1)},title:"Templates","aria-pressed":G,"aria-label":"Toggle templates panel",children:h.jsx(Fg,{size:16})}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>{pe(!he),W(!1)},title:"Library Marketplace","aria-pressed":he,"aria-label":"Toggle library panel",children:h.jsx(Xg,{size:16})})]})]}),h.jsxs("div",{className:oe.canvasWrapper,children:[h.jsx("div",{className:`${oe.canvas} ${D||X||G||he?oe.canvasNarrow:""}`,children:g&&h.jsx(ra.Suspense,{fallback:h.jsx("div",{className:oe.loadingCanvas,children:s("editor.loadingCanvas")}),children:h.jsx(aE,{excalidrawAPI:ie=>M(ie),initialData:g,onChange:Ae,theme:qe==="dark"?"dark":"light",gridModeEnabled:!0,UIOptions:{canvasActions:{saveToActiveFile:!1,loadScene:!1,export:{saveFileToDisk:!1}}}})})}),D&&h.jsxs("div",{className:oe.revisionPanel,children:[h.jsxs("div",{className:oe.revisionHeader,children:[h.jsx("h3",{children:s("editor.revisionBrowser")}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>k(!1),children:h.jsx(Li,{size:16})})]}),h.jsx("div",{className:oe.revisionList,children:f.length===0?h.jsx("p",{className:oe.revisionEmpty,children:s("editor.noRevisions")}):f.map(ie=>h.jsxs("button",{className:`${oe.revisionItem} ${ge===ie.id?oe.revisionActive:""}`,onClick:()=>Ll(ie),children:[h.jsxs("div",{className:oe.revisionMeta,children:[h.jsx("span",{className:oe.revisionLabel,children:ie.change_summary||s("editor.revision")}),h.jsx("span",{className:oe.revisionDate,children:new Date(ie.created_at).toLocaleString()})]}),ie.created_by&&h.jsx("span",{className:oe.revisionEditor,children:ie.created_by.slice(0,8)})]},ie.id))})]}),X&&h.jsxs("div",{className:oe.notesPanel,role:"complementary","aria-label":s("editor.presenterNotes"),children:[h.jsxs("div",{className:oe.notesHeader,children:[h.jsx("h3",{children:s("editor.presenterNotes")}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>P(!1),"aria-label":s("common.close"),children:h.jsx(Li,{size:16})})]}),h.jsx("textarea",{className:oe.notesTextarea,value:F,onChange:ie=>Te(ie.target.value),placeholder:s("editor.notesPlaceholder"),"aria-label":s("editor.presenterNotes")})]}),G&&h.jsxs("div",{className:oe.sidePanel,children:[h.jsxs("div",{className:oe.sidePanelHeader,children:[h.jsx("h3",{children:"Templates"}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>W(!1),"aria-label":"Close",children:h.jsx(Li,{size:16})})]}),h.jsx("div",{className:oe.sidePanelContent,children:Hl.map(ie=>h.jsxs("button",{className:oe.sidePanelItem,onClick:()=>Gi(ie.id),children:[h.jsx("span",{className:oe.sidePanelItemTitle,children:ie.label}),h.jsx("span",{className:oe.sidePanelItemDesc,children:ie.description})]},ie.id))})]}),he&&h.jsxs("div",{className:oe.sidePanel,children:[h.jsxs("div",{className:oe.sidePanelHeader,children:[h.jsx("h3",{children:"Library Marketplace"}),h.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>pe(!1),"aria-label":"Close",children:h.jsx(Li,{size:16})})]}),h.jsxs("div",{className:oe.sidePanelContent,children:[h.jsxs("div",{className:oe.sidePanelSearch,children:[h.jsx(Eo,{size:14}),h.jsx("input",{type:"text",placeholder:"Search libraries...",value:Ue,onChange:ie=>da(ie.target.value),className:oe.sidePanelInput})]}),h.jsx("select",{className:oe.sidePanelSelect,value:V,onChange:ie=>Z(ie.target.value),children:Bl.map(ie=>h.jsx("option",{value:ie,children:ie},ie))}),se&&h.jsxs("div",{className:oe.sidePanelLoading,children:[h.jsx(bn,{size:20,className:oe.spinner}),h.jsx("span",{children:"Loading..."})]}),we&&h.jsx("div",{className:oe.sidePanelError,children:we}),!se&&!we&&Q.length===0&&h.jsx("div",{className:oe.sidePanelEmpty,children:"No libraries found"}),!se&&Q.map(ie=>h.jsxs("button",{className:oe.sidePanelItem,onClick:()=>Ul(ie),children:[h.jsx("span",{className:oe.sidePanelItemTitle,children:ie.name}),h.jsx("span",{className:oe.sidePanelItemDesc,children:ie.description||ie.tags.slice(0,3).join(", ")})]},ie.key))]})]}),Y&&h.jsx(CS,{onClose:()=>K(!1),drawingContext:u==null?void 0:u.title})]})]})},nE=()=>{No();const{isAuthenticated:s,isLoading:l}=Vi(),[c,u]=_.useState(null),[o,f]=_.useState(!0);if(_.useEffect(()=>{!s&&!l?Ie.auth.setupStatus().then(u).catch(()=>u({has_users:!0})).finally(()=>f(!1)):f(!1)},[s,l]),l||o)return h.jsx("div",{className:"loading-screen",children:"Loading..."});if(!s){const m=(c==null?void 0:c.has_users)??!0;return h.jsxs(km,{children:[h.jsx(va,{path:"/login",element:m?h.jsx(H_,{hasUsers:m}):h.jsx(Jc,{to:"/signup",replace:!0})}),h.jsx(va,{path:"/signup",element:m?h.jsx(Jc,{to:"/login",replace:!0}):h.jsx(B_,{hasUsers:m})}),h.jsx(va,{path:"*",element:h.jsx(Jc,{to:m?"/login":"/signup",replace:!0})})]})}return h.jsxs(KS,{children:[h.jsx(nS,{}),h.jsxs(km,{children:[h.jsx(va,{path:"/",element:h.jsx(C_,{})}),h.jsx(va,{path:"/files/*",element:h.jsx(Ex,{})}),h.jsx(va,{path:"/team",element:h.jsx(Zx,{})}),h.jsx(va,{path:"/settings",element:h.jsx(d3,{})}),h.jsx(va,{path:"/drawing/:id",element:h.jsx(hg,{})}),h.jsx(va,{path:"/folder/:folderId/drawing/:id",element:h.jsx(hg,{})})]})]})};zv.createRoot(document.getElementById("root")).render(h.jsx(ra.StrictMode,{children:h.jsx(F0,{children:h.jsx(nE,{})})}));export{_v as a,Tv as b,mg as g,vu as r};
|
|
//# sourceMappingURL=index-B3VpcuCP.js.map
|