function kg(r,s){for(var d=0;d<s.length;d++){const c=s[d];if(typeof c!="string"&&!Array.isArray(c)){for(const g in c)if(g!=="default"&&!(g in r)){const y=Object.getOwnPropertyDescriptor(c,g);y&&Object.defineProperty(r,g,y.get?y:{enumerable:!0,get:()=>c[g]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))c(g);new MutationObserver(g=>{for(const y of g)if(y.type==="childList")for(const w of y.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&c(w)}).observe(document,{childList:!0,subtree:!0});function d(g){const y={};return g.integrity&&(y.integrity=g.integrity),g.referrerPolicy&&(y.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?y.credentials="include":g.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function c(g){if(g.ep)return;g.ep=!0;const y=d(g);fetch(g.href,y)}})();function $s(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var zs={exports:{}},Ki={};/**
 * @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 Ph;function Lg(){if(Ph)return Ki;Ph=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function d(c,g,y){var w=null;if(y!==void 0&&(w=""+y),g.key!==void 0&&(w=""+g.key),"key"in g){y={};for(var O in g)O!=="key"&&(y[O]=g[O])}else y=g;return g=y.ref,{$$typeof:r,type:c,key:w,ref:g!==void 0?g:null,props:y}}return Ki.Fragment=s,Ki.jsx=d,Ki.jsxs=d,Ki}var Ih;function Hg(){return Ih||(Ih=1,zs.exports=Lg()),zs.exports}var b=Hg(),Ms={exports:{}},rt={};/**
 * @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 Wh;function qg(){if(Wh)return rt;Wh=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),ne=Symbol.iterator;function I(U){return U===null||typeof U!="object"?null:(U=ne&&U[ne]||U["@@iterator"],typeof U=="function"?U:null)}var oe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,Z={};function P(U,he,je){this.props=U,this.context=he,this.refs=Z,this.updater=je||oe}P.prototype.isReactComponent={},P.prototype.setState=function(U,he){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,he,"setState")},P.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function ce(){}ce.prototype=P.prototype;function ye(U,he,je){this.props=U,this.context=he,this.refs=Z,this.updater=je||oe}var fe=ye.prototype=new ce;fe.constructor=ye,Q(fe,P.prototype),fe.isPureReactComponent=!0;var Se=Array.isArray;function De(){}var ue={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function at(U,he,je){var xe=je.ref;return{$$typeof:r,type:U,key:he,ref:xe!==void 0?xe:null,props:je}}function Ie(U,he){return at(U.type,he,U.props)}function ke(U){return typeof U=="object"&&U!==null&&U.$$typeof===r}function be(U){var he={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(je){return he[je]})}var qe=/\/+/g;function ut(U,he){return typeof U=="object"&&U!==null&&U.key!=null?be(""+U.key):he.toString(36)}function pt(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(De,De):(U.status="pending",U.then(function(he){U.status==="pending"&&(U.status="fulfilled",U.value=he)},function(he){U.status==="pending"&&(U.status="rejected",U.reason=he)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function ae(U,he,je,xe,Ge){var p=typeof U;(p==="undefined"||p==="boolean")&&(U=null);var E=!1;if(U===null)E=!0;else switch(p){case"bigint":case"string":case"number":E=!0;break;case"object":switch(U.$$typeof){case r:case s:E=!0;break;case _:return E=U._init,ae(E(U._payload),he,je,xe,Ge)}}if(E)return Ge=Ge(U),E=xe===""?"."+ut(U,0):xe,Se(Ge)?(je="",E!=null&&(je=E.replace(qe,"$&/")+"/"),ae(Ge,he,je,"",function(f){return f})):Ge!=null&&(ke(Ge)&&(Ge=Ie(Ge,je+(Ge.key==null||U&&U.key===Ge.key?"":(""+Ge.key).replace(qe,"$&/")+"/")+E)),he.push(Ge)),1;E=0;var l=xe===""?".":xe+":";if(Se(U))for(var u=0;u<U.length;u++)xe=U[u],p=l+ut(xe,u),E+=ae(xe,he,je,p,Ge);else if(u=I(U),typeof u=="function")for(U=u.call(U),u=0;!(xe=U.next()).done;)xe=xe.value,p=l+ut(xe,u++),E+=ae(xe,he,je,p,Ge);else if(p==="object"){if(typeof U.then=="function")return ae(pt(U),he,je,xe,Ge);throw he=String(U),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return E}function Te(U,he,je){if(U==null)return U;var xe=[],Ge=0;return ae(U,xe,"","",function(p){return he.call(je,p,Ge++)}),xe}function Ve(U){if(U._status===-1){var he=U._result;he=he(),he.then(function(je){(U._status===0||U._status===-1)&&(U._status=1,U._result=je)},function(je){(U._status===0||U._status===-1)&&(U._status=2,U._result=je)}),U._status===-1&&(U._status=0,U._result=he)}if(U._status===1)return U._result.default;throw U._result}var ht=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(he))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},st={map:Te,forEach:function(U,he,je){Te(U,function(){he.apply(this,arguments)},je)},count:function(U){var he=0;return Te(U,function(){he++}),he},toArray:function(U){return Te(U,function(he){return he})||[]},only:function(U){if(!ke(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return rt.Activity=z,rt.Children=st,rt.Component=P,rt.Fragment=d,rt.Profiler=g,rt.PureComponent=ye,rt.StrictMode=c,rt.Suspense=C,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ue,rt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return ue.H.useMemoCache(U)}},rt.cache=function(U){return function(){return U.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(U,he,je){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var xe=Q({},U.props),Ge=U.key;if(he!=null)for(p in he.key!==void 0&&(Ge=""+he.key),he)!we.call(he,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&he.ref===void 0||(xe[p]=he[p]);var p=arguments.length-2;if(p===1)xe.children=je;else if(1<p){for(var E=Array(p),l=0;l<p;l++)E[l]=arguments[l+2];xe.children=E}return at(U.type,Ge,xe)},rt.createContext=function(U){return U={$$typeof:w,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:y,_context:U},U},rt.createElement=function(U,he,je){var xe,Ge={},p=null;if(he!=null)for(xe in he.key!==void 0&&(p=""+he.key),he)we.call(he,xe)&&xe!=="key"&&xe!=="__self"&&xe!=="__source"&&(Ge[xe]=he[xe]);var E=arguments.length-2;if(E===1)Ge.children=je;else if(1<E){for(var l=Array(E),u=0;u<E;u++)l[u]=arguments[u+2];Ge.children=l}if(U&&U.defaultProps)for(xe in E=U.defaultProps,E)Ge[xe]===void 0&&(Ge[xe]=E[xe]);return at(U,p,Ge)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(U){return{$$typeof:O,render:U}},rt.isValidElement=ke,rt.lazy=function(U){return{$$typeof:_,_payload:{_status:-1,_result:U},_init:Ve}},rt.memo=function(U,he){return{$$typeof:j,type:U,compare:he===void 0?null:he}},rt.startTransition=function(U){var he=ue.T,je={};ue.T=je;try{var xe=U(),Ge=ue.S;Ge!==null&&Ge(je,xe),typeof xe=="object"&&xe!==null&&typeof xe.then=="function"&&xe.then(De,ht)}catch(p){ht(p)}finally{he!==null&&je.types!==null&&(he.types=je.types),ue.T=he}},rt.unstable_useCacheRefresh=function(){return ue.H.useCacheRefresh()},rt.use=function(U){return ue.H.use(U)},rt.useActionState=function(U,he,je){return ue.H.useActionState(U,he,je)},rt.useCallback=function(U,he){return ue.H.useCallback(U,he)},rt.useContext=function(U){return ue.H.useContext(U)},rt.useDebugValue=function(){},rt.useDeferredValue=function(U,he){return ue.H.useDeferredValue(U,he)},rt.useEffect=function(U,he){return ue.H.useEffect(U,he)},rt.useEffectEvent=function(U){return ue.H.useEffectEvent(U)},rt.useId=function(){return ue.H.useId()},rt.useImperativeHandle=function(U,he,je){return ue.H.useImperativeHandle(U,he,je)},rt.useInsertionEffect=function(U,he){return ue.H.useInsertionEffect(U,he)},rt.useLayoutEffect=function(U,he){return ue.H.useLayoutEffect(U,he)},rt.useMemo=function(U,he){return ue.H.useMemo(U,he)},rt.useOptimistic=function(U,he){return ue.H.useOptimistic(U,he)},rt.useReducer=function(U,he,je){return ue.H.useReducer(U,he,je)},rt.useRef=function(U){return ue.H.useRef(U)},rt.useState=function(U){return ue.H.useState(U)},rt.useSyncExternalStore=function(U,he,je){return ue.H.useSyncExternalStore(U,he,je)},rt.useTransition=function(){return ue.H.useTransition()},rt.version="19.2.5",rt}var $h;function gu(){return $h||($h=1,Ms.exports=qg()),Ms.exports}var L=gu();const Bm=$s(L),Kg=kg({__proto__:null,default:Bm},[L]);var Bs={exports:{}},Vi={},Us={exports:{}},ks={};/**
 * @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 em;function Vg(){return em||(em=1,(function(r){function s(ae,Te){var Ve=ae.length;ae.push(Te);e:for(;0<Ve;){var ht=Ve-1>>>1,st=ae[ht];if(0<g(st,Te))ae[ht]=Te,ae[Ve]=st,Ve=ht;else break e}}function d(ae){return ae.length===0?null:ae[0]}function c(ae){if(ae.length===0)return null;var Te=ae[0],Ve=ae.pop();if(Ve!==Te){ae[0]=Ve;e:for(var ht=0,st=ae.length,U=st>>>1;ht<U;){var he=2*(ht+1)-1,je=ae[he],xe=he+1,Ge=ae[xe];if(0>g(je,Ve))xe<st&&0>g(Ge,je)?(ae[ht]=Ge,ae[xe]=Ve,ht=xe):(ae[ht]=je,ae[he]=Ve,ht=he);else if(xe<st&&0>g(Ge,Ve))ae[ht]=Ge,ae[xe]=Ve,ht=xe;else break e}}return Te}function g(ae,Te){var Ve=ae.sortIndex-Te.sortIndex;return Ve!==0?Ve:ae.id-Te.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;r.unstable_now=function(){return y.now()}}else{var w=Date,O=w.now();r.unstable_now=function(){return w.now()-O}}var C=[],j=[],_=1,z=null,ne=3,I=!1,oe=!1,Q=!1,Z=!1,P=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;function fe(ae){for(var Te=d(j);Te!==null;){if(Te.callback===null)c(j);else if(Te.startTime<=ae)c(j),Te.sortIndex=Te.expirationTime,s(C,Te);else break;Te=d(j)}}function Se(ae){if(Q=!1,fe(ae),!oe)if(d(C)!==null)oe=!0,De||(De=!0,be());else{var Te=d(j);Te!==null&&pt(Se,Te.startTime-ae)}}var De=!1,ue=-1,we=5,at=-1;function Ie(){return Z?!0:!(r.unstable_now()-at<we)}function ke(){if(Z=!1,De){var ae=r.unstable_now();at=ae;var Te=!0;try{e:{oe=!1,Q&&(Q=!1,ce(ue),ue=-1),I=!0;var Ve=ne;try{t:{for(fe(ae),z=d(C);z!==null&&!(z.expirationTime>ae&&Ie());){var ht=z.callback;if(typeof ht=="function"){z.callback=null,ne=z.priorityLevel;var st=ht(z.expirationTime<=ae);if(ae=r.unstable_now(),typeof st=="function"){z.callback=st,fe(ae),Te=!0;break t}z===d(C)&&c(C),fe(ae)}else c(C);z=d(C)}if(z!==null)Te=!0;else{var U=d(j);U!==null&&pt(Se,U.startTime-ae),Te=!1}}break e}finally{z=null,ne=Ve,I=!1}Te=void 0}}finally{Te?be():De=!1}}}var be;if(typeof ye=="function")be=function(){ye(ke)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,ut=qe.port2;qe.port1.onmessage=ke,be=function(){ut.postMessage(null)}}else be=function(){P(ke,0)};function pt(ae,Te){ue=P(function(){ae(r.unstable_now())},Te)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(ae){ae.callback=null},r.unstable_forceFrameRate=function(ae){0>ae||125<ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<ae?Math.floor(1e3/ae):5},r.unstable_getCurrentPriorityLevel=function(){return ne},r.unstable_next=function(ae){switch(ne){case 1:case 2:case 3:var Te=3;break;default:Te=ne}var Ve=ne;ne=Te;try{return ae()}finally{ne=Ve}},r.unstable_requestPaint=function(){Z=!0},r.unstable_runWithPriority=function(ae,Te){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var Ve=ne;ne=ae;try{return Te()}finally{ne=Ve}},r.unstable_scheduleCallback=function(ae,Te,Ve){var ht=r.unstable_now();switch(typeof Ve=="object"&&Ve!==null?(Ve=Ve.delay,Ve=typeof Ve=="number"&&0<Ve?ht+Ve:ht):Ve=ht,ae){case 1:var st=-1;break;case 2:st=250;break;case 5:st=1073741823;break;case 4:st=1e4;break;default:st=5e3}return st=Ve+st,ae={id:_++,callback:Te,priorityLevel:ae,startTime:Ve,expirationTime:st,sortIndex:-1},Ve>ht?(ae.sortIndex=Ve,s(j,ae),d(C)===null&&ae===d(j)&&(Q?(ce(ue),ue=-1):Q=!0,pt(Se,Ve-ht))):(ae.sortIndex=st,s(C,ae),oe||I||(oe=!0,De||(De=!0,be()))),ae},r.unstable_shouldYield=Ie,r.unstable_wrapCallback=function(ae){var Te=ne;return function(){var Ve=ne;ne=Te;try{return ae.apply(this,arguments)}finally{ne=Ve}}}})(ks)),ks}var tm;function Gg(){return tm||(tm=1,Us.exports=Vg()),Us.exports}var Ls={exports:{}},bn={};/**
 * @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 nm;function Yg(){if(nm)return bn;nm=1;var r=gu();function s(C){var j="https://react.dev/errors/"+C;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)j+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+C+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(s(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},g=Symbol.for("react.portal");function y(C,j,_){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:z==null?null:""+z,children:C,containerInfo:j,implementation:_}}var w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(C,j){if(C==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,bn.createPortal=function(C,j){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(s(299));return y(C,j,null,_)},bn.flushSync=function(C){var j=w.T,_=c.p;try{if(w.T=null,c.p=2,C)return C()}finally{w.T=j,c.p=_,c.d.f()}},bn.preconnect=function(C,j){typeof C=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,c.d.C(C,j))},bn.prefetchDNS=function(C){typeof C=="string"&&c.d.D(C)},bn.preinit=function(C,j){if(typeof C=="string"&&j&&typeof j.as=="string"){var _=j.as,z=O(_,j.crossOrigin),ne=typeof j.integrity=="string"?j.integrity:void 0,I=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;_==="style"?c.d.S(C,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:z,integrity:ne,fetchPriority:I}):_==="script"&&c.d.X(C,{crossOrigin:z,integrity:ne,fetchPriority:I,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},bn.preinitModule=function(C,j){if(typeof C=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var _=O(j.as,j.crossOrigin);c.d.M(C,{crossOrigin:_,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&c.d.M(C)},bn.preload=function(C,j){if(typeof C=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var _=j.as,z=O(_,j.crossOrigin);c.d.L(C,_,{crossOrigin:z,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},bn.preloadModule=function(C,j){if(typeof C=="string")if(j){var _=O(j.as,j.crossOrigin);c.d.m(C,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:_,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else c.d.m(C)},bn.requestFormReset=function(C){c.d.r(C)},bn.unstable_batchedUpdates=function(C,j){return C(j)},bn.useFormState=function(C,j,_){return w.H.useFormState(C,j,_)},bn.useFormStatus=function(){return w.H.useHostTransitionStatus()},bn.version="19.2.5",bn}var am;function Um(){if(am)return Ls.exports;am=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Ls.exports=Yg(),Ls.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 lm;function Xg(){if(lm)return Vi;lm=1;var r=Gg(),s=gu(),d=Um();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function w(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 O(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 C(e){if(y(e)!==e)throw Error(c(188))}function j(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return C(i),e;if(o===a)return C(i),t;o=o.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=o;else{for(var v=!1,A=i.child;A;){if(A===n){v=!0,n=i,a=o;break}if(A===a){v=!0,a=i,n=o;break}A=A.sibling}if(!v){for(A=o.child;A;){if(A===n){v=!0,n=o,a=i;break}if(A===a){v=!0,a=o,n=i;break}A=A.sibling}if(!v)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,ne=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),Ie=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function be(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function ut(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case P:return"Profiler";case Z:return"StrictMode";case Se:return"Suspense";case De:return"SuspenseList";case at:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case oe:return"Portal";case ye:return e.displayName||"Context";case ce:return(e._context.displayName||"Context")+".Consumer";case fe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:ut(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return ut(e(t))}catch{}}return null}var pt=Array.isArray,ae=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ve={pending:!1,data:null,method:null,action:null},ht=[],st=-1;function U(e){return{current:e}}function he(e){0>st||(e.current=ht[st],ht[st]=null,st--)}function je(e,t){st++,ht[st]=e.current,e.current=t}var xe=U(null),Ge=U(null),p=U(null),E=U(null);function l(e,t){switch(je(p,t),je(Ge,e),je(xe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bh(t),e=Sh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}he(xe),je(xe,e)}function u(){he(xe),he(Ge),he(p)}function f(e){e.memoizedState!==null&&je(E,e);var t=xe.current,n=Sh(t,e.type);t!==n&&(je(Ge,e),je(xe,n))}function h(e){Ge.current===e&&(he(xe),he(Ge)),E.current===e&&(he(E),ki._currentValue=Ve)}var m,S;function N(e){if(m===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);m=t&&t[1]||"",S=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+m+e+S}var x=!1;function T(e,t){if(!e||x)return"";x=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(le){var te=le}Reflect.construct(e,[],ge)}else{try{ge.call()}catch(le){te=le}e.call(ge.prototype)}}else{try{throw Error()}catch(le){te=le}(ge=e())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(le){if(le&&te&&typeof le.stack=="string")return[le.stack,te.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),v=o[0],A=o[1];if(v&&A){var k=v.split(`
`),ee=A.split(`
`);for(i=a=0;a<k.length&&!k[a].includes("DetermineComponentFrameRoot");)a++;for(;i<ee.length&&!ee[i].includes("DetermineComponentFrameRoot");)i++;if(a===k.length||i===ee.length)for(a=k.length-1,i=ee.length-1;1<=a&&0<=i&&k[a]!==ee[i];)i--;for(;1<=a&&0<=i;a--,i--)if(k[a]!==ee[i]){if(a!==1||i!==1)do if(a--,i--,0>i||k[a]!==ee[i]){var de=`
`+k[a].replace(" at new "," at ");return e.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",e.displayName)),de}while(1<=a&&0<=i);break}}}finally{x=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?N(n):""}function R(e,t){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return e.child!==t&&t!==null?N("Suspense Fallback"):N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return T(e.type,!1);case 11:return T(e.type.render,!1);case 1:return T(e.type,!0);case 31:return N("Activity");default:return""}}function H(e){try{var t="",n=null;do t+=R(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var M=Object.prototype.hasOwnProperty,D=r.unstable_scheduleCallback,K=r.unstable_cancelCallback,q=r.unstable_shouldYield,Y=r.unstable_requestPaint,G=r.unstable_now,$=r.unstable_getCurrentPriorityLevel,ie=r.unstable_ImmediatePriority,J=r.unstable_UserBlockingPriority,ve=r.unstable_NormalPriority,Ee=r.unstable_LowPriority,me=r.unstable_IdlePriority,Oe=r.log,Ne=r.unstable_setDisableYieldValue,re=null,Be=null;function ze(e){if(typeof Oe=="function"&&Ne(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(re,e)}catch{}}var Ae=Math.clz32?Math.clz32:Ye,ft=Math.log,We=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(ft(e)/We|0)|0}var $e=256,Xe=262144,He=4194304;function Je(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 it(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var A=a&134217727;return A!==0?(a=A&~o,a!==0?i=Je(a):(v&=A,v!==0?i=Je(v):n||(n=A&~e,n!==0&&(i=Je(n))))):(A=a&~o,A!==0?i=Je(A):v!==0?i=Je(v):n||(n=a&~e,n!==0&&(i=Je(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Re(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _e(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 Ce(){var e=He;return He<<=1,(He&62914560)===0&&(He=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tt(e,t,n,a,i,o){var v=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var A=e.entanglements,k=e.expirationTimes,ee=e.hiddenUpdates;for(n=v&~n;0<n;){var de=31-Ae(n),ge=1<<de;A[de]=0,k[de]=-1;var te=ee[de];if(te!==null)for(ee[de]=null,de=0;de<te.length;de++){var le=te[de];le!==null&&(le.lane&=-536870913)}n&=~ge}a!==0&&jt(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(v&~t))}function jt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ae(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ae(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function wt(e,t){var n=t&-t;return n=(n&42)!==0?1:Ft(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ft(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 Ht(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qt(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function tn(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var zt=Math.random().toString(36).slice(2),mt="__reactFiber$"+zt,Ct="__reactProps$"+zt,cn="__reactContainer$"+zt,Mt="__reactEvents$"+zt,Kt="__reactListeners$"+zt,na="__reactHandles$"+zt,B="__reactResources$"+zt,se="__reactMarker$"+zt;function Me(e){delete e[mt],delete e[Ct],delete e[Mt],delete e[Kt],delete e[na]}function Fe(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ah(e);e!==null;){if(n=e[mt])return n;e=Ah(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[mt]||e[cn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function on(e){var t=e[B];return t||(t=e[B]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tt(e){e[se]=!0}var Qn=new Set,Ea={};function Pe(e,t){ot(e,t),ot(e+"Capture",t)}function ot(e,t){for(Ea[e]=t,e=0;e<t.length;e++)Qn.add(t[e])}var vt=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]*$"),xt={},It={};function Wi(e){return M.call(It,e)?!0:M.call(xt,e)?!1:vt.test(e)?It[e]=!0:(xt[e]=!0,!1)}function Za(e,t,n){if(Wi(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function $i(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function aa(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _p(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(v){n=""+v,o.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(v){n=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){if(!e._valueTracker){var t=cc(e)?"checked":"value";e._valueTracker=_p(e,t,""+e[t])}}function fc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=cc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function er(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 Rp=/[\n"\\]/g;function Ln(e){return e.replace(Rp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tu(e,t,n,a,i,o,v,A){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kn(t)):e.value!==""+kn(t)&&(e.value=""+kn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Au(e,v,kn(t)):n!=null?Au(e,v,kn(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+kn(A):e.removeAttribute("name")}function dc(e,t,n,a,i,o,v,A){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){wu(e);return}n=n!=null?""+kn(n):"",t=t!=null?""+kn(t):n,A||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=A?e.checked:!!a,e.defaultChecked=!!a,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),wu(e)}function Au(e,t,n){t==="number"&&er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function gl(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function hc(e,t,n){if(t!=null&&(t=""+kn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kn(n):""}function mc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if(pt(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=kn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),wu(e)}function yl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dp=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 pc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Dp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function vc(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&pc(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&pc(e,o,t[o])}function ju(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 zp=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"]]),Mp=/^[\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 tr(e){return Mp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var Cu=null;function _u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Sl=null;function gc(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[Ct]||null;if(!i)throw Error(c(90));Tu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&fc(a)}break e;case"textarea":hc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&gl(e,!!n.multiple,t,!1)}}}var Ru=!1;function yc(e,t,n){if(Ru)return e(t,n);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(bl!==null||Sl!==null)&&(Vr(),bl&&(t=bl,e=Sl,Sl=bl=null,gc(t),e)))for(t=0;t<e.length;t++)gc(e[t])}}function ei(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ct]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(ia)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){Du=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{Du=!1}var xa=null,zu=null,nr=null;function bc(){if(nr)return nr;var e,t=zu,n=t.length,a,i="value"in xa?xa.value:xa.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var v=n-e;for(a=1;a<=v&&t[n-a]===i[o-a];a++);return nr=i.slice(e,1<a?1-a:void 0)}function ar(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 lr(){return!0}function Sc(){return!1}function xn(e){function t(n,a,i,o,v){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=v,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(n=e[A],this[A]=n?n(o):o[A]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?lr:Sc,this.isPropagationStopped=Sc,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lr)},persist:function(){},isPersistent:lr}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ir=xn(Qa),ni=z({},Qa,{view:0,detail:0}),Bp=xn(ni),Mu,Bu,ai,rr=z({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==ai&&(ai&&e.type==="mousemove"?(Mu=e.screenX-ai.screenX,Bu=e.screenY-ai.screenY):Bu=Mu=0,ai=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Bu}}),Ec=xn(rr),Up=z({},rr,{dataTransfer:0}),kp=xn(Up),Lp=z({},ni,{relatedTarget:0}),Uu=xn(Lp),Hp=z({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),qp=xn(Hp),Kp=z({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vp=xn(Kp),Gp=z({},Qa,{data:0}),xc=xn(Gp),Yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xp={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"},Zp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zp[e])?!!t[e]:!1}function ku(){return Qp}var Fp=z({},ni,{key:function(e){if(e.key){var t=Yp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jp=xn(Fp),Pp=z({},rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oc=xn(Pp),Ip=z({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),Wp=xn(Ip),$p=z({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=xn($p),tv=z({},rr,{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}),nv=xn(tv),av=z({},Qa,{newState:0,oldState:0}),lv=xn(av),iv=[9,13,27,32],Lu=ia&&"CompositionEvent"in window,li=null;ia&&"documentMode"in document&&(li=document.documentMode);var rv=ia&&"TextEvent"in window&&!li,Nc=ia&&(!Lu||li&&8<li&&11>=li),wc=" ",Tc=!1;function Ac(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var El=!1;function uv(e,t){switch(e){case"compositionend":return jc(t);case"keypress":return t.which!==32?null:(Tc=!0,wc);case"textInput":return e=t.data,e===wc&&Tc?null:e;default:return null}}function ov(e,t){if(El)return e==="compositionend"||!Lu&&Ac(e,t)?(e=bc(),nr=zu=xa=null,El=!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 Nc&&t.locale!=="ko"?null:t.data;default:return null}}var sv={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 Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sv[e.type]:t==="textarea"}function _c(e,t,n,a){bl?Sl?Sl.push(a):Sl=[a]:bl=a,t=Jr(t,"onChange"),0<t.length&&(n=new ir("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ii=null,ri=null;function cv(e){hh(e,0)}function ur(e){var t=Qt(e);if(fc(t))return e}function Rc(e,t){if(e==="change")return t}var Dc=!1;if(ia){var Hu;if(ia){var qu="oninput"in document;if(!qu){var zc=document.createElement("div");zc.setAttribute("oninput","return;"),qu=typeof zc.oninput=="function"}Hu=qu}else Hu=!1;Dc=Hu&&(!document.documentMode||9<document.documentMode)}function Mc(){ii&&(ii.detachEvent("onpropertychange",Bc),ri=ii=null)}function Bc(e){if(e.propertyName==="value"&&ur(ri)){var t=[];_c(t,ri,e,_u(e)),yc(cv,t)}}function fv(e,t,n){e==="focusin"?(Mc(),ii=t,ri=n,ii.attachEvent("onpropertychange",Bc)):e==="focusout"&&Mc()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ur(ri)}function hv(e,t){if(e==="click")return ur(t)}function mv(e,t){if(e==="input"||e==="change")return ur(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _n=typeof Object.is=="function"?Object.is:pv;function ui(e,t){if(_n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!M.call(t,i)||!_n(e[i],t[i]))return!1}return!0}function Uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kc(e,t){var n=Uc(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uc(n)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=er(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=er(e.document)}return t}function Ku(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 vv=ia&&"documentMode"in document&&11>=document.documentMode,xl=null,Vu=null,oi=null,Gu=!1;function qc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||xl==null||xl!==er(a)||(a=xl,"selectionStart"in a&&Ku(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),oi&&ui(oi,a)||(oi=a,a=Jr(Vu,"onSelect"),0<a.length&&(t=new ir("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=xl)))}function Fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ol={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionrun:Fa("Transition","TransitionRun"),transitionstart:Fa("Transition","TransitionStart"),transitioncancel:Fa("Transition","TransitionCancel"),transitionend:Fa("Transition","TransitionEnd")},Yu={},Kc={};ia&&(Kc=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Ja(e){if(Yu[e])return Yu[e];if(!Ol[e])return e;var t=Ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kc)return Yu[e]=t[n];return e}var Vc=Ja("animationend"),Gc=Ja("animationiteration"),Yc=Ja("animationstart"),gv=Ja("transitionrun"),yv=Ja("transitionstart"),bv=Ja("transitioncancel"),Xc=Ja("transitionend"),Zc=new Map,Xu="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(" ");Xu.push("scrollEnd");function Fn(e,t){Zc.set(e,t),Pe(t,[e])}var or=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)},Hn=[],Nl=0,Zu=0;function sr(){for(var e=Nl,t=Zu=Nl=0;t<e;){var n=Hn[t];Hn[t++]=null;var a=Hn[t];Hn[t++]=null;var i=Hn[t];Hn[t++]=null;var o=Hn[t];if(Hn[t++]=null,a!==null&&i!==null){var v=a.pending;v===null?i.next=i:(i.next=v.next,v.next=i),a.pending=i}o!==0&&Qc(n,i,o)}}function cr(e,t,n,a){Hn[Nl++]=e,Hn[Nl++]=t,Hn[Nl++]=n,Hn[Nl++]=a,Zu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Qu(e,t,n,a){return cr(e,t,n,a),fr(e)}function Pa(e,t){return cr(e,null,null,t),fr(e)}function Qc(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Ae(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function fr(e){if(50<_i)throw _i=0,as=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wl={};function Sv(e,t,n,a){this.tag=e,this.key=n,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,t,n,a){return new Sv(e,t,n,a)}function Fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var n=e.alternate;return n===null?(n=Rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fc(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function dr(e,t,n,a,i,o){var v=0;if(a=e,typeof e=="function")Fu(e)&&(v=1);else if(typeof e=="string")v=wg(e,n,xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case at:return e=Rn(31,n,t,i),e.elementType=at,e.lanes=o,e;case Q:return Ia(n.children,i,o,t);case Z:v=8,i|=24;break;case P:return e=Rn(12,n,t,i|2),e.elementType=P,e.lanes=o,e;case Se:return e=Rn(13,n,t,i),e.elementType=Se,e.lanes=o,e;case De:return e=Rn(19,n,t,i),e.elementType=De,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:v=10;break e;case ce:v=9;break e;case fe:v=11;break e;case ue:v=14;break e;case we:v=16,a=null;break e}v=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Rn(v,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function Ia(e,t,n,a){return e=Rn(7,e,a,t),e.lanes=n,e}function Ju(e,t,n){return e=Rn(6,e,null,t),e.lanes=n,e}function Jc(e){var t=Rn(18,null,null,0);return t.stateNode=e,t}function Pu(e,t,n){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pc=new WeakMap;function qn(e,t){if(typeof e=="object"&&e!==null){var n=Pc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:H(t)},Pc.set(e,t),t)}return{value:e,source:t,stack:H(t)}}var Tl=[],Al=0,hr=null,si=0,Kn=[],Vn=0,Oa=null,Wn=1,$n="";function ua(e,t){Tl[Al++]=si,Tl[Al++]=hr,hr=e,si=t}function Ic(e,t,n){Kn[Vn++]=Wn,Kn[Vn++]=$n,Kn[Vn++]=Oa,Oa=e;var a=Wn;e=$n;var i=32-Ae(a)-1;a&=~(1<<i),n+=1;var o=32-Ae(t)+i;if(30<o){var v=i-i%5;o=(a&(1<<v)-1).toString(32),a>>=v,i-=v,Wn=1<<32-Ae(t)+i|n<<i|a,$n=o+e}else Wn=1<<o|n<<i|a,$n=e}function Iu(e){e.return!==null&&(ua(e,1),Ic(e,1,0))}function Wu(e){for(;e===hr;)hr=Tl[--Al],Tl[Al]=null,si=Tl[--Al],Tl[Al]=null;for(;e===Oa;)Oa=Kn[--Vn],Kn[Vn]=null,$n=Kn[--Vn],Kn[Vn]=null,Wn=Kn[--Vn],Kn[Vn]=null}function Wc(e,t){Kn[Vn++]=Wn,Kn[Vn++]=$n,Kn[Vn++]=Oa,Wn=t.id,$n=t.overflow,Oa=e}var dn=null,Yt=null,Et=!1,Na=null,Gn=!1,$u=Error(c(519));function wa(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ci(qn(t,e)),$u}function $c(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[mt]=e,t[Ct]=a,n){case"dialog":yt("cancel",t),yt("close",t);break;case"iframe":case"object":case"embed":yt("load",t);break;case"video":case"audio":for(n=0;n<Di.length;n++)yt(Di[n],t);break;case"source":yt("error",t);break;case"img":case"image":case"link":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"input":yt("invalid",t),dc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":yt("invalid",t);break;case"textarea":yt("invalid",t),mc(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||gh(t.textContent,n)?(a.popover!=null&&(yt("beforetoggle",t),yt("toggle",t)),a.onScroll!=null&&yt("scroll",t),a.onScrollEnd!=null&&yt("scrollend",t),a.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||wa(e,!0)}function ef(e){for(dn=e.return;dn;)switch(dn.tag){case 5:case 31:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:dn=dn.return}}function jl(e){if(e!==dn)return!1;if(!Et)return ef(e),Et=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ys(e.type,e.memoizedProps)),n=!n),n&&Yt&&wa(e),ef(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Yt=Th(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Yt=Th(e)}else t===27?(t=Yt,Ha(e.type)?(e=Os,Os=null,Yt=e):Yt=t):Yt=dn?Xn(e.stateNode.nextSibling):null;return!0}function Wa(){Yt=dn=null,Et=!1}function eo(){var e=Na;return e!==null&&(Tn===null?Tn=e:Tn.push.apply(Tn,e),Na=null),e}function ci(e){Na===null?Na=[e]:Na.push(e)}var to=U(null),$a=null,oa=null;function Ta(e,t,n){je(to,t._currentValue),t._currentValue=n}function sa(e){e._currentValue=to.current,he(to)}function no(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ao(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var v=i.child;o=o.firstContext;e:for(;o!==null;){var A=o;o=i;for(var k=0;k<t.length;k++)if(A.context===t[k]){o.lanes|=n,A=o.alternate,A!==null&&(A.lanes|=n),no(o.return,n,e),a||(v=null);break e}o=A.next}}else if(i.tag===18){if(v=i.return,v===null)throw Error(c(341));v.lanes|=n,o=v.alternate,o!==null&&(o.lanes|=n),no(v,n,e),v=null}else v=i.child;if(v!==null)v.return=i;else for(v=i;v!==null;){if(v===e){v=null;break}if(i=v.sibling,i!==null){i.return=v.return,v=i;break}v=v.return}i=v}}function Cl(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var v=i.alternate;if(v===null)throw Error(c(387));if(v=v.memoizedProps,v!==null){var A=i.type;_n(i.pendingProps.value,v.value)||(e!==null?e.push(A):e=[A])}}else if(i===E.current){if(v=i.alternate,v===null)throw Error(c(387));v.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ki):e=[ki])}i=i.return}e!==null&&ao(t,e,n,a),t.flags|=262144}function mr(e){for(e=e.firstContext;e!==null;){if(!_n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){$a=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return tf($a,e)}function pr(e,t){return $a===null&&el(e),tf(e,t)}function tf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(c(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xv=r.unstable_scheduleCallback,Ov=r.unstable_NormalPriority,nn={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lo(){return{controller:new Ev,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&xv(Ov,function(){e.controller.abort()})}var di=null,io=0,_l=0,Rl=null;function Nv(e,t){if(di===null){var n=di=[];io=0,_l=ss(),Rl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return io++,t.then(nf,nf),t}function nf(){if(--io===0&&di!==null){Rl!==null&&(Rl.status="fulfilled");var e=di;di=null,_l=0,Rl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var af=ae.S;ae.S=function(e,t){Kd=G(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nv(e,t),af!==null&&af(e,t)};var tl=U(null);function ro(){var e=tl.current;return e!==null?e:Vt.pooledCache}function vr(e,t){t===null?je(tl,tl.current):je(tl,t.pool)}function lf(){var e=ro();return e===null?null:{parent:nn._currentValue,pool:e}}var Dl=Error(c(460)),uo=Error(c(474)),gr=Error(c(542)),yr={then:function(){}};function rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(la,la),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=Vt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw al=t,Dl}}function nl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(al=n,Dl):n}}var al=null;function of(){if(al===null)throw Error(c(459));var e=al;return al=null,e}function sf(e){if(e===Dl||e===gr)throw Error(c(483))}var zl=null,hi=0;function br(e){var t=hi;return hi+=1,zl===null&&(zl=[]),uf(zl,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Sr(e,t){throw t.$$typeof===ne?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cf(e){function t(X,V){if(e){var W=X.deletions;W===null?(X.deletions=[V],X.flags|=16):W.push(V)}}function n(X,V){if(!e)return null;for(;V!==null;)t(X,V),V=V.sibling;return null}function a(X){for(var V=new Map;X!==null;)X.key!==null?V.set(X.key,X):V.set(X.index,X),X=X.sibling;return V}function i(X,V){return X=ra(X,V),X.index=0,X.sibling=null,X}function o(X,V,W){return X.index=W,e?(W=X.alternate,W!==null?(W=W.index,W<V?(X.flags|=67108866,V):W):(X.flags|=67108866,V)):(X.flags|=1048576,V)}function v(X){return e&&X.alternate===null&&(X.flags|=67108866),X}function A(X,V,W,pe){return V===null||V.tag!==6?(V=Ju(W,X.mode,pe),V.return=X,V):(V=i(V,W),V.return=X,V)}function k(X,V,W,pe){var et=W.type;return et===Q?de(X,V,W.props.children,pe,W.key):V!==null&&(V.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===we&&nl(et)===V.type)?(V=i(V,W.props),mi(V,W),V.return=X,V):(V=dr(W.type,W.key,W.props,null,X.mode,pe),mi(V,W),V.return=X,V)}function ee(X,V,W,pe){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Pu(W,X.mode,pe),V.return=X,V):(V=i(V,W.children||[]),V.return=X,V)}function de(X,V,W,pe,et){return V===null||V.tag!==7?(V=Ia(W,X.mode,pe,et),V.return=X,V):(V=i(V,W),V.return=X,V)}function ge(X,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Ju(""+V,X.mode,W),V.return=X,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case I:return W=dr(V.type,V.key,V.props,null,X.mode,W),mi(W,V),W.return=X,W;case oe:return V=Pu(V,X.mode,W),V.return=X,V;case we:return V=nl(V),ge(X,V,W)}if(pt(V)||be(V))return V=Ia(V,X.mode,W,null),V.return=X,V;if(typeof V.then=="function")return ge(X,br(V),W);if(V.$$typeof===ye)return ge(X,pr(X,V),W);Sr(X,V)}return null}function te(X,V,W,pe){var et=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return et!==null?null:A(X,V,""+W,pe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case I:return W.key===et?k(X,V,W,pe):null;case oe:return W.key===et?ee(X,V,W,pe):null;case we:return W=nl(W),te(X,V,W,pe)}if(pt(W)||be(W))return et!==null?null:de(X,V,W,pe,null);if(typeof W.then=="function")return te(X,V,br(W),pe);if(W.$$typeof===ye)return te(X,V,pr(X,W),pe);Sr(X,W)}return null}function le(X,V,W,pe,et){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return X=X.get(W)||null,A(V,X,""+pe,et);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case I:return X=X.get(pe.key===null?W:pe.key)||null,k(V,X,pe,et);case oe:return X=X.get(pe.key===null?W:pe.key)||null,ee(V,X,pe,et);case we:return pe=nl(pe),le(X,V,W,pe,et)}if(pt(pe)||be(pe))return X=X.get(W)||null,de(V,X,pe,et,null);if(typeof pe.then=="function")return le(X,V,W,br(pe),et);if(pe.$$typeof===ye)return le(X,V,W,pr(V,pe),et);Sr(V,pe)}return null}function Ue(X,V,W,pe){for(var et=null,Ot=null,Ke=V,dt=V=0,St=null;Ke!==null&&dt<W.length;dt++){Ke.index>dt?(St=Ke,Ke=null):St=Ke.sibling;var Nt=te(X,Ke,W[dt],pe);if(Nt===null){Ke===null&&(Ke=St);break}e&&Ke&&Nt.alternate===null&&t(X,Ke),V=o(Nt,V,dt),Ot===null?et=Nt:Ot.sibling=Nt,Ot=Nt,Ke=St}if(dt===W.length)return n(X,Ke),Et&&ua(X,dt),et;if(Ke===null){for(;dt<W.length;dt++)Ke=ge(X,W[dt],pe),Ke!==null&&(V=o(Ke,V,dt),Ot===null?et=Ke:Ot.sibling=Ke,Ot=Ke);return Et&&ua(X,dt),et}for(Ke=a(Ke);dt<W.length;dt++)St=le(Ke,X,dt,W[dt],pe),St!==null&&(e&&St.alternate!==null&&Ke.delete(St.key===null?dt:St.key),V=o(St,V,dt),Ot===null?et=St:Ot.sibling=St,Ot=St);return e&&Ke.forEach(function(Ya){return t(X,Ya)}),Et&&ua(X,dt),et}function nt(X,V,W,pe){if(W==null)throw Error(c(151));for(var et=null,Ot=null,Ke=V,dt=V=0,St=null,Nt=W.next();Ke!==null&&!Nt.done;dt++,Nt=W.next()){Ke.index>dt?(St=Ke,Ke=null):St=Ke.sibling;var Ya=te(X,Ke,Nt.value,pe);if(Ya===null){Ke===null&&(Ke=St);break}e&&Ke&&Ya.alternate===null&&t(X,Ke),V=o(Ya,V,dt),Ot===null?et=Ya:Ot.sibling=Ya,Ot=Ya,Ke=St}if(Nt.done)return n(X,Ke),Et&&ua(X,dt),et;if(Ke===null){for(;!Nt.done;dt++,Nt=W.next())Nt=ge(X,Nt.value,pe),Nt!==null&&(V=o(Nt,V,dt),Ot===null?et=Nt:Ot.sibling=Nt,Ot=Nt);return Et&&ua(X,dt),et}for(Ke=a(Ke);!Nt.done;dt++,Nt=W.next())Nt=le(Ke,X,dt,Nt.value,pe),Nt!==null&&(e&&Nt.alternate!==null&&Ke.delete(Nt.key===null?dt:Nt.key),V=o(Nt,V,dt),Ot===null?et=Nt:Ot.sibling=Nt,Ot=Nt);return e&&Ke.forEach(function(Ug){return t(X,Ug)}),Et&&ua(X,dt),et}function kt(X,V,W,pe){if(typeof W=="object"&&W!==null&&W.type===Q&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case I:e:{for(var et=W.key;V!==null;){if(V.key===et){if(et=W.type,et===Q){if(V.tag===7){n(X,V.sibling),pe=i(V,W.props.children),pe.return=X,X=pe;break e}}else if(V.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===we&&nl(et)===V.type){n(X,V.sibling),pe=i(V,W.props),mi(pe,W),pe.return=X,X=pe;break e}n(X,V);break}else t(X,V);V=V.sibling}W.type===Q?(pe=Ia(W.props.children,X.mode,pe,W.key),pe.return=X,X=pe):(pe=dr(W.type,W.key,W.props,null,X.mode,pe),mi(pe,W),pe.return=X,X=pe)}return v(X);case oe:e:{for(et=W.key;V!==null;){if(V.key===et)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){n(X,V.sibling),pe=i(V,W.children||[]),pe.return=X,X=pe;break e}else{n(X,V);break}else t(X,V);V=V.sibling}pe=Pu(W,X.mode,pe),pe.return=X,X=pe}return v(X);case we:return W=nl(W),kt(X,V,W,pe)}if(pt(W))return Ue(X,V,W,pe);if(be(W)){if(et=be(W),typeof et!="function")throw Error(c(150));return W=et.call(W),nt(X,V,W,pe)}if(typeof W.then=="function")return kt(X,V,br(W),pe);if(W.$$typeof===ye)return kt(X,V,pr(X,W),pe);Sr(X,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(n(X,V.sibling),pe=i(V,W),pe.return=X,X=pe):(n(X,V),pe=Ju(W,X.mode,pe),pe.return=X,X=pe),v(X)):n(X,V)}return function(X,V,W,pe){try{hi=0;var et=kt(X,V,W,pe);return zl=null,et}catch(Ke){if(Ke===Dl||Ke===gr)throw Ke;var Ot=Rn(29,Ke,null,X.mode);return Ot.lanes=pe,Ot.return=X,Ot}finally{}}}var ll=cf(!0),ff=cf(!1),Aa=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function so(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 ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(At&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fr(e),Qc(e,null,n),t}return cr(e,a,t,n),fr(e)}function pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gt(e,n)}}function co(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=v:o=o.next=v,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var fo=!1;function vi(){if(fo){var e=Rl;if(e!==null)throw e}}function gi(e,t,n,a){fo=!1;var i=e.updateQueue;Aa=!1;var o=i.firstBaseUpdate,v=i.lastBaseUpdate,A=i.shared.pending;if(A!==null){i.shared.pending=null;var k=A,ee=k.next;k.next=null,v===null?o=ee:v.next=ee,v=k;var de=e.alternate;de!==null&&(de=de.updateQueue,A=de.lastBaseUpdate,A!==v&&(A===null?de.firstBaseUpdate=ee:A.next=ee,de.lastBaseUpdate=k))}if(o!==null){var ge=i.baseState;v=0,de=ee=k=null,A=o;do{var te=A.lane&-536870913,le=te!==A.lane;if(le?(bt&te)===te:(a&te)===te){te!==0&&te===_l&&(fo=!0),de!==null&&(de=de.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ue=e,nt=A;te=t;var kt=n;switch(nt.tag){case 1:if(Ue=nt.payload,typeof Ue=="function"){ge=Ue.call(kt,ge,te);break e}ge=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=nt.payload,te=typeof Ue=="function"?Ue.call(kt,ge,te):Ue,te==null)break e;ge=z({},ge,te);break e;case 2:Aa=!0}}te=A.callback,te!==null&&(e.flags|=64,le&&(e.flags|=8192),le=i.callbacks,le===null?i.callbacks=[te]:le.push(te))}else le={lane:te,tag:A.tag,payload:A.payload,callback:A.callback,next:null},de===null?(ee=de=le,k=ge):de=de.next=le,v|=te;if(A=A.next,A===null){if(A=i.shared.pending,A===null)break;le=A,A=le.next,le.next=null,i.lastBaseUpdate=le,i.shared.pending=null}}while(!0);de===null&&(k=ge),i.baseState=k,i.firstBaseUpdate=ee,i.lastBaseUpdate=de,o===null&&(i.shared.lanes=0),Ma|=v,e.lanes=v,e.memoizedState=ge}}function df(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function hf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)df(n[e],t)}var Ml=U(null),Er=U(0);function mf(e,t){e=ya,je(Er,e),je(Ml,t),ya=e|t.baseLanes}function ho(){je(Er,ya),je(Ml,Ml.current)}function mo(){ya=Er.current,he(Ml),he(Er)}var Dn=U(null),Yn=null;function _a(e){var t=e.alternate;je(Wt,Wt.current&1),je(Dn,e),Yn===null&&(t===null||Ml.current!==null||t.memoizedState!==null)&&(Yn=e)}function po(e){je(Wt,Wt.current),je(Dn,e),Yn===null&&(Yn=e)}function pf(e){e.tag===22?(je(Wt,Wt.current),je(Dn,e),Yn===null&&(Yn=e)):Ra()}function Ra(){je(Wt,Wt.current),je(Dn,Dn.current)}function zn(e){he(Dn),Yn===e&&(Yn=null),he(Wt)}var Wt=U(0);function xr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Es(n)||xs(n)))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,ct=null,Bt=null,an=null,Or=!1,Bl=!1,il=!1,Nr=0,yi=0,Ul=null,Tv=0;function Jt(){throw Error(c(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_n(e[n],t[n]))return!1;return!0}function go(e,t,n,a,i,o){return ca=o,ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?Wf:Do,il=!1,o=n(a,i),il=!1,Bl&&(o=gf(t,n,a,i)),vf(e),o}function vf(e){ae.H=Ei;var t=Bt!==null&&Bt.next!==null;if(ca=0,an=Bt=ct=null,Or=!1,yi=0,Ul=null,t)throw Error(c(300));e===null||ln||(e=e.dependencies,e!==null&&mr(e)&&(ln=!0))}function gf(e,t,n,a){ct=e;var i=0;do{if(Bl&&(Ul=null),yi=0,Bl=!1,25<=i)throw Error(c(301));if(i+=1,an=Bt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ae.H=$f,o=t(n,a)}while(Bl);return o}function Av(){var e=ae.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(Bt!==null?Bt.memoizedState:null)!==e&&(ct.flags|=1024),t}function yo(){var e=Nr!==0;return Nr=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(Or){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Or=!1}ca=0,an=Bt=ct=null,Bl=!1,yi=Nr=0,Ul=null}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?ct.memoizedState=an=e:an=an.next=e,an}function $t(){if(Bt===null){var e=ct.alternate;e=e!==null?e.memoizedState:null}else e=Bt.next;var t=an===null?ct.memoizedState:an.next;if(t!==null)an=t,Bt=e;else{if(e===null)throw ct.alternate===null?Error(c(467)):Error(c(310));Bt=e,e={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},an===null?ct.memoizedState=an=e:an=an.next=e}return an}function wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=yi;return yi+=1,Ul===null&&(Ul=[]),e=uf(Ul,e,t),t=ct,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?Wf:Do),e}function Tr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===ye)return hn(e)}throw Error(c(438,String(e)))}function Eo(e){var t=null,n=ct.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wr(),ct.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Ie;return t.index++,n}function fa(e,t){return typeof t=="function"?t(e):t}function Ar(e){var t=$t();return xo(t,Bt,e)}function xo(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var v=i.next;i.next=o.next,o.next=v}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var A=v=null,k=null,ee=t,de=!1;do{var ge=ee.lane&-536870913;if(ge!==ee.lane?(bt&ge)===ge:(ca&ge)===ge){var te=ee.revertLane;if(te===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ge===_l&&(de=!0);else if((ca&te)===te){ee=ee.next,te===_l&&(de=!0);continue}else ge={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},k===null?(A=k=ge,v=o):k=k.next=ge,ct.lanes|=te,Ma|=te;ge=ee.action,il&&n(o,ge),o=ee.hasEagerState?ee.eagerState:n(o,ge)}else te={lane:ge,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},k===null?(A=k=te,v=o):k=k.next=te,ct.lanes|=ge,Ma|=ge;ee=ee.next}while(ee!==null&&ee!==t);if(k===null?v=o:k.next=A,!_n(o,e.memoizedState)&&(ln=!0,de&&(n=Rl,n!==null)))throw n;e.memoizedState=o,e.baseState=v,e.baseQueue=k,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Oo(e){var t=$t(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var v=i=i.next;do o=e(o,v.action),v=v.next;while(v!==i);_n(o,t.memoizedState)||(ln=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function yf(e,t,n){var a=ct,i=$t(),o=Et;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=t();var v=!_n((Bt||i).memoizedState,n);if(v&&(i.memoizedState=n,ln=!0),i=i.queue,To(Ef.bind(null,a,i,e),[e]),i.getSnapshot!==t||v||an!==null&&an.memoizedState.tag&1){if(a.flags|=2048,kl(9,{destroy:void 0},Sf.bind(null,a,i,n,t),null),Vt===null)throw Error(c(349));o||(ca&127)!==0||bf(a,t,n)}return n}function bf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ct.updateQueue,t===null?(t=wr(),ct.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sf(e,t,n,a){t.value=n,t.getSnapshot=a,xf(t)&&Of(e)}function Ef(e,t,n){return n(function(){xf(t)&&Of(e)})}function xf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_n(e,n)}catch{return!0}}function Of(e){var t=Pa(e,2);t!==null&&An(t,e,2)}function No(e){var t=Sn();if(typeof e=="function"){var n=e;if(e=n(),il){ze(!0);try{n()}finally{ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function Nf(e,t,n,a){return e.baseState=n,xo(e,Bt,typeof a=="function"?a:fa)}function jv(e,t,n,a,i){if(_r(e))throw Error(c(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){o.listeners.push(v)}};ae.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,wf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function wf(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=ae.T,v={};ae.T=v;try{var A=n(i,a),k=ae.S;k!==null&&k(v,A),Tf(e,t,A)}catch(ee){wo(e,t,ee)}finally{o!==null&&v.types!==null&&(o.types=v.types),ae.T=o}}else try{o=n(i,a),Tf(e,t,o)}catch(ee){wo(e,t,ee)}}function Tf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Af(e,t,a)},function(a){return wo(e,t,a)}):Af(e,t,n)}function Af(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,wf(e,n)))}function wo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Cf(e,t){return t}function _f(e,t){if(Et){var n=Vt.formState;if(n!==null){e:{var a=ct;if(Et){if(Yt){t:{for(var i=Yt,o=Gn;i.nodeType!==8;){if(!o){i=null;break t}if(i=Xn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Yt=Xn(i.nextSibling),a=i.data==="F!";break e}}wa(a)}a=!1}a&&(t=n[0])}}return n=Sn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:t},n.queue=a,n=Jf.bind(null,ct,a),a.dispatch=n,a=No(!1),o=Ro.bind(null,ct,!1,a.queue),a=Sn(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=jv.bind(null,ct,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Rf(e){var t=$t();return Df(t,Bt,e)}function Df(e,t,n){if(t=xo(e,t,Cf)[0],e=Ar(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bi(t)}catch(v){throw v===Dl?gr:v}else a=t;t=$t();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ct.flags|=2048,kl(9,{destroy:void 0},Cv.bind(null,i,n),null)),[a,o,e]}function Cv(e,t){e.action=t}function zf(e){var t=$t(),n=Bt;if(n!==null)return Df(t,n,e);$t(),t=t.memoizedState,n=$t();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function kl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ct.updateQueue,t===null&&(t=wr(),ct.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Mf(){return $t().memoizedState}function jr(e,t,n,a){var i=Sn();ct.flags|=e,i.memoizedState=kl(1|t,{destroy:void 0},n,a===void 0?null:a)}function Cr(e,t,n,a){var i=$t();a=a===void 0?null:a;var o=i.memoizedState.inst;Bt!==null&&a!==null&&vo(a,Bt.memoizedState.deps)?i.memoizedState=kl(t,o,n,a):(ct.flags|=e,i.memoizedState=kl(1|t,o,n,a))}function Bf(e,t){jr(8390656,8,e,t)}function To(e,t){Cr(2048,8,e,t)}function _v(e){ct.flags|=4;var t=ct.updateQueue;if(t===null)t=wr(),ct.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Uf(e){var t=$t().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((At&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function kf(e,t){return Cr(4,2,e,t)}function Lf(e,t){return Cr(4,4,e,t)}function Hf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qf(e,t,n){n=n!=null?n.concat([e]):null,Cr(4,4,Hf.bind(null,t,e),n)}function Ao(){}function Kf(e,t){var n=$t();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Vf(e,t){var n=$t();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vo(t,a[1]))return a[0];if(a=e(),il){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[a,t],a}function jo(e,t,n){return n===void 0||(ca&1073741824)!==0&&(bt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),ct.lanes|=e,Ma|=e,n)}function Gf(e,t,n,a){return _n(n,t)?n:Ml.current!==null?(e=jo(e,n,a),_n(e,t)||(ln=!0),e):(ca&42)===0||(ca&1073741824)!==0&&(bt&261930)===0?(ln=!0,e.memoizedState=n):(e=Gd(),ct.lanes|=e,Ma|=e,t)}function Yf(e,t,n,a,i){var o=Te.p;Te.p=o!==0&&8>o?o:8;var v=ae.T,A={};ae.T=A,Ro(e,!1,t,n);try{var k=i(),ee=ae.S;if(ee!==null&&ee(A,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var de=wv(k,a);Si(e,t,de,Un(e))}else Si(e,t,a,Un(e))}catch(ge){Si(e,t,{then:function(){},status:"rejected",reason:ge},Un())}finally{Te.p=o,v!==null&&A.types!==null&&(v.types=A.types),ae.T=v}}function Rv(){}function Co(e,t,n,a){if(e.tag!==5)throw Error(c(476));var i=Xf(e).queue;Yf(e,i,t,Ve,n===null?Rv:function(){return Zf(e),n(a)})}function Xf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ve,baseState:Ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:Ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zf(e){var t=Xf(e);t.next===null&&(t=e.alternate.memoizedState),Si(e,t.next.queue,{},Un())}function _o(){return hn(ki)}function Qf(){return $t().memoizedState}function Ff(){return $t().memoizedState}function Dv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Un();e=ja(n);var a=Ca(t,e,n);a!==null&&(An(a,t,n),pi(a,t,n)),t={cache:lo()},e.payload=t;return}t=t.return}}function zv(e,t,n){var a=Un();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_r(e)?Pf(t,n):(n=Qu(e,t,n,a),n!==null&&(An(n,e,a),If(n,t,a)))}function Jf(e,t,n){var a=Un();Si(e,t,n,a)}function Si(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_r(e))Pf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var v=t.lastRenderedState,A=o(v,n);if(i.hasEagerState=!0,i.eagerState=A,_n(A,v))return cr(e,t,i,0),Vt===null&&sr(),!1}catch{}finally{}if(n=Qu(e,t,i,a),n!==null)return An(n,e,a),If(n,t,a),!0}return!1}function Ro(e,t,n,a){if(a={lane:2,revertLane:ss(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_r(e)){if(t)throw Error(c(479))}else t=Qu(e,n,a,2),t!==null&&An(t,e,2)}function _r(e){var t=e.alternate;return e===ct||t!==null&&t===ct}function Pf(e,t){Bl=Or=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function If(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gt(e,n)}}var Ei={readContext:hn,use:Tr,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};Ei.useEffectEvent=Jt;var Wf={readContext:hn,use:Tr,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:Bf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,jr(4194308,4,Hf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jr(4194308,4,e,t)},useInsertionEffect:function(e,t){jr(4,2,e,t)},useMemo:function(e,t){var n=Sn();t=t===void 0?null:t;var a=e();if(il){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Sn();if(n!==void 0){var i=n(t);if(il){ze(!0);try{n(t)}finally{ze(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=zv.bind(null,ct,e),[a.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:function(e){e=No(e);var t=e.queue,n=Jf.bind(null,ct,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ao,useDeferredValue:function(e,t){var n=Sn();return jo(n,e,t)},useTransition:function(){var e=No(!1);return e=Yf.bind(null,ct,e.queue,!0,!1),Sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ct,i=Sn();if(Et){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Vt===null)throw Error(c(349));(bt&127)!==0||bf(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Bf(Ef.bind(null,a,o,e),[e]),a.flags|=2048,kl(9,{destroy:void 0},Sf.bind(null,a,o,n,t),null),n},useId:function(){var e=Sn(),t=Vt.identifierPrefix;if(Et){var n=$n,a=Wn;n=(a&~(1<<32-Ae(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Tv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_o,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=Sn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ro.bind(null,ct,!0,n),n.dispatch=t,[e,t]},useMemoCache:Eo,useCacheRefresh:function(){return Sn().memoizedState=Dv.bind(null,ct)},useEffectEvent:function(e){var t=Sn(),n={impl:e};return t.memoizedState=n,function(){if((At&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Do={readContext:hn,use:Tr,useCallback:Kf,useContext:hn,useEffect:To,useImperativeHandle:qf,useInsertionEffect:kf,useLayoutEffect:Lf,useMemo:Vf,useReducer:Ar,useRef:Mf,useState:function(){return Ar(fa)},useDebugValue:Ao,useDeferredValue:function(e,t){var n=$t();return Gf(n,Bt.memoizedState,e,t)},useTransition:function(){var e=Ar(fa)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:yf,useId:Qf,useHostTransitionStatus:_o,useFormState:Rf,useActionState:Rf,useOptimistic:function(e,t){var n=$t();return Nf(n,Bt,e,t)},useMemoCache:Eo,useCacheRefresh:Ff};Do.useEffectEvent=Uf;var $f={readContext:hn,use:Tr,useCallback:Kf,useContext:hn,useEffect:To,useImperativeHandle:qf,useInsertionEffect:kf,useLayoutEffect:Lf,useMemo:Vf,useReducer:Oo,useRef:Mf,useState:function(){return Oo(fa)},useDebugValue:Ao,useDeferredValue:function(e,t){var n=$t();return Bt===null?jo(n,e,t):Gf(n,Bt.memoizedState,e,t)},useTransition:function(){var e=Oo(fa)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:yf,useId:Qf,useHostTransitionStatus:_o,useFormState:zf,useActionState:zf,useOptimistic:function(e,t){var n=$t();return Bt!==null?Nf(n,Bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Eo,useCacheRefresh:Ff};$f.useEffectEvent=Uf;function zo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Un(),i=ja(a);i.payload=t,n!=null&&(i.callback=n),t=Ca(e,i,a),t!==null&&(An(t,e,a),pi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Un(),i=ja(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ca(e,i,a),t!==null&&(An(t,e,a),pi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Un(),a=ja(n);a.tag=2,t!=null&&(a.callback=t),t=Ca(e,a,n),t!==null&&(An(t,e,n),pi(t,e,n))}};function ed(e,t,n,a,i,o,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,v):t.prototype&&t.prototype.isPureReactComponent?!ui(n,a)||!ui(i,o):!0}function td(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Mo.enqueueReplaceState(t,t.state,null)}function rl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=z({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function nd(e){or(e)}function ad(e){console.error(e)}function ld(e){or(e)}function Rr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function id(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Bo(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){Rr(e,t)},n}function rd(e){return e=ja(e),e.tag=3,e}function ud(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){id(t,n,a)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){id(t,n,a),typeof i!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var A=a.stack;this.componentDidCatch(a.value,{componentStack:A!==null?A:""})})}function Mv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Cl(t,n,i,!0),n=Dn.current,n!==null){switch(n.tag){case 31:case 13:return Yn===null?Gr():n.alternate===null&&Pt===0&&(Pt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===yr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),rs(e,a,i)),!1;case 22:return n.flags|=65536,a===yr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),rs(e,a,i)),!1}throw Error(c(435,n.tag))}return rs(e,a,i),Gr(),!1}if(Et)return t=Dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==$u&&(e=Error(c(422),{cause:a}),ci(qn(e,n)))):(a!==$u&&(t=Error(c(423),{cause:a}),ci(qn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=qn(a,n),i=Bo(e.stateNode,a,i),co(e,i),Pt!==4&&(Pt=2)),!1;var o=Error(c(520),{cause:a});if(o=qn(o,n),Ci===null?Ci=[o]:Ci.push(o),Pt!==4&&(Pt=2),t===null)return!0;a=qn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Bo(n.stateNode,a,e),co(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ba===null||!Ba.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=rd(i),ud(i,e,n,a),co(n,i),!1}n=n.return}while(n!==null);return!1}var Uo=Error(c(461)),ln=!1;function mn(e,t,n,a){t.child=e===null?ff(t,null,n,a):ll(t,e.child,n,a)}function od(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var v={};for(var A in a)A!=="ref"&&(v[A]=a[A])}else v=a;return el(t),a=go(e,t,n,v,o,i),A=yo(),e!==null&&!ln?(bo(e,t,i),da(e,t,i)):(Et&&A&&Iu(t),t.flags|=1,mn(e,t,a,i),t.child)}function sd(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!Fu(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,cd(e,t,o,a,i)):(e=dr(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Yo(e,i)){var v=o.memoizedProps;if(n=n.compare,n=n!==null?n:ui,n(v,a)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,e=ra(o,a),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(ui(o,a)&&e.ref===t.ref)if(ln=!1,t.pendingProps=a=o,Yo(e,i))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,da(e,t,i)}return ko(e,t,n,a,i)}function fd(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return dd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vr(t,o!==null?o.cachePool:null),o!==null?mf(t,o):ho(),pf(t);else return a=t.lanes=536870912,dd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(vr(t,o.cachePool),mf(t,o),Ra(),t.memoizedState=null):(e!==null&&vr(t,null),ho(),Ra());return mn(e,t,i,n),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dd(e,t,n,a,i){var o=ro();return o=o===null?null:{parent:nn._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&vr(t,null),ho(),pf(t),e!==null&&Cl(e,t,a,!0),t.childLanes=i,null}function Dr(e,t){return t=Mr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hd(e,t,n){return ll(t,e.child,null,n),e=Dr(t,t.pendingProps),e.flags|=2,zn(t),t.memoizedState=null,e}function Bv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Et){if(a.mode==="hidden")return e=Dr(t,a),t.lanes=536870912,xi(null,e);if(po(t),(e=Yt)?(e=wh(e,Gn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Wn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=Jc(e),n.return=t,t.child=n,dn=t,Yt=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return Dr(t,a)}var o=e.memoizedState;if(o!==null){var v=o.dehydrated;if(po(t),i)if(t.flags&256)t.flags&=-257,t=hd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(ln||Cl(e,t,n,!1),i=(n&e.childLanes)!==0,ln||i){if(a=Vt,a!==null&&(v=wt(a,n),v!==0&&v!==o.retryLane))throw o.retryLane=v,Pa(e,v),An(a,e,v),Uo;Gr(),t=hd(e,t,n)}else e=o.treeContext,Yt=Xn(v.nextSibling),dn=t,Et=!0,Na=null,Gn=!1,e!==null&&Wc(t,e),t=Dr(t,a),t.flags|=4096;return t}return e=ra(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ko(e,t,n,a,i){return el(t),n=go(e,t,n,a,void 0,i),a=yo(),e!==null&&!ln?(bo(e,t,i),da(e,t,i)):(Et&&a&&Iu(t),t.flags|=1,mn(e,t,n,i),t.child)}function md(e,t,n,a,i,o){return el(t),t.updateQueue=null,n=gf(t,a,n,i),vf(e),a=yo(),e!==null&&!ln?(bo(e,t,o),da(e,t,o)):(Et&&a&&Iu(t),t.flags|=1,mn(e,t,n,o),t.child)}function pd(e,t,n,a,i){if(el(t),t.stateNode===null){var o=wl,v=n.contextType;typeof v=="object"&&v!==null&&(o=hn(v)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Mo,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},oo(t),v=n.contextType,o.context=typeof v=="object"&&v!==null?hn(v):wl,o.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(zo(t,n,v,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(v=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),v!==o.state&&Mo.enqueueReplaceState(o,o.state,null),gi(t,a,o,i),vi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var A=t.memoizedProps,k=rl(n,A);o.props=k;var ee=o.context,de=n.contextType;v=wl,typeof de=="object"&&de!==null&&(v=hn(de));var ge=n.getDerivedStateFromProps;de=typeof ge=="function"||typeof o.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,de||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(A||ee!==v)&&td(t,o,a,v),Aa=!1;var te=t.memoizedState;o.state=te,gi(t,a,o,i),vi(),ee=t.memoizedState,A||te!==ee||Aa?(typeof ge=="function"&&(zo(t,n,ge,a),ee=t.memoizedState),(k=Aa||ed(t,n,k,a,te,ee,v))?(de||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=ee),o.props=a,o.state=ee,o.context=v,a=k):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,so(e,t),v=t.memoizedProps,de=rl(n,v),o.props=de,ge=t.pendingProps,te=o.context,ee=n.contextType,k=wl,typeof ee=="object"&&ee!==null&&(k=hn(ee)),A=n.getDerivedStateFromProps,(ee=typeof A=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v!==ge||te!==k)&&td(t,o,a,k),Aa=!1,te=t.memoizedState,o.state=te,gi(t,a,o,i),vi();var le=t.memoizedState;v!==ge||te!==le||Aa||e!==null&&e.dependencies!==null&&mr(e.dependencies)?(typeof A=="function"&&(zo(t,n,A,a),le=t.memoizedState),(de=Aa||ed(t,n,de,a,te,le,k)||e!==null&&e.dependencies!==null&&mr(e.dependencies))?(ee||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,le,k),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,le,k)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=le),o.props=a,o.state=le,o.context=k,a=de):(typeof o.componentDidUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&te===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,zr(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=ll(t,e.child,null,i),t.child=ll(t,null,n,i)):mn(e,t,n,i),t.memoizedState=o.state,e=t.child):e=da(e,t,i),e}function vd(e,t,n,a){return Wa(),t.flags|=256,mn(e,t,n,a),t.child}var Lo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ho(e){return{baseLanes:e,cachePool:lf()}}function qo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Bn),e}function gd(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,v;if((v=o)||(v=e!==null&&e.memoizedState===null?!1:(Wt.current&2)!==0),v&&(i=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Et){if(i?_a(t):Ra(),(e=Yt)?(e=wh(e,Gn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Wn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},n=Jc(e),n.return=t,t.child=n,dn=t,Yt=null)):e=null,e===null)throw wa(t);return xs(e)?t.lanes=32:t.lanes=536870912,null}var A=a.children;return a=a.fallback,i?(Ra(),i=t.mode,A=Mr({mode:"hidden",children:A},i),a=Ia(a,i,n,null),A.return=t,a.return=t,A.sibling=a,t.child=A,a=t.child,a.memoizedState=Ho(n),a.childLanes=qo(e,v,n),t.memoizedState=Lo,xi(null,a)):(_a(t),Ko(t,A))}var k=e.memoizedState;if(k!==null&&(A=k.dehydrated,A!==null)){if(o)t.flags&256?(_a(t),t.flags&=-257,t=Vo(e,t,n)):t.memoizedState!==null?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),A=a.fallback,i=t.mode,a=Mr({mode:"visible",children:a.children},i),A=Ia(A,i,n,null),A.flags|=2,a.return=t,A.return=t,a.sibling=A,t.child=a,ll(t,e.child,null,n),a=t.child,a.memoizedState=Ho(n),a.childLanes=qo(e,v,n),t.memoizedState=Lo,t=xi(null,a));else if(_a(t),xs(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var ee=v.dgst;v=ee,a=Error(c(419)),a.stack="",a.digest=v,ci({value:a,source:null,stack:null}),t=Vo(e,t,n)}else if(ln||Cl(e,t,n,!1),v=(n&e.childLanes)!==0,ln||v){if(v=Vt,v!==null&&(a=wt(v,n),a!==0&&a!==k.retryLane))throw k.retryLane=a,Pa(e,a),An(v,e,a),Uo;Es(A)||Gr(),t=Vo(e,t,n)}else Es(A)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,Yt=Xn(A.nextSibling),dn=t,Et=!0,Na=null,Gn=!1,e!==null&&Wc(t,e),t=Ko(t,a.children),t.flags|=4096);return t}return i?(Ra(),A=a.fallback,i=t.mode,k=e.child,ee=k.sibling,a=ra(k,{mode:"hidden",children:a.children}),a.subtreeFlags=k.subtreeFlags&65011712,ee!==null?A=ra(ee,A):(A=Ia(A,i,n,null),A.flags|=2),A.return=t,a.return=t,a.sibling=A,t.child=a,xi(null,a),a=t.child,A=e.child.memoizedState,A===null?A=Ho(n):(i=A.cachePool,i!==null?(k=nn._currentValue,i=i.parent!==k?{parent:k,pool:k}:i):i=lf(),A={baseLanes:A.baseLanes|n,cachePool:i}),a.memoizedState=A,a.childLanes=qo(e,v,n),t.memoizedState=Lo,xi(e.child,a)):(_a(t),n=e.child,e=n.sibling,n=ra(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=n,t.memoizedState=null,n)}function Ko(e,t){return t=Mr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mr(e,t){return e=Rn(22,e,null,t),e.lanes=0,e}function Vo(e,t,n){return ll(t,e.child,null,n),e=Ko(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),no(e.return,t,n)}function Go(e,t,n,a,i,o){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=a,v.tail=n,v.tailMode=i,v.treeForkCount=o)}function bd(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var v=Wt.current,A=(v&2)!==0;if(A?(v=v&1|2,t.flags|=128):v&=1,je(Wt,v),mn(e,t,a,n),a=Et?si:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yd(e,n,t);else if(e.tag===19)yd(e,n,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(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,o,a);break;case"together":Go(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function da(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Cl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=ra(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ra(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mr(e)))}function Uv(e,t,n){switch(t.tag){case 3:l(t,t.stateNode.containerInfo),Ta(t,nn,e.memoizedState.cache),Wa();break;case 27:case 5:f(t);break;case 4:l(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,po(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_a(t),t.flags|=128,null):(n&t.child.childLanes)!==0?gd(e,t,n):(_a(t),e=da(e,t,n),e!==null?e.sibling:null);_a(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Cl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return bd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),je(Wt,Wt.current),a)break;return null;case 22:return t.lanes=0,fd(e,t,n,t.pendingProps);case 24:Ta(t,nn,e.memoizedState.cache)}return da(e,t,n)}function Sd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Yo(e,n)&&(t.flags&128)===0)return ln=!1,Uv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,Et&&(t.flags&1048576)!==0&&Ic(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=nl(t.elementType),t.type=e,typeof e=="function")Fu(e)?(a=rl(e,a),t.tag=1,t=pd(null,t,e,a,n)):(t.tag=0,t=ko(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===fe){t.tag=11,t=od(null,t,e,a,n);break e}else if(i===ue){t.tag=14,t=sd(null,t,e,a,n);break e}}throw t=ut(e)||e,Error(c(306,t,""))}}return t;case 0:return ko(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=rl(a,t.pendingProps),pd(e,t,a,i,n);case 3:e:{if(l(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,so(e,t),gi(t,a,null,n);var v=t.memoizedState;if(a=v.cache,Ta(t,nn,a),a!==o.cache&&ao(t,[nn],n,!0),vi(),a=v.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vd(e,t,a,n);break e}else if(a!==i){i=qn(Error(c(424)),t),ci(i),t=vd(e,t,a,n);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(Yt=Xn(e.firstChild),dn=t,Et=!0,Na=null,Gn=!0,n=ff(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wa(),a===i){t=da(e,t,n);break e}mn(e,t,a,n)}t=t.child}return t;case 26:return zr(e,t),e===null?(n=Rh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Et||(n=t.type,e=t.pendingProps,a=Pr(p.current).createElement(n),a[mt]=t,a[Ct]=e,pn(a,n,e),Tt(a),t.stateNode=a):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return f(t),e===null&&Et&&(a=t.stateNode=jh(t.type,t.pendingProps,p.current),dn=t,Gn=!0,i=Yt,Ha(t.type)?(Os=i,Yt=Xn(a.firstChild)):Yt=i),mn(e,t,t.pendingProps.children,n),zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Et&&((i=a=Yt)&&(a=dg(a,t.type,t.pendingProps,Gn),a!==null?(t.stateNode=a,dn=t,Yt=Xn(a.firstChild),Gn=!1,i=!0):i=!1),i||wa(t)),f(t),i=t.type,o=t.pendingProps,v=e!==null?e.memoizedProps:null,a=o.children,ys(i,o)?a=null:v!==null&&ys(i,v)&&(t.flags|=32),t.memoizedState!==null&&(i=go(e,t,Av,null,null,n),ki._currentValue=i),zr(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&Et&&((e=n=Yt)&&(n=hg(n,t.pendingProps,Gn),n!==null?(t.stateNode=n,dn=t,Yt=null,e=!0):e=!1),e||wa(t)),null;case 13:return gd(e,t,n);case 4:return l(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ll(t,null,a,n):mn(e,t,a,n),t.child;case 11:return od(e,t,t.type,t.pendingProps,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ta(t,t.type,a.value),mn(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,el(t),i=hn(i),a=a(i),t.flags|=1,mn(e,t,a,n),t.child;case 14:return sd(e,t,t.type,t.pendingProps,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 19:return bd(e,t,n);case 31:return Bv(e,t,n);case 22:return fd(e,t,n,t.pendingProps);case 24:return el(t),a=hn(nn),e===null?(i=ro(),i===null&&(i=Vt,o=lo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},oo(t),Ta(t,nn,i)):((e.lanes&n)!==0&&(so(e,t),gi(t,null,null,n),vi()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ta(t,nn,a)):(a=o.cache,Ta(t,nn,a),a!==i.cache&&ao(t,[nn],n,!0))),mn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ha(e){e.flags|=4}function Xo(e,t,n,a,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(Qd())e.flags|=8192;else throw al=yr,uo}else e.flags&=-16777217}function Ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Uh(t))if(Qd())e.flags|=8192;else throw al=yr,uo}function Br(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ce():536870912,e.lanes|=t,Kl|=t)}function Oi(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function kv(e,t,n){var a=t.pendingProps;switch(Wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return Xt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sa(nn),u(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jl(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,eo())),Xt(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(ha(t),o!==null?(Xt(t),Ed(t,o)):(Xt(t),Xo(t,i,null,a,n))):o?o!==e.memoizedState?(ha(t),Xt(t),Ed(t,o)):(Xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ha(t),Xt(t),Xo(t,i,e,a,n)),null;case 27:if(h(t),n=p.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Xt(t),null}e=xe.current,jl(t)?$c(t):(e=jh(i,a,n),t.stateNode=e,ha(t))}return Xt(t),null;case 5:if(h(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Xt(t),null}if(o=xe.current,jl(t))$c(t);else{var v=Pr(p.current);switch(o){case 1:o=v.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=v.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=v.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=v.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=v.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?v.createElement("select",{is:a.is}):v.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?v.createElement(i,{is:a.is}):v.createElement(i)}}o[mt]=t,o[Ct]=a;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=o;e:switch(pn(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ha(t)}}return Xt(t),Xo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ha(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=p.current,jl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=dn,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||gh(e.nodeValue,n)),e||wa(t,!0)}else e=Pr(e).createTextNode(a),e[mt]=t,t.stateNode=e}return Xt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=jl(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[mt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xt(t),e=!1}else n=eo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zn(t),t):(zn(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Xt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=jl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[mt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xt(t),i=!1}else i=eo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zn(t),t):(zn(t),null)}return zn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Br(t,t.updateQueue),Xt(t),null);case 4:return u(),e===null&&hs(t.stateNode.containerInfo),Xt(t),null;case 10:return sa(t.type),Xt(t),null;case 19:if(he(Wt),a=t.memoizedState,a===null)return Xt(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)Oi(a,!1);else{if(Pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xr(e),o!==null){for(t.flags|=128,Oi(a,!1),e=o.updateQueue,t.updateQueue=e,Br(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fc(n,e),n=n.sibling;return je(Wt,Wt.current&1|2),Et&&ua(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&G()>qr&&(t.flags|=128,i=!0,Oi(a,!1),t.lanes=4194304)}else{if(!i)if(e=xr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Br(t,e),Oi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Et)return Xt(t),null}else 2*G()-a.renderingStartTime>qr&&n!==536870912&&(t.flags|=128,i=!0,Oi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=G(),e.sibling=null,n=Wt.current,je(Wt,i?n&1|2:n&1),Et&&ua(t,a.treeForkCount),e):(Xt(t),null);case 22:case 23:return zn(t),mo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),n=t.updateQueue,n!==null&&Br(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&he(tl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sa(nn),Xt(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Lv(e,t){switch(Wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(nn),u(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return h(t),null;case 31:if(t.memoizedState!==null){if(zn(t),t.alternate===null)throw Error(c(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(Wt),null;case 4:return u(),null;case 10:return sa(t.type),null;case 22:case 23:return zn(t),mo(),e!==null&&he(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(nn),null;case 25:return null;default:return null}}function xd(e,t){switch(Wu(t),t.tag){case 3:sa(nn),u();break;case 26:case 27:case 5:h(t);break;case 4:u();break;case 31:t.memoizedState!==null&&zn(t);break;case 13:zn(t);break;case 19:he(Wt);break;case 10:sa(t.type);break;case 22:case 23:zn(t),mo(),e!==null&&he(tl);break;case 24:sa(nn)}}function Ni(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,v=n.inst;a=o(),v.destroy=a}n=n.next}while(n!==i)}}catch(A){Rt(t,t.return,A)}}function Da(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var v=a.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,i=t;var k=n,ee=A;try{ee()}catch(de){Rt(i,k,de)}}}a=a.next}while(a!==o)}}catch(de){Rt(t,t.return,de)}}function Od(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{hf(t,n)}catch(a){Rt(e,e.return,a)}}}function Nd(e,t,n){n.props=rl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Rt(e,t,a)}}function wi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){Rt(e,t,i)}}function ea(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Rt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Rt(e,t,i)}else n.current=null}function wd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Rt(e,e.return,i)}}function Zo(e,t,n){try{var a=e.stateNode;rg(a,e.type,n,t),a[Ct]=t}catch(i){Rt(e,e.return,i)}}function Td(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function Qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Td(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&&Ha(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 Fo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=la));else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Fo(e,t,n),e=e.sibling;e!==null;)Fo(e,t,n),e=e.sibling}function Ur(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ur(e,t,n),e=e.sibling;e!==null;)Ur(e,t,n),e=e.sibling}function Ad(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);pn(t,a,n),t[mt]=e,t[Ct]=n}catch(o){Rt(e,e.return,o)}}var ma=!1,rn=!1,Jo=!1,jd=typeof WeakSet=="function"?WeakSet:Set,fn=null;function Hv(e,t){if(e=e.containerInfo,vs=au,e=Hc(e),Ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var v=0,A=-1,k=-1,ee=0,de=0,ge=e,te=null;t:for(;;){for(var le;ge!==n||i!==0&&ge.nodeType!==3||(A=v+i),ge!==o||a!==0&&ge.nodeType!==3||(k=v+a),ge.nodeType===3&&(v+=ge.nodeValue.length),(le=ge.firstChild)!==null;)te=ge,ge=le;for(;;){if(ge===e)break t;if(te===n&&++ee===i&&(A=v),te===o&&++de===a&&(k=v),(le=ge.nextSibling)!==null)break;ge=te,te=ge.parentNode}ge=le}n=A===-1||k===-1?null:{start:A,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(gs={focusedElem:e,selectionRange:n},au=!1,fn=t;fn!==null;)if(t=fn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fn=e;else for(;fn!==null;){switch(t=fn,o=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(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var Ue=rl(n.type,i);e=a.getSnapshotBeforeUpdate(Ue,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(nt){Rt(n,n.return,nt)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ss(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ss(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,fn=e;break}fn=t.return}}function Cd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:va(e,n),a&4&&Ni(5,n);break;case 1:if(va(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){Rt(n,n.return,v)}else{var i=rl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Rt(n,n.return,v)}}a&64&&Od(n),a&512&&wi(n,n.return);break;case 3:if(va(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{hf(e,t)}catch(v){Rt(n,n.return,v)}}break;case 27:t===null&&a&4&&Ad(n);case 26:case 5:va(e,n),t===null&&a&4&&wd(n),a&512&&wi(n,n.return);break;case 12:va(e,n);break;case 31:va(e,n),a&4&&Dd(e,n);break;case 13:va(e,n),a&4&&zd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Fv.bind(null,n),mg(e,n))));break;case 22:if(a=n.memoizedState!==null||ma,!a){t=t!==null&&t.memoizedState!==null||rn,i=ma;var o=rn;ma=a,(rn=t)&&!o?ga(e,n,(n.subtreeFlags&8772)!==0):va(e,n),ma=i,rn=o}break;case 30:break;default:va(e,n)}}function _d(e){var t=e.alternate;t!==null&&(e.alternate=null,_d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Me(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 Zt=null,On=!1;function pa(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(re,n)}catch{}switch(n.tag){case 26:rn||ea(n,t),pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rn||ea(n,t);var a=Zt,i=On;Ha(n.type)&&(Zt=n.stateNode,On=!1),pa(e,t,n),Mi(n.stateNode),Zt=a,On=i;break;case 5:rn||ea(n,t);case 6:if(a=Zt,i=On,Zt=null,pa(e,t,n),Zt=a,On=i,Zt!==null)if(On)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(n.stateNode)}catch(o){Rt(n,t,o)}else try{Zt.removeChild(n.stateNode)}catch(o){Rt(n,t,o)}break;case 18:Zt!==null&&(On?(e=Zt,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Jl(e)):Oh(Zt,n.stateNode));break;case 4:a=Zt,i=On,Zt=n.stateNode.containerInfo,On=!0,pa(e,t,n),Zt=a,On=i;break;case 0:case 11:case 14:case 15:Da(2,n,t),rn||Da(4,n,t),pa(e,t,n);break;case 1:rn||(ea(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Nd(n,t,a)),pa(e,t,n);break;case 21:pa(e,t,n);break;case 22:rn=(a=rn)||n.memoizedState!==null,pa(e,t,n),rn=a;break;default:pa(e,t,n)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jl(e)}catch(n){Rt(t,t.return,n)}}}function zd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(n){Rt(t,t.return,n)}}function qv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(c(435,e.tag))}}function kr(e,t){var n=qv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Jv.bind(null,e,a);a.then(i,i)}})}function Nn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,v=t,A=v;e:for(;A!==null;){switch(A.tag){case 27:if(Ha(A.type)){Zt=A.stateNode,On=!1;break e}break;case 5:Zt=A.stateNode,On=!1;break e;case 3:case 4:Zt=A.stateNode.containerInfo,On=!0;break e}A=A.return}if(Zt===null)throw Error(c(160));Rd(o,v,i),Zt=null,On=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Md(t,e),t=t.sibling}var Jn=null;function Md(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nn(t,e),wn(e),a&4&&(Da(3,e,e.return),Ni(3,e),Da(5,e,e.return));break;case 1:Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),a&64&&ma&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Jn;if(Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[se]||o[mt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),pn(o,a,n),o[mt]=e,Tt(o),a=o;break e;case"link":var v=Mh("link","href",i).get(a+(n.href||""));if(v){for(var A=0;A<v.length;A++)if(o=v[A],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){v.splice(A,1);break t}}o=i.createElement(a),pn(o,a,n),i.head.appendChild(o);break;case"meta":if(v=Mh("meta","content",i).get(a+(n.content||""))){for(A=0;A<v.length;A++)if(o=v[A],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){v.splice(A,1);break t}}o=i.createElement(a),pn(o,a,n),i.head.appendChild(o);break;default:throw Error(c(468,a))}o[mt]=e,Tt(o),a=o}e.stateNode=a}else Bh(i,e.type,e.stateNode);else e.stateNode=zh(i,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Bh(i,e.type,e.stateNode):zh(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Zo(e,e.memoizedProps,n.memoizedProps)}break;case 27:Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),n!==null&&a&4&&Zo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Nn(t,e),wn(e),a&512&&(rn||n===null||ea(n,n.return)),e.flags&32){i=e.stateNode;try{yl(i,"")}catch(Ue){Rt(e,e.return,Ue)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Zo(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Jo=!0);break;case 6:if(Nn(t,e),wn(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Ue){Rt(e,e.return,Ue)}}break;case 3:if($r=null,i=Jn,Jn=Ir(t.containerInfo),Nn(t,e),Jn=i,wn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(Ue){Rt(e,e.return,Ue)}Jo&&(Jo=!1,Bd(e));break;case 4:a=Jn,Jn=Ir(e.stateNode.containerInfo),Nn(t,e),wn(e),Jn=a;break;case 12:Nn(t,e),wn(e);break;case 31:Nn(t,e),wn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 13:Nn(t,e),wn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hr=G()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 22:i=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,ee=ma,de=rn;if(ma=ee||i,rn=de||k,Nn(t,e),rn=de,ma=ee,wn(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||k||ma||rn||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(o=k.stateNode,i)v=o.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=k.stateNode;var ge=k.memoizedProps.style,te=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;A.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(Ue){Rt(k,k.return,Ue)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=i?"":k.memoizedProps}catch(Ue){Rt(k,k.return,Ue)}}}else if(t.tag===18){if(n===null){k=t;try{var le=k.stateNode;i?Nh(le,!0):Nh(k.stateNode,!1)}catch(Ue){Rt(k,k.return,Ue)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,kr(e,n))));break;case 19:Nn(t,e),wn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kr(e,a)));break;case 30:break;case 21:break;default:Nn(t,e),wn(e)}}function wn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Td(a)){n=a;break}a=a.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var i=n.stateNode,o=Qo(e);Ur(e,o,i);break;case 5:var v=n.stateNode;n.flags&32&&(yl(v,""),n.flags&=-33);var A=Qo(e);Ur(e,A,v);break;case 3:case 4:var k=n.stateNode.containerInfo,ee=Qo(e);Fo(e,ee,k);break;default:throw Error(c(161))}}catch(de){Rt(e,e.return,de)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),ul(t);break;case 1:ea(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Nd(t,t.return,n),ul(t);break;case 27:Mi(t.stateNode);case 26:case 5:ea(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function ga(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,v=o.flags;switch(o.tag){case 0:case 11:case 15:ga(i,o,n),Ni(4,o);break;case 1:if(ga(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(ee){Rt(a,a.return,ee)}if(a=o,i=a.updateQueue,i!==null){var A=a.stateNode;try{var k=i.shared.hiddenCallbacks;if(k!==null)for(i.shared.hiddenCallbacks=null,i=0;i<k.length;i++)df(k[i],A)}catch(ee){Rt(a,a.return,ee)}}n&&v&64&&Od(o),wi(o,o.return);break;case 27:Ad(o);case 26:case 5:ga(i,o,n),n&&a===null&&v&4&&wd(o),wi(o,o.return);break;case 12:ga(i,o,n);break;case 31:ga(i,o,n),n&&v&4&&Dd(i,o);break;case 13:ga(i,o,n),n&&v&4&&zd(i,o);break;case 22:o.memoizedState===null&&ga(i,o,n),wi(o,o.return);break;case 30:break;default:ga(i,o,n)}t=t.sibling}}function Po(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&fi(n))}function Io(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e))}function Pn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ud(e,t,n,a),t=t.sibling}function Ud(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pn(e,t,n,a),i&2048&&Ni(9,t);break;case 1:Pn(e,t,n,a);break;case 3:Pn(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e)));break;case 12:if(i&2048){Pn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,v=o.id,A=o.onPostCommit;typeof A=="function"&&A(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Rt(t,t.return,k)}}else Pn(e,t,n,a);break;case 31:Pn(e,t,n,a);break;case 13:Pn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,v=t.alternate,t.memoizedState!==null?o._visibility&2?Pn(e,t,n,a):Ti(e,t):o._visibility&2?Pn(e,t,n,a):(o._visibility|=2,Ll(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Po(v,t);break;case 24:Pn(e,t,n,a),i&2048&&Io(t.alternate,t);break;default:Pn(e,t,n,a)}}function Ll(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,v=t,A=n,k=a,ee=v.flags;switch(v.tag){case 0:case 11:case 15:Ll(o,v,A,k,i),Ni(8,v);break;case 23:break;case 22:var de=v.stateNode;v.memoizedState!==null?de._visibility&2?Ll(o,v,A,k,i):Ti(o,v):(de._visibility|=2,Ll(o,v,A,k,i)),i&&ee&2048&&Po(v.alternate,v);break;case 24:Ll(o,v,A,k,i),i&&ee&2048&&Io(v.alternate,v);break;default:Ll(o,v,A,k,i)}t=t.sibling}}function Ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Ti(n,a),i&2048&&Po(a.alternate,a);break;case 24:Ti(n,a),i&2048&&Io(a.alternate,a);break;default:Ti(n,a)}t=t.sibling}}var Ai=8192;function Hl(e,t,n){if(e.subtreeFlags&Ai)for(e=e.child;e!==null;)kd(e,t,n),e=e.sibling}function kd(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Ai&&e.memoizedState!==null&&Tg(n,Jn,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,n);break;case 3:case 4:var a=Jn;Jn=Ir(e.stateNode.containerInfo),Hl(e,t,n),Jn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ai,Ai=16777216,Hl(e,t,n),Ai=a):Hl(e,t,n));break;default:Hl(e,t,n)}}function Ld(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 ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];fn=a,qd(a,e)}Ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hd(e),e=e.sibling}function Hd(e){switch(e.tag){case 0:case 11:case 15:ji(e),e.flags&2048&&Da(9,e,e.return);break;case 3:ji(e);break;case 12:ji(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lr(e)):ji(e);break;default:ji(e)}}function Lr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];fn=a,qd(a,e)}Ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),Lr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Lr(t));break;default:Lr(t)}e=e.sibling}}function qd(e,t){for(;fn!==null;){var n=fn;switch(n.tag){case 0:case 11:case 15:Da(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,fn=a;else e:for(n=e;fn!==null;){a=fn;var i=a.sibling,o=a.return;if(_d(a),a===n){fn=null;break e}if(i!==null){i.return=o,fn=i;break e}fn=o}}}var Kv={getCacheForType:function(e){var t=hn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return hn(nn).controller.signal}},Vv=typeof WeakMap=="function"?WeakMap:Map,At=0,Vt=null,gt=null,bt=0,_t=0,Mn=null,za=!1,ql=!1,Wo=!1,ya=0,Pt=0,Ma=0,ol=0,$o=0,Bn=0,Kl=0,Ci=null,Tn=null,es=!1,Hr=0,Kd=0,qr=1/0,Kr=null,Ba=null,sn=0,Ua=null,Vl=null,ba=0,ts=0,ns=null,Vd=null,_i=0,as=null;function Un(){return(At&2)!==0&&bt!==0?bt&-bt:ae.T!==null?ss():qt()}function Gd(){if(Bn===0)if((bt&536870912)===0||Et){var e=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),Bn=e}else Bn=536870912;return e=Dn.current,e!==null&&(e.flags|=32),Bn}function An(e,t,n){(e===Vt&&(_t===2||_t===9)||e.cancelPendingCommit!==null)&&(Gl(e,0),ka(e,bt,Bn,!1)),Qe(e,n),((At&2)===0||e!==Vt)&&(e===Vt&&((At&2)===0&&(ol|=n),Pt===4&&ka(e,bt,Bn,!1)),ta(e))}function Yd(e,t,n){if((At&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Re(e,t),i=a?Xv(e,t):is(e,t,!0),o=a;do{if(i===0){ql&&!a&&ka(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Gv(n)){i=is(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var A=e;i=Ci;var k=A.current.memoizedState.isDehydrated;if(k&&(Gl(A,v).flags|=256),v=is(A,v,!1),v!==2){if(Wo&&!k){A.errorRecoveryDisabledLanes|=o,ol|=o,i=4;break e}o=Tn,Tn=i,o!==null&&(Tn===null?Tn=o:Tn.push.apply(Tn,o))}i=v}if(o=!1,i!==2)continue}}if(i===1){Gl(e,0),ka(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ka(a,t,Bn,!za);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Hr+300-G(),10<i)){if(ka(a,t,Bn,!za),it(a,0,!0)!==0)break e;ba=t,a.timeoutHandle=Eh(Xd.bind(null,a,n,Tn,Kr,es,t,Bn,ol,Kl,za,o,"Throttled",-0,0),i);break e}Xd(a,n,Tn,Kr,es,t,Bn,ol,Kl,za,o,null,-0,0)}}break}while(!0);ta(e)}function Xd(e,t,n,a,i,o,v,A,k,ee,de,ge,te,le){if(e.timeoutHandle=-1,ge=t.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},kd(t,o,ge);var Ue=(o&62914560)===o?Hr-G():(o&4194048)===o?Kd-G():0;if(Ue=Ag(ge,Ue),Ue!==null){ba=o,e.cancelPendingCommit=Ue($d.bind(null,e,t,o,n,a,i,v,A,k,de,ge,null,te,le)),ka(e,o,v,!ee);return}}$d(e,t,o,n,a,i,v,A,k)}function Gv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!_n(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ka(e,t,n,a){t&=~$o,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Ae(i),v=1<<o;a[o]=-1,i&=~v}n!==0&&jt(e,n,t)}function Vr(){return(At&6)===0?(Ri(0),!1):!0}function ls(){if(gt!==null){if(_t===0)var e=gt.return;else e=gt,oa=$a=null,So(e),zl=null,hi=0,e=gt;for(;e!==null;)xd(e.alternate,e),e=e.return;gt=null}}function Gl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,sg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ba=0,ls(),Vt=e,gt=n=ra(e.current,null),bt=t,_t=0,Mn=null,za=!1,ql=Re(e,t),Wo=!1,Kl=Bn=$o=ol=Ma=Pt=0,Tn=Ci=null,es=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Ae(a),o=1<<i;t|=e[i],a&=~o}return ya=t,sr(),n}function Zd(e,t){ct=null,ae.H=Ei,t===Dl||t===gr?(t=of(),_t=3):t===uo?(t=of(),_t=4):_t=t===Uo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mn=t,gt===null&&(Pt=1,Rr(e,qn(t,e.current)))}function Qd(){var e=Dn.current;return e===null?!0:(bt&4194048)===bt?Yn===null:(bt&62914560)===bt||(bt&536870912)!==0?e===Yn:!1}function Fd(){var e=ae.H;return ae.H=Ei,e===null?Ei:e}function Jd(){var e=ae.A;return ae.A=Kv,e}function Gr(){Pt=4,za||(bt&4194048)!==bt&&Dn.current!==null||(ql=!0),(Ma&134217727)===0&&(ol&134217727)===0||Vt===null||ka(Vt,bt,Bn,!1)}function is(e,t,n){var a=At;At|=2;var i=Fd(),o=Jd();(Vt!==e||bt!==t)&&(Kr=null,Gl(e,t)),t=!1;var v=Pt;e:do try{if(_t!==0&&gt!==null){var A=gt,k=Mn;switch(_t){case 8:ls(),v=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(t=!0);var ee=_t;if(_t=0,Mn=null,Yl(e,A,k,ee),n&&ql){v=0;break e}break;default:ee=_t,_t=0,Mn=null,Yl(e,A,k,ee)}}Yv(),v=Pt;break}catch(de){Zd(e,de)}while(!0);return t&&e.shellSuspendCounter++,oa=$a=null,At=a,ae.H=i,ae.A=o,gt===null&&(Vt=null,bt=0,sr()),v}function Yv(){for(;gt!==null;)Pd(gt)}function Xv(e,t){var n=At;At|=2;var a=Fd(),i=Jd();Vt!==e||bt!==t?(Kr=null,qr=G()+500,Gl(e,t)):ql=Re(e,t);e:do try{if(_t!==0&&gt!==null){t=gt;var o=Mn;t:switch(_t){case 1:_t=0,Mn=null,Yl(e,t,o,1);break;case 2:case 9:if(rf(o)){_t=0,Mn=null,Id(t);break}t=function(){_t!==2&&_t!==9||Vt!==e||(_t=7),ta(e)},o.then(t,t);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:rf(o)?(_t=0,Mn=null,Id(t)):(_t=0,Mn=null,Yl(e,t,o,7));break;case 5:var v=null;switch(gt.tag){case 26:v=gt.memoizedState;case 5:case 27:var A=gt;if(v?Uh(v):A.stateNode.complete){_t=0,Mn=null;var k=A.sibling;if(k!==null)gt=k;else{var ee=A.return;ee!==null?(gt=ee,Yr(ee)):gt=null}break t}}_t=0,Mn=null,Yl(e,t,o,5);break;case 6:_t=0,Mn=null,Yl(e,t,o,6);break;case 8:ls(),Pt=6;break e;default:throw Error(c(462))}}Zv();break}catch(de){Zd(e,de)}while(!0);return oa=$a=null,ae.H=a,ae.A=i,At=n,gt!==null?0:(Vt=null,bt=0,sr(),Pt)}function Zv(){for(;gt!==null&&!q();)Pd(gt)}function Pd(e){var t=Sd(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Yr(e):gt=t}function Id(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=md(n,t,t.pendingProps,t.type,void 0,bt);break;case 11:t=md(n,t,t.pendingProps,t.type.render,t.ref,bt);break;case 5:So(t);default:xd(n,t),t=gt=Fc(t,ya),t=Sd(n,t,ya)}e.memoizedProps=e.pendingProps,t===null?Yr(e):gt=t}function Yl(e,t,n,a){oa=$a=null,So(t),zl=null,hi=0;var i=t.return;try{if(Mv(e,i,t,n,bt)){Pt=1,Rr(e,qn(n,e.current)),gt=null;return}}catch(o){if(i!==null)throw gt=i,o;Pt=1,Rr(e,qn(n,e.current)),gt=null;return}t.flags&32768?(Et||a===1?e=!0:ql||(bt&536870912)!==0?e=!1:(za=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wd(t,e)):Yr(t)}function Yr(e){var t=e;do{if((t.flags&32768)!==0){Wd(t,za);return}e=t.return;var n=kv(t.alternate,t,ya);if(n!==null){gt=n;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);Pt===0&&(Pt=5)}function Wd(e,t){do{var n=Lv(e.alternate,e);if(n!==null){n.flags&=32767,gt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){gt=e;return}gt=e=n}while(e!==null);Pt=6,gt=null}function $d(e,t,n,a,i,o,v,A,k){e.cancelPendingCommit=null;do Xr();while(sn!==0);if((At&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(o=t.lanes|t.childLanes,o|=Zu,tt(e,n,o,v,A,k),e===Vt&&(gt=Vt=null,bt=0),Vl=t,Ua=e,ba=n,ts=o,ns=i,Vd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pv(ve,function(){return lh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ae.T,ae.T=null,i=Te.p,Te.p=2,v=At,At|=4;try{Hv(e,t,n)}finally{At=v,Te.p=i,ae.T=a}}sn=1,eh(),th(),nh()}}function eh(){if(sn===1){sn=0;var e=Ua,t=Vl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ae.T,ae.T=null;var a=Te.p;Te.p=2;var i=At;At|=4;try{Md(t,e);var o=gs,v=Hc(e.containerInfo),A=o.focusedElem,k=o.selectionRange;if(v!==A&&A&&A.ownerDocument&&Lc(A.ownerDocument.documentElement,A)){if(k!==null&&Ku(A)){var ee=k.start,de=k.end;if(de===void 0&&(de=ee),"selectionStart"in A)A.selectionStart=ee,A.selectionEnd=Math.min(de,A.value.length);else{var ge=A.ownerDocument||document,te=ge&&ge.defaultView||window;if(te.getSelection){var le=te.getSelection(),Ue=A.textContent.length,nt=Math.min(k.start,Ue),kt=k.end===void 0?nt:Math.min(k.end,Ue);!le.extend&&nt>kt&&(v=kt,kt=nt,nt=v);var X=kc(A,nt),V=kc(A,kt);if(X&&V&&(le.rangeCount!==1||le.anchorNode!==X.node||le.anchorOffset!==X.offset||le.focusNode!==V.node||le.focusOffset!==V.offset)){var W=ge.createRange();W.setStart(X.node,X.offset),le.removeAllRanges(),nt>kt?(le.addRange(W),le.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),le.addRange(W))}}}}for(ge=[],le=A;le=le.parentNode;)le.nodeType===1&&ge.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ge.length;A++){var pe=ge[A];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}au=!!vs,gs=vs=null}finally{At=i,Te.p=a,ae.T=n}}e.current=t,sn=2}}function th(){if(sn===2){sn=0;var e=Ua,t=Vl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ae.T,ae.T=null;var a=Te.p;Te.p=2;var i=At;At|=4;try{Cd(e,t.alternate,t)}finally{At=i,Te.p=a,ae.T=n}}sn=3}}function nh(){if(sn===4||sn===3){sn=0,Y();var e=Ua,t=Vl,n=ba,a=Vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?sn=5:(sn=0,Vl=Ua=null,ah(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ba=null),Ht(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(re,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=ae.T,i=Te.p,Te.p=2,ae.T=null;try{for(var o=e.onRecoverableError,v=0;v<a.length;v++){var A=a[v];o(A.value,{componentStack:A.stack})}}finally{ae.T=t,Te.p=i}}(ba&3)!==0&&Xr(),ta(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===as?_i++:(_i=0,as=e):_i=0,Ri(0)}}function ah(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function Xr(){return eh(),th(),nh(),lh()}function lh(){if(sn!==5)return!1;var e=Ua,t=ts;ts=0;var n=Ht(ba),a=ae.T,i=Te.p;try{Te.p=32>n?32:n,ae.T=null,n=ns,ns=null;var o=Ua,v=ba;if(sn=0,Vl=Ua=null,ba=0,(At&6)!==0)throw Error(c(331));var A=At;if(At|=4,Hd(o.current),Ud(o,o.current,v,n),At=A,Ri(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(re,o)}catch{}return!0}finally{Te.p=i,ae.T=a,ah(e,t)}}function ih(e,t,n){t=qn(n,t),t=Bo(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(Qe(e,2),ta(e))}function Rt(e,t,n){if(e.tag===3)ih(e,e,n);else for(;t!==null;){if(t.tag===3){ih(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ba===null||!Ba.has(a))){e=qn(n,e),n=rd(2),a=Ca(t,n,2),a!==null&&(ud(n,a,t,e),Qe(a,2),ta(a));break}}t=t.return}}function rs(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Vv;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Wo=!0,i.add(n),e=Qv.bind(null,e,t,n),t.then(e,e))}function Qv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vt===e&&(bt&n)===n&&(Pt===4||Pt===3&&(bt&62914560)===bt&&300>G()-Hr?(At&2)===0&&Gl(e,0):$o|=n,Kl===bt&&(Kl=0)),ta(e)}function rh(e,t){t===0&&(t=Ce()),e=Pa(e,t),e!==null&&(Qe(e,t),ta(e))}function Fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function Jv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),rh(e,n)}function Pv(e,t){return D(e,t)}var Zr=null,Xl=null,us=!1,Qr=!1,os=!1,La=0;function ta(e){e!==Xl&&e.next===null&&(Xl===null?Zr=Xl=e:Xl=Xl.next=e),Qr=!0,us||(us=!0,Wv())}function Ri(e,t){if(!os&&Qr){os=!0;do for(var n=!1,a=Zr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var v=a.suspendedLanes,A=a.pingedLanes;o=(1<<31-Ae(42|e)+1)-1,o&=i&~(v&~A),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ch(a,o))}else o=bt,o=it(a,a===Vt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Re(a,o)||(n=!0,ch(a,o));a=a.next}while(n);os=!1}}function Iv(){uh()}function uh(){Qr=us=!1;var e=0;La!==0&&og()&&(e=La);for(var t=G(),n=null,a=Zr;a!==null;){var i=a.next,o=oh(a,t);o===0?(a.next=null,n===null?Zr=i:n.next=i,i===null&&(Xl=n)):(n=a,(e!==0||(o&3)!==0)&&(Qr=!0)),a=i}sn!==0&&sn!==5||Ri(e),La!==0&&(La=0)}function oh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var v=31-Ae(o),A=1<<v,k=i[v];k===-1?((A&n)===0||(A&a)!==0)&&(i[v]=_e(A,t)):k<=t&&(e.expiredLanes|=A),o&=~A}if(t=Vt,n=bt,n=it(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(_t===2||_t===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&K(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Re(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&K(a),Ht(n)){case 2:case 8:n=J;break;case 32:n=ve;break;case 268435456:n=me;break;default:n=ve}return a=sh.bind(null,e),n=D(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&K(a),e.callbackPriority=2,e.callbackNode=null,2}function sh(e,t){if(sn!==0&&sn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xr()&&e.callbackNode!==n)return null;var a=bt;return a=it(e,e===Vt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Yd(e,a,t),oh(e,G()),e.callbackNode!=null&&e.callbackNode===n?sh.bind(null,e):null)}function ch(e,t){if(Xr())return null;Yd(e,t,!0)}function Wv(){cg(function(){(At&6)!==0?D(ie,Iv):uh()})}function ss(){if(La===0){var e=_l;e===0&&(e=$e,$e<<=1,($e&261888)===0&&($e=256)),La=e}return La}function fh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tr(""+e)}function dh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function $v(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=fh((i[Ct]||null).action),v=a.submitter;v&&(t=(t=v[Ct]||null)?fh(t.formAction):v.getAttribute("formAction"),t!==null&&(o=t,v=null));var A=new ir("action","action",null,a,i);e.push({event:A,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(La!==0){var k=v?dh(i,v):new FormData(i);Co(n,{pending:!0,data:k,method:i.method,action:o},null,k)}}else typeof o=="function"&&(A.preventDefault(),k=v?dh(i,v):new FormData(i),Co(n,{pending:!0,data:k,method:i.method,action:o},o,k))},currentTarget:i}]})}}for(var cs=0;cs<Xu.length;cs++){var fs=Xu[cs],eg=fs.toLowerCase(),tg=fs[0].toUpperCase()+fs.slice(1);Fn(eg,"on"+tg)}Fn(Vc,"onAnimationEnd"),Fn(Gc,"onAnimationIteration"),Fn(Yc,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(gv,"onTransitionRun"),Fn(yv,"onTransitionStart"),Fn(bv,"onTransitionCancel"),Fn(Xc,"onTransitionEnd"),ot("onMouseEnter",["mouseout","mouseover"]),ot("onMouseLeave",["mouseout","mouseover"]),ot("onPointerEnter",["pointerout","pointerover"]),ot("onPointerLeave",["pointerout","pointerover"]),Pe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),ng=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function hh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var v=a.length-1;0<=v;v--){var A=a[v],k=A.instance,ee=A.currentTarget;if(A=A.listener,k!==o&&i.isPropagationStopped())break e;o=A,i.currentTarget=ee;try{o(i)}catch(de){or(de)}i.currentTarget=null,o=k}else for(v=0;v<a.length;v++){if(A=a[v],k=A.instance,ee=A.currentTarget,A=A.listener,k!==o&&i.isPropagationStopped())break e;o=A,i.currentTarget=ee;try{o(i)}catch(de){or(de)}i.currentTarget=null,o=k}}}}function yt(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var a=e+"__bubble";n.has(a)||(mh(t,e,2,!1),n.add(a))}function ds(e,t,n){var a=0;t&&(a|=4),mh(n,e,a,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function hs(e){if(!e[Fr]){e[Fr]=!0,Qn.forEach(function(n){n!=="selectionchange"&&(ng.has(n)||ds(n,!1,e),ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,ds("selectionchange",!1,t))}}function mh(e,t,n,a){switch(Gh(t)){case 2:var i=_g;break;case 8:i=Rg;break;default:i=js}n=i.bind(null,t,n,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ms(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var v=a.tag;if(v===3||v===4){var A=a.stateNode.containerInfo;if(A===i)break;if(v===4)for(v=a.return;v!==null;){var k=v.tag;if((k===3||k===4)&&v.stateNode.containerInfo===i)return;v=v.return}for(;A!==null;){if(v=Fe(A),v===null)return;if(k=v.tag,k===5||k===6||k===26||k===27){a=o=v;continue e}A=A.parentNode}}a=a.return}yc(function(){var ee=o,de=_u(n),ge=[];e:{var te=Zc.get(e);if(te!==void 0){var le=ir,Ue=e;switch(e){case"keypress":if(ar(n)===0)break e;case"keydown":case"keyup":le=Jp;break;case"focusin":Ue="focus",le=Uu;break;case"focusout":Ue="blur",le=Uu;break;case"beforeblur":case"afterblur":le=Uu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=kp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Wp;break;case Vc:case Gc:case Yc:le=qp;break;case Xc:le=ev;break;case"scroll":case"scrollend":le=Bp;break;case"wheel":le=nv;break;case"copy":case"cut":case"paste":le=Vp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Oc;break;case"toggle":case"beforetoggle":le=lv}var nt=(t&4)!==0,kt=!nt&&(e==="scroll"||e==="scrollend"),X=nt?te!==null?te+"Capture":null:te;nt=[];for(var V=ee,W;V!==null;){var pe=V;if(W=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||W===null||X===null||(pe=ei(V,X),pe!=null&&nt.push(zi(V,pe,W))),kt)break;V=V.return}0<nt.length&&(te=new le(te,Ue,null,n,de),ge.push({event:te,listeners:nt}))}}if((t&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",te&&n!==Cu&&(Ue=n.relatedTarget||n.fromElement)&&(Fe(Ue)||Ue[cn]))break e;if((le||te)&&(te=de.window===de?de:(te=de.ownerDocument)?te.defaultView||te.parentWindow:window,le?(Ue=n.relatedTarget||n.toElement,le=ee,Ue=Ue?Fe(Ue):null,Ue!==null&&(kt=y(Ue),nt=Ue.tag,Ue!==kt||nt!==5&&nt!==27&&nt!==6)&&(Ue=null)):(le=null,Ue=ee),le!==Ue)){if(nt=Ec,pe="onMouseLeave",X="onMouseEnter",V="mouse",(e==="pointerout"||e==="pointerover")&&(nt=Oc,pe="onPointerLeave",X="onPointerEnter",V="pointer"),kt=le==null?te:Qt(le),W=Ue==null?te:Qt(Ue),te=new nt(pe,V+"leave",le,n,de),te.target=kt,te.relatedTarget=W,pe=null,Fe(de)===ee&&(nt=new nt(X,V+"enter",Ue,n,de),nt.target=W,nt.relatedTarget=kt,pe=nt),kt=pe,le&&Ue)t:{for(nt=ag,X=le,V=Ue,W=0,pe=X;pe;pe=nt(pe))W++;pe=0;for(var et=V;et;et=nt(et))pe++;for(;0<W-pe;)X=nt(X),W--;for(;0<pe-W;)V=nt(V),pe--;for(;W--;){if(X===V||V!==null&&X===V.alternate){nt=X;break t}X=nt(X),V=nt(V)}nt=null}else nt=null;le!==null&&ph(ge,te,le,nt,!1),Ue!==null&&kt!==null&&ph(ge,kt,Ue,nt,!0)}}e:{if(te=ee?Qt(ee):window,le=te.nodeName&&te.nodeName.toLowerCase(),le==="select"||le==="input"&&te.type==="file")var Ot=Rc;else if(Cc(te))if(Dc)Ot=mv;else{Ot=dv;var Ke=fv}else le=te.nodeName,!le||le.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&ju(ee.elementType)&&(Ot=Rc):Ot=hv;if(Ot&&(Ot=Ot(e,ee))){_c(ge,Ot,n,de);break e}Ke&&Ke(e,te,ee),e==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Au(te,"number",te.value)}switch(Ke=ee?Qt(ee):window,e){case"focusin":(Cc(Ke)||Ke.contentEditable==="true")&&(xl=Ke,Vu=ee,oi=null);break;case"focusout":oi=Vu=xl=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,qc(ge,n,de);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":qc(ge,n,de)}var dt;if(Lu)e:{switch(e){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else El?Ac(e,n)&&(St="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Nc&&n.locale!=="ko"&&(El||St!=="onCompositionStart"?St==="onCompositionEnd"&&El&&(dt=bc()):(xa=de,zu="value"in xa?xa.value:xa.textContent,El=!0)),Ke=Jr(ee,St),0<Ke.length&&(St=new xc(St,e,null,n,de),ge.push({event:St,listeners:Ke}),dt?St.data=dt:(dt=jc(n),dt!==null&&(St.data=dt)))),(dt=rv?uv(e,n):ov(e,n))&&(St=Jr(ee,"onBeforeInput"),0<St.length&&(Ke=new xc("onBeforeInput","beforeinput",null,n,de),ge.push({event:Ke,listeners:St}),Ke.data=dt)),$v(ge,e,ee,n,de)}hh(ge,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=ei(e,n),i!=null&&a.unshift(zi(e,i,o)),i=ei(e,t),i!=null&&a.push(zi(e,i,o))),e.tag===3)return a;e=e.return}return[]}function ag(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ph(e,t,n,a,i){for(var o=t._reactName,v=[];n!==null&&n!==a;){var A=n,k=A.alternate,ee=A.stateNode;if(A=A.tag,k!==null&&k===a)break;A!==5&&A!==26&&A!==27||ee===null||(k=ee,i?(ee=ei(n,o),ee!=null&&v.unshift(zi(n,ee,k))):i||(ee=ei(n,o),ee!=null&&v.push(zi(n,ee,k)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var lg=/\r\n?/g,ig=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(lg,`
`).replace(ig,"")}function gh(e,t){return t=vh(t),vh(e)===t}function Ut(e,t,n,a,i,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||yl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&yl(e,""+a);break;case"className":$i(e,"class",a);break;case"tabIndex":$i(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(e,n,a);break;case"style":vc(e,a,o);break;case"data":if(t!=="object"){$i(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&Ut(e,t,"name",i.name,i,null),Ut(e,t,"formEncType",i.formEncType,i,null),Ut(e,t,"formMethod",i.formMethod,i,null),Ut(e,t,"formTarget",i.formTarget,i,null)):(Ut(e,t,"encType",i.encType,i,null),Ut(e,t,"method",i.method,i,null),Ut(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=la);break;case"onScroll":a!=null&&yt("scroll",e);break;case"onScrollEnd":a!=null&&yt("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=tr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":yt("beforetoggle",e),yt("toggle",e),Za(e,"popover",a);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Za(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zp.get(n)||n,Za(e,n,a))}}function ps(e,t,n,a,i,o){switch(n){case"style":vc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof a=="string"?yl(e,a):(typeof a=="number"||typeof a=="bigint")&&yl(e,""+a);break;case"onScroll":a!=null&&yt("scroll",e);break;case"onScrollEnd":a!=null&&yt("scrollend",e);break;case"onClick":a!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ea.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[Ct]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Za(e,n,a)}}}function pn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",e),yt("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var v=n[o];if(v!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ut(e,t,o,v,n,null)}}i&&Ut(e,t,"srcSet",n.srcSet,n,null),a&&Ut(e,t,"src",n.src,n,null);return;case"input":yt("invalid",e);var A=o=v=i=null,k=null,ee=null;for(a in n)if(n.hasOwnProperty(a)){var de=n[a];if(de!=null)switch(a){case"name":i=de;break;case"type":v=de;break;case"checked":k=de;break;case"defaultChecked":ee=de;break;case"value":o=de;break;case"defaultValue":A=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(c(137,t));break;default:Ut(e,t,a,de,n,null)}}dc(e,o,A,k,ee,v,i,!1);return;case"select":yt("invalid",e),a=v=o=null;for(i in n)if(n.hasOwnProperty(i)&&(A=n[i],A!=null))switch(i){case"value":o=A;break;case"defaultValue":v=A;break;case"multiple":a=A;default:Ut(e,t,i,A,n,null)}t=o,n=v,e.multiple=!!a,t!=null?gl(e,!!a,t,!1):n!=null&&gl(e,!!a,n,!0);return;case"textarea":yt("invalid",e),o=i=a=null;for(v in n)if(n.hasOwnProperty(v)&&(A=n[v],A!=null))switch(v){case"value":a=A;break;case"defaultValue":i=A;break;case"children":o=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(91));break;default:Ut(e,t,v,A,n,null)}mc(e,a,i,o);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ut(e,t,k,a,n,null)}return;case"dialog":yt("beforetoggle",e),yt("toggle",e),yt("cancel",e),yt("close",e);break;case"iframe":case"object":yt("load",e);break;case"video":case"audio":for(a=0;a<Di.length;a++)yt(Di[a],e);break;case"image":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"embed":case"source":case"link":yt("error",e),yt("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(ee in n)if(n.hasOwnProperty(ee)&&(a=n[ee],a!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ut(e,t,ee,a,n,null)}return;default:if(ju(t)){for(de in n)n.hasOwnProperty(de)&&(a=n[de],a!==void 0&&ps(e,t,de,a,n,void 0));return}}for(A in n)n.hasOwnProperty(A)&&(a=n[A],a!=null&&Ut(e,t,A,a,n,null))}function rg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,v=null,A=null,k=null,ee=null,de=null;for(le in n){var ge=n[le];if(n.hasOwnProperty(le)&&ge!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":k=ge;default:a.hasOwnProperty(le)||Ut(e,t,le,null,a,ge)}}for(var te in a){var le=a[te];if(ge=n[te],a.hasOwnProperty(te)&&(le!=null||ge!=null))switch(te){case"type":o=le;break;case"name":i=le;break;case"checked":ee=le;break;case"defaultChecked":de=le;break;case"value":v=le;break;case"defaultValue":A=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(c(137,t));break;default:le!==ge&&Ut(e,t,te,le,a,ge)}}Tu(e,v,A,k,ee,de,o,i);return;case"select":le=v=A=te=null;for(o in n)if(k=n[o],n.hasOwnProperty(o)&&k!=null)switch(o){case"value":break;case"multiple":le=k;default:a.hasOwnProperty(o)||Ut(e,t,o,null,a,k)}for(i in a)if(o=a[i],k=n[i],a.hasOwnProperty(i)&&(o!=null||k!=null))switch(i){case"value":te=o;break;case"defaultValue":A=o;break;case"multiple":v=o;default:o!==k&&Ut(e,t,i,o,a,k)}t=A,n=v,a=le,te!=null?gl(e,!!n,te,!1):!!a!=!!n&&(t!=null?gl(e,!!n,t,!0):gl(e,!!n,n?[]:"",!1));return;case"textarea":le=te=null;for(A in n)if(i=n[A],n.hasOwnProperty(A)&&i!=null&&!a.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ut(e,t,A,null,a,i)}for(v in a)if(i=a[v],o=n[v],a.hasOwnProperty(v)&&(i!=null||o!=null))switch(v){case"value":te=i;break;case"defaultValue":le=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==o&&Ut(e,t,v,i,a,o)}hc(e,te,le);return;case"option":for(var Ue in n)if(te=n[Ue],n.hasOwnProperty(Ue)&&te!=null&&!a.hasOwnProperty(Ue))switch(Ue){case"selected":e.selected=!1;break;default:Ut(e,t,Ue,null,a,te)}for(k in a)if(te=a[k],le=n[k],a.hasOwnProperty(k)&&te!==le&&(te!=null||le!=null))switch(k){case"selected":e.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:Ut(e,t,k,te,a,le)}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 nt in n)te=n[nt],n.hasOwnProperty(nt)&&te!=null&&!a.hasOwnProperty(nt)&&Ut(e,t,nt,null,a,te);for(ee in a)if(te=a[ee],le=n[ee],a.hasOwnProperty(ee)&&te!==le&&(te!=null||le!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(c(137,t));break;default:Ut(e,t,ee,te,a,le)}return;default:if(ju(t)){for(var kt in n)te=n[kt],n.hasOwnProperty(kt)&&te!==void 0&&!a.hasOwnProperty(kt)&&ps(e,t,kt,void 0,a,te);for(de in a)te=a[de],le=n[de],!a.hasOwnProperty(de)||te===le||te===void 0&&le===void 0||ps(e,t,de,te,a,le);return}}for(var X in n)te=n[X],n.hasOwnProperty(X)&&te!=null&&!a.hasOwnProperty(X)&&Ut(e,t,X,null,a,te);for(ge in a)te=a[ge],le=n[ge],!a.hasOwnProperty(ge)||te===le||te==null&&le==null||Ut(e,t,ge,te,a,le)}function yh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ug(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,v=i.initiatorType,A=i.duration;if(o&&A&&yh(v)){for(v=0,A=i.responseEnd,a+=1;a<n.length;a++){var k=n[a],ee=k.startTime;if(ee>A)break;var de=k.transferSize,ge=k.initiatorType;de&&yh(ge)&&(k=k.responseEnd,v+=de*(k<A?1:(A-ee)/(k-ee)))}if(--a,t+=8*(o+v)/(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 vs=null,gs=null;function Pr(e){return e.nodeType===9?e:e.ownerDocument}function bh(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 Sh(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 ys(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 bs=null;function og(){var e=window.event;return e&&e.type==="popstate"?e===bs?!1:(bs=e,!0):(bs=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,sg=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(fg)}:Eh;function fg(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function Oh(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),Jl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Mi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Mi(n);for(var o=n.firstChild;o;){var v=o.nextSibling,A=o.nodeName;o[se]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=v}}else n==="body"&&Mi(e.ownerDocument.body);n=i}while(n);Jl(t)}function Nh(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ss(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ss(n),Me(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function dg(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[se])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==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(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xn(e.nextSibling),e===null)break}return null}function hg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xn(e.nextSibling),e===null))return null;return e}function wh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xn(e.nextSibling),e===null))return null;return e}function Es(e){return e.data==="$?"||e.data==="$~"}function xs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mg(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xn(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 Os=null;function Th(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jh(e,t,n){switch(t=Pr(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Me(e)}var Zn=new Map,Ch=new Set;function Ir(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=Te.d;Te.d={f:pg,r:vg,D:gg,C:yg,L:bg,m:Sg,X:xg,S:Eg,M:Og};function pg(){var e=Sa.f(),t=Vr();return e||t}function vg(e){var t=lt(e);t!==null&&t.tag===5&&t.type==="form"?Zf(t):Sa.r(e)}var Zl=typeof document>"u"?null:document;function _h(e,t,n){var a=Zl;if(a&&typeof t=="string"&&t){var i=Ln(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Ch.has(i)||(Ch.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),pn(t,"link",e),Tt(t),a.head.appendChild(t)))}}function gg(e){Sa.D(e),_h("dns-prefetch",e,null)}function yg(e,t){Sa.C(e,t),_h("preconnect",e,t)}function bg(e,t,n){Sa.L(e,t,n);var a=Zl;if(a&&e&&t){var i='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ln(n.imageSizes)+'"]')):i+='[href="'+Ln(e)+'"]';var o=i;switch(t){case"style":o=Ql(e);break;case"script":o=Fl(e)}Zn.has(o)||(e=z({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Bi(o))||t==="script"&&a.querySelector(Ui(o))||(t=a.createElement("link"),pn(t,"link",e),Tt(t),a.head.appendChild(t)))}}function Sg(e,t){Sa.m(e,t);var n=Zl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ln(a)+'"][href="'+Ln(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Fl(e)}if(!Zn.has(o)&&(e=z({rel:"modulepreload",href:e},t),Zn.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ui(o)))return}a=n.createElement("link"),pn(a,"link",e),Tt(a),n.head.appendChild(a)}}}function Eg(e,t,n){Sa.S(e,t,n);var a=Zl;if(a&&e){var i=on(a).hoistableStyles,o=Ql(e);t=t||"default";var v=i.get(o);if(!v){var A={loading:0,preload:null};if(v=a.querySelector(Bi(o)))A.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(o))&&Ns(e,n);var k=v=a.createElement("link");Tt(k),pn(k,"link",e),k._p=new Promise(function(ee,de){k.onload=ee,k.onerror=de}),k.addEventListener("load",function(){A.loading|=1}),k.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Wr(v,t,a)}v={type:"stylesheet",instance:v,count:1,state:A},i.set(o,v)}}}function xg(e,t){Sa.X(e,t);var n=Zl;if(n&&e){var a=on(n).hoistableScripts,i=Fl(e),o=a.get(i);o||(o=n.querySelector(Ui(i)),o||(e=z({src:e,async:!0},t),(t=Zn.get(i))&&ws(e,t),o=n.createElement("script"),Tt(o),pn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Og(e,t){Sa.M(e,t);var n=Zl;if(n&&e){var a=on(n).hoistableScripts,i=Fl(e),o=a.get(i);o||(o=n.querySelector(Ui(i)),o||(e=z({src:e,async:!0,type:"module"},t),(t=Zn.get(i))&&ws(e,t),o=n.createElement("script"),Tt(o),pn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Rh(e,t,n,a){var i=(i=p.current)?Ir(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ql(n.href),n=on(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ql(n.href);var o=on(i).hoistableStyles,v=o.get(e);if(v||(i=i.ownerDocument||i,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,v),(o=i.querySelector(Bi(e)))&&!o._p&&(v.instance=o,v.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),o||Ng(i,e,n,v.state))),t&&a===null)throw Error(c(528,""));return v}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(n),n=on(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ql(e){return'href="'+Ln(e)+'"'}function Bi(e){return'link[rel="stylesheet"]['+e+"]"}function Dh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Ng(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),pn(t,"link",n),Tt(t),e.head.appendChild(t))}function Fl(e){return'[src="'+Ln(e)+'"]'}function Ui(e){return"script[async]"+e}function zh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(a)return t.instance=a,Tt(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Tt(a),pn(a,"style",i),Wr(a,n.precedence,e),t.instance=a;case"stylesheet":i=Ql(n.href);var o=e.querySelector(Bi(i));if(o)return t.state.loading|=4,t.instance=o,Tt(o),o;a=Dh(n),(i=Zn.get(i))&&Ns(a,i),o=(e.ownerDocument||e).createElement("link"),Tt(o);var v=o;return v._p=new Promise(function(A,k){v.onload=A,v.onerror=k}),pn(o,"link",a),t.state.loading|=4,Wr(o,n.precedence,e),t.instance=o;case"script":return o=Fl(n.src),(i=e.querySelector(Ui(o)))?(t.instance=i,Tt(i),i):(a=n,(i=Zn.get(o))&&(a=z({},n),ws(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Tt(i),pn(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Wr(a,n.precedence,e));return t.instance}function Wr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,v=0;v<a.length;v++){var A=a[v];if(A.dataset.precedence===t)o=A;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Mh(e,t,n){if($r===null){var a=new Map,i=$r=new Map;i.set(n,a)}else i=$r,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[se]||o[mt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var v=o.getAttribute(t)||"";v=e+v;var A=a.get(v);A?A.push(o):a.set(v,[o])}}return a}function Bh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function wg(e,t,n){if(n===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 Uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tg(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ql(a.href),o=t.querySelector(Bi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Tt(o);return}o=t.ownerDocument||t,a=Dh(a),(i=Zn.get(i))&&Ns(a,i),o=o.createElement("link"),Tt(o);var v=o;v._p=new Promise(function(A,k){v.onload=A,v.onerror=k}),pn(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=eu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ts=0;function Ag(e,t){return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Ts===0&&(Ts=62500*ug());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Ts?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tu=null;function nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tu=new Map,t.forEach(jg,e),tu=null,eu.call(e))}function jg(e,t){if(!(t.state.loading&4)){var n=tu.get(e);if(n)var a=n.get(null);else{n=new Map,tu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var v=i[o];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(n.set(v.dataset.precedence,v),a=v)}a&&n.set(null,a)}i=t.instance,v=i.getAttribute("data-precedence"),o=n.get(v)||a,o===a&&n.set(null,i),n.set(v,i),this.count++,a=eu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ki={$$typeof:ye,Provider:null,Consumer:null,_currentValue:Ve,_currentValue2:Ve,_threadCount:0};function Cg(e,t,n,a,i,o,v,A,k){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=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function kh(e,t,n,a,i,o,v,A,k,ee,de,ge){return e=new Cg(e,t,n,v,k,ee,de,ge,A),t=1,o===!0&&(t|=24),o=Rn(3,null,null,t),e.current=o,o.stateNode=e,t=lo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},oo(o),e}function Lh(e){return e?(e=wl,e):wl}function Hh(e,t,n,a,i,o){i=Lh(i),a.context===null?a.context=i:a.pendingContext=i,a=ja(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ca(e,a,t),n!==null&&(An(n,e,t),pi(n,e,t))}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function As(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=Pa(e,67108864);t!==null&&An(t,e,67108864),As(e,67108864)}}function Vh(e){if(e.tag===13||e.tag===31){var t=Un();t=Ft(t);var n=Pa(e,t);n!==null&&An(n,e,t),As(e,t)}}var au=!0;function _g(e,t,n,a){var i=ae.T;ae.T=null;var o=Te.p;try{Te.p=2,js(e,t,n,a)}finally{Te.p=o,ae.T=i}}function Rg(e,t,n,a){var i=ae.T;ae.T=null;var o=Te.p;try{Te.p=8,js(e,t,n,a)}finally{Te.p=o,ae.T=i}}function js(e,t,n,a){if(au){var i=Cs(a);if(i===null)ms(e,t,a,lu,n),Yh(e,a);else if(zg(i,e,t,n,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<Dg.indexOf(e)){for(;i!==null;){var o=lt(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var v=Je(o.pendingLanes);if(v!==0){var A=o;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var k=1<<31-Ae(v);A.entanglements[1]|=k,v&=~k}ta(o),(At&6)===0&&(qr=G()+500,Ri(0))}}break;case 31:case 13:A=Pa(o,2),A!==null&&An(A,o,2),Vr(),As(o,2)}if(o=Cs(a),o===null&&ms(e,t,a,lu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else ms(e,t,a,null,n)}}function Cs(e){return e=_u(e),_s(e)}var lu=null;function _s(e){if(lu=null,e=Fe(e),e!==null){var t=y(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=w(t),e!==null)return e;e=null}else if(n===31){if(e=O(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lu=e,null}function Gh(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($()){case ie:return 2;case J:return 8;case ve:case Ee:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rs=!1,qa=null,Ka=null,Va=null,Li=new Map,Hi=new Map,Ga=[],Dg="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 Yh(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":Li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function qi(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=lt(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zg(e,t,n,a,i){switch(t){case"focusin":return qa=qi(qa,e,t,n,a,i),!0;case"dragenter":return Ka=qi(Ka,e,t,n,a,i),!0;case"mouseover":return Va=qi(Va,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Li.set(o,qi(Li.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Hi.set(o,qi(Hi.get(o)||null,e,t,n,a,i)),!0}return!1}function Xh(e){var t=Fe(e.target);if(t!==null){var n=y(t);if(n!==null){if(t=n.tag,t===13){if(t=w(n),t!==null){e.blockedOn=t,tn(e.priority,function(){Vh(n)});return}}else if(t===31){if(t=O(n),t!==null){e.blockedOn=t,tn(e.priority,function(){Vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cs(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Cu=a,n.target.dispatchEvent(a),Cu=null}else return t=lt(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){iu(e)&&n.delete(t)}function Mg(){Rs=!1,qa!==null&&iu(qa)&&(qa=null),Ka!==null&&iu(Ka)&&(Ka=null),Va!==null&&iu(Va)&&(Va=null),Li.forEach(Zh),Hi.forEach(Zh)}function ru(e,t){e.blockedOn===t&&(e.blockedOn=null,Rs||(Rs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Mg)))}var uu=null;function Qh(e){uu!==e&&(uu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){uu===e&&(uu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(_s(a||n)===null)continue;break}var o=lt(n);o!==null&&(e.splice(t,3),t-=3,Co(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Jl(e){function t(k){return ru(k,e)}qa!==null&&ru(qa,e),Ka!==null&&ru(Ka,e),Va!==null&&ru(Va,e),Li.forEach(t),Hi.forEach(t);for(var n=0;n<Ga.length;n++){var a=Ga[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ga.length&&(n=Ga[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&Ga.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],v=i[Ct]||null;if(typeof o=="function")v||Qh(n);else if(v){var A=null;if(o&&o.hasAttribute("formAction")){if(i=o,v=o[Ct]||null)A=v.formAction;else if(_s(i)!==null)continue}else A=v.action;typeof A=="function"?n[a+1]=A:(n.splice(a,3),a-=3),Qh(n)}}}function Fh(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(v){return i=v})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ds(e){this._internalRoot=e}ou.prototype.render=Ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=Un();Hh(n,a,e,t,null,null)},ou.prototype.unmount=Ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hh(e.current,2,null,e,null,null),Vr(),t[cn]=null}};function ou(e){this._internalRoot=e}ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ga.length&&t!==0&&t<Ga[n].priority;n++);Ga.splice(n,0,e),n===0&&Xh(e)}};var Jh=s.version;if(Jh!=="19.2.5")throw Error(c(527,Jh,"19.2.5"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=j(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var Bg={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{re=su.inject(Bg),Be=su}catch{}}return Vi.createRoot=function(e,t){if(!g(e))throw Error(c(299));var n=!1,a="",i=nd,o=ad,v=ld;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=kh(e,1,!1,null,null,n,a,null,i,o,v,Fh),e[cn]=t.current,hs(e),new Ds(t)},Vi.hydrateRoot=function(e,t,n){if(!g(e))throw Error(c(299));var a=!1,i="",o=nd,v=ad,A=ld,k=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(A=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=kh(e,1,!0,t,n??null,a,i,k,o,v,A,Fh),t.context=Lh(null),n=t.current,a=Un(),a=Ft(a),i=ja(a),i.callback=null,Ca(n,i,a),n=a,t.current.lanes=n,Qe(t,n),ta(t),e[cn]=t.current,hs(e),new ou(t)},Vi.version="19.2.5",Vi}var im;function Zg(){if(im)return Bs.exports;im=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Bs.exports=Xg(),Bs.exports}var Qg=Zg();const Fg=$s(Qg);Um();/**
 * @remix-run/router v1.23.3
 *
 * 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
 */function Yi(){return Yi=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var c in d)({}).hasOwnProperty.call(d,c)&&(r[c]=d[c])}return r},Yi.apply(null,arguments)}var Xa;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(Xa||(Xa={}));const rm="popstate";function Jg(r){r===void 0&&(r={});function s(c,g){let{pathname:y,search:w,hash:O}=c.location;return Zs("",{pathname:y,search:w,hash:O},g.state&&g.state.usr||null,g.state&&g.state.key||"default")}function d(c,g){return typeof g=="string"?g:km(g)}return Ig(s,d,null,r)}function un(r,s){if(r===!1||r===null||typeof r>"u")throw new Error(s)}function ec(r,s){if(!r){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Pg(){return Math.random().toString(36).substr(2,8)}function um(r,s){return{usr:r.state,key:r.key,idx:s}}function Zs(r,s,d,c){return d===void 0&&(d=null),Yi({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof s=="string"?Wl(s):s,{state:d,key:s&&s.key||c||Pg()})}function km(r){let{pathname:s="/",search:d="",hash:c=""}=r;return d&&d!=="?"&&(s+=d.charAt(0)==="?"?d:"?"+d),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Wl(r){let s={};if(r){let d=r.indexOf("#");d>=0&&(s.hash=r.substr(d),r=r.substr(0,d));let c=r.indexOf("?");c>=0&&(s.search=r.substr(c),r=r.substr(0,c)),r&&(s.pathname=r)}return s}function Ig(r,s,d,c){c===void 0&&(c={});let{window:g=document.defaultView,v5Compat:y=!1}=c,w=g.history,O=Xa.Pop,C=null,j=_();j==null&&(j=0,w.replaceState(Yi({},w.state,{idx:j}),""));function _(){return(w.state||{idx:null}).idx}function z(){O=Xa.Pop;let Z=_(),P=Z==null?null:Z-j;j=Z,C&&C({action:O,location:Q.location,delta:P})}function ne(Z,P){O=Xa.Push;let ce=Zs(Q.location,Z,P);j=_()+1;let ye=um(ce,j),fe=Q.createHref(ce);try{w.pushState(ye,"",fe)}catch(Se){if(Se instanceof DOMException&&Se.name==="DataCloneError")throw Se;g.location.assign(fe)}y&&C&&C({action:O,location:Q.location,delta:1})}function I(Z,P){O=Xa.Replace;let ce=Zs(Q.location,Z,P);j=_();let ye=um(ce,j),fe=Q.createHref(ce);w.replaceState(ye,"",fe),y&&C&&C({action:O,location:Q.location,delta:0})}function oe(Z){let P=g.location.origin!=="null"?g.location.origin:g.location.href,ce=typeof Z=="string"?Z:km(Z);return ce=ce.replace(/ $/,"%20"),un(P,"No window.location.(origin|href) available to create URL for href: "+ce),new URL(ce,P)}let Q={get action(){return O},get location(){return r(g,w)},listen(Z){if(C)throw new Error("A history only accepts one active listener");return g.addEventListener(rm,z),C=Z,()=>{g.removeEventListener(rm,z),C=null}},createHref(Z){return s(g,Z)},createURL:oe,encodeLocation(Z){let P=oe(Z);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:ne,replace:I,go(Z){return w.go(Z)}};return Q}var om;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(om||(om={}));function Wg(r,s,d){return d===void 0&&(d="/"),$g(r,s,d)}function $g(r,s,d,c){let g=typeof s=="string"?Wl(s):s,y=qm(g.pathname||"/",d);if(y==null)return null;let w=Lm(r);ey(w);let O=null,C=dy(y);for(let j=0;O==null&&j<w.length;++j)O=sy(w[j],C);return O}function Lm(r,s,d,c){s===void 0&&(s=[]),d===void 0&&(d=[]),c===void 0&&(c="");let g=(y,w,O)=>{let C={relativePath:O===void 0?y.path||"":O,caseSensitive:y.caseSensitive===!0,childrenIndex:w,route:y};C.relativePath.startsWith("/")&&(un(C.relativePath.startsWith(c),'Absolute route path "'+C.relativePath+'" nested under path '+('"'+c+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),C.relativePath=C.relativePath.slice(c.length));let j=fl([c,C.relativePath]),_=d.concat(C);y.children&&y.children.length>0&&(un(y.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Lm(y.children,s,_,j)),!(y.path==null&&!y.index)&&s.push({path:j,score:uy(j,y.index),routesMeta:_})};return r.forEach((y,w)=>{var O;if(y.path===""||!((O=y.path)!=null&&O.includes("?")))g(y,w);else for(let C of Hm(y.path))g(y,w,C)}),s}function Hm(r){let s=r.split("/");if(s.length===0)return[];let[d,...c]=s,g=d.endsWith("?"),y=d.replace(/\?$/,"");if(c.length===0)return g?[y,""]:[y];let w=Hm(c.join("/")),O=[];return O.push(...w.map(C=>C===""?y:[y,C].join("/"))),g&&O.push(...w),O.map(C=>r.startsWith("/")&&C===""?"/":C)}function ey(r){r.sort((s,d)=>s.score!==d.score?d.score-s.score:oy(s.routesMeta.map(c=>c.childrenIndex),d.routesMeta.map(c=>c.childrenIndex)))}const ty=/^:[\w-]+$/,ny=3,ay=2,ly=1,iy=10,ry=-2,sm=r=>r==="*";function uy(r,s){let d=r.split("/"),c=d.length;return d.some(sm)&&(c+=ry),s&&(c+=ay),d.filter(g=>!sm(g)).reduce((g,y)=>g+(ty.test(y)?ny:y===""?ly:iy),c)}function oy(r,s){return r.length===s.length&&r.slice(0,-1).every((c,g)=>c===s[g])?r[r.length-1]-s[s.length-1]:0}function sy(r,s,d){let{routesMeta:c}=r,g={},y="/",w=[];for(let O=0;O<c.length;++O){let C=c[O],j=O===c.length-1,_=y==="/"?s:s.slice(y.length)||"/",z=cy({path:C.relativePath,caseSensitive:C.caseSensitive,end:j},_),ne=C.route;if(!z)return null;Object.assign(g,z.params),w.push({params:g,pathname:fl([y,z.pathname]),pathnameBase:gy(fl([y,z.pathnameBase])),route:ne}),z.pathnameBase!=="/"&&(y=fl([y,z.pathnameBase]))}return w}function cy(r,s){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[d,c]=fy(r.path,r.caseSensitive,r.end),g=s.match(d);if(!g)return null;let y=g[0],w=y.replace(/(.)\/+$/,"$1"),O=g.slice(1);return{params:c.reduce((j,_,z)=>{let{paramName:ne,isOptional:I}=_;if(ne==="*"){let Q=O[z]||"";w=y.slice(0,y.length-Q.length).replace(/(.)\/+$/,"$1")}const oe=O[z];return I&&!oe?j[ne]=void 0:j[ne]=(oe||"").replace(/%2F/g,"/"),j},{}),pathname:y,pathnameBase:w,pattern:r}}function fy(r,s,d){s===void 0&&(s=!1),d===void 0&&(d=!0),ec(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let c=[],g="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(w,O,C)=>(c.push({paramName:O,isOptional:C!=null}),C?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(c.push({paramName:"*"}),g+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?g+="\\/*$":r!==""&&r!=="/"&&(g+="(?:(?=\\/|$))"),[new RegExp(g,s?void 0:"i"),c]}function dy(r){try{return r.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return ec(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+s+").")),r}}function qm(r,s){if(s==="/")return r;if(!r.toLowerCase().startsWith(s.toLowerCase()))return null;let d=s.endsWith("/")?s.length-1:s.length,c=r.charAt(d);return c&&c!=="/"?null:r.slice(d)||"/"}const hy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,my=r=>hy.test(r);function py(r,s){s===void 0&&(s="/");let{pathname:d,search:c="",hash:g=""}=typeof r=="string"?Wl(r):r,y;if(d)if(my(d))y=d;else{if(d.includes("//")){let w=d;d=Gm(d),ec(!1,"Pathnames cannot have embedded double slashes - normalizing "+(w+" -> "+d))}d.startsWith("/")?y=cm(d.substring(1),"/"):y=cm(d,s)}else y=s;return{pathname:y,search:yy(c),hash:by(g)}}function cm(r,s){let d=s.replace(/\/+$/,"").split("/");return r.split("/").forEach(g=>{g===".."?d.length>1&&d.pop():g!=="."&&d.push(g)}),d.length>1?d.join("/"):"/"}function Hs(r,s,d,c){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+s+"` field ["+JSON.stringify(c)+"].  Please separate it out to the ")+("`to."+d+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vy(r){return r.filter((s,d)=>d===0||s.route.path&&s.route.path.length>0)}function Km(r,s){let d=vy(r);return s?d.map((c,g)=>g===d.length-1?c.pathname:c.pathnameBase):d.map(c=>c.pathnameBase)}function Vm(r,s,d,c){c===void 0&&(c=!1);let g;typeof r=="string"?g=Wl(r):(g=Yi({},r),un(!g.pathname||!g.pathname.includes("?"),Hs("?","pathname","search",g)),un(!g.pathname||!g.pathname.includes("#"),Hs("#","pathname","hash",g)),un(!g.search||!g.search.includes("#"),Hs("#","search","hash",g)));let y=r===""||g.pathname==="",w=y?"/":g.pathname,O;if(w==null)O=d;else{let z=s.length-1;if(!c&&w.startsWith("..")){let ne=w.split("/");for(;ne[0]==="..";)ne.shift(),z-=1;g.pathname=ne.join("/")}O=z>=0?s[z]:"/"}let C=py(g,O),j=w&&w!=="/"&&w.endsWith("/"),_=(y||w===".")&&d.endsWith("/");return!C.pathname.endsWith("/")&&(j||_)&&(C.pathname+="/"),C}const Gm=r=>r.replace(/\/\/+/g,"/"),fl=r=>Gm(r.join("/")),gy=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),yy=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,by=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function Sy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const Ym=["post","put","patch","delete"];new Set(Ym);const Ey=["get",...Ym];new Set(Ey);/**
 * React Router v6.30.4
 *
 * 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
 */function Xi(){return Xi=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var c in d)({}).hasOwnProperty.call(d,c)&&(r[c]=d[c])}return r},Xi.apply(null,arguments)}const tc=L.createContext(null),xy=L.createContext(null),Zi=L.createContext(null),yu=L.createContext(null),pl=L.createContext({outlet:null,matches:[],isDataRoute:!1}),Xm=L.createContext(null);function Qi(){return L.useContext(yu)!=null}function vl(){return Qi()||un(!1),L.useContext(yu).location}function Zm(r){L.useContext(Zi).static||L.useLayoutEffect(r)}function yn(){let{isDataRoute:r}=L.useContext(pl);return r?By():Oy()}function Oy(){Qi()||un(!1);let r=L.useContext(tc),{basename:s,future:d,navigator:c}=L.useContext(Zi),{matches:g}=L.useContext(pl),{pathname:y}=vl(),w=JSON.stringify(Km(g,d.v7_relativeSplatPath)),O=L.useRef(!1);return Zm(()=>{O.current=!0}),L.useCallback(function(j,_){if(_===void 0&&(_={}),!O.current)return;if(typeof j=="number"){c.go(j);return}let z=Vm(j,JSON.parse(w),y,_.relative==="path");r==null&&s!=="/"&&(z.pathname=z.pathname==="/"?s:fl([s,z.pathname])),(_.replace?c.replace:c.push)(z,_.state,_)},[s,c,w,y,r])}function Ny(r,s){return wy(r,s)}function wy(r,s,d,c){Qi()||un(!1);let{navigator:g}=L.useContext(Zi),{matches:y}=L.useContext(pl),w=y[y.length-1],O=w?w.params:{};w&&w.pathname;let C=w?w.pathnameBase:"/";w&&w.route;let j=vl(),_;if(s){var z;let Z=typeof s=="string"?Wl(s):s;C==="/"||(z=Z.pathname)!=null&&z.startsWith(C)||un(!1),_=Z}else _=j;let ne=_.pathname||"/",I=ne;if(C!=="/"){let Z=C.replace(/^\//,"").split("/");I="/"+ne.replace(/^\//,"").split("/").slice(Z.length).join("/")}let oe=Wg(r,{pathname:I}),Q=_y(oe&&oe.map(Z=>Object.assign({},Z,{params:Object.assign({},O,Z.params),pathname:fl([C,g.encodeLocation?g.encodeLocation(Z.pathname).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?C:fl([C,g.encodeLocation?g.encodeLocation(Z.pathnameBase).pathname:Z.pathnameBase])})),y,d,c);return s&&Q?L.createElement(yu.Provider,{value:{location:Xi({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:Xa.Pop}},Q):Q}function Ty(){let r=My(),s=Sy(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),d=r instanceof Error?r.stack:null,g={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},s),d?L.createElement("pre",{style:g},d):null,null)}const Ay=L.createElement(Ty,null);class jy extends L.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,d){return d.location!==s.location||d.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:d.error,location:d.location,revalidation:s.revalidation||d.revalidation}}componentDidCatch(s,d){console.error("React Router caught the following error during render",s,d)}render(){return this.state.error!==void 0?L.createElement(pl.Provider,{value:this.props.routeContext},L.createElement(Xm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cy(r){let{routeContext:s,match:d,children:c}=r,g=L.useContext(tc);return g&&g.static&&g.staticContext&&(d.route.errorElement||d.route.ErrorBoundary)&&(g.staticContext._deepestRenderedBoundaryId=d.route.id),L.createElement(pl.Provider,{value:s},c)}function _y(r,s,d,c){var g;if(s===void 0&&(s=[]),d===void 0&&(d=null),c===void 0&&(c=null),r==null){var y;if(!d)return null;if(d.errors)r=d.matches;else if((y=c)!=null&&y.v7_partialHydration&&s.length===0&&!d.initialized&&d.matches.length>0)r=d.matches;else return null}let w=r,O=(g=d)==null?void 0:g.errors;if(O!=null){let _=w.findIndex(z=>z.route.id&&(O==null?void 0:O[z.route.id])!==void 0);_>=0||un(!1),w=w.slice(0,Math.min(w.length,_+1))}let C=!1,j=-1;if(d&&c&&c.v7_partialHydration)for(let _=0;_<w.length;_++){let z=w[_];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(j=_),z.route.id){let{loaderData:ne,errors:I}=d,oe=z.route.loader&&ne[z.route.id]===void 0&&(!I||I[z.route.id]===void 0);if(z.route.lazy||oe){C=!0,j>=0?w=w.slice(0,j+1):w=[w[0]];break}}}return w.reduceRight((_,z,ne)=>{let I,oe=!1,Q=null,Z=null;d&&(I=O&&z.route.id?O[z.route.id]:void 0,Q=z.route.errorElement||Ay,C&&(j<0&&ne===0?(Uy("route-fallback"),oe=!0,Z=null):j===ne&&(oe=!0,Z=z.route.hydrateFallbackElement||null)));let P=s.concat(w.slice(0,ne+1)),ce=()=>{let ye;return I?ye=Q:oe?ye=Z:z.route.Component?ye=L.createElement(z.route.Component,null):z.route.element?ye=z.route.element:ye=_,L.createElement(Cy,{match:z,routeContext:{outlet:_,matches:P,isDataRoute:d!=null},children:ye})};return d&&(z.route.ErrorBoundary||z.route.errorElement||ne===0)?L.createElement(jy,{location:d.location,revalidation:d.revalidation,component:Q,error:I,children:ce(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):ce()},null)}var Qm=(function(r){return r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r})(Qm||{}),Fm=(function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r})(Fm||{});function Ry(r){let s=L.useContext(tc);return s||un(!1),s}function Dy(r){let s=L.useContext(xy);return s||un(!1),s}function zy(r){let s=L.useContext(pl);return s||un(!1),s}function Jm(r){let s=zy(),d=s.matches[s.matches.length-1];return d.route.id||un(!1),d.route.id}function My(){var r;let s=L.useContext(Xm),d=Dy(),c=Jm();return s!==void 0?s:(r=d.errors)==null?void 0:r[c]}function By(){let{router:r}=Ry(Qm.UseNavigateStable),s=Jm(Fm.UseNavigateStable),d=L.useRef(!1);return Zm(()=>{d.current=!0}),L.useCallback(function(g,y){y===void 0&&(y={}),d.current&&(typeof g=="number"?r.navigate(g):r.navigate(g,Xi({fromRouteId:s},y)))},[r,s])}const fm={};function Uy(r,s,d){fm[r]||(fm[r]=!0)}function ky(r,s){r==null||r.v7_startTransition,r==null||r.v7_relativeSplatPath}function fu(r){let{to:s,replace:d,state:c,relative:g}=r;Qi()||un(!1);let{future:y,static:w}=L.useContext(Zi),{matches:O}=L.useContext(pl),{pathname:C}=vl(),j=yn(),_=Vm(s,Km(O,y.v7_relativeSplatPath),C,g==="path"),z=JSON.stringify(_);return L.useEffect(()=>j(JSON.parse(z),{replace:d,state:c,relative:g}),[j,z,g,d,c]),null}function vn(r){un(!1)}function Ly(r){let{basename:s="/",children:d=null,location:c,navigationType:g=Xa.Pop,navigator:y,static:w=!1,future:O}=r;Qi()&&un(!1);let C=s.replace(/^\/*/,"/"),j=L.useMemo(()=>({basename:C,navigator:y,static:w,future:Xi({v7_relativeSplatPath:!1},O)}),[C,O,y,w]);typeof c=="string"&&(c=Wl(c));let{pathname:_="/",search:z="",hash:ne="",state:I=null,key:oe="default"}=c,Q=L.useMemo(()=>{let Z=qm(_,C);return Z==null?null:{location:{pathname:Z,search:z,hash:ne,state:I,key:oe},navigationType:g}},[C,_,z,ne,I,oe,g]);return Q==null?null:L.createElement(Zi.Provider,{value:j},L.createElement(yu.Provider,{children:d,value:Q}))}function Hy(r){let{children:s,location:d}=r;return Ny(Qs(s),d)}new Promise(()=>{});function Qs(r,s){s===void 0&&(s=[]);let d=[];return L.Children.forEach(r,(c,g)=>{if(!L.isValidElement(c))return;let y=[...s,g];if(c.type===L.Fragment){d.push.apply(d,Qs(c.props.children,y));return}c.type!==vn&&un(!1),!c.props.index||!c.props.children||un(!1);let w={id:c.props.id||y.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(w.children=Qs(c.props.children,y)),d.push(w)}),d}/**
 * React Router DOM v6.30.4
 *
 * 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
 */const qy="6";try{window.__reactRouterVersion=qy}catch{}const Ky="startTransition",dm=Kg[Ky];function Vy(r){let{basename:s,children:d,future:c,window:g}=r,y=L.useRef();y.current==null&&(y.current=Jg({window:g,v5Compat:!0}));let w=y.current,[O,C]=L.useState({action:w.action,location:w.location}),{v7_startTransition:j}=c||{},_=L.useCallback(z=>{j&&dm?dm(()=>C(z)):C(z)},[C,j]);return L.useLayoutEffect(()=>w.listen(_),[w,_]),L.useEffect(()=>ky(c),[c]),L.createElement(Ly,{basename:s,children:d,location:O.location,navigationType:O.action,navigator:w,future:c})}var hm;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(hm||(hm={}));var mm;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(mm||(mm={}));function Pm(r,s){return function(){return r.apply(s,arguments)}}const{toString:Gy}=Object.prototype,{getPrototypeOf:bu}=Object,{iterator:Su,toStringTag:Im}=Symbol,Eu=(r=>s=>{const d=Gy.call(s);return r[d]||(r[d]=d.slice(8,-1).toLowerCase())})(Object.create(null)),In=r=>(r=r.toLowerCase(),s=>Eu(s)===r),xu=r=>s=>typeof s===r,{isArray:hl}=Array,Il=xu("undefined");function $l(r){return r!==null&&!Il(r)&&r.constructor!==null&&!Il(r.constructor)&&Cn(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Wm=In("ArrayBuffer");function Yy(r){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(r):s=r&&r.buffer&&Wm(r.buffer),s}const Xy=xu("string"),Cn=xu("function"),$m=xu("number"),Fi=r=>r!==null&&typeof r=="object",Zy=r=>r===!0||r===!1,du=r=>{if(Eu(r)!=="object")return!1;const s=bu(r);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Im in r)&&!(Su in r)},Qy=r=>{if(!Fi(r)||$l(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Fy=In("Date"),Jy=In("File"),Py=r=>!!(r&&typeof r.uri<"u"),Iy=r=>r&&typeof r.getParts<"u",Wy=In("Blob"),$y=In("FileList"),e0=r=>Fi(r)&&Cn(r.pipe);function t0(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pm=t0(),vm=typeof pm.FormData<"u"?pm.FormData:void 0,n0=r=>{if(!r)return!1;if(vm&&r instanceof vm)return!0;const s=bu(r);if(!s||s===Object.prototype||!Cn(r.append))return!1;const d=Eu(r);return d==="formdata"||d==="object"&&Cn(r.toString)&&r.toString()==="[object FormData]"},a0=In("URLSearchParams"),[l0,i0,r0,u0]=["ReadableStream","Request","Response","Headers"].map(In),o0=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ji(r,s,{allOwnKeys:d=!1}={}){if(r===null||typeof r>"u")return;let c,g;if(typeof r!="object"&&(r=[r]),hl(r))for(c=0,g=r.length;c<g;c++)s.call(null,r[c],c,r);else{if($l(r))return;const y=d?Object.getOwnPropertyNames(r):Object.keys(r),w=y.length;let O;for(c=0;c<w;c++)O=y[c],s.call(null,r[O],O,r)}}function ep(r,s){if($l(r))return null;s=s.toLowerCase();const d=Object.keys(r);let c=d.length,g;for(;c-- >0;)if(g=d[c],s===g.toLowerCase())return g;return null}const cl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tp=r=>!Il(r)&&r!==cl;function Fs(...r){const{caseless:s,skipUndefined:d}=tp(this)&&this||{},c={},g=(y,w)=>{if(w==="__proto__"||w==="constructor"||w==="prototype")return;const O=s&&typeof w=="string"&&ep(c,w)||w,C=Js(c,O)?c[O]:void 0;du(C)&&du(y)?c[O]=Fs(C,y):du(y)?c[O]=Fs({},y):hl(y)?c[O]=y.slice():(!d||!Il(y))&&(c[O]=y)};for(let y=0,w=r.length;y<w;y++){const O=r[y];if(!O||$l(O)||(Ji(O,g),typeof O!="object"||hl(O)))continue;const C=Object.getOwnPropertySymbols(O);for(let j=0;j<C.length;j++){const _=C[j];S0.call(O,_)&&g(O[_],_)}}return c}const s0=(r,s,d,{allOwnKeys:c}={})=>(Ji(s,(g,y)=>{d&&Cn(g)?Object.defineProperty(r,y,{__proto__:null,value:Pm(g,d),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,y,{__proto__:null,value:g,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:c}),r),c0=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),f0=(r,s,d,c)=>{r.prototype=Object.create(s.prototype,c),Object.defineProperty(r.prototype,"constructor",{__proto__:null,value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{__proto__:null,value:s.prototype}),d&&Object.assign(r.prototype,d)},d0=(r,s,d,c)=>{let g,y,w;const O={};if(s=s||{},r==null)return s;do{for(g=Object.getOwnPropertyNames(r),y=g.length;y-- >0;)w=g[y],(!c||c(w,r,s))&&!O[w]&&(s[w]=r[w],O[w]=!0);r=d!==!1&&bu(r)}while(r&&(!d||d(r,s))&&r!==Object.prototype);return s},h0=(r,s,d)=>{r=String(r),(d===void 0||d>r.length)&&(d=r.length),d-=s.length;const c=r.indexOf(s,d);return c!==-1&&c===d},m0=r=>{if(!r)return null;if(hl(r))return r;let s=r.length;if(!$m(s))return null;const d=new Array(s);for(;s-- >0;)d[s]=r[s];return d},p0=(r=>s=>r&&s instanceof r)(typeof Uint8Array<"u"&&bu(Uint8Array)),v0=(r,s)=>{const c=(r&&r[Su]).call(r);let g;for(;(g=c.next())&&!g.done;){const y=g.value;s.call(r,y[0],y[1])}},g0=(r,s)=>{let d;const c=[];for(;(d=r.exec(s))!==null;)c.push(d);return c},y0=In("HTMLFormElement"),b0=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(d,c,g){return c.toUpperCase()+g}),Js=(({hasOwnProperty:r})=>(s,d)=>r.call(s,d))(Object.prototype),{propertyIsEnumerable:S0}=Object.prototype,E0=In("RegExp"),np=(r,s)=>{const d=Object.getOwnPropertyDescriptors(r),c={};Ji(d,(g,y)=>{let w;(w=s(g,y,r))!==!1&&(c[y]=w||g)}),Object.defineProperties(r,c)},x0=r=>{np(r,(s,d)=>{if(Cn(r)&&["arguments","caller","callee"].includes(d))return!1;const c=r[d];if(Cn(c)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+d+"'")})}})},O0=(r,s)=>{const d={},c=g=>{g.forEach(y=>{d[y]=!0})};return hl(r)?c(r):c(String(r).split(s)),d},N0=()=>{},w0=(r,s)=>r!=null&&Number.isFinite(r=+r)?r:s;function T0(r){return!!(r&&Cn(r.append)&&r[Im]==="FormData"&&r[Su])}const A0=r=>{const s=new WeakSet,d=c=>{if(Fi(c)){if(s.has(c))return;if($l(c))return c;if(!("toJSON"in c)){s.add(c);const g=hl(c)?[]:{};return Ji(c,(y,w)=>{const O=d(y);!Il(O)&&(g[w]=O)}),s.delete(c),g}}return c};return d(r)},j0=In("AsyncFunction"),C0=r=>r&&(Fi(r)||Cn(r))&&Cn(r.then)&&Cn(r.catch),ap=((r,s)=>r?setImmediate:s?((d,c)=>(cl.addEventListener("message",({source:g,data:y})=>{g===cl&&y===d&&c.length&&c.shift()()},!1),g=>{c.push(g),cl.postMessage(d,"*")}))(`axios@${Math.random()}`,[]):d=>setTimeout(d))(typeof setImmediate=="function",Cn(cl.postMessage)),_0=typeof queueMicrotask<"u"?queueMicrotask.bind(cl):typeof process<"u"&&process.nextTick||ap,R0=r=>r!=null&&Cn(r[Su]),F={isArray:hl,isArrayBuffer:Wm,isBuffer:$l,isFormData:n0,isArrayBufferView:Yy,isString:Xy,isNumber:$m,isBoolean:Zy,isObject:Fi,isPlainObject:du,isEmptyObject:Qy,isReadableStream:l0,isRequest:i0,isResponse:r0,isHeaders:u0,isUndefined:Il,isDate:Fy,isFile:Jy,isReactNativeBlob:Py,isReactNative:Iy,isBlob:Wy,isRegExp:E0,isFunction:Cn,isStream:e0,isURLSearchParams:a0,isTypedArray:p0,isFileList:$y,forEach:Ji,merge:Fs,extend:s0,trim:o0,stripBOM:c0,inherits:f0,toFlatObject:d0,kindOf:Eu,kindOfTest:In,endsWith:h0,toArray:m0,forEachEntry:v0,matchAll:g0,isHTMLForm:y0,hasOwnProperty:Js,hasOwnProp:Js,reduceDescriptors:np,freezeMethods:x0,toObjectSet:O0,toCamelCase:b0,noop:N0,toFiniteNumber:w0,findKey:ep,global:cl,isContextDefined:tp,isSpecCompliantForm:T0,toJSONObject:A0,isAsyncFn:j0,isThenable:C0,setImmediate:ap,asap:_0,isIterable:R0},D0=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),z0=r=>{const s={};let d,c,g;return r&&r.split(`
`).forEach(function(w){g=w.indexOf(":"),d=w.substring(0,g).trim().toLowerCase(),c=w.substring(g+1).trim(),!(!d||s[d]&&D0[d])&&(d==="set-cookie"?s[d]?s[d].push(c):s[d]=[c]:s[d]=s[d]?s[d]+", "+c:c)}),s};function M0(r){let s=0,d=r.length;for(;s<d;){const c=r.charCodeAt(s);if(c!==9&&c!==32)break;s+=1}for(;d>s;){const c=r.charCodeAt(d-1);if(c!==9&&c!==32)break;d-=1}return s===0&&d===r.length?r:r.slice(s,d)}const B0=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),U0=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nc(r,s){return F.isArray(r)?r.map(d=>nc(d,s)):M0(String(r).replace(s,""))}const k0=r=>nc(r,B0),L0=r=>nc(r,U0);function lp(r){const s=Object.create(null);return F.forEach(r.toJSON(),(d,c)=>{s[c]=L0(d)}),s}const gm=Symbol("internals");function Gi(r){return r&&String(r).trim().toLowerCase()}function hu(r){return r===!1||r==null?r:F.isArray(r)?r.map(hu):k0(String(r))}function H0(r){const s=Object.create(null),d=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=d.exec(r);)s[c[1]]=c[2];return s}const q0=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function qs(r,s,d,c,g){if(F.isFunction(c))return c.call(this,s,d);if(g&&(s=d),!!F.isString(s)){if(F.isString(c))return s.indexOf(c)!==-1;if(F.isRegExp(c))return c.test(s)}}function K0(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,d,c)=>d.toUpperCase()+c)}function V0(r,s){const d=F.toCamelCase(" "+s);["get","set","has"].forEach(c=>{Object.defineProperty(r,c+d,{__proto__:null,value:function(g,y,w){return this[c].call(this,s,g,y,w)},configurable:!0})})}let En=class{constructor(s){s&&this.set(s)}set(s,d,c){const g=this;function y(O,C,j){const _=Gi(C);if(!_)return;const z=F.findKey(g,_);(!z||g[z]===void 0||j===!0||j===void 0&&g[z]!==!1)&&(g[z||C]=hu(O))}const w=(O,C)=>F.forEach(O,(j,_)=>y(j,_,C));if(F.isPlainObject(s)||s instanceof this.constructor)w(s,d);else if(F.isString(s)&&(s=s.trim())&&!q0(s))w(z0(s),d);else if(F.isObject(s)&&F.isIterable(s)){let O={},C,j;for(const _ of s){if(!F.isArray(_))throw new TypeError("Object iterator must return a key-value pair");O[j=_[0]]=(C=O[j])?F.isArray(C)?[...C,_[1]]:[C,_[1]]:_[1]}w(O,d)}else s!=null&&y(d,s,c);return this}get(s,d){if(s=Gi(s),s){const c=F.findKey(this,s);if(c){const g=this[c];if(!d)return g;if(d===!0)return H0(g);if(F.isFunction(d))return d.call(this,g,c);if(F.isRegExp(d))return d.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,d){if(s=Gi(s),s){const c=F.findKey(this,s);return!!(c&&this[c]!==void 0&&(!d||qs(this,this[c],c,d)))}return!1}delete(s,d){const c=this;let g=!1;function y(w){if(w=Gi(w),w){const O=F.findKey(c,w);O&&(!d||qs(c,c[O],O,d))&&(delete c[O],g=!0)}}return F.isArray(s)?s.forEach(y):y(s),g}clear(s){const d=Object.keys(this);let c=d.length,g=!1;for(;c--;){const y=d[c];(!s||qs(this,this[y],y,s,!0))&&(delete this[y],g=!0)}return g}normalize(s){const d=this,c={};return F.forEach(this,(g,y)=>{const w=F.findKey(c,y);if(w){d[w]=hu(g),delete d[y];return}const O=s?K0(y):String(y).trim();O!==y&&delete d[y],d[O]=hu(g),c[O]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const d=Object.create(null);return F.forEach(this,(c,g)=>{c!=null&&c!==!1&&(d[g]=s&&F.isArray(c)?c.join(", "):c)}),d}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,d])=>s+": "+d).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...d){const c=new this(s);return d.forEach(g=>c.set(g)),c}static accessor(s){const c=(this[gm]=this[gm]={accessors:{}}).accessors,g=this.prototype;function y(w){const O=Gi(w);c[O]||(V0(g,w),c[O]=!0)}return F.isArray(s)?s.forEach(y):y(s),this}};En.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(En.prototype,({value:r},s)=>{let d=s[0].toUpperCase()+s.slice(1);return{get:()=>r,set(c){this[d]=c}}});F.freezeMethods(En);const G0="[REDACTED ****]";function Y0(r){if(F.hasOwnProp(r,"toJSON"))return!0;let s=Object.getPrototypeOf(r);for(;s&&s!==Object.prototype;){if(F.hasOwnProp(s,"toJSON"))return!0;s=Object.getPrototypeOf(s)}return!1}function X0(r,s){const d=new Set(s.map(y=>String(y).toLowerCase())),c=[],g=y=>{if(y===null||typeof y!="object"||F.isBuffer(y))return y;if(c.indexOf(y)!==-1)return;y instanceof En&&(y=y.toJSON()),c.push(y);let w;if(F.isArray(y))w=[],y.forEach((O,C)=>{const j=g(O);F.isUndefined(j)||(w[C]=j)});else{if(!F.isPlainObject(y)&&Y0(y))return c.pop(),y;w=Object.create(null);for(const[O,C]of Object.entries(y)){const j=d.has(O.toLowerCase())?G0:g(C);F.isUndefined(j)||(w[O]=j)}}return c.pop(),w};return g(r)}let Le=class ip extends Error{static from(s,d,c,g,y,w){const O=new ip(s.message,d||s.code,c,g,y);return O.cause=s,O.name=s.name,s.status!=null&&O.status==null&&(O.status=s.status),w&&Object.assign(O,w),O}constructor(s,d,c,g,y){super(s),Object.defineProperty(this,"message",{__proto__:null,value:s,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,d&&(this.code=d),c&&(this.config=c),g&&(this.request=g),y&&(this.response=y,this.status=y.status)}toJSON(){const s=this.config,d=s&&F.hasOwnProp(s,"redact")?s.redact:void 0,c=F.isArray(d)&&d.length>0?X0(s,d):F.toJSONObject(s);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c,code:this.code,status:this.status}}};Le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Le.ERR_BAD_OPTION="ERR_BAD_OPTION";Le.ECONNABORTED="ECONNABORTED";Le.ETIMEDOUT="ETIMEDOUT";Le.ECONNREFUSED="ECONNREFUSED";Le.ERR_NETWORK="ERR_NETWORK";Le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Le.ERR_DEPRECATED="ERR_DEPRECATED";Le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Le.ERR_CANCELED="ERR_CANCELED";Le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Le.ERR_INVALID_URL="ERR_INVALID_URL";Le.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Z0=null;function Ps(r){return F.isPlainObject(r)||F.isArray(r)}function rp(r){return F.endsWith(r,"[]")?r.slice(0,-2):r}function Ks(r,s,d){return r?r.concat(s).map(function(g,y){return g=rp(g),!d&&y?"["+g+"]":g}).join(d?".":""):s}function Q0(r){return F.isArray(r)&&!r.some(Ps)}const F0=F.toFlatObject(F,{},null,function(s){return/^is[A-Z]/.test(s)});function Ou(r,s,d){if(!F.isObject(r))throw new TypeError("target must be an object");s=s||new FormData,d=F.toFlatObject(d,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Z,P){return!F.isUndefined(P[Z])});const c=d.metaTokens,g=d.visitor||z,y=d.dots,w=d.indexes,O=d.Blob||typeof Blob<"u"&&Blob,C=d.maxDepth===void 0?100:d.maxDepth,j=O&&F.isSpecCompliantForm(s);if(!F.isFunction(g))throw new TypeError("visitor must be a function");function _(Q){if(Q===null)return"";if(F.isDate(Q))return Q.toISOString();if(F.isBoolean(Q))return Q.toString();if(!j&&F.isBlob(Q))throw new Le("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(Q)||F.isTypedArray(Q)?j&&typeof Blob=="function"?new Blob([Q]):Buffer.from(Q):Q}function z(Q,Z,P){let ce=Q;if(F.isReactNative(s)&&F.isReactNativeBlob(Q))return s.append(Ks(P,Z,y),_(Q)),!1;if(Q&&!P&&typeof Q=="object"){if(F.endsWith(Z,"{}"))Z=c?Z:Z.slice(0,-2),Q=JSON.stringify(Q);else if(F.isArray(Q)&&Q0(Q)||(F.isFileList(Q)||F.endsWith(Z,"[]"))&&(ce=F.toArray(Q)))return Z=rp(Z),ce.forEach(function(fe,Se){!(F.isUndefined(fe)||fe===null)&&s.append(w===!0?Ks([Z],Se,y):w===null?Z:Z+"[]",_(fe))}),!1}return Ps(Q)?!0:(s.append(Ks(P,Z,y),_(Q)),!1)}const ne=[],I=Object.assign(F0,{defaultVisitor:z,convertValue:_,isVisitable:Ps});function oe(Q,Z,P=0){if(!F.isUndefined(Q)){if(P>C)throw new Le("Object is too deeply nested ("+P+" levels). Max depth: "+C,Le.ERR_FORM_DATA_DEPTH_EXCEEDED);if(ne.indexOf(Q)!==-1)throw new Error("Circular reference detected in "+Z.join("."));ne.push(Q),F.forEach(Q,function(ye,fe){(!(F.isUndefined(ye)||ye===null)&&g.call(s,ye,F.isString(fe)?fe.trim():fe,Z,I))===!0&&oe(ye,Z?Z.concat(fe):[fe],P+1)}),ne.pop()}}if(!F.isObject(r))throw new TypeError("data must be an object");return oe(r),s}function ym(r){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(r).replace(/[!'()~]|%20/g,function(c){return s[c]})}function ac(r,s){this._pairs=[],r&&Ou(r,this,s)}const up=ac.prototype;up.append=function(s,d){this._pairs.push([s,d])};up.toString=function(s){const d=s?function(c){return s.call(this,c,ym)}:ym;return this._pairs.map(function(g){return d(g[0])+"="+d(g[1])},"").join("&")};function J0(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function op(r,s,d){if(!s)return r;const c=d&&d.encode||J0,g=F.isFunction(d)?{serialize:d}:d,y=g&&g.serialize;let w;if(y?w=y(s,g):w=F.isURLSearchParams(s)?s.toString():new ac(s,g).toString(c),w){const O=r.indexOf("#");O!==-1&&(r=r.slice(0,O)),r+=(r.indexOf("?")===-1?"?":"&")+w}return r}class bm{constructor(){this.handlers=[]}use(s,d,c){return this.handlers.push({fulfilled:s,rejected:d,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){F.forEach(this.handlers,function(c){c!==null&&s(c)})}}const lc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},P0=typeof URLSearchParams<"u"?URLSearchParams:ac,I0=typeof FormData<"u"?FormData:null,W0=typeof Blob<"u"?Blob:null,$0={isBrowser:!0,classes:{URLSearchParams:P0,FormData:I0,Blob:W0},protocols:["http","https","file","blob","url","data"]},ic=typeof window<"u"&&typeof document<"u",Is=typeof navigator=="object"&&navigator||void 0,eb=ic&&(!Is||["ReactNative","NativeScript","NS"].indexOf(Is.product)<0),tb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nb=ic&&window.location.href||"http://localhost",ab=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ic,hasStandardBrowserEnv:eb,hasStandardBrowserWebWorkerEnv:tb,navigator:Is,origin:nb},Symbol.toStringTag,{value:"Module"})),gn={...ab,...$0};function lb(r,s){return Ou(r,new gn.classes.URLSearchParams,{visitor:function(d,c,g,y){return gn.isNode&&F.isBuffer(d)?(this.append(c,d.toString("base64")),!1):y.defaultVisitor.apply(this,arguments)},...s})}function ib(r){return F.matchAll(/\w+|\[(\w*)]/g,r).map(s=>s[0]==="[]"?"":s[1]||s[0])}function rb(r){const s={},d=Object.keys(r);let c;const g=d.length;let y;for(c=0;c<g;c++)y=d[c],s[y]=r[y];return s}function sp(r){function s(d,c,g,y){let w=d[y++];if(w==="__proto__")return!0;const O=Number.isFinite(+w),C=y>=d.length;return w=!w&&F.isArray(g)?g.length:w,C?(F.hasOwnProp(g,w)?g[w]=F.isArray(g[w])?g[w].concat(c):[g[w],c]:g[w]=c,!O):((!F.hasOwnProp(g,w)||!F.isObject(g[w]))&&(g[w]=[]),s(d,c,g[w],y)&&F.isArray(g[w])&&(g[w]=rb(g[w])),!O)}if(F.isFormData(r)&&F.isFunction(r.entries)){const d={};return F.forEachEntry(r,(c,g)=>{s(ib(c),g,d,0)}),d}return null}const Pl=(r,s)=>r!=null&&F.hasOwnProp(r,s)?r[s]:void 0;function ub(r,s,d){if(F.isString(r))try{return(s||JSON.parse)(r),F.trim(r)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(r)}const Pi={transitional:lc,adapter:["xhr","http","fetch"],transformRequest:[function(s,d){const c=d.getContentType()||"",g=c.indexOf("application/json")>-1,y=F.isObject(s);if(y&&F.isHTMLForm(s)&&(s=new FormData(s)),F.isFormData(s))return g?JSON.stringify(sp(s)):s;if(F.isArrayBuffer(s)||F.isBuffer(s)||F.isStream(s)||F.isFile(s)||F.isBlob(s)||F.isReadableStream(s))return s;if(F.isArrayBufferView(s))return s.buffer;if(F.isURLSearchParams(s))return d.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let O;if(y){const C=Pl(this,"formSerializer");if(c.indexOf("application/x-www-form-urlencoded")>-1)return lb(s,C).toString();if((O=F.isFileList(s))||c.indexOf("multipart/form-data")>-1){const j=Pl(this,"env"),_=j&&j.FormData;return Ou(O?{"files[]":s}:s,_&&new _,C)}}return y||g?(d.setContentType("application/json",!1),ub(s)):s}],transformResponse:[function(s){const d=Pl(this,"transitional")||Pi.transitional,c=d&&d.forcedJSONParsing,g=Pl(this,"responseType"),y=g==="json";if(F.isResponse(s)||F.isReadableStream(s))return s;if(s&&F.isString(s)&&(c&&!g||y)){const O=!(d&&d.silentJSONParsing)&&y;try{return JSON.parse(s,Pl(this,"parseReviver"))}catch(C){if(O)throw C.name==="SyntaxError"?Le.from(C,Le.ERR_BAD_RESPONSE,this,null,Pl(this,"response")):C}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gn.classes.FormData,Blob:gn.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch","query"],r=>{Pi.headers[r]={}});function Vs(r,s){const d=this||Pi,c=s||d,g=En.from(c.headers);let y=c.data;return F.forEach(r,function(O){y=O.call(d,y,g.normalize(),s?s.status:void 0)}),g.normalize(),y}function cp(r){return!!(r&&r.__CANCEL__)}let Ii=class extends Le{constructor(s,d,c){super(s??"canceled",Le.ERR_CANCELED,d,c),this.name="CanceledError",this.__CANCEL__=!0}};function fp(r,s,d){const c=d.config.validateStatus;!d.status||!c||c(d.status)?r(d):s(new Le("Request failed with status code "+d.status,d.status>=400&&d.status<500?Le.ERR_BAD_REQUEST:Le.ERR_BAD_RESPONSE,d.config,d.request,d))}function ob(r){const s=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r);return s&&s[1]||""}function sb(r,s){r=r||10;const d=new Array(r),c=new Array(r);let g=0,y=0,w;return s=s!==void 0?s:1e3,function(C){const j=Date.now(),_=c[y];w||(w=j),d[g]=C,c[g]=j;let z=y,ne=0;for(;z!==g;)ne+=d[z++],z=z%r;if(g=(g+1)%r,g===y&&(y=(y+1)%r),j-w<s)return;const I=_&&j-_;return I?Math.round(ne*1e3/I):void 0}}function cb(r,s){let d=0,c=1e3/s,g,y;const w=(j,_=Date.now())=>{d=_,g=null,y&&(clearTimeout(y),y=null),r(...j)};return[(...j)=>{const _=Date.now(),z=_-d;z>=c?w(j,_):(g=j,y||(y=setTimeout(()=>{y=null,w(g)},c-z)))},()=>g&&w(g)]}const vu=(r,s,d=3)=>{let c=0;const g=sb(50,250);return cb(y=>{if(!y||typeof y.loaded!="number")return;const w=y.loaded,O=y.lengthComputable?y.total:void 0,C=O!=null?Math.min(w,O):w,j=Math.max(0,C-c),_=g(j);c=Math.max(c,C);const z={loaded:C,total:O,progress:O?C/O:void 0,bytes:j,rate:_||void 0,estimated:_&&O?(O-C)/_:void 0,event:y,lengthComputable:O!=null,[s?"download":"upload"]:!0};r(z)},d)},Sm=(r,s)=>{const d=r!=null;return[c=>s[0]({lengthComputable:d,total:r,loaded:c}),s[1]]},Em=r=>(...s)=>F.asap(()=>r(...s)),fb=gn.hasStandardBrowserEnv?((r,s)=>d=>(d=new URL(d,gn.origin),r.protocol===d.protocol&&r.host===d.host&&(s||r.port===d.port)))(new URL(gn.origin),gn.navigator&&/(msie|trident)/i.test(gn.navigator.userAgent)):()=>!0,db=gn.hasStandardBrowserEnv?{write(r,s,d,c,g,y,w){if(typeof document>"u")return;const O=[`${r}=${encodeURIComponent(s)}`];F.isNumber(d)&&O.push(`expires=${new Date(d).toUTCString()}`),F.isString(c)&&O.push(`path=${c}`),F.isString(g)&&O.push(`domain=${g}`),y===!0&&O.push("secure"),F.isString(w)&&O.push(`SameSite=${w}`),document.cookie=O.join("; ")},read(r){if(typeof document>"u")return null;const s=document.cookie.split(";");for(let d=0;d<s.length;d++){const c=s[d].replace(/^\s+/,""),g=c.indexOf("=");if(g!==-1&&c.slice(0,g)===r)return decodeURIComponent(c.slice(g+1))}return null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hb(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function mb(r,s){return s?r.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):r}function dp(r,s,d){let c=!hb(s);return r&&(c||d===!1)?mb(r,s):s}const xm=r=>r instanceof En?{...r}:r;function ml(r,s){s=s||{};const d=Object.create(null);Object.defineProperty(d,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function c(j,_,z,ne){return F.isPlainObject(j)&&F.isPlainObject(_)?F.merge.call({caseless:ne},j,_):F.isPlainObject(_)?F.merge({},_):F.isArray(_)?_.slice():_}function g(j,_,z,ne){if(F.isUndefined(_)){if(!F.isUndefined(j))return c(void 0,j,z,ne)}else return c(j,_,z,ne)}function y(j,_){if(!F.isUndefined(_))return c(void 0,_)}function w(j,_){if(F.isUndefined(_)){if(!F.isUndefined(j))return c(void 0,j)}else return c(void 0,_)}function O(j,_,z){if(F.hasOwnProp(s,z))return c(j,_);if(F.hasOwnProp(r,z))return c(void 0,j)}const C={url:y,method:y,data:y,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,allowedSocketPaths:w,responseEncoding:w,validateStatus:O,headers:(j,_,z)=>g(xm(j),xm(_),z,!0)};return F.forEach(Object.keys({...r,...s}),function(_){if(_==="__proto__"||_==="constructor"||_==="prototype")return;const z=F.hasOwnProp(C,_)?C[_]:g,ne=F.hasOwnProp(r,_)?r[_]:void 0,I=F.hasOwnProp(s,_)?s[_]:void 0,oe=z(ne,I,_);F.isUndefined(oe)&&z!==O||(d[_]=oe)}),d}const pb=["content-type","content-length"];function vb(r,s,d){if(d!=="content-only"){r.set(s);return}Object.entries(s).forEach(([c,g])=>{pb.includes(c.toLowerCase())&&r.set(c,g)})}const gb=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(s,d)=>String.fromCharCode(parseInt(d,16)));function hp(r){const s=ml({},r),d=ne=>F.hasOwnProp(s,ne)?s[ne]:void 0,c=d("data");let g=d("withXSRFToken");const y=d("xsrfHeaderName"),w=d("xsrfCookieName");let O=d("headers");const C=d("auth"),j=d("baseURL"),_=d("allowAbsoluteUrls"),z=d("url");if(s.headers=O=En.from(O),s.url=op(dp(j,z,_),d("params"),d("paramsSerializer")),C&&O.set("Authorization","Basic "+btoa((C.username||"")+":"+(C.password?gb(C.password):""))),F.isFormData(c)&&(gn.hasStandardBrowserEnv||gn.hasStandardBrowserWebWorkerEnv||F.isReactNative(c)?O.setContentType(void 0):F.isFunction(c.getHeaders)&&vb(O,c.getHeaders(),d("formDataHeaderPolicy"))),gn.hasStandardBrowserEnv&&(F.isFunction(g)&&(g=g(s)),g===!0||g==null&&fb(s.url))){const I=y&&w&&db.read(w);I&&O.set(y,I)}return s}const yb=typeof XMLHttpRequest<"u",bb=yb&&function(r){return new Promise(function(d,c){const g=hp(r);let y=g.data;const w=En.from(g.headers).normalize();let{responseType:O,onUploadProgress:C,onDownloadProgress:j}=g,_,z,ne,I,oe;function Q(){I&&I(),oe&&oe(),g.cancelToken&&g.cancelToken.unsubscribe(_),g.signal&&g.signal.removeEventListener("abort",_)}let Z=new XMLHttpRequest;Z.open(g.method.toUpperCase(),g.url,!0),Z.timeout=g.timeout;function P(){if(!Z)return;const ye=En.from("getAllResponseHeaders"in Z&&Z.getAllResponseHeaders()),Se={data:!O||O==="text"||O==="json"?Z.responseText:Z.response,status:Z.status,statusText:Z.statusText,headers:ye,config:r,request:Z};fp(function(ue){d(ue),Q()},function(ue){c(ue),Q()},Se),Z=null}"onloadend"in Z?Z.onloadend=P:Z.onreadystatechange=function(){!Z||Z.readyState!==4||Z.status===0&&!(Z.responseURL&&Z.responseURL.startsWith("file:"))||setTimeout(P)},Z.onabort=function(){Z&&(c(new Le("Request aborted",Le.ECONNABORTED,r,Z)),Q(),Z=null)},Z.onerror=function(fe){const Se=fe&&fe.message?fe.message:"Network Error",De=new Le(Se,Le.ERR_NETWORK,r,Z);De.event=fe||null,c(De),Q(),Z=null},Z.ontimeout=function(){let fe=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded";const Se=g.transitional||lc;g.timeoutErrorMessage&&(fe=g.timeoutErrorMessage),c(new Le(fe,Se.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,r,Z)),Q(),Z=null},y===void 0&&w.setContentType(null),"setRequestHeader"in Z&&F.forEach(lp(w),function(fe,Se){Z.setRequestHeader(Se,fe)}),F.isUndefined(g.withCredentials)||(Z.withCredentials=!!g.withCredentials),O&&O!=="json"&&(Z.responseType=g.responseType),j&&([ne,oe]=vu(j,!0),Z.addEventListener("progress",ne)),C&&Z.upload&&([z,I]=vu(C),Z.upload.addEventListener("progress",z),Z.upload.addEventListener("loadend",I)),(g.cancelToken||g.signal)&&(_=ye=>{Z&&(c(!ye||ye.type?new Ii(null,r,Z):ye),Z.abort(),Q(),Z=null)},g.cancelToken&&g.cancelToken.subscribe(_),g.signal&&(g.signal.aborted?_():g.signal.addEventListener("abort",_)));const ce=ob(g.url);if(ce&&!gn.protocols.includes(ce)){c(new Le("Unsupported protocol "+ce+":",Le.ERR_BAD_REQUEST,r));return}Z.send(y||null)})},Sb=(r,s)=>{if(r=r?r.filter(Boolean):[],!s&&!r.length)return;const d=new AbortController;let c=!1;const g=function(C){if(!c){c=!0,w();const j=C instanceof Error?C:this.reason;d.abort(j instanceof Le?j:new Ii(j instanceof Error?j.message:j))}};let y=s&&setTimeout(()=>{y=null,g(new Le(`timeout of ${s}ms exceeded`,Le.ETIMEDOUT))},s);const w=()=>{r&&(y&&clearTimeout(y),y=null,r.forEach(C=>{C.unsubscribe?C.unsubscribe(g):C.removeEventListener("abort",g)}),r=null)};r.forEach(C=>C.addEventListener("abort",g));const{signal:O}=d;return O.unsubscribe=()=>F.asap(w),O},Eb=function*(r,s){let d=r.byteLength;if(d<s){yield r;return}let c=0,g;for(;c<d;)g=c+s,yield r.slice(c,g),c=g},xb=async function*(r,s){for await(const d of Ob(r))yield*Eb(d,s)},Ob=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const s=r.getReader();try{for(;;){const{done:d,value:c}=await s.read();if(d)break;yield c}}finally{await s.cancel()}},Om=(r,s,d,c)=>{const g=xb(r,s);let y=0,w,O=C=>{w||(w=!0,c&&c(C))};return new ReadableStream({async pull(C){try{const{done:j,value:_}=await g.next();if(j){O(),C.close();return}let z=_.byteLength;if(d){let ne=y+=z;d(ne)}C.enqueue(new Uint8Array(_))}catch(j){throw O(j),j}},cancel(C){return O(C),g.return()}},{highWaterMark:2})};function Nb(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;const s=r.indexOf(",");if(s<0)return 0;const d=r.slice(5,s),c=r.slice(s+1);if(/;base64/i.test(d)){let w=c.length;const O=c.length;for(let I=0;I<O;I++)if(c.charCodeAt(I)===37&&I+2<O){const oe=c.charCodeAt(I+1),Q=c.charCodeAt(I+2);(oe>=48&&oe<=57||oe>=65&&oe<=70||oe>=97&&oe<=102)&&(Q>=48&&Q<=57||Q>=65&&Q<=70||Q>=97&&Q<=102)&&(w-=2,I+=2)}let C=0,j=O-1;const _=I=>I>=2&&c.charCodeAt(I-2)===37&&c.charCodeAt(I-1)===51&&(c.charCodeAt(I)===68||c.charCodeAt(I)===100);j>=0&&(c.charCodeAt(j)===61?(C++,j--):_(j)&&(C++,j-=3)),C===1&&j>=0&&(c.charCodeAt(j)===61||_(j))&&C++;const ne=Math.floor(w/4)*3-(C||0);return ne>0?ne:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(c,"utf8");let y=0;for(let w=0,O=c.length;w<O;w++){const C=c.charCodeAt(w);if(C<128)y+=1;else if(C<2048)y+=2;else if(C>=55296&&C<=56319&&w+1<O){const j=c.charCodeAt(w+1);j>=56320&&j<=57343?(y+=4,w++):y+=3}else y+=3}return y}const rc="1.17.0",Nm=64*1024,{isFunction:cu}=F,wb=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(s,d)=>String.fromCharCode(parseInt(d,16))),wm=r=>{if(!F.isString(r))return r;try{return decodeURIComponent(r)}catch{return r}},Tm=(r,...s)=>{try{return!!r(...s)}catch{return!1}},Tb=r=>{const s=r.indexOf("://");let d=r;return s!==-1&&(d=d.slice(s+3)),d.includes("@")||d.includes(":")},Ab=r=>{const s=F.global!==void 0&&F.global!==null?F.global:globalThis,{ReadableStream:d,TextEncoder:c}=s;r=F.merge.call({skipUndefined:!0},{Request:s.Request,Response:s.Response},r);const{fetch:g,Request:y,Response:w}=r,O=g?cu(g):typeof fetch=="function",C=cu(y),j=cu(w);if(!O)return!1;const _=O&&cu(d),z=O&&(typeof c=="function"?(P=>ce=>P.encode(ce))(new c):async P=>new Uint8Array(await new y(P).arrayBuffer())),ne=C&&_&&Tm(()=>{let P=!1;const ce=new y(gn.origin,{body:new d,method:"POST",get duplex(){return P=!0,"half"}}),ye=ce.headers.has("Content-Type");return ce.body!=null&&ce.body.cancel(),P&&!ye}),I=j&&_&&Tm(()=>F.isReadableStream(new w("").body)),oe={stream:I&&(P=>P.body)};O&&["text","arrayBuffer","blob","formData","stream"].forEach(P=>{!oe[P]&&(oe[P]=(ce,ye)=>{let fe=ce&&ce[P];if(fe)return fe.call(ce);throw new Le(`Response type '${P}' is not supported`,Le.ERR_NOT_SUPPORT,ye)})});const Q=async P=>{if(P==null)return 0;if(F.isBlob(P))return P.size;if(F.isSpecCompliantForm(P))return(await new y(gn.origin,{method:"POST",body:P}).arrayBuffer()).byteLength;if(F.isArrayBufferView(P)||F.isArrayBuffer(P))return P.byteLength;if(F.isURLSearchParams(P)&&(P=P+""),F.isString(P))return(await z(P)).byteLength},Z=async(P,ce)=>{const ye=F.toFiniteNumber(P.getContentLength());return ye??Q(ce)};return async P=>{let{url:ce,method:ye,data:fe,signal:Se,cancelToken:De,timeout:ue,onDownloadProgress:we,onUploadProgress:at,responseType:Ie,headers:ke,withCredentials:be="same-origin",fetchOptions:qe,maxContentLength:ut,maxBodyLength:pt}=hp(P);const ae=F.isNumber(ut)&&ut>-1,Te=F.isNumber(pt)&&pt>-1,Ve=xe=>F.hasOwnProp(P,xe)?P[xe]:void 0;let ht=g||fetch;Ie=Ie?(Ie+"").toLowerCase():"text";let st=Sb([Se,De&&De.toAbortSignal()],ue),U=null;const he=st&&st.unsubscribe&&(()=>{st.unsubscribe()});let je;try{let xe;const Ge=Ve("auth");if(Ge){const h=Ge.username||"",m=Ge.password||"";xe={username:h,password:m}}if(Tb(ce)){const h=new URL(ce,gn.origin);if(!xe&&(h.username||h.password)){const m=wm(h.username),S=wm(h.password);xe={username:m,password:S}}(h.username||h.password)&&(h.username="",h.password="",ce=h.href)}if(xe&&(ke.delete("authorization"),ke.set("Authorization","Basic "+btoa(wb((xe.username||"")+":"+(xe.password||""))))),ae&&typeof ce=="string"&&ce.startsWith("data:")&&Nb(ce)>ut)throw new Le("maxContentLength size of "+ut+" exceeded",Le.ERR_BAD_RESPONSE,P,U);if(Te&&ye!=="get"&&ye!=="head"){const h=await Z(ke,fe);if(typeof h=="number"&&isFinite(h)&&h>pt)throw new Le("Request body larger than maxBodyLength limit",Le.ERR_BAD_REQUEST,P,U)}if(at&&ne&&ye!=="get"&&ye!=="head"&&(je=await Z(ke,fe))!==0){let h=new y(ce,{method:"POST",body:fe,duplex:"half"}),m;if(F.isFormData(fe)&&(m=h.headers.get("content-type"))&&ke.setContentType(m),h.body){const[S,N]=Sm(je,vu(Em(at)));fe=Om(h.body,Nm,S,N)}}F.isString(be)||(be=be?"include":"omit");const p=C&&"credentials"in y.prototype;if(F.isFormData(fe)){const h=ke.getContentType();h&&/^multipart\/form-data/i.test(h)&&!/boundary=/i.test(h)&&ke.delete("content-type")}ke.set("User-Agent","axios/"+rc,!1);const E={...qe,signal:st,method:ye.toUpperCase(),headers:lp(ke.normalize()),body:fe,duplex:"half",credentials:p?be:void 0};U=C&&new y(ce,E);let l=await(C?ht(U,qe):ht(ce,E));if(ae){const h=F.toFiniteNumber(l.headers.get("content-length"));if(h!=null&&h>ut)throw new Le("maxContentLength size of "+ut+" exceeded",Le.ERR_BAD_RESPONSE,P,U)}const u=I&&(Ie==="stream"||Ie==="response");if(I&&l.body&&(we||ae||u&&he)){const h={};["status","statusText","headers"].forEach(R=>{h[R]=l[R]});const m=F.toFiniteNumber(l.headers.get("content-length")),[S,N]=we&&Sm(m,vu(Em(we),!0))||[];let x=0;const T=R=>{if(ae&&(x=R,x>ut))throw new Le("maxContentLength size of "+ut+" exceeded",Le.ERR_BAD_RESPONSE,P,U);S&&S(R)};l=new w(Om(l.body,Nm,T,()=>{N&&N(),he&&he()}),h)}Ie=Ie||"text";let f=await oe[F.findKey(oe,Ie)||"text"](l,P);if(ae&&!I&&!u){let h;if(f!=null&&(typeof f.byteLength=="number"?h=f.byteLength:typeof f.size=="number"?h=f.size:typeof f=="string"&&(h=typeof c=="function"?new c().encode(f).byteLength:f.length)),typeof h=="number"&&h>ut)throw new Le("maxContentLength size of "+ut+" exceeded",Le.ERR_BAD_RESPONSE,P,U)}return!u&&he&&he(),await new Promise((h,m)=>{fp(h,m,{data:f,headers:En.from(l.headers),status:l.status,statusText:l.statusText,config:P,request:U})})}catch(xe){if(he&&he(),st&&st.aborted&&st.reason instanceof Le){const Ge=st.reason;throw Ge.config=P,U&&(Ge.request=U),xe!==Ge&&(Ge.cause=xe),Ge}throw xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,P,U,xe&&xe.response),{cause:xe.cause||xe}):Le.from(xe,xe&&xe.code,P,U,xe&&xe.response)}}},jb=new Map,mp=r=>{let s=r&&r.env||{};const{fetch:d,Request:c,Response:g}=s,y=[c,g,d];let w=y.length,O=w,C,j,_=jb;for(;O--;)C=y[O],j=_.get(C),j===void 0&&_.set(C,j=O?new Map:Ab(s)),_=j;return j};mp();const uc={http:Z0,xhr:bb,fetch:{get:mp}};F.forEach(uc,(r,s)=>{if(r){try{Object.defineProperty(r,"name",{__proto__:null,value:s})}catch{}Object.defineProperty(r,"adapterName",{__proto__:null,value:s})}});const Am=r=>`- ${r}`,Cb=r=>F.isFunction(r)||r===null||r===!1;function _b(r,s){r=F.isArray(r)?r:[r];const{length:d}=r;let c,g;const y={};for(let w=0;w<d;w++){c=r[w];let O;if(g=c,!Cb(c)&&(g=uc[(O=String(c)).toLowerCase()],g===void 0))throw new Le(`Unknown adapter '${O}'`);if(g&&(F.isFunction(g)||(g=g.get(s))))break;y[O||"#"+w]=g}if(!g){const w=Object.entries(y).map(([C,j])=>`adapter ${C} `+(j===!1?"is not supported by the environment":"is not available in the build"));let O=d?w.length>1?`since :
`+w.map(Am).join(`
`):" "+Am(w[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+O,"ERR_NOT_SUPPORT")}return g}const pp={getAdapter:_b,adapters:uc};function Gs(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Ii(null,r)}function jm(r){return Gs(r),r.headers=En.from(r.headers),r.data=Vs.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),pp.getAdapter(r.adapter||Pi.adapter,r)(r).then(function(c){Gs(r),r.response=c;try{c.data=Vs.call(r,r.transformResponse,c)}finally{delete r.response}return c.headers=En.from(c.headers),c},function(c){if(!cp(c)&&(Gs(r),c&&c.response)){r.response=c.response;try{c.response.data=Vs.call(r,r.transformResponse,c.response)}finally{delete r.response}c.response.headers=En.from(c.response.headers)}return Promise.reject(c)})}const Nu={};["object","boolean","number","function","string","symbol"].forEach((r,s)=>{Nu[r]=function(c){return typeof c===r||"a"+(s<1?"n ":" ")+r}});const Cm={};Nu.transitional=function(s,d,c){function g(y,w){return"[Axios v"+rc+"] Transitional option '"+y+"'"+w+(c?". "+c:"")}return(y,w,O)=>{if(s===!1)throw new Le(g(w," has been removed"+(d?" in "+d:"")),Le.ERR_DEPRECATED);return d&&!Cm[w]&&(Cm[w]=!0,console.warn(g(w," has been deprecated since v"+d+" and will be removed in the near future"))),s?s(y,w,O):!0}};Nu.spelling=function(s){return(d,c)=>(console.warn(`${c} is likely a misspelling of ${s}`),!0)};function Rb(r,s,d){if(typeof r!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const c=Object.keys(r);let g=c.length;for(;g-- >0;){const y=c[g],w=Object.prototype.hasOwnProperty.call(s,y)?s[y]:void 0;if(w){const O=r[y],C=O===void 0||w(O,y,r);if(C!==!0)throw new Le("option "+y+" must be "+C,Le.ERR_BAD_OPTION_VALUE);continue}if(d!==!0)throw new Le("Unknown option "+y,Le.ERR_BAD_OPTION)}}const mu={assertOptions:Rb,validators:Nu},jn=mu.validators;let dl=class{constructor(s){this.defaults=s||{},this.interceptors={request:new bm,response:new bm}}async request(s,d){try{return await this._request(s,d)}catch(c){if(c instanceof Error){let g={};Error.captureStackTrace?Error.captureStackTrace(g):g=new Error;const y=(()=>{if(!g.stack)return"";const w=g.stack.indexOf(`
`);return w===-1?"":g.stack.slice(w+1)})();try{if(!c.stack)c.stack=y;else if(y){const w=y.indexOf(`
`),O=w===-1?-1:y.indexOf(`
`,w+1),C=O===-1?"":y.slice(O+1);String(c.stack).endsWith(C)||(c.stack+=`
`+y)}}catch{}}throw c}}_request(s,d){typeof s=="string"?(d=d||{},d.url=s):d=s||{},d=ml(this.defaults,d);const{transitional:c,paramsSerializer:g,headers:y}=d;c!==void 0&&mu.assertOptions(c,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean),legacyInterceptorReqResOrdering:jn.transitional(jn.boolean),advertiseZstdAcceptEncoding:jn.transitional(jn.boolean)},!1),g!=null&&(F.isFunction(g)?d.paramsSerializer={serialize:g}:mu.assertOptions(g,{encode:jn.function,serialize:jn.function},!0)),d.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?d.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:d.allowAbsoluteUrls=!0),mu.assertOptions(d,{baseUrl:jn.spelling("baseURL"),withXsrfToken:jn.spelling("withXSRFToken")},!0),d.method=(d.method||this.defaults.method||"get").toLowerCase();let w=y&&F.merge(y.common,y[d.method]);y&&F.forEach(["delete","get","head","post","put","patch","query","common"],oe=>{delete y[oe]}),d.headers=En.concat(w,y);const O=[];let C=!0;this.interceptors.request.forEach(function(Q){if(typeof Q.runWhen=="function"&&Q.runWhen(d)===!1)return;C=C&&Q.synchronous;const Z=d.transitional||lc;Z&&Z.legacyInterceptorReqResOrdering?O.unshift(Q.fulfilled,Q.rejected):O.push(Q.fulfilled,Q.rejected)});const j=[];this.interceptors.response.forEach(function(Q){j.push(Q.fulfilled,Q.rejected)});let _,z=0,ne;if(!C){const oe=[jm.bind(this),void 0];for(oe.unshift(...O),oe.push(...j),ne=oe.length,_=Promise.resolve(d);z<ne;)_=_.then(oe[z++],oe[z++]);return _}ne=O.length;let I=d;for(;z<ne;){const oe=O[z++],Q=O[z++];try{I=oe(I)}catch(Z){Q.call(this,Z);break}}try{_=jm.call(this,I)}catch(oe){return Promise.reject(oe)}for(z=0,ne=j.length;z<ne;)_=_.then(j[z++],j[z++]);return _}getUri(s){s=ml(this.defaults,s);const d=dp(s.baseURL,s.url,s.allowAbsoluteUrls);return op(d,s.params,s.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(s){dl.prototype[s]=function(d,c){return this.request(ml(c||{},{method:s,url:d,data:(c||{}).data}))}});F.forEach(["post","put","patch","query"],function(s){function d(c){return function(y,w,O){return this.request(ml(O||{},{method:s,headers:c?{"Content-Type":"multipart/form-data"}:{},url:y,data:w}))}}dl.prototype[s]=d(),s!=="query"&&(dl.prototype[s+"Form"]=d(!0))});let Db=class vp{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let d;this.promise=new Promise(function(y){d=y});const c=this;this.promise.then(g=>{if(!c._listeners)return;let y=c._listeners.length;for(;y-- >0;)c._listeners[y](g);c._listeners=null}),this.promise.then=g=>{let y;const w=new Promise(O=>{c.subscribe(O),y=O}).then(g);return w.cancel=function(){c.unsubscribe(y)},w},s(function(y,w,O){c.reason||(c.reason=new Ii(y,w,O),d(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const d=this._listeners.indexOf(s);d!==-1&&this._listeners.splice(d,1)}toAbortSignal(){const s=new AbortController,d=c=>{s.abort(c)};return this.subscribe(d),s.signal.unsubscribe=()=>this.unsubscribe(d),s.signal}static source(){let s;return{token:new vp(function(g){s=g}),cancel:s}}};function zb(r){return function(d){return r.apply(null,d)}}function Mb(r){return F.isObject(r)&&r.isAxiosError===!0}const Ws={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ws).forEach(([r,s])=>{Ws[s]=r});function gp(r){const s=new dl(r),d=Pm(dl.prototype.request,s);return F.extend(d,dl.prototype,s,{allOwnKeys:!0}),F.extend(d,s,null,{allOwnKeys:!0}),d.create=function(g){return gp(ml(r,g))},d}const en=gp(Pi);en.Axios=dl;en.CanceledError=Ii;en.CancelToken=Db;en.isCancel=cp;en.VERSION=rc;en.toFormData=Ou;en.AxiosError=Le;en.Cancel=en.CanceledError;en.all=function(s){return Promise.all(s)};en.spread=zb;en.isAxiosError=Mb;en.mergeConfig=ml;en.AxiosHeaders=En;en.formToJSON=r=>sp(F.isHTMLForm(r)?new FormData(r):r);en.getAdapter=pp.getAdapter;en.HttpStatusCode=Ws;en.default=en;const{Axios:W1,AxiosError:$1,CanceledError:eS,isCancel:tS,CancelToken:nS,VERSION:aS,all:lS,Cancel:iS,isAxiosError:rS,spread:uS,toFormData:oS,AxiosHeaders:sS,HttpStatusCode:cS,formToJSON:fS,getAdapter:dS,mergeConfig:hS,create:mS}=en,Bb={Mon:0,Tue:1,Wed:2,Thu:3,Fri:4,Sat:5,Sun:6},Ub="Europe/Berlin";function yp(r=new Date){try{const d=new Intl.DateTimeFormat("en-GB",{timeZone:Ub,weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(r);let c,g="00",y="00";for(const O of d)O.type==="weekday"&&(c=O.value),O.type==="hour"&&(g=String(O.value).padStart(2,"0")),O.type==="minute"&&(y=String(O.value).padStart(2,"0"));const w=Bb[c];return w===void 0?null:{weekdayMon0:w,hhmm:`${g}:${y}`}}catch{return null}}function kb(r,s,d){return!Array.isArray(r)||r.length===0?!1:r.filter(g=>Number(g.dayOfWeek)===s&&!g.closed).some(g=>{var O,C;const y=(O=g.openingTime)==null?void 0:O.substring(0,5),w=(C=g.closingTime)==null?void 0:C.substring(0,5);return y&&w&&d>=y&&d<=w})}const Dt=en.create({withCredentials:!0,timeout:6e5});Dt.interceptors.response.use(r=>r,r=>{var c,g;const s=(c=r.response)==null?void 0:c.status,d=((g=r.config)==null?void 0:g.url)??"";return s===401&&typeof d=="string"&&d.includes("/proxy")&&window.location.reload(),Promise.reject(r)});const Lt=async(r,s=!1)=>{var d,c,g;try{const y=await r();return s?y:y.data}catch(y){const w=(d=y==null?void 0:y.response)==null?void 0:d.status,O=(c=y==null?void 0:y.response)==null?void 0:c.data,C=typeof(O==null?void 0:O.detail)=="string"?O.detail:Array.isArray(O==null?void 0:O.detail)&&((g=O.detail[0])!=null&&g.msg)?String(O.detail[0].msg):null;return{error:(O==null?void 0:O.error)||C||"Ein unerwarteter Fehler ist aufgetreten.",status:w,detail:O==null?void 0:O.detail,details:(O==null?void 0:O.details)??(O==null?void 0:O.detail),t2medCode:(O==null?void 0:O.t2medCode)??null,userMessage:(O==null?void 0:O.userMessage)??null,level:(O==null?void 0:O.level)??null,source:(O==null?void 0:O.source)??null,operation:(O==null?void 0:O.operation)??null}}},Lb=async()=>Lt(()=>Dt.get("/cert-exists")),Hb=async r=>Lt(()=>Dt.post("/register-certificate",{token:r}),!0),bp=async r=>Lt(()=>Dt.post("/proxy/api/v1/patient",r)),qb=async(r,s)=>{const d=Number(r),c=Number(s);return Lt(()=>Dt.get(`/proxy/api/v1/patient/status/${d}/${c}`))},Kb=async()=>{const r=await Lt(()=>Dt.post("/proxy/api/v1/patient/no-appointment/consume",{}));if(r!=null&&r.error)return r;const s=typeof(r==null?void 0:r.status)=="string"?r.status:null;return s==="FULL"||s==="CONSUMED"?{walkInStatus:s}:s==="NOT_IN_OPENING_HOURS"?{error:"NOT_IN_OPENING_HOURS",detail:"NOT_IN_OPENING_HOURS"}:{error:"Unerwartete Antwort vom Server.",status:r==null?void 0:r.status,detail:r==null?void 0:r.detail}},Vb=async()=>Lt(()=>Dt.get("/proxy/api/v1/buttonconfig/terminal")),Gb=async()=>Lt(()=>Dt.get("/proxy/api/v1/terminalflowconfig/terminal")),Sp=async()=>Lt(()=>Dt.get("/proxy/api/v1/openingtime/terminal")),Yb=async()=>Lt(()=>Dt.get("/proxy/api/v1/openingtime/terminal/walk-in-window-open")),Xb=async r=>Lt(()=>Dt.post("/t2med/requestCheckin",{note:r})),Zb=async r=>Lt(()=>Dt.post("/t2med/checkin",{sitzungHandle:r})),Ep=async()=>Lt(()=>Dt.get("/t2med/dev/allowed")),xp=async({code:r=502,operation:s="karteanfordern",statusText:d}={})=>Lt(()=>Dt.post("/t2med/dev/mock-error",{code:r,operation:s,...d!=null?{statusText:d}:{}})),Qb=async()=>Lt(()=>Dt.get("/t2med/dev/scenarios")),_m=async r=>Lt(()=>Dt.post("/t2med/dev/scenario",{scenarioId:r??null})),Op=async()=>Lt(()=>Dt.post("/t2med/setup-exists")),Fb=async r=>Lt(()=>Dt.post("/t2med/auth",r)),Jb=async()=>Lt(()=>Dt.get("/t2med/structure")),Pb=async r=>Lt(()=>Dt.post("/t2med/terminals",r)),Ib=async r=>Lt(()=>Dt.post("/t2med/complete",r)),Wb=async()=>Lt(()=>Dt.get("/t2med/waiting-room")),$b=async r=>Lt(()=>Dt.post("/t2med/waiting-room/entry",r)),Np=async()=>Lt(()=>Dt.post("/sync/setup-exists")),e1=async()=>Lt(()=>Dt.get("/sync/config")),t1=async r=>Lt(()=>Dt.post("/sync/config",r)),n1=async(r={})=>Lt(()=>Dt.post("/sync/pick-folder",r)),a1=async()=>Lt(()=>Dt.get("/sync/smb/status")),l1=async r=>Lt(()=>Dt.post("/sync/smb",r));function i1(r){if(!r)return!1;if(typeof r=="string")return r.trim().toLowerCase().includes("full");if(typeof r=="object"){const s=r.status??r.value??r.result??r.state??r.message??r.data;if(typeof s=="string")return s.trim().toLowerCase().includes("full")}return!1}async function r1(){const r=await Sp(),s=Array.isArray(r)?r:(r==null?void 0:r.data)||(r==null?void 0:r.openingTimes)||[];if(!s||s.length===0)return!1;const d=new Date,c=yp(d);let g,y;if(c)g=c.weekdayMon0,y=c.hhmm;else{const z=d.getDay();g=z===0?6:z-1,y=d.toTimeString().substring(0,5)}const O=s.filter(z=>Number(z.dayOfWeek)===g&&!z.closed).find(z=>{var oe,Q;const ne=(oe=z.openingTime)==null?void 0:oe.substring(0,5),I=(Q=z.closingTime)==null?void 0:Q.substring(0,5);return ne&&I&&y>=ne&&y<=I});if(!O)return!1;const C=O.timeSpanIndex??O.timespanindex??O.timespanIndex??O.TimeSpanIndex,j=Number(C);if(!Number.isFinite(j))return!1;const _=await qb(g,j);return i1(_)}function u1(r=6e4){const[s,d]=L.useState(!1),[c,g]=L.useState(!0),[y,w]=L.useState(null),O=L.useRef(null);return L.useEffect(()=>{let C=!1;const j=async()=>{try{const _=await r1();C||d(_)}catch(_){C||w(_)}finally{C||g(!1)}};return j(),O.current=setInterval(j,r),()=>{C=!0,O.current&&clearInterval(O.current)}},[r]),{blocked:s,loading:c,error:y}}function o1({onStart:r}){const{blocked:s}=u1();return b.jsxs("div",{className:"start-screen",children:[s&&b.jsxs("div",{className:"start-screen-banner",role:"status","aria-live":"polite",children:["Die Anmeldung ",b.jsx("strong",{children:"ohne Termin"})," ist im aktuellen Zeitraum nicht mehr möglich. Bitte wenden Sie sich direkt an unser medizinisches Fachpersonal an der Anmeldung, um Optionen für die kommenden Tage zu prüfen."]}),b.jsx("div",{className:"start-screen-body",children:b.jsx("img",{src:"/images/Emma_Start.png",alt:"Avatar",className:"avatar"})})]})}function s1(){return L.useEffect(()=>(window.__currentScreen="closed",()=>{window.__currentScreen=null}),[]),b.jsxs("div",{className:"closed-screen",children:[b.jsx("h1",{children:"Außerhalb der Öffnungszeiten"}),b.jsx("p",{children:"Das Terminal ist derzeit nicht verfügbar."})]})}function oc(){const[r,s]=L.useState(null),[d,c]=L.useState(null);return L.useEffect(()=>{let g=!1;return(async()=>{const y=await Ep();if(!g){if(typeof(y==null?void 0:y.allowed)=="boolean"){s(y.allowed),c(null);return}s(!1),c((y==null?void 0:y.error)??"Dev-Modus konnte nicht abgefragt werden.")}})(),()=>{g=!0}},[]),{allowed:r===!0,resolved:typeof r=="boolean",error:d}}var pu={exports:{}};/*!
 * 
 *   react-simple-keyboard v3.8.187
 *   https://github.com/hodgef/react-simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */var c1=pu.exports,Rm;function f1(){return Rm||(Rm=1,(function(r,s){(function(d,c){r.exports=c(gu())})(c1,(function(d){return(function(){var c={981:function(){typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&(function(O){if("Element"in O){var C="classList",j="prototype",_=O.Element[j],z=Object,ne=String[j].trim||function(){return this.replace(/^\s+|\s+$/g,"")},I=Array[j].indexOf||function(fe){for(var Se=0,De=this.length;Se<De;Se++)if(Se in this&&this[Se]===fe)return Se;return-1},oe=function(fe,Se){this.name=fe,this.code=DOMException[fe],this.message=Se},Q=function(fe,Se){if(Se==="")throw new oe("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(Se))throw new oe("INVALID_CHARACTER_ERR","The token must not contain space characters.");return I.call(fe,Se)},Z=function(fe){for(var Se=ne.call(fe.getAttribute("class")||""),De=Se?Se.split(/\s+/):[],ue=0,we=De.length;ue<we;ue++)this.push(De[ue]);this._updateClassName=function(){fe.setAttribute("class",this.toString())}},P=Z[j]=[],ce=function(){return new Z(this)};if(oe[j]=Error[j],P.item=function(fe){return this[fe]||null},P.contains=function(fe){return~Q(this,fe+"")},P.add=function(){var fe,Se=arguments,De=0,ue=Se.length,we=!1;do~Q(this,fe=Se[De]+"")||(this.push(fe),we=!0);while(++De<ue);we&&this._updateClassName()},P.remove=function(){var fe,Se,De=arguments,ue=0,we=De.length,at=!1;do for(Se=Q(this,fe=De[ue]+"");~Se;)this.splice(Se,1),at=!0,Se=Q(this,fe);while(++ue<we);at&&this._updateClassName()},P.toggle=function(fe,Se){var De=this.contains(fe),ue=De?Se!==!0&&"remove":Se!==!1&&"add";return ue&&this[ue](fe),Se===!0||Se===!1?Se:!De},P.replace=function(fe,Se){var De=Q(fe+"");~De&&(this.splice(De,1,Se),this._updateClassName())},P.toString=function(){return this.join(" ")},z.defineProperty){var ye={get:ce,enumerable:!0,configurable:!0};try{z.defineProperty(_,C,ye)}catch(fe){fe.number!==void 0&&fe.number!==-2146823252||(ye.enumerable=!1,z.defineProperty(_,C,ye))}}else z[j].__defineGetter__&&_.__defineGetter__(C,ce)}})(self),(function(){var O=document.createElement("_");if(O.classList.add("c1","c2"),!O.classList.contains("c2")){var C=function(_){var z=DOMTokenList.prototype[_];DOMTokenList.prototype[_]=function(ne){var I,oe=arguments.length;for(I=0;I<oe;I++)ne=arguments[I],z.call(this,ne)}};C("add"),C("remove")}if(O.classList.toggle("c3",!1),O.classList.contains("c3")){var j=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,z){return 1 in arguments&&!this.contains(_)==!z?z:j.call(this,_)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(_,z){var ne=this.toString().split(" "),I=ne.indexOf(_+"");~I&&(ne=ne.slice(I),this.remove.apply(this,ne),this.add(z),this.add.apply(this,ne.slice(1)))}),O=null})())},548:function(O){O.exports=(function(){var C={9306:function(p,E,l){var u=l(4901),f=l(6823),h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not a function")}},5548:function(p,E,l){var u=l(3517),f=l(6823),h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not a constructor")}},3506:function(p,E,l){var u=l(3925),f=String,h=TypeError;p.exports=function(m){if(u(m))return m;throw new h("Can't set "+f(m)+" as a prototype")}},6469:function(p,E,l){var u=l(8227),f=l(2360),h=l(4913).f,m=u("unscopables"),S=Array.prototype;S[m]===void 0&&h(S,m,{configurable:!0,value:f(null)}),p.exports=function(N){S[m][N]=!0}},7829:function(p,E,l){var u=l(8183).charAt;p.exports=function(f,h,m){return h+(m&&u(f,h).length||1)}},8551:function(p,E,l){var u=l(34),f=String,h=TypeError;p.exports=function(m){if(u(m))return m;throw new h(f(m)+" is not an object")}},235:function(p,E,l){var u=l(9213).forEach,f=l(4598)("forEach");p.exports=f?[].forEach:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}},7916:function(p,E,l){var u=l(6080),f=l(9565),h=l(8981),m=l(6319),S=l(4209),N=l(3517),x=l(6198),T=l(4659),R=l(4527),H=l(81),M=l(851),D=l(9539),K=Array;p.exports=function(q){var Y=N(this),G=arguments.length,$=G>1?arguments[1]:void 0,ie=$!==void 0;ie&&($=u($,G>2?arguments[2]:void 0));var J,ve,Ee,me,Oe,Ne,re=h(q),Be=M(re),ze=0;if(!Be||this===K&&S(Be))for(J=x(re),ve=Y?new this(J):K(J);J>ze;ze++)Ne=ie?$(re[ze],ze):re[ze],T(ve,ze,Ne);else for(ve=Y?new this:[],Oe=(me=H(re,Be)).next;!(Ee=f(Oe,me)).done;ze++){Ne=ie?m(me,$,[Ee.value,ze],!0):Ee.value;try{T(ve,ze,Ne)}catch(Ae){D(me,"throw",Ae)}}return R(ve,ze),ve}},9617:function(p,E,l){var u=l(5397),f=l(5610),h=l(6198),m=function(S){return function(N,x,T){var R=u(N),H=h(R);if(H===0)return!S&&-1;var M,D=f(T,H);if(S&&x!=x){for(;H>D;)if((M=R[D++])!=M)return!0}else for(;H>D;D++)if((S||D in R)&&R[D]===x)return S||D||0;return!S&&-1}};p.exports={includes:m(!0),indexOf:m(!1)}},9213:function(p,E,l){var u=l(6080),f=l(7055),h=l(8981),m=l(6198),S=l(1469),N=l(4659),x=function(T){var R=T===1,H=T===2,M=T===3,D=T===4,K=T===6,q=T===7,Y=T===5||K;return function(G,$,ie){for(var J,ve,Ee=h(G),me=f(Ee),Oe=m(me),Ne=u($,ie),re=0,Be=0,ze=R?S(G,Oe):H||q?S(G,0):void 0;Oe>re;re++)if((Y||re in me)&&(ve=Ne(J=me[re],re,Ee),T))if(R)N(ze,re,ve);else if(ve)switch(T){case 3:return!0;case 5:return J;case 6:return re;case 2:N(ze,Be++,J)}else switch(T){case 4:return!1;case 7:N(ze,Be++,J)}return K?-1:M||D?D:ze}};p.exports={forEach:x(0),map:x(1),filter:x(2),some:x(3),every:x(4),find:x(5),findIndex:x(6),filterReject:x(7)}},597:function(p,E,l){var u=l(9039),f=l(8227),h=l(9519),m=f("species");p.exports=function(S){return h>=51||!u((function(){var N=[];return(N.constructor={})[m]=function(){return{foo:1}},N[S](Boolean).foo!==1}))}},4598:function(p,E,l){var u=l(9039);p.exports=function(f,h){var m=[][f];return!!m&&u((function(){m.call(null,h||function(){return 1},1)}))}},926:function(p,E,l){var u=l(9306),f=l(8981),h=l(7055),m=l(6198),S=TypeError,N="Reduce of empty array with no initial value",x=function(T){return function(R,H,M,D){var K=f(R),q=h(K),Y=m(K);if(u(H),Y===0&&M<2)throw new S(N);var G=T?Y-1:0,$=T?-1:1;if(M<2)for(;;){if(G in q){D=q[G],G+=$;break}if(G+=$,T?G<0:Y<=G)throw new S(N)}for(;T?G>=0:Y>G;G+=$)G in q&&(D=H(D,q[G],G,K));return D}};p.exports={left:x(!1),right:x(!0)}},4527:function(p,E,l){var u=l(3724),f=l(4376),h=TypeError,m=Object.getOwnPropertyDescriptor,S=u&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}})();p.exports=S?function(N,x){if(f(N)&&!m(N,"length").writable)throw new h("Cannot set read only .length");return N.length=x}:function(N,x){return N.length=x}},7680:function(p,E,l){var u=l(9504);p.exports=u([].slice)},4488:function(p,E,l){var u=l(7680),f=Math.floor,h=function(m,S){var N=m.length;if(N<8)for(var x,T,R=1;R<N;){for(T=R,x=m[R];T&&S(m[T-1],x)>0;)m[T]=m[--T];T!==R++&&(m[T]=x)}else for(var H=f(N/2),M=h(u(m,0,H),S),D=h(u(m,H),S),K=M.length,q=D.length,Y=0,G=0;Y<K||G<q;)m[Y+G]=Y<K&&G<q?S(M[Y],D[G])<=0?M[Y++]:D[G++]:Y<K?M[Y++]:D[G++];return m};p.exports=h},7433:function(p,E,l){var u=l(4376),f=l(3517),h=l(34),m=l(8227)("species"),S=Array;p.exports=function(N){var x;return u(N)&&(x=N.constructor,(f(x)&&(x===S||u(x.prototype))||h(x)&&(x=x[m])===null)&&(x=void 0)),x===void 0?S:x}},1469:function(p,E,l){var u=l(7433);p.exports=function(f,h){return new(u(f))(h===0?0:h)}},6319:function(p,E,l){var u=l(8551),f=l(9539);p.exports=function(h,m,S,N){try{return N?m(u(S)[0],S[1]):m(S)}catch(x){f(h,"throw",x)}}},4428:function(p,E,l){var u=l(8227)("iterator"),f=!1;try{var h=0,m={next:function(){return{done:!!h++}},return:function(){f=!0}};m[u]=function(){return this},Array.from(m,(function(){throw 2}))}catch{}p.exports=function(S,N){try{if(!N&&!f)return!1}catch{return!1}var x=!1;try{var T={};T[u]=function(){return{next:function(){return{done:x=!0}}}},S(T)}catch{}return x}},2195:function(p,E,l){var u=l(9504),f=u({}.toString),h=u("".slice);p.exports=function(m){return h(f(m),8,-1)}},6955:function(p,E,l){var u=l(2140),f=l(4901),h=l(2195),m=l(8227)("toStringTag"),S=Object,N=h((function(){return arguments})())==="Arguments";p.exports=u?h:function(x){var T,R,H;return x===void 0?"Undefined":x===null?"Null":typeof(R=(function(M,D){try{return M[D]}catch{}})(T=S(x),m))=="string"?R:N?h(T):(H=h(T))==="Object"&&f(T.callee)?"Arguments":H}},7740:function(p,E,l){var u=l(9297),f=l(5031),h=l(7347),m=l(4913);p.exports=function(S,N,x){for(var T=f(N),R=m.f,H=h.f,M=0;M<T.length;M++){var D=T[M];u(S,D)||x&&u(x,D)||R(S,D,H(N,D))}}},1436:function(p,E,l){var u=l(8227)("match");p.exports=function(f){var h=/./;try{"/./"[f](h)}catch{try{return h[u]=!1,"/./"[f](h)}catch{}}return!1}},2211:function(p,E,l){var u=l(9039);p.exports=!u((function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype}))},2529:function(p){p.exports=function(E,l){return{value:E,done:l}}},6699:function(p,E,l){var u=l(3724),f=l(4913),h=l(6980);p.exports=u?function(m,S,N){return f.f(m,S,h(1,N))}:function(m,S,N){return m[S]=N,m}},6980:function(p){p.exports=function(E,l){return{enumerable:!(1&E),configurable:!(2&E),writable:!(4&E),value:l}}},4659:function(p,E,l){var u=l(3724),f=l(4913),h=l(6980);p.exports=function(m,S,N){u?f.f(m,S,h(0,N)):m[S]=N}},3640:function(p,E,l){var u=l(8551),f=l(4270),h=TypeError;p.exports=function(m){if(u(this),m==="string"||m==="default")m="string";else if(m!=="number")throw new h("Incorrect hint");return f(this,m)}},2106:function(p,E,l){var u=l(283),f=l(4913);p.exports=function(h,m,S){return S.get&&u(S.get,m,{getter:!0}),S.set&&u(S.set,m,{setter:!0}),f.f(h,m,S)}},6840:function(p,E,l){var u=l(4901),f=l(4913),h=l(283),m=l(9433);p.exports=function(S,N,x,T){T||(T={});var R=T.enumerable,H=T.name!==void 0?T.name:N;if(u(x)&&h(x,H,T),T.global)R?S[N]=x:m(N,x);else{try{T.unsafe?S[N]&&(R=!0):delete S[N]}catch{}R?S[N]=x:f.f(S,N,{value:x,enumerable:!1,configurable:!T.nonConfigurable,writable:!T.nonWritable})}return S}},9433:function(p,E,l){var u=l(4576),f=Object.defineProperty;p.exports=function(h,m){try{f(u,h,{value:m,configurable:!0,writable:!0})}catch{u[h]=m}return m}},4606:function(p,E,l){var u=l(6823),f=TypeError;p.exports=function(h,m){if(!delete h[m])throw new f("Cannot delete property "+u(m)+" of "+u(h))}},3724:function(p,E,l){var u=l(9039);p.exports=!u((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},4055:function(p,E,l){var u=l(4576),f=l(34),h=u.document,m=f(h)&&f(h.createElement);p.exports=function(S){return m?h.createElement(S):{}}},6837:function(p){var E=TypeError;p.exports=function(l){if(l>9007199254740991)throw new E("Maximum allowed index exceeded");return l}},7400:function(p){p.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(p,E,l){var u=l(4055)("span").classList,f=u&&u.constructor&&u.constructor.prototype;p.exports=f===Object.prototype?void 0:f},8727:function(p){p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(p,E,l){var u=l(2839).match(/firefox\/(\d+)/i);p.exports=!!u&&+u[1]},3763:function(p,E,l){var u=l(2839);p.exports=/MSIE|Trident/.test(u)},6193:function(p,E,l){var u=l(4215);p.exports=u==="NODE"},2839:function(p,E,l){var u=l(4576).navigator,f=u&&u.userAgent;p.exports=f?String(f):""},9519:function(p,E,l){var u,f,h=l(4576),m=l(2839),S=h.process,N=h.Deno,x=S&&S.versions||N&&N.version,T=x&&x.v8;T&&(f=(u=T.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&m&&(!(u=m.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=m.match(/Chrome\/(\d+)/))&&(f=+u[1]),p.exports=f},3607:function(p,E,l){var u=l(2839).match(/AppleWebKit\/(\d+)\./);p.exports=!!u&&+u[1]},4215:function(p,E,l){var u=l(4576),f=l(2839),h=l(2195),m=function(S){return f.slice(0,S.length)===S};p.exports=m("Bun/")?"BUN":m("Cloudflare-Workers")?"CLOUDFLARE":m("Deno/")?"DENO":m("Node.js/")?"NODE":u.Bun&&typeof Bun.version=="string"?"BUN":u.Deno&&typeof Deno.version=="object"?"DENO":h(u.process)==="process"?"NODE":u.window&&u.document?"BROWSER":"REST"},6518:function(p,E,l){var u=l(4576),f=l(7347).f,h=l(6699),m=l(6840),S=l(9433),N=l(7740),x=l(2796);p.exports=function(T,R){var H,M,D,K,q,Y=T.target,G=T.global,$=T.stat;if(H=G?u:$?u[Y]||S(Y,{}):u[Y]&&u[Y].prototype)for(M in R){if(K=R[M],D=T.dontCallGetSet?(q=f(H,M))&&q.value:H[M],!x(G?M:Y+($?".":"#")+M,T.forced)&&D!==void 0){if(typeof K==typeof D)continue;N(K,D)}(T.sham||D&&D.sham)&&h(K,"sham",!0),m(H,M,K,T)}}},9039:function(p){p.exports=function(E){try{return!!E()}catch{return!0}}},9228:function(p,E,l){l(7495);var u=l(9565),f=l(6840),h=l(7323),m=l(9039),S=l(8227),N=l(6699),x=S("species"),T=RegExp.prototype;p.exports=function(R,H,M,D){var K=S(R),q=!m((function(){var ie={};return ie[K]=function(){return 7},""[R](ie)!==7})),Y=q&&!m((function(){var ie=!1,J=/a/;if(R==="split"){var ve={};ve[x]=function(){return J},(J={constructor:ve,flags:""})[K]=/./[K]}return J.exec=function(){return ie=!0,null},J[K](""),!ie}));if(!q||!Y||M){var G=/./[K],$=H(K,""[R],(function(ie,J,ve,Ee,me){var Oe=J.exec;return Oe===h||Oe===T.exec?q&&!me?{done:!0,value:u(G,J,ve,Ee)}:{done:!0,value:u(ie,ve,J,Ee)}:{done:!1}}));f(String.prototype,R,$[0]),f(T,K,$[1])}D&&N(T[K],"sham",!0)}},8745:function(p,E,l){var u=l(616),f=Function.prototype,h=f.apply,m=f.call;p.exports=typeof Reflect=="object"&&Reflect.apply||(u?m.bind(h):function(){return m.apply(h,arguments)})},6080:function(p,E,l){var u=l(7476),f=l(9306),h=l(616),m=u(u.bind);p.exports=function(S,N){return f(S),N===void 0?S:h?m(S,N):function(){return S.apply(N,arguments)}}},616:function(p,E,l){var u=l(9039);p.exports=!u((function(){var f=(function(){}).bind();return typeof f!="function"||f.hasOwnProperty("prototype")}))},566:function(p,E,l){var u=l(9504),f=l(9306),h=l(34),m=l(9297),S=l(7680),N=l(616),x=Function,T=u([].concat),R=u([].join),H={};p.exports=N?x.bind:function(M){var D=f(this),K=D.prototype,q=S(arguments,1),Y=function(){var G=T(q,S(arguments));return this instanceof Y?(function($,ie,J){if(!m(H,ie)){for(var ve=[],Ee=0;Ee<ie;Ee++)ve[Ee]="a["+Ee+"]";H[ie]=x("C,a","return new C("+R(ve,",")+")")}return H[ie]($,J)})(D,G.length,G):D.apply(M,G)};return h(K)&&(Y.prototype=K),Y}},9565:function(p,E,l){var u=l(616),f=Function.prototype.call;p.exports=u?f.bind(f):function(){return f.apply(f,arguments)}},350:function(p,E,l){var u=l(3724),f=l(9297),h=Function.prototype,m=u&&Object.getOwnPropertyDescriptor,S=f(h,"name"),N=S&&(function(){}).name==="something",x=S&&(!u||u&&m(h,"name").configurable);p.exports={EXISTS:S,PROPER:N,CONFIGURABLE:x}},6706:function(p,E,l){var u=l(9504),f=l(9306);p.exports=function(h,m,S){try{return u(f(Object.getOwnPropertyDescriptor(h,m)[S]))}catch{}}},7476:function(p,E,l){var u=l(2195),f=l(9504);p.exports=function(h){if(u(h)==="Function")return f(h)}},9504:function(p,E,l){var u=l(616),f=Function.prototype,h=f.call,m=u&&f.bind.bind(h,h);p.exports=u?m:function(S){return function(){return h.apply(S,arguments)}}},7751:function(p,E,l){var u=l(4576),f=l(4901);p.exports=function(h,m){return arguments.length<2?(S=u[h],f(S)?S:void 0):u[h]&&u[h][m];var S}},851:function(p,E,l){var u=l(6955),f=l(5966),h=l(4117),m=l(6269),S=l(8227)("iterator");p.exports=function(N){if(!h(N))return f(N,S)||f(N,"@@iterator")||m[u(N)]}},81:function(p,E,l){var u=l(9565),f=l(9306),h=l(8551),m=l(6823),S=l(851),N=TypeError;p.exports=function(x,T){var R=arguments.length<2?S(x):T;if(f(R))return h(u(R,x));throw new N(m(x)+" is not iterable")}},5966:function(p,E,l){var u=l(9306),f=l(4117);p.exports=function(h,m){var S=h[m];return f(S)?void 0:u(S)}},2478:function(p,E,l){var u=l(9504),f=l(8981),h=Math.floor,m=u("".charAt),S=u("".replace),N=u("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;p.exports=function(R,H,M,D,K,q){var Y=M+R.length,G=D.length,$=T;return K!==void 0&&(K=f(K),$=x),S(q,$,(function(ie,J){var ve;switch(m(J,0)){case"$":return"$";case"&":return R;case"`":return N(H,0,M);case"'":return N(H,Y);case"<":ve=K[N(J,1,-1)];break;default:var Ee=+J;if(Ee===0)return ie;if(Ee>G){var me=h(Ee/10);return me===0?ie:me<=G?D[me-1]===void 0?m(J,1):D[me-1]+m(J,1):ie}ve=D[Ee-1]}return ve===void 0?"":ve}))}},4576:function(p,E,l){var u=function(f){return f&&f.Math===Math&&f};p.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof l.g=="object"&&l.g)||u(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297:function(p,E,l){var u=l(9504),f=l(8981),h=u({}.hasOwnProperty);p.exports=Object.hasOwn||function(m,S){return h(f(m),S)}},421:function(p){p.exports={}},397:function(p,E,l){var u=l(7751);p.exports=u("document","documentElement")},5917:function(p,E,l){var u=l(3724),f=l(9039),h=l(4055);p.exports=!u&&!f((function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7}))},7055:function(p,E,l){var u=l(9504),f=l(9039),h=l(2195),m=Object,S=u("".split);p.exports=f((function(){return!m("z").propertyIsEnumerable(0)}))?function(N){return h(N)==="String"?S(N,""):m(N)}:m},3167:function(p,E,l){var u=l(4901),f=l(34),h=l(2967);p.exports=function(m,S,N){var x,T;return h&&u(x=S.constructor)&&x!==N&&f(T=x.prototype)&&T!==N.prototype&&h(m,T),m}},3706:function(p,E,l){var u=l(9504),f=l(4901),h=l(7629),m=u(Function.toString);f(h.inspectSource)||(h.inspectSource=function(S){return m(S)}),p.exports=h.inspectSource},1181:function(p,E,l){var u,f,h,m=l(8622),S=l(4576),N=l(34),x=l(6699),T=l(9297),R=l(7629),H=l(6119),M=l(421),D="Object already initialized",K=S.TypeError,q=S.WeakMap;if(m||R.state){var Y=R.state||(R.state=new q);Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,u=function($,ie){if(Y.has($))throw new K(D);return ie.facade=$,Y.set($,ie),ie},f=function($){return Y.get($)||{}},h=function($){return Y.has($)}}else{var G=H("state");M[G]=!0,u=function($,ie){if(T($,G))throw new K(D);return ie.facade=$,x($,G,ie),ie},f=function($){return T($,G)?$[G]:{}},h=function($){return T($,G)}}p.exports={set:u,get:f,has:h,enforce:function($){return h($)?f($):u($,{})},getterFor:function($){return function(ie){var J;if(!N(ie)||(J=f(ie)).type!==$)throw new K("Incompatible receiver, "+$+" required");return J}}}},4209:function(p,E,l){var u=l(8227),f=l(6269),h=u("iterator"),m=Array.prototype;p.exports=function(S){return S!==void 0&&(f.Array===S||m[h]===S)}},4376:function(p,E,l){var u=l(2195);p.exports=Array.isArray||function(f){return u(f)==="Array"}},4901:function(p){var E=typeof document=="object"&&document.all;p.exports=E===void 0&&E!==void 0?function(l){return typeof l=="function"||l===E}:function(l){return typeof l=="function"}},3517:function(p,E,l){var u=l(9504),f=l(9039),h=l(4901),m=l(6955),S=l(7751),N=l(3706),x=function(){},T=S("Reflect","construct"),R=/^\s*(?:class|function)\b/,H=u(R.exec),M=!R.test(x),D=function(q){if(!h(q))return!1;try{return T(x,[],q),!0}catch{return!1}},K=function(q){if(!h(q))return!1;switch(m(q)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M||!!H(R,N(q))}catch{return!0}};K.sham=!0,p.exports=!T||f((function(){var q;return D(D.call)||!D(Object)||!D((function(){q=!0}))||q}))?K:D},2796:function(p,E,l){var u=l(9039),f=l(4901),h=/#|\.prototype\./,m=function(R,H){var M=N[S(R)];return M===T||M!==x&&(f(H)?u(H):!!H)},S=m.normalize=function(R){return String(R).replace(h,".").toLowerCase()},N=m.data={},x=m.NATIVE="N",T=m.POLYFILL="P";p.exports=m},2087:function(p,E,l){var u=l(34),f=Math.floor;p.exports=Number.isInteger||function(h){return!u(h)&&isFinite(h)&&f(h)===h}},4117:function(p){p.exports=function(E){return E==null}},34:function(p,E,l){var u=l(4901);p.exports=function(f){return typeof f=="object"?f!==null:u(f)}},3925:function(p,E,l){var u=l(34);p.exports=function(f){return u(f)||f===null}},6395:function(p){p.exports=!1},5810:function(p,E,l){var u=l(34),f=l(1181).get;p.exports=function(h){if(!u(h))return!1;var m=f(h);return!!m&&m.type==="RawJSON"}},788:function(p,E,l){var u=l(34),f=l(2195),h=l(8227)("match");p.exports=function(m){var S;return u(m)&&((S=m[h])!==void 0?!!S:f(m)==="RegExp")}},757:function(p,E,l){var u=l(7751),f=l(4901),h=l(1625),m=l(7040),S=Object;p.exports=m?function(N){return typeof N=="symbol"}:function(N){var x=u("Symbol");return f(x)&&h(x.prototype,S(N))}},9539:function(p,E,l){var u=l(9565),f=l(8551),h=l(5966);p.exports=function(m,S,N){var x,T;f(m);try{if(!(x=h(m,"return"))){if(S==="throw")throw N;return N}x=u(x,m)}catch(R){T=!0,x=R}if(S==="throw")throw N;if(T)throw x;return f(x),N}},3994:function(p,E,l){var u=l(7657).IteratorPrototype,f=l(2360),h=l(6980),m=l(687),S=l(6269),N=function(){return this};p.exports=function(x,T,R,H){var M=T+" Iterator";return x.prototype=f(u,{next:h(+!H,R)}),m(x,M,!1,!0),S[M]=N,x}},1088:function(p,E,l){var u=l(6518),f=l(9565),h=l(6395),m=l(350),S=l(4901),N=l(3994),x=l(2787),T=l(2967),R=l(687),H=l(6699),M=l(6840),D=l(8227),K=l(6269),q=l(7657),Y=m.PROPER,G=m.CONFIGURABLE,$=q.IteratorPrototype,ie=q.BUGGY_SAFARI_ITERATORS,J=D("iterator"),ve="keys",Ee="values",me="entries",Oe=function(){return this};p.exports=function(Ne,re,Be,ze,Ae,ft,We){N(Be,re,ze);var Ye,$e,Xe,He=function(Qe){if(Qe===Ae&&Ce)return Ce;if(!ie&&Qe&&Qe in Re)return Re[Qe];switch(Qe){case ve:case Ee:case me:return function(){return new Be(this,Qe)}}return function(){return new Be(this)}},Je=re+" Iterator",it=!1,Re=Ne.prototype,_e=Re[J]||Re["@@iterator"]||Ae&&Re[Ae],Ce=!ie&&_e||He(Ae),Ze=re==="Array"&&Re.entries||_e;if(Ze&&(Ye=x(Ze.call(new Ne)))!==Object.prototype&&Ye.next&&(h||x(Ye)===$||(T?T(Ye,$):S(Ye[J])||M(Ye,J,Oe)),R(Ye,Je,!0,!0),h&&(K[Je]=Oe)),Y&&Ae===Ee&&_e&&_e.name!==Ee&&(!h&&G?H(Re,"name",Ee):(it=!0,Ce=function(){return f(_e,this)})),Ae)if($e={values:He(Ee),keys:ft?Ce:He(ve),entries:He(me)},We)for(Xe in $e)(ie||it||!(Xe in Re))&&M(Re,Xe,$e[Xe]);else u({target:re,proto:!0,forced:ie||it},$e);return h&&!We||Re[J]===Ce||M(Re,J,Ce,{name:Ae}),K[re]=Ce,$e}},7657:function(p,E,l){var u,f,h,m=l(9039),S=l(4901),N=l(34),x=l(2360),T=l(2787),R=l(6840),H=l(8227),M=l(6395),D=H("iterator"),K=!1;[].keys&&("next"in(h=[].keys())?(f=T(T(h)))!==Object.prototype&&(u=f):K=!0),!N(u)||m((function(){var q={};return u[D].call(q)!==q}))?u={}:M&&(u=x(u)),S(u[D])||R(u,D,(function(){return this})),p.exports={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:K}},6269:function(p){p.exports={}},6198:function(p,E,l){var u=l(8014);p.exports=function(f){return u(f.length)}},283:function(p,E,l){var u=l(9504),f=l(9039),h=l(4901),m=l(9297),S=l(3724),N=l(350).CONFIGURABLE,x=l(3706),T=l(1181),R=T.enforce,H=T.get,M=String,D=Object.defineProperty,K=u("".slice),q=u("".replace),Y=u([].join),G=S&&!f((function(){return D((function(){}),"length",{value:8}).length!==8})),$=String(String).split("String"),ie=p.exports=function(J,ve,Ee){K(M(ve),0,7)==="Symbol("&&(ve="["+q(M(ve),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Ee&&Ee.getter&&(ve="get "+ve),Ee&&Ee.setter&&(ve="set "+ve),(!m(J,"name")||N&&J.name!==ve)&&(S?D(J,"name",{value:ve,configurable:!0}):J.name=ve),G&&Ee&&m(Ee,"arity")&&J.length!==Ee.arity&&D(J,"length",{value:Ee.arity});try{Ee&&m(Ee,"constructor")&&Ee.constructor?S&&D(J,"prototype",{writable:!1}):J.prototype&&(J.prototype=void 0)}catch{}var me=R(J);return m(me,"source")||(me.source=Y($,typeof ve=="string"?ve:"")),J};Function.prototype.toString=ie((function(){return h(this)&&H(this).source||x(this)}),"toString")},741:function(p){var E=Math.ceil,l=Math.floor;p.exports=Math.trunc||function(u){var f=+u;return(f>0?l:E)(f)}},7819:function(p,E,l){var u=l(9039);p.exports=!u((function(){var f="9007199254740993",h=JSON.rawJSON(f);return!JSON.isRawJSON(h)||JSON.stringify(h)!==f}))},5749:function(p,E,l){var u=l(788),f=TypeError;p.exports=function(h){if(u(h))throw new f("The method doesn't accept regular expressions");return h}},4213:function(p,E,l){var u=l(3724),f=l(9504),h=l(9565),m=l(9039),S=l(1072),N=l(3717),x=l(8773),T=l(8981),R=l(7055),H=Object.assign,M=Object.defineProperty,D=f([].concat);p.exports=!H||m((function(){if(u&&H({b:1},H(M({},"a",{enumerable:!0,get:function(){M(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var K={},q={},Y=Symbol("assign detection"),G="abcdefghijklmnopqrst";return K[Y]=7,G.split("").forEach((function($){q[$]=$})),H({},K)[Y]!==7||S(H({},q)).join("")!==G}))?function(K,q){for(var Y=T(K),G=arguments.length,$=1,ie=N.f,J=x.f;G>$;)for(var ve,Ee=R(arguments[$++]),me=ie?D(S(Ee),ie(Ee)):S(Ee),Oe=me.length,Ne=0;Oe>Ne;)ve=me[Ne++],u&&!h(J,Ee,ve)||(Y[ve]=Ee[ve]);return Y}:H},2360:function(p,E,l){var u,f=l(8551),h=l(6801),m=l(8727),S=l(421),N=l(397),x=l(4055),T=l(6119),R="prototype",H="script",M=T("IE_PROTO"),D=function(){},K=function(G){return"<"+H+">"+G+"</"+H+">"},q=function(G){G.write(K("")),G.close();var $=G.parentWindow.Object;return G=null,$},Y=function(){try{u=new ActiveXObject("htmlfile")}catch{}var G,$,ie;Y=typeof document<"u"?document.domain&&u?q(u):($=x("iframe"),ie="java"+H+":",$.style.display="none",N.appendChild($),$.src=String(ie),(G=$.contentWindow.document).open(),G.write(K("document.F=Object")),G.close(),G.F):q(u);for(var J=m.length;J--;)delete Y[R][m[J]];return Y()};S[M]=!0,p.exports=Object.create||function(G,$){var ie;return G!==null?(D[R]=f(G),ie=new D,D[R]=null,ie[M]=G):ie=Y(),$===void 0?ie:h.f(ie,$)}},6801:function(p,E,l){var u=l(3724),f=l(8686),h=l(4913),m=l(8551),S=l(5397),N=l(1072);E.f=u&&!f?Object.defineProperties:function(x,T){m(x);for(var R,H=S(T),M=N(T),D=M.length,K=0;D>K;)h.f(x,R=M[K++],H[R]);return x}},4913:function(p,E,l){var u=l(3724),f=l(5917),h=l(8686),m=l(8551),S=l(6969),N=TypeError,x=Object.defineProperty,T=Object.getOwnPropertyDescriptor,R="enumerable",H="configurable",M="writable";E.f=u?h?function(D,K,q){if(m(D),K=S(K),m(q),typeof D=="function"&&K==="prototype"&&"value"in q&&M in q&&!q[M]){var Y=T(D,K);Y&&Y[M]&&(D[K]=q.value,q={configurable:H in q?q[H]:Y[H],enumerable:R in q?q[R]:Y[R],writable:!1})}return x(D,K,q)}:x:function(D,K,q){if(m(D),K=S(K),m(q),f)try{return x(D,K,q)}catch{}if("get"in q||"set"in q)throw new N("Accessors not supported");return"value"in q&&(D[K]=q.value),D}},7347:function(p,E,l){var u=l(3724),f=l(9565),h=l(8773),m=l(6980),S=l(5397),N=l(6969),x=l(9297),T=l(5917),R=Object.getOwnPropertyDescriptor;E.f=u?R:function(H,M){if(H=S(H),M=N(M),T)try{return R(H,M)}catch{}if(x(H,M))return m(!f(h.f,H,M),H[M])}},298:function(p,E,l){var u=l(2195),f=l(5397),h=l(8480).f,m=l(7680),S=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];p.exports.f=function(N){return S&&u(N)==="Window"?(function(x){try{return h(x)}catch{return m(S)}})(N):h(f(N))}},8480:function(p,E,l){var u=l(1828),f=l(8727).concat("length","prototype");E.f=Object.getOwnPropertyNames||function(h){return u(h,f)}},3717:function(p,E){E.f=Object.getOwnPropertySymbols},2787:function(p,E,l){var u=l(9297),f=l(4901),h=l(8981),m=l(6119),S=l(2211),N=m("IE_PROTO"),x=Object,T=x.prototype;p.exports=S?x.getPrototypeOf:function(R){var H=h(R);if(u(H,N))return H[N];var M=H.constructor;return f(M)&&H instanceof M?M.prototype:H instanceof x?T:null}},1625:function(p,E,l){var u=l(9504);p.exports=u({}.isPrototypeOf)},1828:function(p,E,l){var u=l(9504),f=l(9297),h=l(5397),m=l(9617).indexOf,S=l(421),N=u([].push);p.exports=function(x,T){var R,H=h(x),M=0,D=[];for(R in H)!f(S,R)&&f(H,R)&&N(D,R);for(;T.length>M;)f(H,R=T[M++])&&(~m(D,R)||N(D,R));return D}},1072:function(p,E,l){var u=l(1828),f=l(8727);p.exports=Object.keys||function(h){return u(h,f)}},8773:function(p,E){var l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f=u&&!l.call({1:2},1);E.f=f?function(h){var m=u(this,h);return!!m&&m.enumerable}:l},2551:function(p,E,l){var u=l(6395),f=l(4576),h=l(9039),m=l(3607);p.exports=u||!h((function(){if(!(m&&m<535)){var S=Math.random();__defineSetter__.call(null,S,(function(){})),delete f[S]}}))},2967:function(p,E,l){var u=l(6706),f=l(34),h=l(7750),m=l(3506);p.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var S,N=!1,x={};try{(S=u(Object.prototype,"__proto__","set"))(x,[]),N=x instanceof Array}catch{}return function(T,R){return h(T),m(R),f(T)&&(N?S(T,R):T.__proto__=R),T}})():void 0)},3179:function(p,E,l){var u=l(2140),f=l(6955);p.exports=u?{}.toString:function(){return"[object "+f(this)+"]"}},4270:function(p,E,l){var u=l(9565),f=l(4901),h=l(34),m=TypeError;p.exports=function(S,N){var x,T;if(N==="string"&&f(x=S.toString)&&!h(T=u(x,S))||f(x=S.valueOf)&&!h(T=u(x,S))||N!=="string"&&f(x=S.toString)&&!h(T=u(x,S)))return T;throw new m("Can't convert object to primitive value")}},5031:function(p,E,l){var u=l(7751),f=l(9504),h=l(8480),m=l(3717),S=l(8551),N=f([].concat);p.exports=u("Reflect","ownKeys")||function(x){var T=h.f(S(x)),R=m.f;return R?N(T,R(x)):T}},8235:function(p,E,l){var u=l(9504),f=l(9297),h=SyntaxError,m=parseInt,S=String.fromCharCode,N=u("".charAt),x=u("".slice),T=u(/./.exec),R={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
`,"\\r":"\r","\\t":"	"},H=/^[\da-f]{4}$/i,M=/^[\u0000-\u001F]$/;p.exports=function(D,K){for(var q=!0,Y="";K<D.length;){var G=N(D,K);if(G==="\\"){var $=x(D,K,K+2);if(f(R,$))Y+=R[$],K+=2;else{if($!=="\\u")throw new h('Unknown escape sequence: "'+$+'"');var ie=x(D,K+=2,K+4);if(!T(H,ie))throw new h("Bad Unicode escape at: "+K);Y+=S(m(ie,16)),K+=4}}else{if(G==='"'){q=!1,K++;break}if(T(M,G))throw new h("Bad control character in string literal at: "+K);Y+=G,K++}}if(q)throw new h("Unterminated string at: "+K);return{value:Y,end:K}}},9167:function(p,E,l){var u=l(4576);p.exports=u},1056:function(p,E,l){var u=l(4913).f;p.exports=function(f,h,m){m in f||u(f,m,{configurable:!0,get:function(){return h[m]},set:function(S){h[m]=S}})}},6682:function(p,E,l){var u=l(9565),f=l(8551),h=l(4901),m=l(2195),S=l(7323),N=TypeError;p.exports=function(x,T){var R=x.exec;if(h(R)){var H=u(R,x,T);return H!==null&&f(H),H}if(m(x)==="RegExp")return u(S,x,T);throw new N("RegExp#exec called on incompatible receiver")}},7323:function(p,E,l){var u,f,h=l(9565),m=l(9504),S=l(655),N=l(7979),x=l(8429),T=l(5745),R=l(2360),H=l(1181).get,M=l(3635),D=l(8814),K=T("native-string-replace",String.prototype.replace),q=RegExp.prototype.exec,Y=q,G=m("".charAt),$=m("".indexOf),ie=m("".replace),J=m("".slice),ve=(f=/b*/g,h(q,u=/a/,"a"),h(q,f,"a"),u.lastIndex!==0||f.lastIndex!==0),Ee=x.BROKEN_CARET,me=/()??/.exec("")[1]!==void 0,Oe=function(Ne,re){for(var Be=Ne.groups=R(null),ze=0;ze<re.length;ze++){var Ae=re[ze];Be[Ae[0]]=Ne[Ae[1]]}};(ve||me||Ee||M||D)&&(Y=function(Ne){var re,Be,ze,Ae=this,ft=H(Ae),We=S(Ne),Ye=ft.raw;if(Ye)return Ye.lastIndex=Ae.lastIndex,re=h(Y,Ye,We),Ae.lastIndex=Ye.lastIndex,re&&ft.groups&&Oe(re,ft.groups),re;var $e=ft.groups,Xe=Ee&&Ae.sticky,He=h(N,Ae),Je=Ae.source,it=0,Re=We;if(Xe){He=ie(He,"y",""),$(He,"g")===-1&&(He+="g"),Re=J(We,Ae.lastIndex);var _e=Ae.lastIndex>0&&G(We,Ae.lastIndex-1);Ae.lastIndex>0&&(!Ae.multiline||Ae.multiline&&_e!==`
`&&_e!=="\r"&&_e!=="\u2028"&&_e!=="\u2029")&&(Je="(?: (?:"+Je+"))",Re=" "+Re,it++),Be=new RegExp("^(?:"+Je+")",He)}me&&(Be=new RegExp("^"+Je+"$(?!\\s)",He)),ve&&(ze=Ae.lastIndex);var Ce=h(q,Xe?Be:Ae,Re);return Xe?Ce?(Ce.input=We,Ce[0]=J(Ce[0],it),Ce.index=Ae.lastIndex,Ae.lastIndex+=Ce[0].length):Ae.lastIndex=0:ve&&Ce&&(Ae.lastIndex=Ae.global?Ce.index+Ce[0].length:ze),me&&Ce&&Ce.length>1&&h(K,Ce[0],Be,(function(){for(var Ze=1;Ze<arguments.length-2;Ze++)arguments[Ze]===void 0&&(Ce[Ze]=void 0)})),Ce&&$e&&Oe(Ce,$e),Ce}),p.exports=Y},5213:function(p,E,l){var u=l(4576),f=l(9039),h=u.RegExp,m=!f((function(){var S=!0;try{h(".","d")}catch{S=!1}var N={},x="",T=S?"dgimsy":"gimsy",R=function(D,K){Object.defineProperty(N,D,{get:function(){return x+=K,!0}})},H={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var M in S&&(H.hasIndices="d"),H)R(M,H[M]);return Object.getOwnPropertyDescriptor(h.prototype,"flags").get.call(N)!==T||x!==T}));p.exports={correct:m}},7979:function(p,E,l){var u=l(8551);p.exports=function(){var f=u(this),h="";return f.hasIndices&&(h+="d"),f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),f.dotAll&&(h+="s"),f.unicode&&(h+="u"),f.unicodeSets&&(h+="v"),f.sticky&&(h+="y"),h}},1034:function(p,E,l){var u=l(9565),f=l(9297),h=l(1625),m=l(5213),S=l(7979),N=RegExp.prototype;p.exports=m.correct?function(x){return x.flags}:function(x){return m.correct||!h(N,x)||f(x,"flags")?x.flags:u(S,x)}},8429:function(p,E,l){var u=l(9039),f=l(4576).RegExp,h=u((function(){var N=f("a","y");return N.lastIndex=2,N.exec("abcd")!==null})),m=h||u((function(){return!f("a","y").sticky})),S=h||u((function(){var N=f("^r","gy");return N.lastIndex=2,N.exec("str")!==null}));p.exports={BROKEN_CARET:S,MISSED_STICKY:m,UNSUPPORTED_Y:h}},3635:function(p,E,l){var u=l(9039),f=l(4576).RegExp;p.exports=u((function(){var h=f(".","s");return!(h.dotAll&&h.test(`
`)&&h.flags==="s")}))},8814:function(p,E,l){var u=l(9039),f=l(4576).RegExp;p.exports=u((function(){var h=f("(?<a>b)","g");return h.exec("b").groups.a!=="b"||"b".replace(h,"$<a>c")!=="bc"}))},7750:function(p,E,l){var u=l(4117),f=TypeError;p.exports=function(h){if(u(h))throw new f("Can't call method on "+h);return h}},7633:function(p,E,l){var u=l(7751),f=l(2106),h=l(8227),m=l(3724),S=h("species");p.exports=function(N){var x=u(N);m&&x&&!x[S]&&f(x,S,{configurable:!0,get:function(){return this}})}},687:function(p,E,l){var u=l(4913).f,f=l(9297),h=l(8227)("toStringTag");p.exports=function(m,S,N){m&&!N&&(m=m.prototype),m&&!f(m,h)&&u(m,h,{configurable:!0,value:S})}},6119:function(p,E,l){var u=l(5745),f=l(3392),h=u("keys");p.exports=function(m){return h[m]||(h[m]=f(m))}},7629:function(p,E,l){var u=l(6395),f=l(4576),h=l(9433),m="__core-js_shared__",S=p.exports=f[m]||h(m,{});(S.versions||(S.versions=[])).push({version:"3.49.0",mode:u?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(p,E,l){var u=l(7629);p.exports=function(f,h){return u[f]||(u[f]=h||{})}},2293:function(p,E,l){var u=l(8551),f=l(5548),h=l(4117),m=l(8227)("species");p.exports=function(S,N){var x,T=u(S).constructor;return T===void 0||h(x=u(T)[m])?N:f(x)}},8183:function(p,E,l){var u=l(9504),f=l(1291),h=l(655),m=l(7750),S=u("".charAt),N=u("".charCodeAt),x=u("".slice),T=function(R){return function(H,M){var D,K,q=h(m(H)),Y=f(M),G=q.length;return Y<0||Y>=G?R?"":void 0:(D=N(q,Y))<55296||D>56319||Y+1===G||(K=N(q,Y+1))<56320||K>57343?R?S(q,Y):D:R?x(q,Y,Y+2):K-56320+(D-55296<<10)+65536}};p.exports={codeAt:T(!1),charAt:T(!0)}},706:function(p,E,l){var u=l(350).PROPER,f=l(9039),h=l(7452);p.exports=function(m){return f((function(){return!!h[m]()||"​᠎"[m]()!=="​᠎"||u&&h[m].name!==m}))}},3802:function(p,E,l){var u=l(9504),f=l(7750),h=l(655),m=l(7452),S=u("".replace),N=RegExp("^["+m+"]+"),x=RegExp("(^|[^"+m+"])["+m+"]+$"),T=function(R){return function(H){var M=h(f(H));return 1&R&&(M=S(M,N,"")),2&R&&(M=S(M,x,"$1")),M}};p.exports={start:T(1),end:T(2),trim:T(3)}},4495:function(p,E,l){var u=l(9519),f=l(9039),h=l(4576).String;p.exports=!!Object.getOwnPropertySymbols&&!f((function(){var m=Symbol("symbol detection");return!h(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&u&&u<41}))},8242:function(p,E,l){var u=l(9565),f=l(7751),h=l(8227),m=l(6840);p.exports=function(){var S=f("Symbol"),N=S&&S.prototype,x=N&&N.valueOf,T=h("toPrimitive");N&&!N[T]&&m(N,T,(function(R){return u(x,this)}),{arity:1})}},1296:function(p,E,l){var u=l(4495);p.exports=u&&!!Symbol.for&&!!Symbol.keyFor},1240:function(p,E,l){var u=l(9504);p.exports=u(1.1.valueOf)},5610:function(p,E,l){var u=l(1291),f=Math.max,h=Math.min;p.exports=function(m,S){var N=u(m);return N<0?f(N+S,0):h(N,S)}},5397:function(p,E,l){var u=l(7055),f=l(7750);p.exports=function(h){return u(f(h))}},1291:function(p,E,l){var u=l(741);p.exports=function(f){var h=+f;return h!=h||h===0?0:u(h)}},8014:function(p,E,l){var u=l(1291),f=Math.min;p.exports=function(h){var m=u(h);return m>0?f(m,9007199254740991):0}},8981:function(p,E,l){var u=l(7750),f=Object;p.exports=function(h){return f(u(h))}},2777:function(p,E,l){var u=l(9565),f=l(34),h=l(757),m=l(5966),S=l(4270),N=l(8227),x=TypeError,T=N("toPrimitive");p.exports=function(R,H){if(!f(R)||h(R))return R;var M,D=m(R,T);if(D){if(H===void 0&&(H="default"),M=u(D,R,H),!f(M)||h(M))return M;throw new x("Can't convert object to primitive value")}return H===void 0&&(H="number"),S(R,H)}},6969:function(p,E,l){var u=l(2777),f=l(757);p.exports=function(h){var m=u(h,"string");return f(m)?m:m+""}},2140:function(p,E,l){var u={};u[l(8227)("toStringTag")]="z",p.exports=String(u)==="[object z]"},655:function(p,E,l){var u=l(6955),f=String;p.exports=function(h){if(u(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return f(h)}},6823:function(p){var E=String;p.exports=function(l){try{return E(l)}catch{return"Object"}}},3392:function(p,E,l){var u=l(9504),f=0,h=Math.random(),m=u(1.1.toString);p.exports=function(S){return"Symbol("+(S===void 0?"":S)+")_"+m(++f+h,36)}},7040:function(p,E,l){var u=l(4495);p.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:function(p,E,l){var u=l(3724),f=l(9039);p.exports=u&&f((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},8622:function(p,E,l){var u=l(4576),f=l(4901),h=u.WeakMap;p.exports=f(h)&&/native code/.test(String(h))},511:function(p,E,l){var u=l(9167),f=l(9297),h=l(1951),m=l(4913).f;p.exports=function(S){var N=u.Symbol||(u.Symbol={});f(N,S)||m(N,S,{value:h.f(S)})}},1951:function(p,E,l){var u=l(8227);E.f=u},8227:function(p,E,l){var u=l(4576),f=l(5745),h=l(9297),m=l(3392),S=l(4495),N=l(7040),x=u.Symbol,T=f("wks"),R=N?x.for||x:x&&x.withoutSetter||m;p.exports=function(H){return h(T,H)||(T[H]=S&&h(x,H)?x[H]:R("Symbol."+H)),T[H]}},7452:function(p){p.exports=`	
\v\f\r                　\u2028\u2029\uFEFF`},8706:function(p,E,l){var u=l(6518),f=l(9039),h=l(4376),m=l(34),S=l(8981),N=l(6198),x=l(6837),T=l(4659),R=l(4527),H=l(1469),M=l(597),D=l(8227),K=l(9519),q=D("isConcatSpreadable"),Y=K>=51||!f((function(){var $=[];return $[q]=!1,$.concat()[0]!==$})),G=function($){if(!m($))return!1;var ie=$[q];return ie!==void 0?!!ie:h($)};u({target:"Array",proto:!0,arity:1,forced:!Y||!M("concat")},{concat:function($){var ie,J,ve,Ee,me,Oe=S(this),Ne=H(Oe,0),re=0;for(ie=-1,ve=arguments.length;ie<ve;ie++)if(G(me=ie===-1?Oe:arguments[ie]))for(Ee=N(me),x(re+Ee),J=0;J<Ee;J++,re++)J in me&&T(Ne,re,me[J]);else x(re+1),T(Ne,re++,me);return R(Ne,re),Ne}})},2008:function(p,E,l){var u=l(6518),f=l(9213).filter;u({target:"Array",proto:!0,forced:!l(597)("filter")},{filter:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}})},3418:function(p,E,l){var u=l(6518),f=l(7916);u({target:"Array",stat:!0,forced:!l(4428)((function(h){Array.from(h)}))},{from:f})},4423:function(p,E,l){var u=l(6518),f=l(9617).includes,h=l(9039),m=l(6469),S=h((function(){return!Array(1).includes()})),N=h((function(){return[,1].includes(void 0,1)}));u({target:"Array",proto:!0,forced:S||N},{includes:function(x){return f(this,x,arguments.length>1?arguments[1]:void 0)}}),m("includes")},5276:function(p,E,l){var u=l(6518),f=l(7476),h=l(9617).indexOf,m=l(4598),S=f([].indexOf),N=!!S&&1/S([1],1,-0)<0;u({target:"Array",proto:!0,forced:N||!m("indexOf")},{indexOf:function(x){var T=arguments.length>1?arguments[1]:void 0;return N?S(this,x,T)||0:h(this,x,T)}})},3792:function(p,E,l){var u=l(5397),f=l(6469),h=l(6269),m=l(1181),S=l(4913).f,N=l(1088),x=l(2529),T=l(6395),R=l(3724),H="Array Iterator",M=m.set,D=m.getterFor(H);p.exports=N(Array,"Array",(function(q,Y){M(this,{type:H,target:u(q),index:0,kind:Y})}),(function(){var q=D(this),Y=q.target,G=q.index++;if(!Y||G>=Y.length)return q.target=null,x(void 0,!0);switch(q.kind){case"keys":return x(G,!1);case"values":return x(Y[G],!1)}return x([G,Y[G]],!1)}),"values");var K=h.Arguments=h.Array;if(f("keys"),f("values"),f("entries"),!T&&R&&K.name!=="values")try{S(K,"name",{value:"values"})}catch{}},8598:function(p,E,l){var u=l(6518),f=l(9504),h=l(7055),m=l(5397),S=l(4598),N=f([].join);u({target:"Array",proto:!0,forced:h!==Object||!S("join",",")},{join:function(x){return N(m(this),x===void 0?",":x)}})},2062:function(p,E,l){var u=l(6518),f=l(9213).map;u({target:"Array",proto:!0,forced:!l(597)("map")},{map:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}})},2712:function(p,E,l){var u=l(6518),f=l(926).left,h=l(4598),m=l(9519);u({target:"Array",proto:!0,forced:!l(6193)&&m>79&&m<83||!h("reduce")},{reduce:function(S){var N=arguments.length;return f(this,S,N,N>1?arguments[1]:void 0)}})},4782:function(p,E,l){var u=l(6518),f=l(4376),h=l(3517),m=l(34),S=l(5610),N=l(6198),x=l(5397),T=l(4659),R=l(4527),H=l(8227),M=l(597),D=l(7680),K=M("slice"),q=H("species"),Y=Array,G=Math.max;u({target:"Array",proto:!0,forced:!K},{slice:function($,ie){var J,ve,Ee,me=x(this),Oe=N(me),Ne=S($,Oe),re=S(ie===void 0?Oe:ie,Oe);if(f(me)&&(J=me.constructor,(h(J)&&(J===Y||f(J.prototype))||m(J)&&(J=J[q])===null)&&(J=void 0),J===Y||J===void 0))return D(me,Ne,re);for(ve=new(J===void 0?Y:J)(G(re-Ne,0)),Ee=0;Ne<re;Ne++,Ee++)Ne in me&&T(ve,Ee,me[Ne]);return R(ve,Ee),ve}})},6910:function(p,E,l){var u=l(6518),f=l(9504),h=l(9306),m=l(8981),S=l(6198),N=l(4606),x=l(655),T=l(9039),R=l(4488),H=l(4598),M=l(3709),D=l(3763),K=l(9519),q=l(3607),Y=[],G=f(Y.sort),$=f(Y.push),ie=T((function(){Y.sort(void 0)})),J=T((function(){Y.sort(null)})),ve=H("sort"),Ee=!T((function(){if(K)return K<70;if(!(M&&M>3)){if(D)return!0;if(q)return q<603;var me,Oe,Ne,re,Be="";for(me=65;me<76;me++){switch(Oe=String.fromCharCode(me),me){case 66:case 69:case 70:case 72:Ne=3;break;case 68:case 71:Ne=4;break;default:Ne=2}for(re=0;re<47;re++)Y.push({k:Oe+re,v:Ne})}for(Y.sort((function(ze,Ae){return Ae.v-ze.v})),re=0;re<Y.length;re++)Oe=Y[re].k.charAt(0),Be.charAt(Be.length-1)!==Oe&&(Be+=Oe);return Be!=="DGBEFHACIJK"}}));u({target:"Array",proto:!0,forced:ie||!J||!ve||!Ee},{sort:function(me){me!==void 0&&h(me);var Oe=m(this);if(Ee)return me===void 0?G(Oe):G(Oe,me);var Ne,re,Be=[],ze=S(Oe);for(re=0;re<ze;re++)re in Oe&&$(Be,Oe[re]);for(R(Be,(function(Ae){return function(ft,We){if(We===void 0)return-1;if(ft===void 0)return 1;if(Ae!==void 0)return+Ae(ft,We)||0;var Ye=x(ft),$e=x(We);return Ye===$e?0:Ye>$e?1:-1}})(me)),Ne=S(Be),re=0;re<Ne;)Oe[re]=Be[re++];for(;re<ze;)N(Oe,re++);return Oe}})},4554:function(p,E,l){var u=l(6518),f=l(8981),h=l(5610),m=l(1291),S=l(6198),N=l(4527),x=l(6837),T=l(1469),R=l(4659),H=l(4606),M=l(597)("splice"),D=Math.max,K=Math.min;u({target:"Array",proto:!0,forced:!M},{splice:function(q,Y){var G,$,ie,J,ve,Ee,me=f(this),Oe=S(me),Ne=h(q,Oe),re=arguments.length;for(re===0?G=$=0:re===1?(G=0,$=Oe-Ne):(G=re-2,$=K(D(m(Y),0),Oe-Ne)),x(Oe+G-$),ie=T(me,$),J=0;J<$;J++)(ve=Ne+J)in me&&R(ie,J,me[ve]);if(N(ie,$),G<$){for(J=Ne;J<Oe-$;J++)Ee=J+G,(ve=J+$)in me?me[Ee]=me[ve]:H(me,Ee);for(J=Oe;J>Oe-$+G;J--)H(me,J-1)}else if(G>$)for(J=Oe-$;J>Ne;J--)Ee=J+G-1,(ve=J+$-1)in me?me[Ee]=me[ve]:H(me,Ee);for(J=0;J<G;J++)me[J+Ne]=arguments[J+2];return N(me,Oe-$+G),ie}})},739:function(p,E,l){var u=l(6518),f=l(9039),h=l(8981),m=l(2777);u({target:"Date",proto:!0,arity:1,forced:f((function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}))},{toJSON:function(S){var N=h(this),x=m(N,"number");return typeof x!="number"||isFinite(x)?N.toISOString():null}})},9572:function(p,E,l){var u=l(9297),f=l(6840),h=l(3640),m=l(8227)("toPrimitive"),S=Date.prototype;u(S,m)||f(S,m,h)},2010:function(p,E,l){var u=l(3724),f=l(350).EXISTS,h=l(9504),m=l(2106),S=Function.prototype,N=h(S.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=h(x.exec);u&&!f&&m(S,"name",{configurable:!0,get:function(){try{return T(x,N(this))[1]}catch{return""}}})},3110:function(p,E,l){var u=l(6518),f=l(7751),h=l(8745),m=l(9565),S=l(9504),N=l(9039),x=l(4376),T=l(4901),R=l(5810),H=l(757),M=l(2195),D=l(655),K=l(7680),q=l(8235),Y=l(3392),G=l(4495),$=l(7819),ie=String,J=f("JSON","stringify"),ve=S(/./.exec),Ee=S("".charAt),me=S("".charCodeAt),Oe=S("".replace),Ne=S("".slice),re=S([].push),Be=S(1.1.toString),ze=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,ft=/^[\uDC00-\uDFFF]$/,We=Y(),Ye=We.length,$e=!G||N((function(){var Re=f("Symbol")("stringify detection");return J([Re])!=="[null]"||J({a:Re})!=="{}"||J(Object(Re))!=="{}"})),Xe=N((function(){return J("\uDF06\uD834")!=='"\\udf06\\ud834"'||J("\uDEAD")!=='"\\udead"'})),He=$e?function(Re,_e){var Ce=K(arguments),Ze=it(_e);if(T(Ze)||Re!==void 0&&!H(Re))return Ce[1]=function(Qe,tt){if(T(Ze)&&(tt=m(Ze,this,ie(Qe),tt)),!H(tt))return tt},h(J,null,Ce)}:J,Je=function(Re,_e,Ce){var Ze=Ee(Ce,_e-1),Qe=Ee(Ce,_e+1);return ve(Ae,Re)&&!ve(ft,Qe)||ve(ft,Re)&&!ve(Ae,Ze)?"\\u"+Be(me(Re,0),16):Re},it=function(Re){if(T(Re))return Re;if(x(Re)){for(var _e=Re.length,Ce=[],Ze=0;Ze<_e;Ze++){var Qe=Re[Ze];typeof Qe=="string"?re(Ce,Qe):typeof Qe!="number"&&M(Qe)!=="Number"&&M(Qe)!=="String"||re(Ce,D(Qe))}var tt=Ce.length,jt=!0;return function(Gt,wt){if(jt)return jt=!1,wt;if(x(this))return wt;for(var Ft=0;Ft<tt;Ft++)if(Ce[Ft]===Gt)return wt}}};J&&u({target:"JSON",stat:!0,arity:3,forced:$e||Xe||!$},{stringify:function(Re,_e,Ce){var Ze=it(_e),Qe=[],tt=He(Re,(function(tn,zt){var mt=T(Ze)?m(Ze,this,ie(tn),zt):zt;return!$&&R(mt)?We+(re(Qe,mt.rawJSON)-1):mt}),Ce);if(typeof tt!="string"||(Xe&&(tt=Oe(tt,ze,Je)),$))return tt;for(var jt="",Gt=tt.length,wt=0;wt<Gt;wt++){var Ft=Ee(tt,wt);if(Ft==='"'){var Ht=q(tt,++wt).end-1,qt=Ne(tt,wt,Ht);jt+=Ne(qt,0,Ye)===We?Qe[Ne(qt,Ye)]:'"'+qt+'"',wt=Ht}else jt+=Ft}return jt}})},2892:function(p,E,l){var u=l(6518),f=l(6395),h=l(3724),m=l(4576),S=l(9167),N=l(9504),x=l(2796),T=l(9297),R=l(3167),H=l(1625),M=l(757),D=l(2777),K=l(9039),q=l(8480).f,Y=l(7347).f,G=l(4913).f,$=l(1240),ie=l(3802).trim,J="Number",ve=m[J],Ee=S[J],me=ve.prototype,Oe=m.TypeError,Ne=N("".slice),re=N("".charCodeAt),Be=function(We){var Ye,$e,Xe,He,Je,it,Re,_e,Ce=D(We,"number");if(M(Ce))throw new Oe("Cannot convert a Symbol value to a number");if(typeof Ce=="string"&&Ce.length>2){if(Ce=ie(Ce),(Ye=re(Ce,0))===43||Ye===45){if(($e=re(Ce,2))===88||$e===120)return NaN}else if(Ye===48){switch(re(Ce,1)){case 66:case 98:Xe=2,He=49;break;case 79:case 111:Xe=8,He=55;break;default:return+Ce}for(it=(Je=Ne(Ce,2)).length,Re=0;Re<it;Re++)if((_e=re(Je,Re))<48||_e>He)return NaN;return parseInt(Je,Xe)}}return+Ce},ze=x(J,!ve(" 0o1")||!ve("0b1")||ve("+0x1")),Ae=function(We){var Ye,$e=arguments.length<1?0:ve((function(Xe){var He=D(Xe,"number");return typeof He=="bigint"?He:Be(He)})(We));return H(me,Ye=this)&&K((function(){$(Ye)}))?R(Object($e),this,Ae):$e};Ae.prototype=me,ze&&!f&&(me.constructor=Ae),u({global:!0,constructor:!0,wrap:!0,forced:ze},{Number:Ae});var ft=function(We,Ye){for(var $e,Xe=h?q(Ye):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),He=0;Xe.length>He;He++)T(Ye,$e=Xe[He])&&!T(We,$e)&&G(We,$e,Y(Ye,$e))};f&&Ee&&ft(S[J],Ee),(ze||f)&&ft(S[J],ve)},2637:function(p,E,l){l(6518)({target:"Number",stat:!0},{isInteger:l(2087)})},9085:function(p,E,l){var u=l(6518),f=l(4213);u({target:"Object",stat:!0,arity:2,forced:Object.assign!==f},{assign:f})},7427:function(p,E,l){var u=l(6518),f=l(3724),h=l(2551),m=l(9306),S=l(8981),N=l(4913);f&&u({target:"Object",proto:!0,forced:h},{__defineGetter__:function(x,T){N.f(S(this),x,{get:m(T),enumerable:!0,configurable:!0})}})},3851:function(p,E,l){var u=l(6518),f=l(9039),h=l(5397),m=l(7347).f,S=l(3724);u({target:"Object",stat:!0,forced:!S||f((function(){m(1)})),sham:!S},{getOwnPropertyDescriptor:function(N,x){return m(h(N),x)}})},1278:function(p,E,l){var u=l(6518),f=l(3724),h=l(5031),m=l(5397),S=l(7347),N=l(4659);u({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(x){for(var T,R,H=m(x),M=S.f,D=h(H),K={},q=0;D.length>q;)(R=M(H,T=D[q++]))!==void 0&&N(K,T,R);return K}})},1480:function(p,E,l){var u=l(6518),f=l(9039),h=l(298).f;u({target:"Object",stat:!0,forced:f((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:h})},9773:function(p,E,l){var u=l(6518),f=l(4495),h=l(9039),m=l(3717),S=l(8981);u({target:"Object",stat:!0,forced:!f||h((function(){m.f(1)}))},{getOwnPropertySymbols:function(N){var x=m.f;return x?x(S(N)):[]}})},9432:function(p,E,l){var u=l(6518),f=l(8981),h=l(1072);u({target:"Object",stat:!0,forced:l(9039)((function(){h(1)}))},{keys:function(m){return h(f(m))}})},6099:function(p,E,l){var u=l(2140),f=l(6840),h=l(3179);u||f(Object.prototype,"toString",h,{unsafe:!0})},825:function(p,E,l){var u=l(6518),f=l(7751),h=l(8745),m=l(566),S=l(5548),N=l(8551),x=l(34),T=l(2360),R=l(9039),H=f("Reflect","construct"),M=Object.prototype,D=[].push,K=R((function(){function G(){}return!(H((function(){}),[],G)instanceof G)})),q=!R((function(){H((function(){}))})),Y=K||q;u({target:"Reflect",stat:!0,forced:Y,sham:Y},{construct:function(G,$){S(G);var ie=arguments.length<3?G:S(arguments[2]);if(N($),q&&!K)return H(G,$,ie);if(G===ie){switch($.length){case 0:return new G;case 1:return new G($[0]);case 2:return new G($[0],$[1]);case 3:return new G($[0],$[1],$[2]);case 4:return new G($[0],$[1],$[2],$[3])}var J=[null];return h(D,J,$),new(h(m,G,J))}var ve=ie.prototype,Ee=T(x(ve)?ve:M),me=h(G,Ee,$);return x(me)?me:Ee}})},4864:function(p,E,l){var u=l(3724),f=l(4576),h=l(9504),m=l(2796),S=l(3167),N=l(6699),x=l(2360),T=l(8480).f,R=l(1625),H=l(788),M=l(655),D=l(1034),K=l(8429),q=l(1056),Y=l(6840),G=l(9039),$=l(9297),ie=l(1181).enforce,J=l(7633),ve=l(8227),Ee=l(3635),me=l(8814),Oe=ve("match"),Ne=f.RegExp,re=Ne.prototype,Be=f.SyntaxError,ze=h(re.exec),Ae=h("".charAt),ft=h("".replace),We=h("".indexOf),Ye=h("".slice),$e=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Xe=/a/g,He=/a/g,Je=new Ne(Xe)!==Xe,it=K.MISSED_STICKY,Re=K.UNSUPPORTED_Y;if(m("RegExp",u&&(!Je||it||Ee||me||G((function(){return He[Oe]=!1,Ne(Xe)!==Xe||Ne(He)===He||String(Ne(Xe,"i"))!=="/a/i"}))))){for(var _e=function(Qe,tt){var jt,Gt,wt,Ft,Ht,qt,tn=R(re,this),zt=H(Qe),mt=tt===void 0,Ct=[],cn=Qe;if(!tn&&zt&&mt&&Qe.constructor===_e)return Qe;if((zt||R(re,Qe))&&(Qe=Qe.source,mt&&(tt=D(cn))),Qe=Qe===void 0?"":M(Qe),tt=tt===void 0?"":M(tt),cn=Qe,Ee&&"dotAll"in Xe&&(Gt=!!tt&&We(tt,"s")>-1)&&(tt=ft(tt,/s/g,"")),jt=tt,it&&"sticky"in Xe&&(wt=!!tt&&We(tt,"y")>-1)&&Re&&(tt=ft(tt,/y/g,"")),me&&(Ft=(function(Mt){for(var Kt,na=Mt.length,B=0,se="",Me=[],Fe=x(null),lt=!1,Qt=!1,on=0,Tt="";B<na;B++){if((Kt=Ae(Mt,B))==="\\"){if(Kt+=Ae(Mt,++B),!Qt&&Ae(Kt,1)==="\\"){se+="\\x5c";continue}}else if(Kt==="]")lt=!1;else if(!lt)switch(!0){case Kt==="[":lt=!0;break;case Kt==="(":se+=Kt,ze($e,Ye(Mt,B+1))?(B+=2,Qt=!0,on++):Ae(Mt,B+1)!=="?"&&on++;continue;case(Kt===">"&&Qt):if(Tt===""||$(Fe,Tt))throw new Be("Invalid capture group name");Fe[Tt]=!0,Me[Me.length]=[Tt,on],Qt=!1,Tt="";continue}Qt?Tt+=Kt:se+=Kt}for(var Qn=0;Qn<Me.length;Qn++)for(var Ea="\\k<"+Me[Qn][0]+">",Pe="\\"+Me[Qn][1];We(se,Ea)>-1;)se=ft(se,Ea,Pe);return[se,Me]})(Qe),Qe=Ft[0],Ct=Ft[1]),Ht=S(Ne(Qe,tt),tn?this:re,_e),(Gt||wt||Ct.length)&&(qt=ie(Ht),Gt&&(qt.dotAll=!0,qt.raw=_e((function(Mt){for(var Kt,na=Mt.length,B=0,se="",Me=!1;B<na;B++)(Kt=Ae(Mt,B))!=="\\"?Me||Kt!=="."?(Kt==="["?Me=!0:Kt==="]"&&(Me=!1),se+=Kt):se+="[\\s\\S]":se+=Kt+Ae(Mt,++B);return se})(Qe),jt)),wt&&(qt.sticky=!0),Ct.length&&(qt.groups=Ct)),Qe!==cn)try{N(Ht,"source",cn===""?"(?:)":cn)}catch{}return Ht},Ce=T(Ne),Ze=0;Ce.length>Ze;)q(_e,Ne,Ce[Ze++]);re.constructor=_e,_e.prototype=re,Y(f,"RegExp",_e,{constructor:!0})}J("RegExp")},7495:function(p,E,l){var u=l(6518),f=l(7323);u({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},8781:function(p,E,l){var u=l(350).PROPER,f=l(6840),h=l(8551),m=l(655),S=l(9039),N=l(1034),x="toString",T=RegExp.prototype,R=T[x],H=S((function(){return R.call({source:"a",flags:"b"})!=="/a/b"})),M=u&&R.name!==x;(H||M)&&f(T,x,(function(){var D=h(this);return"/"+m(D.source)+"/"+m(N(D))}),{unsafe:!0})},1699:function(p,E,l){var u=l(6518),f=l(9504),h=l(5749),m=l(7750),S=l(655),N=l(1436),x=f("".indexOf);u({target:"String",proto:!0,forced:!N("includes")},{includes:function(T){return!!~x(S(m(this)),S(h(T)),arguments.length>1?arguments[1]:void 0)}})},7764:function(p,E,l){var u=l(8183).charAt,f=l(655),h=l(1181),m=l(1088),S=l(2529),N="String Iterator",x=h.set,T=h.getterFor(N);m(String,"String",(function(R){x(this,{type:N,string:f(R),index:0})}),(function(){var R,H=T(this),M=H.string,D=H.index;return D>=M.length?S(void 0,!0):(R=u(M,D),H.index+=R.length,S(R,!1))}))},8543:function(p,E,l){var u=l(6518),f=l(9565),h=l(7476),m=l(3994),S=l(2529),N=l(7750),x=l(8014),T=l(655),R=l(8551),H=l(34),M=l(2195),D=l(788),K=l(1034),q=l(5966),Y=l(6840),G=l(9039),$=l(8227),ie=l(2293),J=l(7829),ve=l(6682),Ee=l(1181),me=l(6395),Oe=$("matchAll"),Ne="RegExp String",re=Ne+" Iterator",Be=Ee.set,ze=Ee.getterFor(re),Ae=RegExp.prototype,ft=TypeError,We=h("".indexOf),Ye=h("".matchAll),$e=!!Ye&&!G((function(){Ye("a",/./)})),Xe=m((function(Je,it,Re,_e){Be(this,{type:re,regexp:Je,string:it,global:Re,unicode:_e,done:!1})}),Ne,(function(){var Je=ze(this);if(Je.done)return S(void 0,!0);var it=Je.regexp,Re=Je.string,_e=ve(it,Re);return _e===null?(Je.done=!0,S(void 0,!0)):Je.global?(T(_e[0])===""&&(it.lastIndex=J(Re,x(it.lastIndex),Je.unicode)),S(_e,!1)):(Je.done=!0,S(_e,!1))})),He=function(Je){var it,Re,_e,Ce=R(this),Ze=T(Je),Qe=ie(Ce,RegExp),tt=T(K(Ce));return it=new Qe(Qe===RegExp?Ce.source:Ce,tt),Re=!!~We(tt,"g"),_e=!!~We(tt,"u")||!!~We(tt,"v"),it.lastIndex=x(Ce.lastIndex),new Xe(it,Ze,Re,_e)};u({target:"String",proto:!0,forced:$e},{matchAll:function(Je){var it,Re,_e,Ce,Ze=N(this);if(H(Je)){if(D(Je)&&(it=T(N(K(Je))),!~We(it,"g")))throw new ft("`.matchAll` does not allow non-global regexes");if($e)return Ye(Ze,Je);if((_e=q(Je,Oe))===void 0&&me&&M(Je)==="RegExp"&&(_e=He),_e)return f(_e,Je,Ze)}else if($e)return Ye(Ze,Je);return Re=T(Ze),Ce=new RegExp(Je,"g"),me?f(He,Ce,Re):Ce[Oe](Re)}}),me||Oe in Ae||Y(Ae,Oe,He)},1761:function(p,E,l){var u=l(9565),f=l(9504),h=l(9228),m=l(8551),S=l(34),N=l(8014),x=l(655),T=l(7750),R=l(5966),H=l(7829),M=l(1034),D=l(6682),K=f("".indexOf);h("match",(function(q,Y,G){return[function($){var ie=T(this),J=S($)?R($,q):void 0;return J?u(J,$,ie):new RegExp($)[q](x(ie))},function($){var ie=m(this),J=x($),ve=G(Y,ie,J);if(ve.done)return ve.value;var Ee=x(M(ie));if(!~K(Ee,"g"))return D(ie,J);var me=!!~K(Ee,"u")||!!~K(Ee,"v");ie.lastIndex=0;for(var Oe,Ne=[],re=0;(Oe=D(ie,J))!==null;){var Be=x(Oe[0]);Ne[re]=Be,Be===""&&(ie.lastIndex=H(J,N(ie.lastIndex),me)),re++}return re===0?null:Ne}]}))},5440:function(p,E,l){var u=l(8745),f=l(9565),h=l(9504),m=l(9228),S=l(9039),N=l(8551),x=l(4901),T=l(34),R=l(1291),H=l(8014),M=l(655),D=l(7750),K=l(7829),q=l(5966),Y=l(2478),G=l(1034),$=l(6682),ie=l(8227)("replace"),J=Math.max,ve=Math.min,Ee=h([].concat),me=h([].push),Oe=h("".indexOf),Ne=h("".slice),re="a".replace(/./,"$0")==="$0",Be=!!/./[ie]&&/./[ie]("a","$0")==="";m("replace",(function(ze,Ae,ft){var We=Be?"$":"$0";return[function(Ye,$e){var Xe=D(this),He=T(Ye)?q(Ye,ie):void 0;return He?f(He,Ye,Xe,$e):f(Ae,M(Xe),Ye,$e)},function(Ye,$e){var Xe=N(this),He=M(Ye),Je=x($e);Je||($e=M($e));var it=M(G(Xe));if(typeof $e=="string"&&!~Oe($e,We)&&!~Oe($e,"$<")&&!~Oe(it,"y")){var Re=ft(Ae,Xe,He,$e);if(Re.done)return Re.value}var _e,Ce=!!~Oe(it,"g");Ce&&(_e=!!~Oe(it,"u")||!!~Oe(it,"v"),Xe.lastIndex=0);for(var Ze,Qe=[];(Ze=$(Xe,He))!==null&&(me(Qe,Ze),Ce);)M(Ze[0])===""&&(Xe.lastIndex=K(He,H(Xe.lastIndex),_e));for(var tt,jt="",Gt=0,wt=0;wt<Qe.length;wt++){for(var Ft,Ht=M((Ze=Qe[wt])[0]),qt=J(ve(R(Ze.index),He.length),0),tn=[],zt=1;zt<Ze.length;zt++)me(tn,(tt=Ze[zt])===void 0?tt:String(tt));var mt=Ze.groups;if(Je){var Ct=Ee([Ht],tn,qt,He);mt!==void 0&&me(Ct,mt),Ft=M(u($e,void 0,Ct))}else Ft=Y(Ht,He,qt,tn,mt,$e);qt>=Gt&&(jt+=Ne(He,Gt,qt)+Ft,Gt=qt+Ht.length)}return jt+Ne(He,Gt)}]}),!!S((function(){var ze=/./;return ze.exec=function(){var Ae=[];return Ae.groups={a:"7"},Ae},"".replace(ze,"$<a>")!=="7"}))||!re||Be)},744:function(p,E,l){var u=l(9565),f=l(9504),h=l(9228),m=l(8551),S=l(34),N=l(7750),x=l(2293),T=l(7829),R=l(8014),H=l(655),M=l(5966),D=l(1034),K=l(6682),q=l(8429),Y=l(9039),G=q.UNSUPPORTED_Y,$=Math.min,ie=f([].push),J=f("".slice),ve=f("".indexOf),Ee=!Y((function(){var Oe=/(?:)/,Ne=Oe.exec;Oe.exec=function(){return Ne.apply(this,arguments)};var re="ab".split(Oe);return re.length!==2||re[0]!=="a"||re[1]!=="b"})),me="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;h("split",(function(Oe,Ne,re){var Be="0".split(void 0,0).length?function(ze,Ae){return ze===void 0&&Ae===0?[]:u(Ne,this,ze,Ae)}:Ne;return[function(ze,Ae){var ft=N(this),We=S(ze)?M(ze,Oe):void 0;return We?u(We,ze,ft,Ae):u(Be,H(ft),ze,Ae)},function(ze,Ae){var ft=m(this),We=H(ze);if(!me){var Ye=re(Be,ft,We,Ae,Be!==Ne);if(Ye.done)return Ye.value}var $e=x(ft,RegExp),Xe=H(D(ft)),He=!!~ve(Xe,"u")||!!~ve(Xe,"v");G?~ve(Xe,"g")||(Xe+="g"):~ve(Xe,"y")||(Xe+="y");var Je=new $e(G?"^(?:"+ft.source+")":ft,Xe),it=Ae===void 0?4294967295:Ae>>>0;if(it===0)return[];if(We.length===0)return K(Je,We)===null?[We]:[];for(var Re=0,_e=0,Ce=[];_e<We.length;){Je.lastIndex=G?0:_e;var Ze,Qe=K(Je,G?J(We,_e):We);if(Qe===null||(Ze=$(R(Je.lastIndex+(G?_e:0)),We.length))===Re)_e=T(We,_e,He);else{if(ie(Ce,J(We,Re,_e)),Ce.length===it)return Ce;for(var tt=1;tt<=Qe.length-1;tt++)if(ie(Ce,Qe[tt]),Ce.length===it)return Ce;_e=Re=Ze}}return ie(Ce,J(We,Re)),Ce}]}),me||!Ee,G)},2762:function(p,E,l){var u=l(6518),f=l(3802).trim;u({target:"String",proto:!0,forced:l(706)("trim")},{trim:function(){return f(this)}})},6761:function(p,E,l){var u=l(6518),f=l(4576),h=l(9565),m=l(9504),S=l(6395),N=l(3724),x=l(4495),T=l(9039),R=l(9297),H=l(1625),M=l(8551),D=l(5397),K=l(6969),q=l(655),Y=l(6980),G=l(2360),$=l(1072),ie=l(8480),J=l(298),ve=l(3717),Ee=l(7347),me=l(4913),Oe=l(6801),Ne=l(8773),re=l(6840),Be=l(2106),ze=l(5745),Ae=l(6119),ft=l(421),We=l(3392),Ye=l(8227),$e=l(1951),Xe=l(511),He=l(8242),Je=l(687),it=l(1181),Re=l(9213).forEach,_e=Ae("hidden"),Ce="Symbol",Ze="prototype",Qe=it.set,tt=it.getterFor(Ce),jt=Object[Ze],Gt=f.Symbol,wt=Gt&&Gt[Ze],Ft=f.RangeError,Ht=f.TypeError,qt=f.QObject,tn=Ee.f,zt=me.f,mt=J.f,Ct=Ne.f,cn=m([].push),Mt=ze("symbols"),Kt=ze("op-symbols"),na=ze("wks"),B=!qt||!qt[Ze]||!qt[Ze].findChild,se=function(Pe,ot,vt){var xt=tn(jt,ot);return xt&&delete jt[ot],zt(Pe,ot,vt),xt&&Pe!==jt&&zt(jt,ot,xt),Pe},Me=N&&T((function(){return G(zt({},"a",{get:function(){return zt(this,"a",{value:7}).a}})).a!==7}))?se:zt,Fe=function(Pe,ot){var vt=Mt[Pe]=G(wt);return Qe(vt,{type:Ce,tag:Pe,description:ot}),N||(vt.description=ot),vt},lt=function(Pe,ot,vt){Pe===jt&&lt(Kt,ot,vt),M(Pe);var xt=K(ot);return M(vt),R(Mt,xt)?(("enumerable"in vt?!vt.enumerable:!R(Pe,xt)||R(Pe,_e)&&Pe[_e][xt])?(R(Pe,_e)||zt(Pe,_e,Y(1,G(null))),Pe[_e][xt]=!0):(R(Pe,_e)&&Pe[_e][xt]&&(Pe[_e][xt]=!1),vt=G(vt,{enumerable:Y(0,!1)})),Me(Pe,xt,vt)):zt(Pe,xt,vt)},Qt=function(Pe,ot){M(Pe);var vt=D(ot),xt=$(vt).concat(Ea(vt));return Re(xt,(function(It){N&&!h(on,vt,It)||lt(Pe,It,vt[It])})),Pe},on=function(Pe){var ot=K(Pe),vt=h(Ct,this,ot);return!(this===jt&&R(Mt,ot)&&!R(Kt,ot))&&(!(vt||!R(this,ot)||!R(Mt,ot)||R(this,_e)&&this[_e][ot])||vt)},Tt=function(Pe,ot){var vt=D(Pe),xt=K(ot);if(vt!==jt||!R(Mt,xt)||R(Kt,xt)){var It=tn(vt,xt);return!It||!R(Mt,xt)||R(vt,_e)&&vt[_e][xt]||(It.enumerable=!0),It}},Qn=function(Pe){var ot=mt(D(Pe)),vt=[];return Re(ot,(function(xt){R(Mt,xt)||R(ft,xt)||cn(vt,xt)})),vt},Ea=function(Pe){var ot=Pe===jt,vt=mt(ot?Kt:D(Pe)),xt=[];return Re(vt,(function(It){!R(Mt,It)||ot&&!R(jt,It)||cn(xt,Mt[It])})),xt};x||(Gt=function(){if(H(wt,this))throw new Ht("Symbol is not a constructor");var Pe=arguments.length&&arguments[0]!==void 0?q(arguments[0]):void 0,ot=We(Pe),vt=function(xt){var It=this===void 0?f:this;It===jt&&h(vt,Kt,xt),R(It,_e)&&R(It[_e],ot)&&(It[_e][ot]=!1);var Wi=Y(1,xt);try{Me(It,ot,Wi)}catch(Za){if(!(Za instanceof Ft))throw Za;se(It,ot,Wi)}};return N&&B&&Me(jt,ot,{configurable:!0,set:vt}),Fe(ot,Pe)},re(wt=Gt[Ze],"toString",(function(){return tt(this).tag})),re(Gt,"withoutSetter",(function(Pe){return Fe(We(Pe),Pe)})),Ne.f=on,me.f=lt,Oe.f=Qt,Ee.f=Tt,ie.f=J.f=Qn,ve.f=Ea,$e.f=function(Pe){return Fe(Ye(Pe),Pe)},N&&(Be(wt,"description",{configurable:!0,get:function(){return tt(this).description}}),S||re(jt,"propertyIsEnumerable",on,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!x,sham:!x},{Symbol:Gt}),Re($(na),(function(Pe){Xe(Pe)})),u({target:Ce,stat:!0,forced:!x},{useSetter:function(){B=!0},useSimple:function(){B=!1}}),u({target:"Object",stat:!0,forced:!x,sham:!N},{create:function(Pe,ot){return ot===void 0?G(Pe):Qt(G(Pe),ot)},defineProperty:lt,defineProperties:Qt,getOwnPropertyDescriptor:Tt}),u({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:Qn}),He(),Je(Gt,Ce),ft[_e]=!0},9463:function(p,E,l){var u=l(6518),f=l(3724),h=l(4576),m=l(9565),S=l(9504),N=l(9297),x=l(4901),T=l(1625),R=l(655),H=l(2106),M=l(7740),D=h.Symbol,K=D&&D.prototype;if(f&&x(D)&&(!("description"in K)||D().description!==void 0)){var q={},Y=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:R(arguments[0]),Ne=T(K,this)?new D(Oe):Oe===void 0?D():D(Oe);return Oe===""&&(q[Ne]=!0),Ne};M(Y,D);var G=Y.for;Y.for=function(Oe){var Ne=R(Oe),re=m(G,this,Ne);return Ne===""&&(q[re]=!0),re},Y.prototype=K,K.constructor=Y;var $=String(D("description detection"))==="Symbol(description detection)",ie=S(K.valueOf),J=S(K.toString),ve=/^Symbol\((.*)\)[^)]+$/,Ee=S("".replace),me=S("".slice);H(K,"description",{configurable:!0,get:function(){var Oe=ie(this);if(N(q,Oe))return"";var Ne=J(Oe),re=$?me(Ne,7,-1):Ee(Ne,ve,"$1");return re===""?void 0:re}}),u({global:!0,constructor:!0,forced:!0},{Symbol:Y})}},1510:function(p,E,l){var u=l(6518),f=l(7751),h=l(9297),m=l(655),S=l(5745),N=l(1296),x=S("string-to-symbol-registry"),T=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!N},{for:function(R){var H=m(R);if(h(x,H))return x[H];var M=f("Symbol")(H);return x[H]=M,T[M]=H,M}})},2259:function(p,E,l){l(511)("iterator")},2675:function(p,E,l){l(6761),l(1510),l(7812),l(3110),l(9773)},7812:function(p,E,l){var u=l(6518),f=l(9297),h=l(757),m=l(6823),S=l(5745),N=l(1296),x=S("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!N},{keyFor:function(T){if(!h(T))throw new TypeError(m(T)+" is not a symbol");if(f(x,T))return x[T]}})},5700:function(p,E,l){var u=l(511),f=l(8242);u("toPrimitive"),f()},8344:function(p,E,l){l(8543)},3500:function(p,E,l){var u=l(4576),f=l(7400),h=l(9296),m=l(235),S=l(6699),N=function(T){if(T&&T.forEach!==m)try{S(T,"forEach",m)}catch{T.forEach=m}};for(var x in f)f[x]&&N(u[x]&&u[x].prototype);N(h)},2953:function(p,E,l){var u=l(4576),f=l(7400),h=l(9296),m=l(3792),S=l(6699),N=l(687),x=l(8227)("iterator"),T=m.values,R=function(M,D){if(M){if(M[x]!==T)try{S(M,x,T)}catch{M[x]=T}if(N(M,D,!0),f[D]){for(var K in m)if(M[K]!==m[K])try{S(M,K,m[K])}catch{M[K]=m[K]}}}};for(var H in f)R(u[H]&&u[H].prototype,H);R(h,"DOMTokenList")}},j={};function _(p){var E=j[p];if(E!==void 0)return E.exports;var l=j[p]={exports:{}};return C[p].call(l.exports,l,l.exports,_),l.exports}_.d=function(p,E){for(var l in E)_.o(E,l)&&!_.o(p,l)&&Object.defineProperty(p,l,{enumerable:!0,get:E[l]})},_.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),_.o=function(p,E){return Object.prototype.hasOwnProperty.call(p,E)},_.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var z={};function ne(p){return(function(E){if(Array.isArray(E))return oe(E)})(p)||(function(E){if(typeof Symbol<"u"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)})(p)||I(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function I(p,E){if(p){if(typeof p=="string")return oe(p,E);var l={}.toString.call(p).slice(8,-1);return l==="Object"&&p.constructor&&(l=p.constructor.name),l==="Map"||l==="Set"?Array.from(p):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?oe(p,E):void 0}}function oe(p,E){(E==null||E>p.length)&&(E=p.length);for(var l=0,u=Array(E);l<E;l++)u[l]=p[l];return u}function Q(p){return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Q(p)}function Z(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,ce(u.key),u)}}function P(p,E,l){return(E=ce(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function ce(p){var E=(function(l,u){if(Q(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Q(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Q(E)=="symbol"?E:E+""}_.r(z),_.d(z,{SimpleKeyboard:function(){return xe},default:function(){return Ge}}),_(5276),_(8598),_(4782),_(4554),_(2010),_(7427),_(6099),_(7495),_(8781),_(5440),_(744),_(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&(function(p){if("Element"in p){var E="classList",l="prototype",u=p.Element[l],f=Object,h=String[l].trim||function(){return this.replace(/^\s+|\s+$/g,"")},m=Array[l].indexOf||function(M){for(var D=0,K=this.length;D<K;D++)if(D in this&&this[D]===M)return D;return-1},S=function(M,D){this.name=M,this.code=DOMException[M],this.message=D},N=function(M,D){if(D==="")throw new S("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(D))throw new S("INVALID_CHARACTER_ERR","The token must not contain space characters.");return m.call(M,D)},x=function(M){for(var D=h.call(M.getAttribute("class")||""),K=D?D.split(/\s+/):[],q=0,Y=K.length;q<Y;q++)this.push(K[q]);this._updateClassName=function(){M.setAttribute("class",this.toString())}},T=x[l]=[],R=function(){return new x(this)};if(S[l]=Error[l],T.item=function(M){return this[M]||null},T.contains=function(M){return~N(this,M+"")},T.add=function(){var M,D=arguments,K=0,q=D.length,Y=!1;do~N(this,M=D[K]+"")||(this.push(M),Y=!0);while(++K<q);Y&&this._updateClassName()},T.remove=function(){var M,D,K=arguments,q=0,Y=K.length,G=!1;do for(D=N(this,M=K[q]+"");~D;)this.splice(D,1),G=!0,D=N(this,M);while(++q<Y);G&&this._updateClassName()},T.toggle=function(M,D){var K=this.contains(M),q=K?D!==!0&&"remove":D!==!1&&"add";return q&&this[q](M),D===!0||D===!1?D:!K},T.replace=function(M,D){var K=N(M+"");~K&&(this.splice(K,1,D),this._updateClassName())},T.toString=function(){return this.join(" ")},f.defineProperty){var H={get:R,enumerable:!0,configurable:!0};try{f.defineProperty(u,E,H)}catch(M){M.number!==void 0&&M.number!==-2146823252||(H.enumerable=!1,f.defineProperty(u,E,H))}}else f[l].__defineGetter__&&u.__defineGetter__(E,R)}})(self),(function(){var p=document.createElement("_");if(p.classList.add("c1","c2"),!p.classList.contains("c2")){var E=function(u){var f=DOMTokenList.prototype[u];DOMTokenList.prototype[u]=function(h){var m,S=arguments.length;for(m=0;m<S;m++)h=arguments[m],f.call(this,h)}};E("add"),E("remove")}if(p.classList.toggle("c3",!1),p.classList.contains("c3")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return 1 in arguments&&!this.contains(u)==!f?f:l.call(this,u)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(u,f){var h=this.toString().split(" "),m=h.indexOf(u+"");~m&&(h=h.slice(m),this.remove.apply(this,h),this.add(f),this.add.apply(this,h.slice(1)))}),p=null})()),_(2675),_(9463),_(2259),_(5700),_(8706),_(2008),_(3418),_(4423),_(3792),_(2062),_(6910),_(739),_(9572),_(2892),_(9085),_(3851),_(1278),_(9432),_(4864),_(1699),_(7764),_(8344),_(3500),_(2953),_(2712),_(2637),_(1480),_(825),_(1761);var ye=(function(){return p=function u(f){var h=f.getOptions,m=f.getCaretPosition,S=f.getCaretPositionEnd,N=f.dispatch;(function(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")})(this,u),P(this,"getOptions",void 0),P(this,"getCaretPosition",void 0),P(this,"getCaretPositionEnd",void 0),P(this,"dispatch",void 0),P(this,"maxLengthReached",void 0),P(this,"isStandardButton",(function(x){return x&&!(x[0]==="{"&&x[x.length-1]==="}")})),this.getOptions=h,this.getCaretPosition=m,this.getCaretPositionEnd=S,this.dispatch=N,u.bindMethods(u,this)},E=[{key:"getButtonType",value:function(u){return u.includes("{")&&u.includes("}")&&u!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(u){var f=this.getButtonType(u),h=u.replace("{","").replace("}",""),m="";return f!=="standardBtn"&&(m=" hg-button-".concat(h)),"hg-".concat(f).concat(m)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(u,f){return(f=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),f):f||this.getDefaultDiplay())[u]||u}},{key:"getUpdatedInput",value:function(u,f,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,S=arguments.length>4&&arguments[4]!==void 0&&arguments[4],N=this.getOptions(),x=[h,m,S],T=f;return(u==="{bksp}"||u==="{backspace}")&&T.length>0?T=this.removeAt.apply(this,[T].concat(x)):(u==="{delete}"||u==="{forwarddelete}")&&T.length>0?T=this.removeForwardsAt.apply(this,[T].concat(x)):u==="{space}"?T=this.addStringAt.apply(this,[T," "].concat(x)):u!=="{tab}"||typeof N.tabCharOnTab=="boolean"&&N.tabCharOnTab===!1?u!=="{enter}"&&u!=="{numpadenter}"||!N.newLineOnEnter?u.includes("numpad")&&Number.isInteger(Number(u[u.length-2]))?T=this.addStringAt.apply(this,[T,u[u.length-2]].concat(x)):u==="{numpaddivide}"?T=this.addStringAt.apply(this,[T,"/"].concat(x)):u==="{numpadmultiply}"?T=this.addStringAt.apply(this,[T,"*"].concat(x)):u==="{numpadsubtract}"?T=this.addStringAt.apply(this,[T,"-"].concat(x)):u==="{numpadadd}"?T=this.addStringAt.apply(this,[T,"+"].concat(x)):u==="{numpaddecimal}"?T=this.addStringAt.apply(this,[T,"."].concat(x)):u==="{"||u==="}"?T=this.addStringAt.apply(this,[T,u].concat(x)):u.includes("{")||u.includes("}")||(T=this.addStringAt.apply(this,[T,u].concat(x))):T=this.addStringAt.apply(this,[T,`
`].concat(x)):T=this.addStringAt.apply(this,[T,"	"].concat(x)),N.debug&&console.log("Input will be: "+T),T}},{key:"updateCaretPos",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],h=this.updateCaretPosAction(u,f);this.dispatch((function(m){m.setCaretPosition(h)}))}},{key:"updateCaretPosAction",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],h=this.getOptions(),m=this.getCaretPosition();return m!=null&&(f?m>0&&(m-=u):m+=u),h.debug&&console.log("Caret at:",m),m}},{key:"addStringAt",value:function(u,f){var h,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.length,N=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return m||m===0?(h=[u.slice(0,m),f,u.slice(S)].join(""),this.isMaxLengthReached()||N&&this.updateCaretPos(f.length)):h=u+f,h}},{key:"removeAt",value:function(u){var f,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.length,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(h===0&&m===0)return u;if(h===m){var N=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;h&&h>=0?u.substring(h-2,h).match(N)?(f=u.substr(0,h-2)+u.substr(h),S&&this.updateCaretPos(2,!0)):(f=u.substr(0,h-1)+u.substr(h),S&&this.updateCaretPos(1,!0)):u.slice(-2).match(N)?(f=u.slice(0,-2),S&&this.updateCaretPos(2,!0)):(f=u.slice(0,-1),S&&this.updateCaretPos(1,!0))}else f=u.slice(0,h)+u.slice(m),S&&this.dispatch((function(x){x.setCaretPosition(h)}));return f}},{key:"removeForwardsAt",value:function(u){var f,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.length,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.length,S=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return u!=null&&u.length&&h!==null?(h===m?f=u.substring(h,h+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?u.substr(0,h)+u.substr(h+2):u.substr(0,h)+u.substr(h+1):(f=u.slice(0,h)+u.slice(m),S&&this.dispatch((function(N){N.setCaretPosition(h)}))),f):u}},{key:"handleMaxLength",value:function(u,f){var h=this.getOptions(),m=h.maxLength,S=u[h.inputName||"default"],N=f.length-1>=m;if(f.length<=S.length)return!1;if(Number.isInteger(m))return h.debug&&console.log("maxLength (num) reached:",N),N?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(Q(m)==="object"){var x=f.length-1>=m[h.inputName||"default"];return h.debug&&console.log("maxLength (obj) reached:",x),x?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(u){return u?u.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(f,h){return h.length?f+h[0].toUpperCase()+h.slice(1):f})):""}},{key:"chunkArray",value:function(u,f){return ne(Array(Math.ceil(u.length/f))).map((function(h,m){return u.slice(f*m,f+f*m)}))}},{key:"escapeRegex",value:function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(u,f){var h=u,m=f.indexOf("‫");return m<u&&m!=-1&&h--,f.indexOf("‬")<u&&m!=-1&&h--,h<0?0:h}},{key:"isConstructor",value:function(u){try{Reflect.construct(String,[],u)}catch{return!1}return!0}}],l=[{key:"bindMethods",value:function(u,f){var h,m=(function(N,x){var T=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!T){if(Array.isArray(N)||(T=I(N))||x){T&&(N=T);var R=0,H=function(){};return{s:H,n:function(){return R>=N.length?{done:!0}:{done:!1,value:N[R++]}},e:function(q){throw q},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,D=!0,K=!1;return{s:function(){T=T.call(N)},n:function(){var q=T.next();return D=q.done,q},e:function(q){K=!0,M=q},f:function(){try{D||T.return==null||T.return()}finally{if(K)throw M}}}})(Object.getOwnPropertyNames(u.prototype));try{for(m.s();!(h=m.n()).done;){var S=h.value;S==="constructor"||S==="bindMethods"||(f[S]=f[S].bind(f))}}catch(N){m.e(N)}finally{m.f()}}}],E&&Z(p.prototype,E),l&&Z(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})();P(ye,"noop",(function(){}));var fe=ye;function Se(p){return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Se(p)}function De(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,we(u.key),u)}}function ue(p,E,l){return(E=we(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function we(p){var E=(function(l,u){if(Se(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Se(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Se(E)=="symbol"?E:E+""}var at=(function(){return p=function u(f){var h=this,m=f.dispatch,S=f.getOptions;(function(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")})(this,u),ue(this,"getOptions",void 0),ue(this,"dispatch",void 0),ue(this,"isModifierKey",(function(N){return N.altKey||N.ctrlKey||N.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N.code||N.key||h.keyCodeToKey(N==null?void 0:N.keyCode))})),this.dispatch=m,this.getOptions=S,fe.bindMethods(u,this)},E=[{key:"handleHighlightKeyDown",value:function(u){var f=this.getOptions();f.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(u)&&(u.preventDefault(),u.stopImmediatePropagation());var h=this.getSimpleKeyboardLayoutKey(u);this.dispatch((function(m){var S,N,x=m.getButtonElement(h),T=m.getButtonElement("{".concat(h,"}"));if(x)S=x,N=h;else{if(!T)return;S=T,N="{".concat(h,"}")}var R,H,M,D,K=function(Y){Y.style.background=f.physicalKeyboardHighlightBgColor||"#dadce4",Y.style.color=f.physicalKeyboardHighlightTextColor||"black"};if(S)if(Array.isArray(S)){if(S.forEach((function(Y){return K(Y)})),f.physicalKeyboardHighlightPress)if(f.physicalKeyboardHighlightPressUsePointerEvents)(R=S[0])===null||R===void 0||(H=R.onpointerdown)===null||H===void 0||H.call(R,u);else if(f.physicalKeyboardHighlightPressUseClick){var q;(q=S[0])===null||q===void 0||q.click()}else m.handleButtonClicked(N,u)}else K(S),f.physicalKeyboardHighlightPress&&(f.physicalKeyboardHighlightPressUsePointerEvents?(M=S)===null||M===void 0||(D=M.onpointerdown)===null||D===void 0||D.call(M,u):f.physicalKeyboardHighlightPressUseClick?S.click():m.handleButtonClicked(N,u))}))}},{key:"handleHighlightKeyUp",value:function(u){var f=this.getOptions();f.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(u)&&(u.preventDefault(),u.stopImmediatePropagation());var h=this.getSimpleKeyboardLayoutKey(u);this.dispatch((function(m){var S,N,x,T=m.getButtonElement(h)||m.getButtonElement("{".concat(h,"}")),R=function(H){H.removeAttribute&&H.removeAttribute("style")};T&&(Array.isArray(T)?(T.forEach((function(H){return R(H)})),f.physicalKeyboardHighlightPressUsePointerEvents&&((S=T[0])===null||S===void 0||(N=S.onpointerup)===null||N===void 0||N.call(S,u))):(R(T),f.physicalKeyboardHighlightPressUsePointerEvents&&(T==null||(x=T.onpointerup)===null||x===void 0||x.call(T,u))))}))}},{key:"getSimpleKeyboardLayoutKey",value:function(u){var f,h="",m=u.code||u.key||this.keyCodeToKey(u==null?void 0:u.keyCode);return(h=m!=null&&m.includes("Numpad")||m!=null&&m.includes("Shift")||m!=null&&m.includes("Space")||m!=null&&m.includes("Backspace")||m!=null&&m.includes("Control")||m!=null&&m.includes("Alt")||m!=null&&m.includes("Meta")?u.code||"":u.key||this.keyCodeToKey(u==null?void 0:u.keyCode)||"").length>1?(f=h)===null||f===void 0?void 0:f.toLowerCase():h}},{key:"keyCodeToKey",value:function(u){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",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",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[u]||""}}],E&&De(p.prototype,E),l&&De(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})();function Ie(p){return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Ie(p)}function ke(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,qe(u.key),u)}}function be(p,E,l){return(E=qe(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function qe(p){var E=(function(l,u){if(Ie(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Ie(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Ie(E)=="symbol"?E:E+""}var ut=(function(){return p=function u(f){var h=f.utilities,m=f.options;(function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")})(this,u),be(this,"utilities",void 0),be(this,"options",void 0),be(this,"candidateBoxElement",void 0),be(this,"pageIndex",0),be(this,"pageSize",void 0),this.utilities=h,this.options=m,fe.bindMethods(u,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},E=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(u){var f=this,h=u.candidateValue,m=u.targetElement,S=u.onSelect;if(h&&h.length){var N=this.utilities.chunkArray(h.split(" "),this.pageSize);this.renderPage({candidateListPages:N,targetElement:m,pageIndex:this.pageIndex,nbPages:N.length,onItemSelected:function(x,T){S(x,T),f.destroy()}})}}},{key:"renderPage",value:function(u){var f,h=this,m=u.candidateListPages,S=u.targetElement,N=u.pageIndex,x=u.nbPages,T=u.onItemSelected;(f=this.candidateBoxElement)===null||f===void 0||f.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var R=document.createElement("ul");R.className="hg-candidate-box-list",m[N].forEach((function(G){var $,ie=document.createElement("li"),J=function(){var ve=new(h.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(ve,"target",{value:ie}),ve};ie.className="hg-candidate-box-list-item",ie.innerHTML=(($=h.options.display)===null||$===void 0?void 0:$[G])||G,h.options.useTouchEvents?ie.ontouchstart=function(ve){return T(G,ve||J())}:ie.onclick=function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J();return T(G,ve)},R.appendChild(ie)}));var H=N>0,M=document.createElement("div");M.classList.add("hg-candidate-box-prev"),H&&M.classList.add("hg-candidate-box-btn-active");var D=function(){H&&h.renderPage({candidateListPages:m,targetElement:S,pageIndex:N-1,nbPages:x,onItemSelected:T})};this.options.useTouchEvents?M.ontouchstart=D:M.onclick=D,this.candidateBoxElement.appendChild(M),this.candidateBoxElement.appendChild(R);var K=N<x-1,q=document.createElement("div");q.classList.add("hg-candidate-box-next"),K&&q.classList.add("hg-candidate-box-btn-active");var Y=function(){K&&h.renderPage({candidateListPages:m,targetElement:S,pageIndex:N+1,nbPages:x,onItemSelected:T})};this.options.useTouchEvents?q.ontouchstart=Y:q.onclick=Y,this.candidateBoxElement.appendChild(q),S.prepend(this.candidateBoxElement)}}],E&&ke(p.prototype,E),l&&ke(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})(),pt=ut;function ae(p){return(function(E){if(Array.isArray(E))return Te(E)})(p)||(function(E){if(typeof Symbol<"u"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)})(p)||(function(E,l){if(E){if(typeof E=="string")return Te(E,l);var u={}.toString.call(E).slice(8,-1);return u==="Object"&&E.constructor&&(u=E.constructor.name),u==="Map"||u==="Set"?Array.from(E):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Te(E,l):void 0}})(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Te(p,E){(E==null||E>p.length)&&(E=p.length);for(var l=0,u=Array(E);l<E;l++)u[l]=p[l];return u}function Ve(p){return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Ve(p)}function ht(p,E){var l=Object.keys(p);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(p);E&&(u=u.filter((function(f){return Object.getOwnPropertyDescriptor(p,f).enumerable}))),l.push.apply(l,u)}return l}function st(p,E){for(var l=0;l<E.length;l++){var u=E[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,he(u.key),u)}}function U(p,E,l){return(E=he(E))in p?Object.defineProperty(p,E,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[E]=l,p}function he(p){var E=(function(l,u){if(Ve(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var h=f.call(l,u);if(Ve(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)})(p,"string");return Ve(E)=="symbol"?E:E+""}var je=(function(){return p=function u(f,h){var m=this;if((function(D,K){if(!(D instanceof K))throw new TypeError("Cannot call a class as a function")})(this,u),U(this,"input",void 0),U(this,"options",void 0),U(this,"utilities",void 0),U(this,"caretPosition",void 0),U(this,"caretPositionEnd",void 0),U(this,"keyboardDOM",void 0),U(this,"keyboardPluginClasses",void 0),U(this,"keyboardDOMClass",void 0),U(this,"buttonElements",void 0),U(this,"currentInstanceName",void 0),U(this,"allKeyboardInstances",void 0),U(this,"keyboardInstanceNames",void 0),U(this,"isFirstKeyboardInstance",void 0),U(this,"physicalKeyboard",void 0),U(this,"modules",void 0),U(this,"activeButtonClass",void 0),U(this,"holdInteractionTimeout",void 0),U(this,"holdTimeout",void 0),U(this,"isMouseHold",void 0),U(this,"initialized",void 0),U(this,"candidateBox",void 0),U(this,"keyboardRowsDOM",void 0),U(this,"defaultName","default"),U(this,"activeInputElement",null),U(this,"handleParams",(function(D,K){var q,Y,G;if(typeof D=="string")q=D.split(".").join(""),Y=document.querySelector(".".concat(q)),G=K;else if(D instanceof HTMLDivElement){if(!D.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");q=D.className.split(" ")[0],Y=D,G=K}else q="simple-keyboard",Y=document.querySelector(".".concat(q)),G=D;return{keyboardDOMClass:q,keyboardDOM:Y,options:G}})),U(this,"getOptions",(function(){return m.options})),U(this,"getCaretPosition",(function(){return m.caretPosition})),U(this,"getCaretPositionEnd",(function(){return m.caretPositionEnd})),U(this,"registerModule",(function(D,K){m.modules[D]||(m.modules[D]={}),K(m.modules[D])})),U(this,"getKeyboardClassString",(function(){for(var D=arguments.length,K=new Array(D),q=0;q<D;q++)K[q]=arguments[q];return[m.keyboardDOMClass].concat(K).filter((function(Y){return!!Y})).join(" ")})),typeof window<"u"){var S=this.handleParams(f,h),N=S.keyboardDOMClass,x=S.keyboardDOM,T=S.options,R=T===void 0?{}:T;this.utilities=new fe({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=x,this.options=(function(D){for(var K=1;K<arguments.length;K++){var q=arguments[K]!=null?arguments[K]:{};K%2?ht(Object(q),!0).forEach((function(Y){U(D,Y,q[Y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(q)):ht(Object(q)).forEach((function(Y){Object.defineProperty(D,Y,Object.getOwnPropertyDescriptor(q,Y))}))}return D})({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},R),this.keyboardPluginClasses="",fe.bindMethods(u,this);var H=this.options.inputName,M=H===void 0?this.defaultName:H;if(this.input={},this.input[M]="",this.keyboardDOMClass=N,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new at({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new pt({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(N,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},E=[{key:"setCaretPosition",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;this.caretPosition=u,this.caretPositionEnd=f}},{key:"getInputCandidates",value:function(u){var f=this,h=this.options,m=h.layoutCandidates,S=h.layoutCandidatesCaseSensitiveMatch;if(!m||Ve(m)!=="object")return{};var N=Object.keys(m).filter((function(R){var H=u.substring(0,f.getCaretPositionEnd()||0)||u,M=new RegExp("".concat(f.utilities.escapeRegex(R),"$"),S?"g":"gi");return!!ae(H.matchAll(M)).length}));if(N.length>1){var x=N.sort((function(R,H){return H.length-R.length}))[0];return{candidateKey:x,candidateValue:m[x]}}if(N.length){var T=N[0];return{candidateKey:T,candidateValue:m[T]}}return{}}},{key:"showCandidatesBox",value:function(u,f,h){var m=this;this.candidateBox&&this.candidateBox.show({candidateValue:f,targetElement:h,onSelect:function(S,N){var x=m.options,T=x.layoutCandidatesCaseSensitiveMatch,R=x.disableCandidateNormalization,H=x.enableLayoutCandidatesKeyPress,M=S;R||(M=S.normalize("NFD")),typeof m.options.beforeInputUpdate=="function"&&m.options.beforeInputUpdate(m);var D=m.getInput(m.options.inputName,!0),K=m.getCaretPositionEnd()||0,q=D.substring(0,K||0)||D,Y=new RegExp("".concat(m.utilities.escapeRegex(u),"$"),T?"g":"gi"),G=q.replace(Y,M),$=D.replace(q,G),ie=G.length-q.length,J=(K||D.length)+ie;J<0&&(J=0),m.setInput($,m.options.inputName,!0),m.setCaretPosition(J),H&&typeof m.options.onKeyPress=="function"&&m.options.onKeyPress(S,N),typeof m.options.onChange=="function"&&m.options.onChange(m.getInput(m.options.inputName,!0),N),typeof m.options.onChangeAll=="function"&&m.options.onChangeAll(m.getAllInputs(),N)}})}},{key:"handleButtonClicked",value:function(u,f){var h=this.options,m=h.inputName,S=m===void 0?this.defaultName:m,N=h.debug;if(u!=="{//}"){this.input[S]||(this.input[S]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var x=this.utilities.getUpdatedInput(u,this.input[S],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(u)&&this.activeInputElement&&this.input[S]&&this.input[S]===x&&this.caretPosition===0&&this.caretPositionEnd===x.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(u,f);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(u,f),this.input[S]!==x&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(x))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,x))return;var T=this.utilities.getUpdatedInput(u,this.input[S],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(T,this.options.inputName,!0),N&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),f==null?void 0:f.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),f),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),f),f!=null&&f.target&&this.options.enableLayoutCandidates){var R,H=this.getInputCandidates(x),M=H.candidateKey,D=H.candidateValue;M&&D?this.showCandidatesBox(M,D,this.keyboardDOM):(R=this.candidateBox)===null||R===void 0||R.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),N&&console.log("Key pressed:",u)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(u){this.options.syncInstanceInputs?this.dispatch((function(f){f.isMouseHold=u})):this.isMouseHold=u}},{key:"handleButtonMouseDown",value:function(u,f){var h=this;f&&(this.options.preventMouseDownDefault&&f.preventDefault(),this.options.stopMouseDownPropagation&&f.stopPropagation(),f.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(h.getMouseHold()&&(!u.includes("{")&&!u.includes("}")||u==="{delete}"||u==="{backspace}"||u==="{bksp}"||u==="{space}"||u==="{tab}")||u==="{arrowright}"||u==="{arrowleft}"||u==="{arrowup}"||u==="{arrowdown}")&&(h.options.debug&&console.log("Button held:",u),h.handleButtonHold(u)),clearTimeout(h.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(u,f){var h=this;f&&(this.options.preventMouseUpDefault&&f.preventDefault&&f.preventDefault(),this.options.stopMouseUpPropagation&&f.stopPropagation&&f.stopPropagation(),!(f.target===this.keyboardDOM||f.target&&this.keyboardDOM.contains(f.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(f.target===this.candidateBox.candidateBoxElement||f.target&&this.candidateBox.candidateBoxElement.contains(f.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(m){m.classList.remove(h.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),u&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(u,f)}},{key:"handleKeyboardContainerMouseDown",value:function(u){this.options.preventMouseDownDefault&&u.preventDefault()}},{key:"handleButtonHold",value:function(u){var f=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){f.getMouseHold()?(f.handleButtonClicked(u),f.handleButtonHold(u)):clearTimeout(f.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var u=this;this.dispatch((function(f){f.replaceInput(u.input),f.setCaretPosition(u.caretPosition,u.caretPositionEnd)}))}},{key:"clearInput",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[u]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,f=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!f&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[u].replace("‫","").replace("‬","")+"‬":this.input[u]}},{key:"getAllInputs",value:function(){var u=this,f={};return Object.keys(this.input).forEach((function(h){f[h]=u.getInput(h,!0)})),f}},{key:"setInput",value:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,h=arguments.length>2?arguments[2]:void 0;this.input[f]=u,!h&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(u){this.input=u}},{key:"setOptions",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=this.changedOptions(u);this.options=Object.assign(this.options,u),f.length&&(this.options.debug&&console.log("changedOptions",f),this.onSetOptions(f),this.render())}},{key:"changedOptions",value:function(u){var f=this;return Object.keys(u).filter((function(h){return JSON.stringify(u[h])!==JSON.stringify(f.options[h])}))}},{key:"onSetOptions",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(u.includes("layoutCandidatesPageSize")||u.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new pt({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(u){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(f){u(window.SimpleKeyboardInstances[f],f)}))}},{key:"addButtonTheme",value:function(u,f){var h=this;f&&u&&(u.split(" ").forEach((function(m){f.split(" ").forEach((function(S){h.options.buttonTheme||(h.options.buttonTheme=[]);var N=!1;h.options.buttonTheme.map((function(x){if(x!=null&&x.class.split(" ").includes(S)){N=!0;var T=x.buttons.split(" ");T.includes(m)||(N=!0,T.push(m),x.buttons=T.join(" "))}return x})),N||h.options.buttonTheme.push({class:S,buttons:u})}))})),this.render())}},{key:"removeButtonTheme",value:function(u,f){var h=this;if(!u&&!f)return this.options.buttonTheme=[],void this.render();u&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(u.split(" ").forEach((function(m){var S;(S=h.options)===null||S===void 0||(S=S.buttonTheme)===null||S===void 0||S.map((function(N,x){if(N&&f&&f.includes(N.class)||!f){var T,R,H=(T=N)===null||T===void 0?void 0:T.buttons.split(" ").filter((function(M){return M!==m}));N&&H!=null&&H.length?N.buttons=H.join(" "):((R=h.options.buttonTheme)===null||R===void 0||R.splice(x,1),N=null)}return N}))})),this.render())}},{key:"getButtonElement",value:function(u){var f,h=this.buttonElements[u];return h&&(f=h.length>1?h:h[0]),f}},{key:"inputPatternIsValid",value:function(u){var f,h=this.options.inputPattern;if((f=h instanceof RegExp?h:h[this.options.inputName||this.defaultName])&&u){var m=f.test(u);return this.options.debug&&console.log('inputPattern ("'.concat(f,'"): ').concat(m?"passed":"did not pass!")),m}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var u=this.options.physicalKeyboardHighlightPreventDefault,f=u!==void 0&&u;document.addEventListener("keyup",this.handleKeyUp,f),document.addEventListener("keydown",this.handleKeyDown,f),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(u){this.caretEventHandler(u),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(u)}},{key:"handleKeyDown",value:function(u){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(u)}},{key:"handleMouseUp",value:function(u){this.caretEventHandler(u)}},{key:"handleTouchEnd",value:function(u){this.caretEventHandler(u)}},{key:"handleSelect",value:function(u){this.caretEventHandler(u)}},{key:"handleSelectionChange",value:function(u){navigator.userAgent.includes("Firefox")||this.caretEventHandler(u)}},{key:"caretEventHandler",value:function(u){var f,h=this;u.target.tagName&&(f=u.target.tagName.toLowerCase()),this.dispatch((function(m){var S=u.target===m.keyboardDOM||u.target&&m.keyboardDOM.contains(u.target);if(h.options.syncInstanceInputs&&Array.isArray(u.path)&&(S=u.path.some((function(T){var R;return T==null||(R=T.hasAttribute)===null||R===void 0?void 0:R.call(T,"data-skInstance")}))),(f==="textarea"||f==="input"&&["text","search","url","tel","password"].includes(u.target.type))&&!m.options.disableCaretPositioning){var N=u.target.selectionStart,x=u.target.selectionEnd;m.options.rtl&&(N=m.utilities.getRtlOffset(N,m.getInput()),x=m.utilities.getRtlOffset(x,m.getInput())),m.setCaretPosition(N,x),m.activeInputElement=u.target,m.options.debug&&console.log("Caret at: ",m.getCaretPosition(),m.getCaretPositionEnd(),u&&u.target.tagName.toLowerCase(),"(".concat(m.keyboardDOMClass,")"),u==null?void 0:u.type)}else!m.options.disableCaretPositioning&&S||(u==null?void 0:u.type)==="selectionchange"||(m.setCaretPosition(null),m.activeInputElement=null,m.options.debug&&console.log('Caret position reset due to "'.concat(u==null?void 0:u.type,'" event'),u))}))}},{key:"recurseButtons",value:function(u){var f=this;u&&Object.keys(this.buttonElements).forEach((function(h){return f.buttonElements[h].forEach(u)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var u=this.options.physicalKeyboardHighlightPreventDefault,f=u!==void 0&&u;document.removeEventListener("keyup",this.handleKeyUp,f),document.removeEventListener("keydown",this.handleKeyDown,f),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(h){h&&(h.onpointerdown=null,h.onpointerup=null,h.onpointercancel=null,h.ontouchstart=null,h.ontouchend=null,h.ontouchcancel=null,h.onclick=null,h.onmousedown=null,h.onmouseup=null,h.remove(),h=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(u){var f=this.options.buttonTheme,h=[];return Array.isArray(f)&&f.forEach((function(m){if(m&&m.class&&typeof m.class=="string"&&m.buttons&&typeof m.buttons=="string"){var S=m.class.split(" ");m.buttons.split(" ").includes(u)&&(h=[].concat(ae(h),ae(S)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',m)})),h}},{key:"setDOMButtonAttributes",value:function(u,f){var h=this.options.buttonAttributes;Array.isArray(h)&&h.forEach((function(m){m.attribute&&typeof m.attribute=="string"&&m.value&&typeof m.value=="string"?m.buttons&&typeof m.buttons=="string"?m.buttons.split(" ").includes(u)&&f(m.attribute,m.value):f(m.attribute,m.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',m)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(u){var f;if((f=u.target.classList)!==null&&f!==void 0&&f.contains("hg-button"))return u.preventDefault(),u.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var u=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(f){var h=u.utilities.isConstructor(f)?new f(u):f(u);h.init&&h.init(u)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(u,f){return!!this.modules[u]&&this.modules[u][f]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(u,f,h,m){var S=this,N=Array.from(u.children),x=0;return N.length&&h.forEach((function(T,R){var H=m[R];if(!(H&&H>T))return!1;var M=T-x,D=H-x,K=document.createElement("div");K.className+="hg-button-container";var q="".concat(S.options.layoutName,"-r").concat(f,"c").concat(R);K.setAttribute("data-skUID",q);var Y=N.splice(M,D-M+1);x+=D-M,Y.forEach((function(G){return K.appendChild(G)})),N.splice(M,0,K),u.innerHTML="",N.forEach((function(G){return u.appendChild(G)})),S.options.debug&&console.log("rowDOMContainer",Y,M,D,x+1)})),u}},{key:"render",value:function(){var u=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var f="hg-layout-".concat(this.options.layoutName),h=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},m=this.options.useTouchEvents||!1,S=m?"hg-touch-events":"",N=this.options.useMouseEvents||!1,x=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,f,this.keyboardPluginClasses,S),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",h[this.options.layoutName||this.defaultName].forEach((function(T,R){var H=T.split(" ");u.options.excludeFromLayout&&u.options.excludeFromLayout[u.options.layoutName||u.defaultName]&&(H=H.filter((function(q){return u.options.excludeFromLayout&&!u.options.excludeFromLayout[u.options.layoutName||u.defaultName].includes(q)})));var M=document.createElement("div");M.className+="hg-row";var D=[],K=[];H.forEach((function(q,Y){var G,$=!x&&typeof q=="string"&&q.length>1&&q.indexOf("[")===0,ie=!x&&typeof q=="string"&&q.length>1&&q.indexOf("]")===q.length-1;$&&(D.push(Y),q=q.replace(/\[/g,"")),ie&&(K.push(Y),q=q.replace(/\]/g,""));var J=u.utilities.getButtonClass(q),ve=u.utilities.getButtonDisplayName(q,u.options.display,u.options.mergeDisplay),Ee=u.options.useButtonTag?"button":"div",me=document.createElement(Ee);me.className+="hg-button ".concat(J),(G=me.classList).add.apply(G,ae(u.getButtonThemeClasses(q))),u.setDOMButtonAttributes(q,(function(re,Be){me.setAttribute(re,Be)})),u.activeButtonClass="hg-activeButton",!u.utilities.pointerEventsSupported()||m||N?m?(me.ontouchstart=function(re){u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},me.ontouchend=function(re){u.handleButtonMouseUp(q,re)},me.ontouchcancel=function(re){u.handleButtonMouseUp(q,re)}):(me.onclick=function(re){u.setMouseHold(!1),typeof u.options.onKeyReleased=="function"||u.options.useMouseEvents&&u.options.clickOnMouseDown||u.handleButtonClicked(q,re)},me.onmousedown=function(re){(typeof u.options.onKeyReleased=="function"||u.options.useMouseEvents&&u.options.clickOnMouseDown)&&!u.isMouseHold&&u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},me.onmouseup=function(re){u.handleButtonMouseUp(q,re)}):(me.onpointerdown=function(re){u.handleButtonClicked(q,re),u.handleButtonMouseDown(q,re)},me.onpointerup=function(re){u.handleButtonMouseUp(q,re)},me.onpointercancel=function(re){u.handleButtonMouseUp(q,re)}),me.setAttribute("data-skBtn",q);var Oe="".concat(u.options.layoutName,"-r").concat(R,"b").concat(Y);me.setAttribute("data-skBtnUID",Oe);var Ne=document.createElement("span");Ne.innerHTML=ve,me.appendChild(Ne),u.buttonElements[q]||(u.buttonElements[q]=[]),u.buttonElements[q].push(me),M.appendChild(me)})),M=u.parseRowDOMContainers(M,R,D,K),u.keyboardRowsDOM.appendChild(M)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||m||N?m?(document.ontouchend=function(T){return u.handleButtonMouseUp(void 0,T)},document.ontouchcancel=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.ontouchstart=function(T){return u.handleKeyboardContainerMouseDown(T)}):m||(document.onmouseup=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.onmousedown=function(T){return u.handleKeyboardContainerMouseDown(T)}):(document.onpointerup=function(T){return u.handleButtonMouseUp(void 0,T)},this.keyboardDOM.onpointerdown=function(T){return u.handleKeyboardContainerMouseDown(T)}),this.onInit())}}],E&&st(p.prototype,E),l&&st(p,l),Object.defineProperty(p,"prototype",{writable:!1}),p;var p,E,l})(),xe=je,Ge=xe;return z})()},442:function(O){O.exports=d}},g={};function y(O){var C=g[O];if(C!==void 0)return C.exports;var j=g[O]={exports:{}};return c[O].call(j.exports,j,j.exports,y),j.exports}y.n=function(O){var C=O&&O.__esModule?function(){return O.default}:function(){return O};return y.d(C,{a:C}),C},y.d=function(O,C){for(var j in C)y.o(C,j)&&!y.o(O,j)&&Object.defineProperty(O,j,{enumerable:!0,get:C[j]})},y.o=function(O,C){return Object.prototype.hasOwnProperty.call(O,C)},y.r=function(O){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(O,"__esModule",{value:!0})};var w={};return(function(){y.r(w),y.d(w,{KeyboardReact:function(){return Q},default:function(){return Z}}),y(981);var O=y(442),C=y(548),j=y.n(C);function _(P){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_(P)}function z(P,ce){var ye=Object.keys(P);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(P);ce&&(fe=fe.filter((function(Se){return Object.getOwnPropertyDescriptor(P,Se).enumerable}))),ye.push.apply(ye,fe)}return ye}function ne(P){for(var ce=1;ce<arguments.length;ce++){var ye=arguments[ce]!=null?arguments[ce]:{};ce%2?z(Object(ye),!0).forEach((function(fe){I(P,fe,ye[fe])})):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(ye)):z(Object(ye)).forEach((function(fe){Object.defineProperty(P,fe,Object.getOwnPropertyDescriptor(ye,fe))}))}return P}function I(P,ce,ye){return(ce=(function(fe){var Se=(function(De,ue){if(_(De)!="object"||!De)return De;var we=De[Symbol.toPrimitive];if(we!==void 0){var at=we.call(De,ue);if(_(at)!="object")return at;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ue==="string"?String:Number)(De)})(fe,"string");return _(Se)=="symbol"?Se:Se+""})(ce))in P?Object.defineProperty(P,ce,{value:ye,enumerable:!0,configurable:!0,writable:!0}):P[ce]=ye,P}var oe=function(P){return ne(ne({},P),{},{keyboardRef:null})},Q=function(P){var ce=P.baseClass||"react-simple-keyboard",ye=O.useRef(null),fe=O.useRef(null),Se=O.useRef(null),De=O.useRef(P);return O.useEffect((function(){return function(){Se.current&&Se.current.destroy(),ye.current=!1}}),[]),O.useEffect((function(){var ue=(function(be){return ne(ne({},be),{},{theme:"simple-keyboard ".concat(be.theme||"hg-theme-default")})})(P);if(!ye.current){ye.current=!0,ue.debug&&console.log("ReactSimpleKeyboard: Init");var we=fe.current,at=".".concat(ce);Se.current=new(j())(we||at,ue),ue.keyboardRef&&ue.keyboardRef(Se.current)}var Ie=(function(be,qe){var ut=oe(qe),pt=oe(be);return Object.keys(ut).filter((function(ae){return ut[ae]!==pt[ae]}))})(De.current,ue);if(Ie.length){var ke=Se.current;De.current=ue,ke==null||ke.setOptions(ue),ue.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",Ie)}}),[ye,ce,De,P]),O.createElement("div",{className:ce,ref:fe})},Z=Q})(),w})()}))})(pu)),pu.exports}var d1=f1();const wp=$s(d1);function h1({onInput:r,onBackspace:s}){const d=L.useMemo(()=>({default:["1 2 3","4 5 6","7 8 9","0 {bksp}"]}),[]),c={"{bksp}":"⌫"},g=y=>{if(y==="{bksp}")return s==null?void 0:s();/^\d$/.test(y)&&(r==null||r(y))};return b.jsx("div",{className:"vk-wrap",role:"dialog","aria-label":"Ziffern-Tastatur",children:b.jsx(wp,{layout:d,display:c,onKeyPress:g})})}function m1({onSubmit:r}){const[s,d]=L.useState(""),[c,g]=L.useState(!1),[y,w]=L.useState(!1),[O,C]=L.useState(!1),j=ce=>{const fe=String(ce).replace(/[^0-9]/g,"").slice(0,20).match(/.{1,5}/g);return fe?fe.join("-"):""},_=L.useMemo(()=>s.replace(/-/g,""),[s]),z=_.length===20,ne=ce=>{d(j(ce.target.value))},I=ce=>d(ye=>j(ye+ce)),oe=()=>d(ce=>{const ye=ce.replace(/-/g,"");return j(ye.slice(0,-1))}),Q=()=>d(""),Z=()=>{g(!0),window.setTimeout(()=>g(!1),4e3)},P=async()=>{if(!z||y)return;const ce=_.toLowerCase();w(!0);try{const ye=await Hb(ce);(ye==null?void 0:ye.status)===200?(C(!1),r==null||r()):Z()}catch{Z()}finally{w(!1)}};return b.jsxs("div",{className:"enter-key-screen",onMouseDown:()=>O&&C(!1),children:[b.jsx("h1",{children:"Terminalschlüssel eingeben"}),b.jsx("p",{children:"Bitte geben Sie den Terminal-Key ein, den Sie vom System erhalten haben."}),b.jsx("input",{type:"text",className:"key-input",value:s,onChange:ne,onFocus:()=>C(!0),onMouseDown:ce=>ce.stopPropagation(),placeholder:"z. B. 12345-67890-12345-67890",maxLength:24,disabled:y,inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",autoCorrect:"off",spellCheck:!1}),O&&!y&&b.jsx("div",{onMouseDown:ce=>ce.stopPropagation(),children:b.jsx(h1,{onInput:I,onBackspace:oe,onClear:Q,onEnter:P})}),b.jsx("button",{className:"submit-button",onClick:P,disabled:!z||y,children:y?"Bitte warten...":"Weiter"}),c&&b.jsx("div",{className:"snackbar error",children:"Ungültiger oder abgelaufener Schlüssel. Bitte versuchen Sie es erneut."})]})}const sc=L.createContext();function p1({children:r}){const[s,d]=L.useState(!0),[c,g]=L.useState(null),[y,w]=L.useState(!1),[O,C]=L.useState(!1),[j,_]=L.useState(0),z=yn(),ne=vl(),{allowed:I,resolved:oe}=oc(),Q=y&&O,Z=L.useCallback(()=>{d(!0),_(P=>P+1)},[]);return L.useEffect(()=>{(async()=>{var ce,ye;d(!0);try{const fe=await Lb(),Se=(fe==null?void 0:fe.exists)===!0;if(g(Se),!Se){w(!1),C(!1);return}const[De,ue]=await Promise.all([Op(),Np()]);w(((ce=De==null?void 0:De.result)==null?void 0:ce.exists)===!0),C(((ye=ue==null?void 0:ue.result)==null?void 0:ye.exists)===!0)}catch{g(!1),w(!1),C(!1)}finally{d(!1)}})()},[j]),L.useEffect(()=>{if(!c||ne.pathname==="/dev/t2med"&&!oe)return;const P=ne.pathname==="/dev/t2med"&&(!oe||I);if(!Q&&ne.pathname!=="/setup-t2med"&&!P){z("/setup-t2med",{replace:!0});return}Q&&["/setup-t2med","/"].includes(ne.pathname)&&z("/start",{replace:!0})},[c,Q,z,ne.pathname,I,oe]),s?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):c?b.jsx(sc.Provider,{value:{certExists:c,setupDone:Q,t2medSetupDone:y,emmaSyncSetupDone:O},children:r}):b.jsx(m1,{onSubmit:Z})}function v1(){const[r,s]=L.useState("loading"),[d,c]=L.useState(!1),g=yn(),y=L.useContext(sc);return L.useEffect(()=>{(y==null?void 0:y.setupDone)!==!0&&g("/setup-t2med",{replace:!0})},[y==null?void 0:y.setupDone,g]),L.useEffect(()=>{c(!0)},[]),L.useEffect(()=>{if(!d)return;const w=6e4;let O=!1;const C=async()=>{const[_,z]=await Promise.all([Yb(),Sp()]);if(O)return;if(!(_!=null&&_.error)&&typeof(_==null?void 0:_.open)=="boolean"){s(_.open?"ready":"closed");return}if(z&&typeof z=="object"&&z.error){s("ready");return}const ne=Array.isArray(z)?z:(z==null?void 0:z.data)||(z==null?void 0:z.openingTimes)||[];if(!ne||ne.length===0){s("ready");return}const I=new Date,oe=yp(I);let Q,Z;if(oe)Q=oe.weekdayMon0,Z=oe.hhmm;else{const ce=I.getDay();Q=ce===0?6:ce-1,Z=I.toTimeString().substring(0,5)}const P=kb(ne,Q,Z);s(P?"ready":"closed")};C();const j=setInterval(()=>{C()},w);return()=>{O=!0,clearInterval(j)}},[d]),L.useEffect(()=>{const w=!d||r==="loading"||r==="closed";return window.__hideFooter=w,window.dispatchEvent(new Event("footer:update")),()=>{window.__hideFooter=!1,window.dispatchEvent(new Event("footer:update"))}},[d,r]),!d||r==="loading"?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):(y==null?void 0:y.setupDone)!==!0?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):r==="closed"?b.jsx(s1,{}):b.jsx(o1,{onStart:()=>g("/welcome")})}function g1(){const r=L.useRef(null),s=yn();L.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(c=>{}))},[]);const d=()=>{s("/insurance-card")};return b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Willkommen.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:d})})})}function y1({updatePatientData:r,patientData:s}){const d=L.useRef(null),c=L.useRef(null),g=L.useRef(null),y=L.useRef(!1),w=yn(),[O,C]=L.useState("video1"),[j,_]=L.useState(!1),[z,ne]=L.useState("idle"),[I,oe]=L.useState(!1),Q=ue=>(ue==null?void 0:ue.level)==="warning",Z=L.useCallback(ue=>{j&&(ue==="success"&&C("video2"),ue==="error"&&C("errorVideo"))},[j]);L.useEffect(()=>{if(O==="video1"){const ue=d.current;if(!ue)return;ue.pause(),ue.load();const we=ue.play();we!==void 0&&we.catch(()=>{})}},[O]);const P=L.useCallback(async ue=>{const we=(ue==null?void 0:ue.isCancelled)??(()=>!1),at=async()=>{const Ie=c.current;!Ie||we()||(we()||oe(!1),Ie.muted=!1,Ie.volume=1,Ie.playsInline=!0,await Ie.play())};for(let Ie=0;Ie<2;Ie++)try{await at();return}catch(ke){if(we())return;if((ke==null?void 0:ke.name)==="NotAllowedError"){console.warn("[video2] autoplay blocked; user gesture required",ke),oe(!0);return}if((ke==null?void 0:ke.name)==="AbortError"){if(Ie===0){await new Promise(be=>requestAnimationFrame(be));continue}return}console.error("[video2] media not playable (check public/videos/Vielen-Dank-eGK.mp4 or fallback; H.264+AAC MP4, not 404/HTML):",ke),C("done");return}},[]);L.useEffect(()=>{if(O!=="video2")return;let ue=!1;return P({isCancelled:()=>ue}),()=>{ue=!0}},[O,P]),L.useEffect(()=>{if(O==="errorVideo"){const ue=g.current;if(!ue)return;ue.pause(),ue.load();const we=ue.play();we!==void 0&&we.catch(()=>{})}},[O]),L.useEffect(()=>{O==="done"&&w("/appointment-yesno",{replace:!0})},[O,w]);const ce=L.useCallback(async()=>{if(y.current)return;y.current=!0,ne("loading"),sessionStorage.removeItem("t2medSitzungHandle");const ue=()=>{sessionStorage.removeItem("t2medSitzungHandle"),ne("error"),Z("error")};try{const we=(s==null?void 0:s.typeOfVisitationSteps)||[],at=we.length>0?we[we.length-1]:void 0,Ie=await Xb(at);if(Ie!=null&&Ie.error){ue(Ie);return}const ke=Ie==null?void 0:Ie.sitzungHandle;if(!ke){ue({error:"Es konnte kein Sitzung-Handle ermittelt werden."});return}sessionStorage.setItem("t2medSitzungHandle",ke);const be=await Zb(ke);if(be!=null&&be.error&&!Q(be)){ue(be);return}if(be!=null&&be.firstName&&(be!=null&&be.lastName)){r("firstName",be.firstName),r("lastName",be.lastName),be.birthDate&&r("birthDate",be.birthDate),ne("success"),Z("success");return}ue({error:"Patientendaten konnten nicht ermittelt werden."})}catch(we){ue({error:(we==null?void 0:we.message)||"Unerwarteter Fehler beim T2med Check-in."})}},[s,Z,r]);L.useEffect(()=>{O==="video1"&&ce()},[O,ce]);const ye=()=>{if(_(!0),z==="success"){C("video2");return}if(z==="error"){C("errorVideo");return}};L.useEffect(()=>{if(j){if(z==="success"){C("video2");return}z==="error"&&C("errorVideo")}},[j,z]);const fe=()=>{C("done")},Se=L.useCallback(()=>{const ue=c.current,we=ue==null?void 0:ue.error;console.error("[video2] onError",{code:we==null?void 0:we.code,message:we==null?void 0:we.message,networkState:ue==null?void 0:ue.networkState}),C("done")},[]),De=()=>{w("/start",{replace:!0})};return b.jsxs("div",{className:"healthcard-screen",children:[O==="video1"&&b.jsx("div",{className:"video1-with-hint",children:b.jsx("div",{className:"video-container video1-wrap",children:b.jsx("video",{ref:d,src:"/videos/Gesundheitskarte_small_mit_Bild.mp4",className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onEnded:ye})})}),O==="video2"&&b.jsxs("div",{className:"video-container video2-wrap",children:[b.jsxs("video",{ref:c,className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onEnded:fe,onError:Se,children:[b.jsx("source",{src:"/videos/Vielen-Dank-eGK.mp4",type:"video/mp4"}),b.jsx("source",{src:"/videos/Vielen-Dank-Check-In-Nutzung.mp4",type:"video/mp4"})]}),I&&b.jsx("div",{className:"video2-overlay",children:b.jsxs("div",{className:"video2-overlay-inner",children:[b.jsx("div",{className:"card-title",children:"Weiter"}),b.jsx("div",{className:"card-subtitle",children:"Tippen Sie, um das Dankesvideo mit Ton zu starten."}),b.jsx("button",{className:"simulate-button",onClick:P,children:"Dankesvideo starten"}),b.jsx("button",{className:"simulate-button secondary",style:{marginTop:10},onClick:()=>C("done"),children:"Überspringen"})]})})]}),O==="errorVideo"&&b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:g,src:"/videos/eGK_Fehlgeschlagen.mp4",className:"avatar-video",preload:"auto",playsInline:!0,muted:!1,onEnded:De})})]})}const Ys=["/videos/Auswahl-generisch.mp4","/videos/Auswahl-generisch_2.mp4","/videos/Auswahl-generisch_3.mp4","/videos/Auswahl-generisch_4.mp4","/videos/Auswahl-generisch_5.mp4","/videos/Auswahl-generisch_6.mp4"];function Dm(r){const s=[...r];for(let d=s.length-1;d>0;d--){const c=Math.floor(Math.random()*(d+1));[s[d],s[c]]=[s[c],s[d]]}return s}function b1({updatePatientData:r}){var Se,De;const[s,d]=L.useState({}),[c,g]=L.useState([]),[y,w]=L.useState(null),[O,C]=L.useState({}),[j,_]=L.useState(!0),[z,ne]=L.useState(null),[I,oe]=L.useState({}),Q=L.useRef(null),Z=yn();L.useEffect(()=>{(async()=>{try{const we=await Vb();if(we!=null&&we.error){ne(typeof we.error=="string"?we.error:"Die Auswahl konnte nicht geladen werden.");return}if(!Array.isArray(we)||we.length===0){Z("/final",{replace:!0});return}const at={};we.forEach(ke=>{at[ke.buttonPage]||(at[ke.buttonPage]=[]),at[ke.buttonPage].push(ke)});const Ie=Object.keys(at).map(Number).sort((ke,be)=>ke-be);if(d(at),g(Ie),w(Ie[0]??null),Ie.length>0){const ke=Dm(Ys);let be={};if(Ie.length<=ke.length)be=Ie.reduce((qe,ut,pt)=>(qe[ut]=ke[pt],qe),{});else{const qe=[...ke];be={};let ut=0;Ie.forEach((pt,ae)=>{if(ut>=qe.length){const Te=Dm(Ys);ae>0&&Te[0]===be[Ie[ae-1]]&&([Te[0],Te[1]]=[Te[1],Te[0]]),qe.splice(0,qe.length,...Te),ut=0}be[pt]=qe[ut++]})}oe(be)}}catch(we){console.error("Fehler beim Laden der Button-Konfiguration",we),ne("Die Auswahl konnte nicht geladen werden.")}finally{_(!1)}})()},[Z]),L.useEffect(()=>{const ue=Q.current;if(!ue)return;ue.pause(),ue.load();const we=ue.play();we!==void 0&&we.catch(()=>{})},[y,I]),L.useEffect(()=>{const ue=[];return Object.values(I).forEach(we=>{const at=document.createElement("link");at.rel="preload",at.as="video",at.href=we,document.head.appendChild(at),ue.push(at)}),()=>{ue.forEach(we=>document.head.removeChild(we))}},[I]);const P=ue=>{if(!y)return;C(Ie=>({...Ie,[y]:ue})),r(y,ue);const we=c.indexOf(y),at=c[we+1];at?w(at):Z("/final")},ce=y&&O[y]||"",ye=y&&((Se=s[y])==null?void 0:Se.length)||0;let fe="option-container";return ye>5?fe+=" ultra-compact":ye>3&&(fe+=" compact"),j?b.jsx("div",{className:"loading-bar-container",children:b.jsx("div",{className:"loading-bar"})}):z?b.jsx("div",{className:"appointment-screen",children:b.jsxs("div",{className:"option-container",children:[b.jsx("p",{className:"inline-error",style:{marginBottom:"1rem"},children:z}),b.jsx("button",{type:"button",className:"nav-button",onClick:()=>Z("/appointment-yesno"),children:"Zurück"})]})}):!y||c.length===0?null:b.jsxs("div",{className:"appointment-screen",children:[b.jsx("div",{className:fe,children:(De=s[y])==null?void 0:De.map(ue=>b.jsx("button",{className:`option-button ${ce===ue.buttonText?"selected":""}`,onClick:()=>P(ue.buttonText),children:ue.buttonText},ue.buttonIndex))}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:Q,src:I[y]||Ys[0],className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function S1({onRestart:r,onSubmit:s}){const d=L.useRef(null),c=L.useRef(null),[g,y]=L.useState(!1),[w,O]=L.useState(""),C=()=>sessionStorage.getItem("hasAppointment")==="true",j=()=>{const oe=sessionStorage.getItem("patientFirstName")||"",Q=sessionStorage.getItem("patientLastName")||"",Z=sessionStorage.getItem("patientBirthDate")||"",P=sessionStorage.getItem("visitationType")||sessionStorage.getItem("typeOfVisitation")||"Sprechstunde";return{firstName:oe,lastName:Q,birthDate:Z,registration:new Date().toISOString(),typeOfVisitation:P,hasAppointment:C(),status:"WAITING",note:sessionStorage.getItem("patientNote")||"",active:!0}},_=async()=>{const oe=j();if(!oe.firstName||!oe.lastName){O("Name unvollständig – Anmeldung wurde nicht übertragen.");return}const Q=await bp(oe);Q!=null&&Q.error&&O("Anmeldung konnte nicht übertragen werden. Bitte Praxispersonal informieren.")},z=()=>{g||(y(!0),clearTimeout(c.current),Promise.resolve(s?s():_()).finally(()=>{typeof r=="function"&&r()}))},ne=()=>{clearTimeout(c.current),c.current=null,z()},I=()=>{clearTimeout(c.current),c.current=null,console.error("Final-Video konnte nicht geladen werden (Datei unter public/videos/ prüfen, z. B. 404 liefert text/html)."),z()};return L.useEffect(()=>(d.current&&(d.current.load(),d.current.play().catch(()=>{})),c.current=setTimeout(()=>{console.warn("Video-Ende nicht erkannt – Fallback aktiv"),z()},15e3),()=>clearTimeout(c.current)),[]),b.jsxs("div",{className:"final-screen",children:[w&&b.jsx("div",{className:"final-error-banner",children:w}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:d,src:"/videos/Vielen-Dank-Check-In-Nutzung.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:ne,onError:I})})]})}const Tp={skipInsuranceCardScreen:!1,skipAppointmentYesNoScreen:!1},E1=6e4,Ap=L.createContext({...Tp,loaded:!1,refresh:async()=>{}});function x1({children:r}){const[s,d]=L.useState(Tp),[c,g]=L.useState(!1),y=L.useRef(!1),w=L.useCallback(async()=>{const O=await Gb();y.current||(O&&!O.error&&d({skipInsuranceCardScreen:!!O.skipInsuranceCardScreen,skipAppointmentYesNoScreen:!!O.skipAppointmentYesNoScreen}),g(!0))},[]);return L.useEffect(()=>{y.current=!1,w();const O=setInterval(()=>{w()},E1);return()=>{y.current=!0,clearInterval(O)}},[w]),b.jsx(Ap.Provider,{value:{...s,loaded:c,refresh:w},children:r})}function jp(){return L.useContext(Ap)}function O1(){const r=yn(),s=L.useRef(null),{skipInsuranceCardScreen:d}=jp(),c=!!d;L.useEffect(()=>{c&&r("/health-card",{replace:!0})},[c,r]),L.useEffect(()=>{if(c)return;const y=s.current;if(y){y.pause(),y.load();const w=y.play();w!==void 0&&w.catch(()=>{})}},[c]);const g=y=>{r(y==="yes"?"/health-card":"/no-insurance-card")};return c?null:b.jsxs("div",{className:"insurance-card-screen",children:[b.jsxs("div",{className:"option-container",children:[b.jsx("button",{className:"option-button",onClick:()=>g("yes"),children:"Ich habe eine Gesundheitskarte dabei"}),b.jsx("button",{className:"option-button",onClick:()=>g("no"),children:"Ich habe keine Gesundheitskarte dabei oder bin privat versichert"})]}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:s,src:"/videos/Auswahl_Gesundheitskarte.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function N1(){const r=yn(),[s,d]=L.useState(!1),[c,g]=L.useState(""),y=L.useRef(null),{skipAppointmentYesNoScreen:w,loaded:O}=jp(),C=!!w,j=L.useRef(!1),_=L.useCallback(()=>{r("/appointment-selection")},[r]);L.useEffect(()=>{if(C)return;const I=y.current;if(I){I.pause(),I.load();const oe=I.play();oe!==void 0&&oe.catch(()=>{})}},[C]);const z=L.useCallback(()=>{g(""),sessionStorage.setItem("hasAppointment","true"),_()},[_]),ne=L.useCallback(async()=>{g(""),d(!0);try{const I=await Kb();if((I==null?void 0:I.walkInStatus)==="FULL"){r("/keine-termine");return}if((I==null?void 0:I.walkInStatus)==="CONSUMED"){sessionStorage.setItem("hasAppointment","false"),_();return}if(I!=null&&I.error){const oe=I.error==="NOT_IN_OPENING_HOURS"||I.detail==="NOT_IN_OPENING_HOURS";g(oe?"Derzeit liegt keine Sprechstunde für die Anmeldung ohne Termin vor.":typeof I.error=="string"?I.error:"Die Anmeldung ist momentan nicht möglich.");return}g("Unerwartete Antwort vom Server.")}finally{d(!1)}},[_,r]);return L.useEffect(()=>{!O||!C||j.current||(j.current=!0,ne())},[O,C,ne]),C?b.jsx("div",{className:"two-option-screen",children:c?b.jsx("div",{className:"inline-error",children:c}):b.jsx("div",{className:"auto-no-appointment-overlay",role:"status","aria-live":"polite",children:b.jsx("div",{className:"spinner"})})}):b.jsxs("div",{className:"two-option-screen",children:[c&&b.jsx("div",{className:"inline-error",children:c}),b.jsxs("div",{className:"option-container",children:[b.jsx("button",{className:"option-button",type:"button",onClick:z,"aria-busy":"false",children:"Ich habe einen Termin"}),b.jsx("button",{className:"option-button",type:"button",onClick:ne,disabled:s,"aria-busy":s?"true":"false",children:"Ich habe keinen Termin"})]}),b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:y,src:"/videos/Termin_Ohne_Termin_Auswahl.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1})})]})}function w1(){const r=yn();return L.useEffect(()=>{const s=setTimeout(()=>r("/"),3e4);return()=>clearTimeout(s)},[r]),b.jsxs("div",{className:"closed-screen",children:[b.jsx("h1",{children:"Bitte wenden Sie sich an die Anmeldung"}),b.jsxs("p",{children:["Die Anmeldung ",b.jsx("strong",{children:"ohne Termin"})," ist im aktuellen Zeitraum nicht mehr möglich. Bitte wenden Sie sich direkt an unser medizinisches Fachpersonal an der Anmeldung, um Optionen für die kommenden Tage zu prüfen."]})]})}const T1="/videos/Keine-Termine.mp4";function A1(){const r=L.useRef(null),s=yn();return L.useEffect(()=>{const d=r.current;d&&(d.load(),d.play().catch(()=>{}))},[]),b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:T1,className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:()=>s("/")})})})}function sl({text:r}){const[s,d]=L.useState(!1),c=g=>{g.stopPropagation(),d(y=>!y)};return b.jsxs("span",{className:"tooltip-wrapper",children:[b.jsx("span",{className:"tooltip-icon",onClick:c,children:"❔"}),s&&b.jsx("span",{className:"tooltip-bubble",children:r})]})}function j1({mode:r="full",onInput:s,onBackspace:d,onSpace:c}){const[g,y]=L.useState(!1),w=L.useMemo(()=>({full:{default:["1 2 3 4 5 6 7 8 9 0","q w e r t y u i o p","a s d f g h j k l","{shift} z x c v b n m","@ . - _ : / =","{space} {bksp}"],shift:["1 2 3 4 5 6 7 8 9 0","Q W E R T Y U I O P","A S D F G H J K L","{shift} Z X C V B N M","@ . - _ : / =","{space} {bksp}"]},numeric:{default:["1 2 3","4 5 6","7 8 9","0 {bksp}"]},host:{default:["1 2 3","4 5 6","7 8 9",". 0 {bksp}"]},unc:{default:["1 2 3 4 5 6 7 8 9 0","q w e r t y u i o p","a s d f g h j k l","z x c v b n m - . \\","{bksp}"]}}),[]),O={"{bksp}":"⌫","{space}":"Leertaste","{shift}":"⇧"},C=z=>{if(z==="{bksp}"){d==null||d();return}if(z==="{space}"){c==null||c();return}if(z==="{shift}"){y(ne=>!ne);return}if(r==="numeric"){/^\d$/.test(z)&&(s==null||s(z));return}if(r==="host"){(/^\d$/.test(z)||z===".")&&(s==null||s(z));return}s==null||s(z),g&&y(!1)},j=w[r]||w.full,_=g?"shift":"default";return b.jsx("div",{className:"kiosk-kb",role:"dialog","aria-label":"Bildschirmtastatur",children:b.jsx(wp,{layout:j,layoutName:_,display:O,onKeyPress:C})})}const C1=Object.freeze({0:{level:"ok",title:"OK",message:"OK, kein Fehler und keine Warnung aufgetreten."},1:{level:"error",title:"Kein Ergebnis",message:"Kein Ergebnis."},2:{level:"error",title:"Recht fehlt",message:"Benötigtes Recht nicht vorhanden."},3:{level:"error",title:"Ausnahmefehler",message:"Ausnahmefehler."},4:{level:"error",title:"Konkurrierender Zugriff (DB)",message:"Konkurrierender Zugriff Datenbank."},5:{level:"error",title:"Konkurrierender Zugriff (API)",message:"Konkurrierender Zugriff API."},101:{level:"error",title:"API-Key ungültig",message:"Der übergebene API-Key ist nicht gültig.",hint:"Bitte prüfe den API-Key (Tippfehler, Leerzeichen, falscher Mandant/Server).",step:1},102:{level:"error",title:"Benutzer ungültig",message:"Der übergebene Benutzer ist nicht gültig.",hint:"Bitte prüfe Benutzername und Passwort und ob der Benutzer in T2Med existiert/aktiv ist.",step:1},103:{level:"error",title:"Station ungültig",message:"Die übergebene Station ist nicht gültig.",hint:"Bitte prüfe den Stationsnamen. Eventuell ist der Name nicht erlaubt, existiert bereits oder muss exakt einem T2Med-Setup entsprechen.",step:1},104:{level:"error",title:"Arztrolle ungültig",message:"Die übergebene Arztrolle ist nicht gültig.",hint:"Bitte wähle eine gültige Arztrolle in Schritt 2 und lade ggf. die Struktur neu.",step:2},105:{level:"error",title:"Behandlungsort ungültig",message:"Der übergebene Behandlungsort ist nicht gültig.",hint:"Bitte wähle einen gültigen Behandlungsort in Schritt 2 und lade ggf. die Struktur neu.",step:2},201:{level:"error",title:"Station nicht angelegt",message:"Die Station konnte nicht angelegt werden.",hint:"Bitte prüfe in T2Med, ob die Station bereits existiert oder ob ein Konflikt vorliegt.",step:1},202:{level:"error",title:"Stationsname ungültig",message:"Der übergebene Stationsname ist nicht gültig.",hint:"Bitte einen anderen Stationsnamen verwenden (Sonderzeichen/Länge prüfen).",step:1},203:{level:"error",title:"Versionen nicht ermittelbar",message:"Die APS-Version oder API-Versionen konnten nicht ermittelt werden.",hint:"Bitte prüfe, ob T2Med erreichbar ist und die API-Version unterstützt wird.",step:1},204:{level:"error",title:"Lizenz-ID nicht ermittelbar",message:"Die Lizenz-Id konnten nicht ermittelt werden.",hint:"Bitte die T2Med-Lizenz prüfen.",step:1},301:{level:"error",title:"Kein angemeldeter Benutzer",message:"Es konnte kein angemeldeter Benutzer ermittelt werden.",hint:"Bitte sicherstellen, dass in T2Med ein Benutzer angemeldet ist."},302:{level:"error",title:"Praxisstruktur nicht ermittelbar",message:"Die Praxisstruktur konnte nicht ermittelt werden.",hint:"Bitte Verbindung prüfen und Struktur erneut laden.",step:2},303:{level:"error",title:"Kartenterminals nicht ermittelbar",message:"Die Liste der Kartenterminals konnte nicht ermittelt werden.",hint:"Bitte Verbindung prüfen und Terminals in Schritt 3 erneut laden.",step:3},401:{level:"error",title:"Terminal-Id ungültig",message:"Die übergebene Terminal-Id ist nicht gültig.",hint:"Bitte das Terminal in Schritt 3 erneut auswählen.",step:3},402:{level:"error",title:"Sitzung-Handle ungültig",message:"Das übergebene Sitzung-Handle ist nicht gültig.",hint:"Bitte Vorgang neu starten."},403:{level:"error",title:"Wartebereich-Id ungültig",message:"Die übergebene Wartebereich-Id ist nicht gültig.",hint:"Bitte einen gültigen Wartebereich in Schritt 4 auswählen.",step:4},404:{level:"error",title:"Kürzel ungültig",message:"Das übergebene Kürzel ist nicht gültig."},405:{level:"error",title:"Inhalt ungültig",message:"Der übergebene Inhalt ist nicht gültig."},406:{level:"error",title:"Empfänger-Station-Id ungültig",message:"Die übergebene Empfänger-Station-Id ist nicht gültig."},501:{level:"error",title:"Karte anfordern fehlgeschlagen",message:"Es ist ein Fehler beim Karte anfordern aufgetreten.",hint:"Bitte prüfen Sie den Kartenleser und versuchen Sie es erneut."},502:{level:"error",title:"Karte einlesen fehlgeschlagen",message:"Es ist ein Fehler beim Karte einlesen aufgetreten.",hint:"Bitte Karte erneut einstecken und die Hinweise am Gerät beachten."},503:{level:"error",title:"Karte nicht erkannt",message:"Die Karte konnte nicht ermittelt werden.",hint:"Bitte Karte richtig einstecken (Chip) und erneut versuchen."},504:{level:"error",title:"Karte auswerfen fehlgeschlagen",message:"Es ist ein Fehler beim Karte auswerfen aufgetreten.",hint:"Bitte Karte manuell entnehmen, falls möglich, oder Personal informieren."},505:{level:"error",title:"Karte noch nicht eingelesen",message:"Die Karte wurde noch nicht eingelesen.",hint:"Bitte Karte einstecken und warten, bis der Vorgang abgeschlossen ist."},506:{level:"error",title:"Karte verarbeiten fehlgeschlagen",message:"Es ist ein Fehler beim Karte verarbeiten aufgetreten.",hint:"Bitte erneut versuchen. Falls der Fehler bleibt, Personal informieren."},507:{level:"error",title:"Karte ungültig",message:"Es ist ein Fehler beim Karte verarbeiten mit der Karte (abgelaufen, veraltet, keine eGK bei Primär- oder Ersatzkasse) aufgetreten.",hint:"Bitte eine gültige eGK verwenden oder Personal informieren."},508:{level:"error",title:"Kostenträger problematisch",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Kostenträger (Gültigkeit, Fusion, aufgelöst) aufgetreten.",hint:"Bitte Personal informieren (Kostenträger-/Kasseninfo prüfen)."},509:{level:"error",title:"Kontext ungültig",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Kontext (Arztrolle, Behandlungsort, KV-Abrechnungsgruppe) aufgetreten.",hint:"Bitte Setup prüfen (Arztrolle/Behandlungsort) oder Personal informieren."},510:{level:"error",title:"Patientendaten unklar",message:"Es ist ein Fehler beim Karte verarbeiten mit dem Patienten (nicht eindeutig bestimmbar, Stammdatenänderung, Kassenwechsel) aufgetreten.",hint:"Bitte Personal informieren (Patient muss ggf. manuell zugeordnet werden)."},511:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden.",hint:"Bitte Personal informieren oder Karte erneut einlesen."},512:{level:"warning",title:"Hinweis",message:"Die Karte wurde bereits verarbeitet.",hint:"Sie können fortfahren. Falls Daten fehlen: erneut einlesen oder Personal informieren."},601:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden.",hint:"Bitte Personal informieren oder Karte erneut einlesen."},602:{level:"error",title:"Wartebereich nicht ermittelbar",message:"Der Wartebereich konnte nicht ermittelt werden.",hint:"Bitte den Wartebereich in Schritt 4 erneut auswählen.",step:4},603:{level:"error",title:"Eintrag fehlgeschlagen",message:"Der Patient konnte nicht in den Wartebereich eingetragen werden.",hint:"Bitte Personal informieren oder erneut versuchen."},604:{level:"warning",title:"Bereits eingetragen",message:"Der Patient ist bereits im Wartebereich eingetragen.",hint:"Kein erneutes Eintragen nötig."},701:{level:"error",title:"Sitzung nicht gefunden",message:"Zu dem übergebenen Sitzung-Handle wurde keine Sitzung gefunden.",hint:"Bitte Vorgang neu starten."},702:{level:"error",title:"Station passt nicht",message:"Die übergebene Station-Id passt nicht zu der Station der Sitzung."},703:{level:"error",title:"Benutzer passt nicht",message:"Der übergebene Benutzer passt nicht zu dem Benutzer der Sitzung."},704:{level:"error",title:"Arztrolle passt nicht",message:"Die übergebene Arztrolle-Id passt nicht zu der Arztrolle der Sitzung."},705:{level:"error",title:"Behandlungsort passt nicht",message:"Die übergebene Behandlungsort-Id passt nicht zu dem Behandlungsort der Sitzung."},801:{level:"error",title:"Kürzel reserviert",message:"Das übergebene Kürzel ist reserviert und darf nicht verwendet werden."},802:{level:"error",title:"Patient nicht gefunden",message:"Der Patient konnte nicht ermittelt werden."},803:{level:"error",title:"Arztrolle nicht ermittelbar",message:"Die Arztrolle konnte nicht ermittelt werden."},804:{level:"error",title:"Behandlungsort nicht ermittelbar",message:"Der Behandlungsort konnte nicht ermittelt werden."},805:{level:"error",title:"eAkte-Eintrag fehlgeschlagen",message:"Es ist ein Fehler beim Erstellen und Speichern des eAkte Texteintrags aufgetreten."},901:{level:"error",title:"Empfängerstation nicht ermittelbar",message:"Die Empfängerstation konnte nicht ermittelt werden."}});function Cp(r){if(r==null||r==="")return null;const s=Number(r);if(!Number.isFinite(s))return null;const d=C1[s];return d?{code:s,...d}:null}function _1(r){var g,y,w,O;if(!r)return null;const d=[r.t2medCode,r.statusCode,r.code,r.errorCode,(g=r.data)==null?void 0:g.t2medCode,(y=r.data)==null?void 0:y.statusCode,(w=r.data)==null?void 0:w.code,(O=r.data)==null?void 0:O.errorCode].find(C=>C!=null&&C!=="");if(d==null)return null;const c=Number(d);return Number.isFinite(c)?c:null}const Xs=5,zm=[{id:1,title:"Verbindung & Station"},{id:2,title:"Praxisstruktur"},{id:3,title:"Arbeitsplatz in T2Med"},{id:4,title:"Terminal wählen"},{id:5,title:"Abschließen"}],R1={gdt_folder:"",watch_folder:"",processed_folder:"",outbound_folder:""};function D1({onSetupSuccess:r}){const[s,d]=L.useState(1),[c,g]=L.useState(!1),[y,w]=L.useState(""),[O,C]=L.useState(null),[j,_]=L.useState({host:"10.8.0.1",port:"16567",apiKey:"efae5750-cec3-4f0b-93b9-6041eced17ad",username:"",password:"",stationName:"EMMA-KIOSK"}),[z,ne]=L.useState(null),[I,oe]=L.useState(""),[Q,Z]=L.useState(""),[P,ce]=L.useState(null),[ye,fe]=L.useState(""),[Se,De]=L.useState(null),[ue,we]=L.useState(""),[at,Ie]=L.useState(1),[ke,be]=L.useState(!1),[qe,ut]=L.useState(!1),[pt,ae]=L.useState(R1),[Te,Ve]=L.useState(!1),[ht,st]=L.useState(null),[U,he]=L.useState(!1),[je,xe]=L.useState(""),[Ge,p]=L.useState(""),[E,l]=L.useState(""),[u,f]=L.useState(!1),[h,m]=L.useState(!1),[S,N]=L.useState(!1),[x,T]=L.useState(null),R=L.useRef({}),H=L.useRef(""),M=L.useRef(!1),D=()=>{w(""),C(null)},K=(B,se)=>{var Qt,on,Tt;const Me=_1(B),Fe=Cp(Me);if(Fe)return C(Fe),[Fe.message,Fe.hint?`Hinweis: ${Fe.hint}`:""].filter(Boolean).join(" ");const lt=(B==null?void 0:B.statusText)||(B==null?void 0:B.error)||(B==null?void 0:B.details)||(B==null?void 0:B.message)||((Qt=B==null?void 0:B.data)==null?void 0:Qt.error)||((on=B==null?void 0:B.data)==null?void 0:on.details)||((Tt=B==null?void 0:B.data)==null?void 0:Tt.message)||se||"Es ist ein Fehler aufgetreten.";return C(Me?{code:Me,title:"Fehler",message:lt,level:"error"}:null),lt},q=L.useMemo(()=>s===1?[{key:"host",label:"Host"},{key:"port",label:"Port"},{key:"apiKey",label:"API Key"},{key:"username",label:"Benutzername"},{key:"password",label:"Passwort"},{key:"stationName",label:"Station Name"}]:s===5?ke?[{key:"smbUnc",label:"Netzwerkpfad (UNC)"},{key:"smbUser",label:"Benutzername Freigabe"},{key:"smbPassword",label:"Passwort Freigabe"},{key:"gdt_folder",label:"GDT-Ordner"},{key:"watch_folder",label:"Überwachungsordner"},{key:"processed_folder",label:"Verarbeitete Dateien"},{key:"outbound_folder",label:"Outbound-Ordner (T2med-Knopf EMMA-Outbound)"}]:[{key:"slotNr",label:"Slot Nr"}]:[],[s,ke]),Y=L.useMemo(()=>q.find(B=>B.key===x)||null,[q,x]),G=L.useMemo(()=>x?x==="port"||x==="slotNr"?"numeric":x==="host"?"host":x==="smbUnc"?"unc":"full":null,[x]),$=(B,se)=>{const Me=String(se??"");switch(B){case"port":return Me.replace(/[^\d]/g,"").slice(0,5);case"slotNr":{const Fe=Me.replace(/[^\d]/g,"").slice(0,4);return Fe===""?"0":Fe}case"host":return Me.replace(/[^\w.\-]/g,"").replace(/\.{2,}/g,".").slice(0,128);case"smbUnc":{let Fe=Me.replace(/\//g,"\\");return Fe&&!Fe.startsWith("\\\\")&&(Fe=`\\\\${Fe.replace(/^\\+/,"")}`),Fe.slice(0,260)}default:return Me.slice(0,256)}},ie=(B,se)=>{const Me=$(B,se);if(B==="slotNr"){Ie(Math.max(0,Number(Me||0)));return}if(B==="smbUnc"){xe(Me);return}if(B==="smbUser"){p(Me);return}if(B==="smbPassword"){l(Me);return}if(B==="gdt_folder"||B==="watch_folder"||B==="processed_folder"||B==="outbound_folder"){Ze(B,Me);return}_(Fe=>({...Fe,[B]:Me}))},J=B=>{T(B),window.setTimeout(()=>{var se,Me;(Me=(se=R.current[B])==null?void 0:se.focus)==null||Me.call(se)},0)},ve=L.useMemo(()=>x?x==="slotNr"?String(at??0):x==="smbUnc"?je:x==="smbUser"?Ge:x==="smbPassword"?E:x==="gdt_folder"?pt.gdt_folder:x==="watch_folder"?pt.watch_folder:x==="processed_folder"?pt.processed_folder:x==="outbound_folder"?pt.outbound_folder:String(j[x]??""):"",[x,j,at,je,Ge,E,pt]),Ee=B=>{x&&ie(x,ve+B)},me=()=>{x&&ie(x,ve.slice(0,-1))},Oe=()=>{x&&(x==="slotNr"?ie("slotNr","0"):ie(x,""))},Ne=()=>{x&&G==="full"&&Ee(" ")},re=L.useMemo(()=>q.findIndex(B=>B.key===x),[q,x]),Be=()=>{re<=0||J(q[re-1].key)},ze=()=>{var se;if(re<0)return;const B=(se=q[re+1])==null?void 0:se.key;B?J(B):T(null)},Ae=()=>ze(),ft=()=>T(null);L.useEffect(()=>{T(null),D(),s!==5&&be(!1)},[s]);const We=L.useMemo(()=>{var B;return(B=zm.find(se=>se.id===s))==null?void 0:B.title},[s]),Ye=s>1,$e=B=>B>s?!1:B===s?s===5&&ke:B>=1,Xe=B=>{$e(B)&&(D(),!(s===5&&ke&&(be(!1),B===s))&&d(B))},He=()=>{if(Ye){if(s===5&&ke){D(),be(!1);return}Xe(s-1)}},Je=async()=>{D(),g(!0);const B={host:j.host.trim(),port:Number(j.port||16567),apiKey:j.apiKey.trim(),username:j.username.trim(),password:j.password,stationName:j.stationName.trim()},se=await Fb(B);if(g(!1),se!=null&&se.error){w(K(se,"Auth fehlgeschlagen."));return}d(2)},it=async()=>{D(),g(!0);const B=await Jb();if(g(!1),B!=null&&B.error){w(K(B,"Struktur konnte nicht geladen werden."));return}ne(B),oe(""),Z(""),ce(null),fe(""),H.current="",De(null),we(""),M.current=!1},Re=async()=>{D(),g(!0);const se=await Pb({doctorRoleId:I,treatmentLocationId:Q});if(g(!1),se!=null&&se.error){w(K(se,"Terminals konnten nicht geladen werden."));return}ce(se),fe(""),H.current=`${I}__${Q}`,De(null),we(""),M.current=!1},_e=async()=>{D(),g(!0);const B=await Wb();if(g(!1),B!=null&&B.error){w(K(B,"Wartebereiche konnten nicht geladen werden."));return}De(B),we(""),M.current=!0},Ce=async()=>{D(),g(!0);const B={terminalId:ye,doctorRoleId:I,treatmentLocationId:Q,slotNr:Number(at||0),...ue?{waitingRoomId:ue}:{}},se=await Ib(B);if(g(!1),se!=null&&se.error){w(K(se,"Setup konnte nicht abgeschlossen werden."));return}T(null),be(!0),Gt()},Ze=(B,se)=>{ae(Me=>({...Me,[B]:se}))},Qe=(B,se)=>{const Me=String(B??"").trim();Me&&ae(Fe=>({gdt_folder:Fe.gdt_folder||(se==null?void 0:se.gdt_folder)||Me,watch_folder:Fe.watch_folder||(se==null?void 0:se.watch_folder)||Me,processed_folder:Fe.processed_folder||(se==null?void 0:se.processed_folder)||Me,outbound_folder:Fe.outbound_folder||(se==null?void 0:se.outbound_folder)||Me}))},tt=async({requirePassword:B=!1}={})=>{const se=String(je).trim(),Me=String(Ge).trim(),Fe=String(E);if(!se||!Me)return w("Bitte Netzwerkpfad (UNC) und Benutzername eingeben."),!1;if(B&&!Fe){if(!u)return w("Bitte Passwort für die Netzwerkfreigabe eingeben."),!1;if(h)return!0}if(!Fe&&u&&h)return!0;if(!Fe)return w("Bitte Passwort eingeben, um die Netzwerkfreigabe zu verbinden."),!1;N(!0),D();try{const lt=await l1({unc:se,user:Me,password:Fe});return lt!=null&&lt.error||(lt==null?void 0:lt.ok)===!1?(w((lt==null?void 0:lt.error)||"Netzwerkfreigabe konnte nicht verbunden werden."),m(!1),!1):(f(!0),m(!0),lt!=null&&lt.unc&&xe(lt.unc),Qe((lt==null?void 0:lt.unc)||se,lt==null?void 0:lt.suggestions),l(""),!0)}catch(lt){return w((lt==null?void 0:lt.message)||"Netzwerkfreigabe konnte nicht verbunden werden."),m(!1),!1}finally{N(!1)}},jt=async()=>{await tt({requirePassword:!0})},Gt=async()=>{Ve(!0),D();try{const B=await e1();if(B!=null&&B.error){w(B.error);return}ut((B==null?void 0:B.enabled)===!0),ae({gdt_folder:(B==null?void 0:B.gdt_folder)??"",watch_folder:(B==null?void 0:B.watch_folder)??"",processed_folder:(B==null?void 0:B.processed_folder)??"",outbound_folder:(B==null?void 0:B.outbound_folder)??""});const se=await a1();se!=null&&se.error||(f((se==null?void 0:se.configured)===!0),m((se==null?void 0:se.configured)===!0),se!=null&&se.unc&&xe(se.unc),se!=null&&se.user&&p(se.user)),he(!0)}catch(B){w((B==null?void 0:B.message)||"Emma-Sync Konfiguration konnte nicht geladen werden.")}finally{Ve(!1)}},wt=async B=>{if(qe){st(B),D();try{if(!await tt({requirePassword:!0}))return;const Me=await n1({initialPath:String(je).trim()||void 0});if(Me!=null&&Me.error){w(Me.error);return}Me!=null&&Me.path&&Ze(B,Me.path)}catch(se){w((se==null?void 0:se.message)||"Ordnerauswahl fehlgeschlagen.")}finally{st(null)}}},Ft=async()=>{if(D(),qe){if(!h&&!await tt({requirePassword:!0}))return;if(["gdt_folder","watch_folder","processed_folder","outbound_folder"].filter(se=>!String(pt[se]??"").trim()).length>0){w("Bitte alle Emma-Sync Ordner auswählen oder eintragen.");return}if(String(pt.outbound_folder??"").trim().toLowerCase()===String(pt.gdt_folder??"").trim().toLowerCase()){w("Outbound-Ordner muss sich vom GDT-Ordner unterscheiden.");return}}g(!0);try{const B={enabled:qe,setup_completed:!0,upload_enabled:!0,...qe?pt:{}},se=await t1(B);if(se!=null&&se.error){w(se.error);return}r==null||r()}catch(B){w((B==null?void 0:B.message)||"Emma-Sync konnte nicht gespeichert werden.")}finally{g(!1)}},Ht=L.useMemo(()=>(z==null?void 0:z.arztrollen)||[],[z]),qt=L.useMemo(()=>Ht.find(B=>String(B.arztrolleId)===String(I))||null,[Ht,I]),tn=L.useMemo(()=>Ht.some(B=>String(B.arztrolleId)===String(I)),[Ht,I]);function zt(B){const se=new WeakSet,Me=Fe=>{if(Fe===null||typeof Fe!="object")return Fe;if(se.has(Fe))return"[Circular]";if(se.add(Fe),Array.isArray(Fe))return Fe.map(Me);const lt={};return Object.keys(Fe).sort().forEach(Qt=>{lt[Qt]=Me(Fe[Qt])}),lt};return JSON.stringify(Me(B))}const mt=L.useMemo(()=>{const B=(qt==null?void 0:qt.behandlungsorte)||[],se=new Set;return B.filter(Me=>{const Fe=zt(Me);return se.has(Fe)?!1:(se.add(Fe),!0)})},[qt]),Ct=L.useMemo(()=>mt.some(B=>String(B.behandlungsortId)===String(Q)),[mt,Q]),cn=L.useMemo(()=>(P==null?void 0:P.terminals)||[],[P]),Mt=L.useMemo(()=>(Se==null?void 0:Se.wartebereiche)||[],[Se]),Kt=Mt.length>0;if(L.useEffect(()=>{s===2&&(c||z||it())},[s]),L.useEffect(()=>{if(s!==4||c||!tn||!Ct)return;const B=`${I}__${Q}`;H.current===B&&P||Re()},[s,I,Q,tn,Ct]),L.useEffect(()=>{s===5&&(c||ye&&(M.current&&Se||_e()))},[s,ye]),L.useEffect(()=>{(async()=>{var se,Me;try{const[Fe,lt]=await Promise.all([Op(),Np()]),Qt=((se=Fe==null?void 0:Fe.result)==null?void 0:se.exists)===!0,on=((Me=lt==null?void 0:lt.result)==null?void 0:Me.exists)===!0;Qt&&!on&&(d(5),be(!0),Gt())}catch{}})()},[]),L.useEffect(()=>{if(!I)return;Ht.some(se=>String(se.arztrolleId)===String(I))||(oe(""),Z(""),ce(null),fe(""),H.current="",De(null),we(""),M.current=!1)},[Ht,I]),L.useEffect(()=>{if(!Q)return;mt.some(se=>String(se.behandlungsortId)===String(Q))||(Z(""),ce(null),fe(""),H.current="",De(null),we(""),M.current=!1)},[mt,Q]),c)return b.jsx("div",{className:"t2med-wizard t2med-loading",children:b.jsxs("div",{className:"loading-card",role:"status","aria-live":"polite",children:[b.jsx("div",{className:"loading-spinner","aria-hidden":"true"}),b.jsxs("div",{className:"loading-text",children:[b.jsx("div",{className:"loading-title",children:"Bitte warten…"}),b.jsx("div",{className:"loading-sub",children:"Daten werden geladen"})]}),b.jsx("div",{className:"loading-bar-container","aria-hidden":"true",children:b.jsx("div",{className:"loading-bar"})})]})});const na=(O==null?void 0:O.step)&&Number.isFinite(O.step)&&O.step!==s;return b.jsxs("div",{className:"t2med-wizard",onMouseDown:()=>x&&T(null),children:[b.jsxs("header",{className:"wizard-header",children:[b.jsxs("div",{className:"wizard-top",children:[b.jsxs("div",{className:"wizard-title",children:[b.jsx("div",{className:"wizard-title-main",children:"T2Med Setup"}),b.jsxs("div",{className:"wizard-title-sub",children:["In ",Xs," Schritten einsatzbereit machen"]})]}),b.jsx("div",{className:"wizard-step-indicator",children:b.jsxs("span",{className:"step-badge",children:["Schritt ",s,"/",Xs]})})]}),b.jsxs("div",{className:"wizard-progress","aria-label":"Setup Fortschritt",children:[b.jsx("div",{className:"wizard-progress-track",children:b.jsx("div",{className:"wizard-progress-bar",style:{width:`${s/Xs*100}%`}})}),b.jsx("div",{className:"wizard-progress-labels",children:zm.map(B=>{const se=$e(B.id);return b.jsxs("button",{type:"button",className:`progress-label ${B.id===s?"active":""} ${B.id<s?"done":""} ${se?"is-clickable":""}`,disabled:!se,"aria-current":B.id===s?"step":void 0,onClick:()=>Xe(B.id),children:[B.id,". ",B.title]},B.id)})})]})]}),b.jsxs("main",{className:"wizard-content",onMouseDown:B=>B.stopPropagation(),children:[b.jsxs("div",{className:"step-head",children:[b.jsxs("h2",{className:"step-title",children:[s,". ",We]}),b.jsxs("div",{className:"step-help",children:[s===1&&"Verbindung testen und Station registrieren.",s===2&&"Arztrolle und Behandlungsort auswählen.",s===3&&"Bitte legen Sie zuerst in T2Med einen Arbeitsplatz an, bevor Sie ein Terminal auswählen.",s===4&&"Passenden Kartenleser/Terminal bestimmen.",s===5&&!ke&&"Wartebereich wählen, Slot setzen und T2Med-Setup speichern.",s===5&&ke&&"GDT-, PDF- und Outbound-Ordner für Emma-Sync einrichten."]})]}),y&&b.jsxs("div",{className:"alert alert-error",role:"alert",children:[b.jsx("div",{className:"alert-title-row",children:b.jsx("div",{className:"alert-title",children:O!=null&&O.title?O.title:"Fehler"})}),b.jsx("div",{className:"alert-body",children:y}),na&&b.jsxs("div",{className:"alert-hint",children:["Das Problem gehört zu ",b.jsxs("b",{children:["Schritt ",O.step]}),"."," ",b.jsxs("button",{type:"button",className:"link-btn",onClick:()=>Xe(O.step),children:["Zu Schritt ",O.step," wechseln"]})]})]}),s===1&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-grid",children:[b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Host ",b.jsx(sl,{text:"Hostname oder IP-Adresse des T2Med-Systems."})]}),b.jsx("input",{ref:B=>R.current.host=B,name:"host",value:j.host,onChange:B=>ie("host",B.target.value),onFocus:()=>J("host"),autoComplete:"off",placeholder:"10.8.0.1",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Port ",b.jsx(sl,{text:"Standard: 16567"})]}),b.jsx("input",{ref:B=>R.current.port=B,name:"port",value:j.port,onChange:B=>ie("port",B.target.value),onFocus:()=>J("port"),inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",placeholder:"16567",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["API Key ",b.jsx(sl,{text:"Individueller API-Schlüssel des T2Med-Systems."})]}),b.jsx("input",{ref:B=>R.current.apiKey=B,name:"apiKey",value:j.apiKey,onChange:B=>ie("apiKey",B.target.value),onFocus:()=>J("apiKey"),autoComplete:"off",placeholder:"efae5750-cec3-4f0b-93b9-6041eced17ad",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Benutzername ",b.jsx(sl,{text:"T2Med-Benutzername (wird auf dem Server in Basic Auth umgewandelt)."})]}),b.jsx("input",{ref:B=>R.current.username=B,name:"username",value:j.username,onChange:B=>ie("username",B.target.value),onFocus:()=>J("username"),autoComplete:"off",type:"text",placeholder:"t2checkin",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Passwort ",b.jsx(sl,{text:"Passwort des T2Med-Benutzers."})]}),b.jsx("input",{ref:B=>R.current.password=B,name:"password",value:j.password,onChange:B=>ie("password",B.target.value),onFocus:()=>J("password"),autoComplete:"off",type:"password",placeholder:"••••••••",required:!0})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Station Name"," ",b.jsx(sl,{text:"Display-Name der Station (wird in T2Med registriert)."})]}),b.jsx("input",{ref:B=>R.current.stationName=B,name:"stationName",value:j.stationName,onChange:B=>ie("stationName",B.target.value),onFocus:()=>J("stationName"),autoComplete:"off",placeholder:"EMMA-KIOSK",required:!0})]})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn ghost",type:"button",onClick:()=>window.location.href="/start",children:"Abbrechen"}),b.jsx("button",{className:"btn primary",type:"button",onClick:Je,children:"Verbindung prüfen & Weiter"})]})]}),s===2&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Praxisstruktur"}),b.jsx("div",{className:"hint-text",children:"Rollen/Behandlungsorte werden beim Öffnen dieses Schritts automatisch geladen. Du kannst bei Bedarf manuell neu laden."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:it,children:"Neu laden"})})]}),!z&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Daten…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts passiert, prüfe die Verbindung in Schritt 1 und lade erneut."})]}),z&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"select-grid",children:[b.jsxs("div",{className:"select-col",children:[b.jsxs("div",{className:"select-head",children:[b.jsx("div",{className:"select-title",children:"Arztrolle"}),b.jsxs("div",{className:"select-sub",children:[Ht.length," verfügbar"]})]}),b.jsxs("div",{className:"card-list",children:[Ht.map(B=>{const se=String(B.arztrolleId)===String(I);return b.jsxs("button",{type:"button",className:`choice-card ${se?"selected":""}`,onClick:()=>{oe(B.arztrolleId),Z(""),ce(null),fe(""),H.current="",De(null),we(""),M.current=!1},children:[b.jsx("div",{className:"choice-title",children:B.beschreibung||"Ohne Beschreibung"}),b.jsxs("div",{className:"choice-meta",children:["ID: ",B.arztrolleId]}),b.jsx("div",{className:"choice-badge",children:se?"Ausgewählt":"Wählen"})]},B.arztrolleId)}),Ht.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Arztrollen gefunden."})]})]}),b.jsxs("div",{className:"select-col",children:[b.jsxs("div",{className:"select-head",children:[b.jsx("div",{className:"select-title",children:"Behandlungsort"}),b.jsx("div",{className:"select-sub",children:I?`${mt.length} verfügbar`:"Bitte zuerst eine Arztrolle wählen"})]}),b.jsxs("div",{className:"card-list",children:[I&&mt.map(B=>{const se=String(B.behandlungsortId)===String(Q);return b.jsxs("button",{type:"button",className:`choice-card ${se?"selected":""}`,onClick:()=>{Z(B.behandlungsortId),ce(null),fe(""),H.current="",De(null),we(""),M.current=!1},children:[b.jsx("div",{className:"choice-title",children:B.beschreibung||"Ohne Beschreibung"}),b.jsxs("div",{className:"choice-meta",children:["ID: ",B.behandlungsortId]}),b.jsx("div",{className:"choice-badge",children:se?"Ausgewählt":"Wählen"})]},B.behandlungsortId)}),!I&&b.jsx("div",{className:"empty-mini",children:"Wähle oben eine Arztrolle, um Behandlungsorte zu sehen."}),I&&mt.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Behandlungsorte für diese Arztrolle."})]})]})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(3),disabled:!z||!tn||!Ct,children:"Weiter"})]})]}),!z&&b.jsx("div",{className:"sticky-actions",children:b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"})})]}),s===3&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Arbeitsplatz in T2Med anlegen"}),b.jsx("div",{className:"hint-text",children:"Richten Sie nun einen Arbeitsplatz in T2Med ein. Sobald der Arbeitsplatz dort angelegt ist, klicken Sie auf „Okay“, um fortzufahren."})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(4),children:"Okay"})]})]}),s===4&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Terminals"}),b.jsx("div",{className:"hint-text",children:"Terminals werden beim Öffnen automatisch geladen (sobald Arztrolle & Behandlungsort gesetzt sind)."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:Re,disabled:!tn||!Ct,children:"Neu laden"})})]}),(!tn||!Ct)&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Auswahl fehlt"}),b.jsx("div",{className:"empty-text",children:"Bitte gehe zurück und wähle Arztrolle & Behandlungsort."})]}),I&&Q&&!P&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Terminals…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts kommt: „Neu laden“ nutzen oder Schritt 2 erneut prüfen."})]}),P&&b.jsx(b.Fragment,{children:b.jsxs("div",{className:"terminal-grid",children:[cn.map(B=>{const se=String(B.terminalId)===String(ye);return b.jsxs("button",{type:"button",className:`terminal-card ${se?"selected":""}`,onClick:()=>{fe(B.terminalId),De(null),we(""),M.current=!1},children:[b.jsxs("div",{className:"terminal-top",children:[b.jsx("div",{className:"terminal-id",children:B.terminalId}),b.jsx("div",{className:"terminal-slots",children:Number.isFinite(B.slots)?`${B.slots} Slots`:"Slots ?"})]}),b.jsx("div",{className:"terminal-desc",children:B.beschreibung||"Ohne Beschreibung"}),b.jsx("div",{className:"terminal-cta",children:se?"Ausgewählt":"Wählen"})]},B.terminalId)}),cn.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Terminals gefunden."})]})}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"}),P&&b.jsx("button",{className:"btn primary",type:"button",onClick:()=>d(5),disabled:!ye,children:"Weiter"})]})]}),s===5&&!ke&&b.jsxs("section",{className:"panel",children:[b.jsxs("div",{className:"summary-box",children:[b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Arztrolle"}),b.jsx("div",{className:"summary-value mono",children:I||"-"})]}),b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Behandlungsort"}),b.jsx("div",{className:"summary-value mono",children:Q||"-"})]}),b.jsxs("div",{className:"summary-row",children:[b.jsx("div",{className:"summary-label",children:"Terminal"}),b.jsx("div",{className:"summary-value mono",children:ye||"-"})]})]}),b.jsxs("div",{className:"panel-row",children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Wartebereiche"}),b.jsx("div",{className:"hint-text",children:"Die verfügbaren Wartebereiche werden beim Öffnen dieses Schritts automatisch geladen."})]}),b.jsx("div",{className:"panel-actions-inline",children:b.jsx("button",{className:"btn",type:"button",onClick:_e,children:"Neu laden"})})]}),!Se&&b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-title",children:"Lade Wartebereiche…"}),b.jsx("div",{className:"empty-text",children:"Falls nichts passiert, bitte erneut laden oder die vorherigen Schritte prüfen."})]}),Se&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"terminal-grid",children:[Mt.map(B=>{const se=String(B.wartebereichId)===String(ue);return b.jsxs("button",{type:"button",className:`terminal-card ${se?"selected":""}`,onClick:()=>we(B.wartebereichId),children:[b.jsx("div",{className:"terminal-top",children:b.jsx("div",{className:"terminal-id",children:B.wartebereichId})}),b.jsx("div",{className:"terminal-desc",children:B.beschreibung||"Ohne Beschreibung"}),b.jsx("div",{className:"terminal-cta",children:se?"Ausgewählt":"Wählen"})]},B.wartebereichId)}),Mt.length===0&&b.jsx("div",{className:"empty-mini",children:"Keine Wartebereiche gefunden."})]}),b.jsxs("label",{className:"field",children:[b.jsxs("div",{className:"field-label",children:["Slot Nr ",b.jsx(sl,{text:"Mehrere Slots am Kartenleser (Standard: 1)."})]}),b.jsx("input",{ref:B=>R.current.slotNr=B,name:"slotNr",value:String(at),onChange:B=>ie("slotNr",B.target.value),onFocus:()=>J("slotNr"),inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off",placeholder:"1"})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:Ce,disabled:!Se||Kt&&!ue,children:"Weiter"})]})]}),!Se&&b.jsx("div",{className:"sticky-actions",children:b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"})})]}),s===5&&ke&&b.jsx("section",{className:"panel emma-sync-step",children:Te&&!U?b.jsx("div",{className:"empty-state",children:b.jsx("div",{className:"empty-title",children:"Lade Emma-Sync…"})}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"emma-sync-toggle-row",children:[b.jsxs("div",{className:"emma-sync-toggle-label",children:[b.jsx("div",{className:"hint-title",children:"Emma-Sync aktivieren"}),b.jsx("div",{className:"hint-text",children:"Wenn deaktiviert, werden keine Ordner überwacht und kein Hintergrunddienst gestartet."})]}),b.jsxs("label",{className:"emma-sync-switch","aria-label":"Emma-Sync aktivieren",children:[b.jsx("input",{type:"checkbox",checked:qe,onChange:B=>ut(B.target.checked)}),b.jsx("span",{className:"emma-sync-switch-slider"})]})]}),b.jsxs("div",{className:`emma-sync-paths ${qe?"":"is-disabled"}`,children:[b.jsxs("div",{className:"hint-block",children:[b.jsx("div",{className:"hint-title",children:"Netzwerkfreigabe"}),b.jsx("div",{className:"hint-text",children:"Zugangsdaten für den Praxis-Netzwerkordner (UNC). Erforderlich wenn Emma-Sync aktiv ist. Zuerst „Verbindung testen“, danach die Unterordner auswählen (z. B. GDT, PDF)."})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Netzwerkpfad (UNC)"}),b.jsx("input",{ref:B=>R.current.smbUnc=B,type:"text",value:je,onChange:B=>{xe(B.target.value),m(!1)},onFocus:()=>J("smbUnc"),disabled:!qe,placeholder:"\\\\\\\\server\\\\freigabe",autoComplete:"off"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Benutzername"}),b.jsx("input",{ref:B=>R.current.smbUser=B,type:"text",value:Ge,onChange:B=>{p(B.target.value),m(!1)},onFocus:()=>J("smbUser"),disabled:!qe,autoComplete:"off"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Passwort"}),b.jsx("input",{ref:B=>R.current.smbPassword=B,type:"password",value:E,onChange:B=>{l(B.target.value),m(!1)},onFocus:()=>J("smbPassword"),disabled:!qe,autoComplete:"off",placeholder:u?"Bereits gespeichert (neu eingeben zum Ändern)":""})]}),b.jsxs("div",{className:"smb-connect-row",children:[b.jsx("button",{type:"button",className:"btn",disabled:!qe||S,onClick:()=>void jt(),children:S?"Verbinde…":"Verbindung testen"}),h&&b.jsx("span",{className:"smb-connected-badge",role:"status",children:"Verbunden — Ordner können ausgewählt werden"})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"GDT-Ordner"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:pt.gdt_folder,onChange:B=>Ze("gdt_folder",B.target.value),disabled:!qe,placeholder:h?je:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!qe||!h||ht==="gdt_folder",onClick:()=>void wt("gdt_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Überwachungsordner (PDF)"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:pt.watch_folder,onChange:B=>Ze("watch_folder",B.target.value),disabled:!qe,placeholder:h?je:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!qe||!h||ht==="watch_folder",onClick:()=>void wt("watch_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:"Verarbeitete Dateien"}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:pt.processed_folder,onChange:B=>Ze("processed_folder",B.target.value),disabled:!qe,placeholder:h?je:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!qe||!h||ht==="processed_folder",onClick:()=>void wt("processed_folder"),children:"Durchsuchen…"})]})]}),b.jsxs("label",{className:"field",children:[b.jsx("div",{className:"field-label",children:'Outbound-Ordner (T2med-Knopf „EMMA-Outbound")'}),b.jsxs("div",{className:"path-row",children:[b.jsx("input",{type:"text",value:pt.outbound_folder,onChange:B=>Ze("outbound_folder",B.target.value),disabled:!qe,placeholder:h?je:"",autoComplete:"off"}),b.jsx("button",{type:"button",className:"btn",disabled:!qe||!h||ht==="outbound_folder",onClick:()=>void wt("outbound_folder"),children:"Durchsuchen…"})]})]}),b.jsx("p",{className:"hint-text emma-sync-upload-hint",children:"Datei-Upload ist immer aktiv, wenn Emma-Sync eingeschaltet ist."})]}),b.jsxs("div",{className:"sticky-actions",children:[b.jsx("button",{className:"btn",type:"button",onClick:He,disabled:!Ye,children:"Zurück"}),b.jsx("button",{className:"btn primary",type:"button",onClick:()=>void Ft(),children:"Einrichtung abschließen"})]})]})})]}),x&&b.jsxs("div",{className:"keyboard-dock",onMouseDown:B=>B.stopPropagation(),children:[b.jsxs("div",{className:"active-input-bar",children:[b.jsxs("div",{className:"active-input-row",children:[b.jsx("div",{className:"active-input-label",children:(Y==null?void 0:Y.label)||x}),b.jsxs("div",{className:"active-input-actions",children:[b.jsx("button",{type:"button",className:"dock-btn",onClick:Be,disabled:re<=0,children:"Zurück"}),b.jsx("button",{type:"button",className:"dock-btn",onClick:ze,children:"Weiter"}),b.jsx("button",{type:"button",className:"dock-btn",onClick:ft,children:"Schließen"})]})]}),b.jsx("input",{className:"active-input-value",value:ve,onChange:B=>x&&ie(x,B.target.value),inputMode:G==="numeric"?"numeric":"text",autoComplete:"off"})]}),b.jsx(j1,{mode:G||"full",onInput:Ee,onBackspace:me,onClear:Oe,onSpace:Ne,onEnter:Ae,onClose:ft})]})]})}const Mm={patient:"Patientenflow",setup:"Setup-Wizard"};function z1(r){const s={patient:[],setup:[]};for(const d of r)s[d.group]&&s[d.group].push(d);return s}function M1({onShowT2medError:r}){var ke;const s=yn(),{allowed:d,resolved:c,error:g}=oc(),[y,w]=L.useState(!0),[O,C]=L.useState(""),[j,_]=L.useState([]),[z,ne]=L.useState(null),[I,oe]=L.useState("happy"),[Q,Z]=L.useState(!1),[P,ce]=L.useState(""),ye=L.useMemo(()=>z1(j),[j]),fe=L.useMemo(()=>j.find(be=>be.id===I)??null,[j,I]),Se=L.useCallback(async()=>{w(!0),C("");const be=await Qb();if(be!=null&&be.error){C(be.error),_([]),w(!1);return}_(Array.isArray(be==null?void 0:be.scenarios)?be.scenarios:[]);const qe=(be==null?void 0:be.activeScenarioId)??null;ne(qe),qe&&oe(qe),w(!1)},[]);if(L.useEffect(()=>{Se()},[Se]),!c)return b.jsx("div",{className:"t2med-dev-loading",children:"Lade Szenarien…"});if(!d)return b.jsxs("div",{className:"t2med-dev-scenarios",children:[b.jsxs("header",{className:"t2med-dev-header",children:[b.jsx("h1",{children:"T2med Dev"}),b.jsx("p",{children:g??"Dev-Modus ist deaktiviert. Nutze die Dev-Release (emma-agent.config.json mit t2medDevMock) oder setze EMMA_CONFIG_PROFILE=dev und starte den Agent neu."})]}),b.jsx("button",{type:"button",className:"footer-button",onClick:()=>s("/start"),children:"Zurück"})]});const De=async be=>{Z(!0),C("");const qe=await _m(be);return Z(!1),qe!=null&&qe.error?(C(qe.error),!1):(ne((qe==null?void 0:qe.activeScenarioId)??be??null),!0)},ue=async()=>{await De(I)&&s("/start")},we=async()=>{Z(!0),C("");const be=await _m(null);if(Z(!1),be!=null&&be.error){C(be.error);return}ne(null),oe("happy")},at=async()=>{if(!fe||fe.level==="ok"){ce("Bitte ein Fehler-Szenario wählen (kein Happy Path).");return}Z(!0),ce("");const be=await xp({code:fe.code,operation:fe.operation});if(Z(!1),(be==null?void 0:be.t2medCode)!=null&&typeof r=="function"){r(be);return}be!=null&&be.error&&ce(be.error)},Ie=be=>{if(!be||be.level==="ok")return null;const qe=Cp(be.code);return b.jsxs("div",{className:"t2med-dev-scenario-meta",children:[b.jsxs("span",{children:["Code ",be.code]}),b.jsx("span",{children:be.operation}),qe!=null&&qe.hint?b.jsx("p",{children:qe.hint}):null,be.uiOutcome?b.jsx("p",{className:"t2med-dev-outcome",children:be.uiOutcome}):null]})};return b.jsxs("div",{className:"t2med-dev-scenarios",children:[b.jsxs("header",{className:"t2med-dev-header",children:[b.jsx("h1",{children:"T2med Dev-Szenarien"}),b.jsxs("p",{children:["Wähle ein Szenario für In-Flow-Tests (echter Kiosk-Ablauf) oder teste Overlay + Audit direkt. Audit-Einträge in ",b.jsx("code",{children:"audit.terminal_errors"})," erfordern ein eingeschriebenes Terminal-Zertifikat."]}),z?b.jsxs("div",{className:"t2med-dev-active-badge",children:["Aktiv: ",((ke=j.find(be=>be.id===z))==null?void 0:ke.label)??z]}):b.jsx("div",{className:"t2med-dev-active-badge t2med-dev-active-badge--none",children:"Kein Szenario aktiv"})]}),y?b.jsx("div",{className:"t2med-dev-loading",children:"Lade Szenarien…"}):b.jsxs(b.Fragment,{children:[O?b.jsx("div",{className:"t2med-dev-error",children:O}):null,P?b.jsx("div",{className:"t2med-dev-info",children:P}):null,b.jsx("div",{className:"t2med-dev-sections",children:Object.entries(ye).map(([be,qe])=>b.jsxs("section",{className:"t2med-dev-section",children:[b.jsx("h2",{children:Mm[be]??be}),b.jsx("div",{className:"t2med-dev-scenario-list",role:"radiogroup","aria-label":Mm[be],children:qe.map(ut=>b.jsxs("label",{className:`t2med-dev-scenario-card${I===ut.id?" t2med-dev-scenario-card--selected":""}`,children:[b.jsx("input",{type:"radio",name:"t2med-dev-scenario",value:ut.id,checked:I===ut.id,onChange:()=>oe(ut.id)}),b.jsx("span",{className:"t2med-dev-scenario-title",children:ut.label}),ut.level==="warning"?b.jsx("span",{className:"t2med-dev-tag t2med-dev-tag--warning",children:"Warnung"}):null,ut.level==="ok"?b.jsx("span",{className:"t2med-dev-tag t2med-dev-tag--ok",children:"OK"}):null]},ut.id))})]},be))}),Ie(fe),b.jsxs("div",{className:"t2med-dev-actions",children:[b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--primary",disabled:Q,onClick:()=>void ue(),children:"Szenario anwenden & Flow starten"}),b.jsx("button",{type:"button",className:"t2med-dev-btn",disabled:Q,onClick:()=>void at(),children:"Overlay + Audit jetzt testen"}),b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--ghost",disabled:Q,onClick:()=>void we(),children:"Szenario zurücksetzen"}),b.jsx("button",{type:"button",className:"t2med-dev-btn t2med-dev-btn--ghost",disabled:Q,onClick:()=>s("/start"),children:"Zurück zum Start"})]}),b.jsxs("p",{className:"t2med-dev-footnote",children:["Shortcut: ",b.jsx("code",{children:"?mockT2medError=502&mockT2medOperation=karteanfordern"})," auf /start funktioniert weiterhin für Overlay-Tests."]})]})]})}function B1({resetPatientData:r}){const s=L.useRef(null),d=L.useRef(null),c=yn(),g=vl(),[y,w]=L.useState(!1),[O,C]=L.useState(10),j=L.useRef(!1),_=L.useRef(!1),z=g.pathname==="/start",ne=g.pathname==="/setup-t2med",I=()=>{sessionStorage.clear(),localStorage.clear(),r(),z?window.location.reload():c("/start"),w(!1),j.current=!1,_.current=!1},oe=()=>{if(ne||(s.current&&clearTimeout(s.current),j.current)||z)return;const P=60*1e3;s.current=setTimeout(()=>{w(!0),j.current=!0,C(10),d.current=setInterval(()=>{C(ce=>ce<=1?(clearInterval(d.current),I(),0):ce-1)},1e3)},P)},Q=()=>{_.current=!0,oe()},Z=()=>{d.current&&clearInterval(d.current),w(!1),j.current=!1,oe()};return L.useEffect(()=>{const P=["mousemove","mousedown","keydown","touchstart"];return P.forEach(ce=>window.addEventListener(ce,Q)),oe(),()=>{clearTimeout(s.current),clearInterval(d.current),P.forEach(ce=>window.removeEventListener(ce,Q))}},[g]),!z&&!ne&&y?b.jsx("div",{className:"auto-reset-popup",children:b.jsxs("div",{className:"popup-content",children:[b.jsx("h2",{children:"Keine Aktion erkannt"}),b.jsxs("p",{children:["In ",O," Sekunden wird die Anmeldung abgebrochen."]}),b.jsx("button",{onClick:Z,children:"Fortfahren"})]})}):null}function U1(){const r=L.useRef(null),s=yn();L.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(()=>{}))},[]);const d=()=>{s("/",{replace:!0})};return b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Privat_ohne_Karte.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:d})})})}function k1(){const r=L.useRef(null),s=yn();return L.useEffect(()=>{r.current&&(r.current.load(),r.current.play().catch(()=>{}))},[]),b.jsx("div",{className:"welcome-screen",children:b.jsx("div",{className:"video-container",children:b.jsx("video",{ref:r,src:"/videos/Kein_Termin_vorhanden.mp4",className:"avatar-video",autoPlay:!0,preload:"auto",playsInline:!0,muted:!1,onEnded:()=>s("/")})})})}function L1(){const r=yn(),s=()=>{sessionStorage.clear(),localStorage.clear(),r("/start",{replace:!0})};return b.jsx("button",{className:"footer-button footer-button--restart",onClick:s,children:"⟳"})}function H1(){const r=vl(),s=yn(),{allowed:d,resolved:c}=oc(),[g,y]=L.useState(typeof window<"u"&&window.__hideFooter===!0);if(L.useEffect(()=>{const _=()=>y(window.__hideFooter===!0);return window.addEventListener("footer:update",_),_(),()=>window.removeEventListener("footer:update",_)},[]),g||["/enter-key","/setup-t2med","/dev/t2med"].includes(r.pathname))return null;const O=()=>!c||!d||r.pathname!=="/start"?null:b.jsx("button",{type:"button",className:"footer-button footer-button--dev",onClick:()=>s("/dev/t2med"),children:"T2med Dev"}),C=()=>r.pathname==="/start"?b.jsxs(b.Fragment,{children:[O(),b.jsx("button",{className:"footer-button footer-button--start",onClick:()=>s("/welcome"),children:"Start"})]}):null,j=()=>r.pathname==="/start"||r.pathname==="/final"?null:b.jsx(L1,{});return b.jsxs("footer",{className:"terminal-footer",children:[b.jsx("div",{className:"footer-left"}),b.jsx("div",{className:"footer-center",children:C()}),b.jsx("div",{className:"footer-right",children:j()})]})}const q1="Kartenlesen nicht möglich",K1="Es ist ein Fehler aufgetreten. Bitte informieren Sie das Personal.";function V1({response:r,onDismiss:s,onRetry:d,embedded:c=!1,fallbackTitle:g=q1}){if(!r)return null;const y=(r==null?void 0:r.level)==="warning"?"warning":"error",w=g,O=(r==null?void 0:r.userMessage)||K1,C=y==="warning"?"!":"×";return b.jsx("div",{className:`t2med-error-overlay${c?" embedded":""}`,role:"alertdialog","aria-modal":"true","aria-labelledby":"t2med-error-title",children:b.jsxs("div",{className:`t2med-error-card ${y}`,children:[b.jsxs("div",{className:"t2med-error-head",children:[y==="error"&&s?b.jsx("button",{type:"button",className:"t2med-error-icon t2med-error-close-icon",onClick:s,"aria-label":"Fehlermeldung schließen",children:C}):b.jsx("div",{className:"t2med-error-icon","aria-hidden":"true",children:C}),b.jsx("div",{id:"t2med-error-title",className:"t2med-error-title",children:w})]}),b.jsx("div",{className:"t2med-error-message",children:O}),(d||s)&&b.jsxs("div",{className:"t2med-error-actions",children:[s&&b.jsx("button",{type:"button",onClick:s,children:"Schließen"}),d&&b.jsx("button",{type:"button",className:"primary",onClick:d,children:"Erneut versuchen"})]})]})})}function G1(r){if(!r)return;const s=String(r).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(s))return s;const d=/^(\d{2})\.(\d{2})\.(\d{4})$/.exec(s);if(d)return`${d[3]}-${d[2]}-${d[1]}`}function Y1(){return sessionStorage.getItem("hasAppointment")==="true"}function X1(){const{certExists:r,setupDone:s}=L.useContext(sc);return r?s?b.jsx(fu,{to:"/start",replace:!0}):b.jsx(fu,{to:"/setup-t2med",replace:!0}):b.jsx(fu,{to:"/enter-key",replace:!0})}function Z1({patientData:r,updatePatientData:s,handleFinalSubmit:d,restartToStart:c,onShowT2medError:g}){return b.jsxs(Hy,{children:[b.jsx(vn,{path:"/",element:b.jsx(X1,{})}),b.jsx(vn,{path:"/start",element:b.jsx(v1,{})}),b.jsx(vn,{path:"/insurance-card",element:b.jsx(O1,{})}),b.jsx(vn,{path:"/no-insurance-card",element:b.jsx(U1,{})}),b.jsx(vn,{path:"/consent",element:b.jsx(fu,{to:"/health-card",replace:!0})}),b.jsx(vn,{path:"/welcome",element:b.jsx(g1,{})}),b.jsx(vn,{path:"/appointment-yesno",element:b.jsx(N1,{})}),b.jsx(vn,{path:"/reception",element:b.jsx(w1,{})}),b.jsx(vn,{path:"/keine-termine",element:b.jsx(A1,{})}),b.jsx(vn,{path:"/no-appointment",element:b.jsx(k1,{})}),b.jsx(vn,{path:"/appointment-selection",element:b.jsx(b1,{updatePatientData:s})}),b.jsx(vn,{path:"/health-card",element:b.jsx(y1,{updatePatientData:s,patientData:r})}),b.jsx(vn,{path:"/final",element:b.jsx(S1,{onRestart:c,onSubmit:d,patientData:r})}),b.jsx(vn,{path:"/setup-t2med",element:b.jsx(D1,{onSetupSuccess:()=>window.location.href="/start"})}),b.jsx(vn,{path:"/dev/t2med",element:b.jsx(M1,{onShowT2medError:g})}),b.jsx(vn,{path:"/enter-key",element:b.jsx(b.Fragment,{})})]})}function Q1(){const[r,s]=L.useState({firstName:"",lastName:"",birthDate:"",typeOfVisitationSteps:[]}),[d,c]=L.useState(!1),[g,y]=L.useState(null);vl();const w=yn();L.useEffect(()=>{const z=new URLSearchParams(window.location.search),ne=z.get("mockT2medError");if(ne==null||ne==="")return;const I=Number(ne);if(!Number.isFinite(I))return;const oe=z.get("mockT2medOperation")||"karteanfordern";let Q=!1;return(async()=>{const Z=await Ep();if(Q||(Z==null?void 0:Z.allowed)!==!0)return;const P=await xp({code:I,operation:oe});Q||y(P)})(),()=>{Q=!0}},[]);const O=(z,ne)=>{s(I=>{if(typeof z=="string")return{...I,[z]:ne};const oe=Number(z);if(!Number.isFinite(oe)||oe<1)return console.warn("updatePatientData called with invalid page:",z),I;const Q=Array.isArray(I.typeOfVisitationSteps)?[...I.typeOfVisitationSteps]:[],Z=oe-1;return Q[Z]=ne,Q.length=Z+1,{...I,typeOfVisitationSteps:Q}})},C=()=>{s({firstName:"",lastName:"",birthDate:"",typeOfVisitationSteps:[]})},j=()=>{c(!0),C(),sessionStorage.removeItem("t2medSitzungHandle"),w("/start",{replace:!0}),requestAnimationFrame(()=>{requestAnimationFrame(()=>c(!1))})},_=async()=>{try{const ne=(Array.isArray(r.typeOfVisitationSteps)?r.typeOfVisitationSteps.filter(Boolean):[]).join(" > "),I=ne||void 0,oe=(r.firstName||"").trim(),Q=(r.lastName||"").trim();if(!oe||!Q)return;const Z=G1(r.birthDate),P=Y1(),ce={firstName:oe,lastName:Q,registration:new Date().toISOString(),typeOfVisitation:ne||"Sprechstunde",hasAppointment:P,status:"WAITING",active:!0,...Z?{birthDate:Z}:{},...I?{note:I}:{}},ye=await bp(ce);if(ye!=null&&ye.error){console.error("Fehler beim Senden des Patienten:",ye);return}const fe=sessionStorage.getItem("t2medSitzungHandle");if(fe){const Se=await $b({sitzungHandle:fe,...I?{note:I}:{}});if(Se!=null&&Se.error){console.error("Warteraum-Eintrag konnte nicht angelegt werden:",Se),y(Se);return}sessionStorage.removeItem("t2medSitzungHandle")}}catch(z){console.error("Fehler beim Abschluss der Anmeldung:",z),y({userMessage:"Die Anmeldung konnte nicht abgeschlossen werden. Bitte informieren Sie das Personal."})}};return b.jsx("div",{className:"app-container",children:b.jsx(p1,{children:b.jsxs(x1,{children:[b.jsx(B1,{resetPatientData:C}),d&&b.jsx("div",{className:"reset-overlay",role:"status","aria-live":"polite",children:b.jsxs("div",{className:"reset-card",children:[b.jsx("div",{className:"spinner"}),b.jsx("div",{children:"Bitte warten…"})]})}),b.jsx("div",{className:"app-content",children:b.jsx(Z1,{patientData:r,updatePatientData:O,handleFinalSubmit:_,restartToStart:j,onShowT2medError:y})}),g&&b.jsx(V1,{response:g,onDismiss:()=>y(null)}),b.jsx(H1,{})]})})})}function F1(){const r=s=>{s.touches.length>1&&s.preventDefault()};document.addEventListener("touchstart",r,{passive:!1}),document.addEventListener("touchmove",r,{passive:!1}),document.addEventListener("wheel",s=>{s.ctrlKey&&s.preventDefault()},{passive:!1})}F1();Fg.createRoot(document.getElementById("root")).render(b.jsx(Bm.StrictMode,{children:b.jsx(Vy,{children:b.jsx(Q1,{})})}));
