@xpert-ai/chatkit-powerpoint-addin 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
var Tp=Object.defineProperty;var Xd=s=>{throw TypeError(s)};var _p=(s,u,f)=>u in s?Tp(s,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):s[u]=f;var pt=(s,u,f)=>_p(s,typeof u!="symbol"?u+"":u,f),Gd=(s,u,f)=>u.has(s)||Xd("Cannot "+f);var zu=(s,u,f)=>(Gd(s,u,"read from private field"),f?f.call(s):u.get(s)),rf=(s,u,f)=>u.has(s)?Xd("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(s):u.set(s,f),hf=(s,u,f,c)=>(Gd(s,u,"write to private field"),c?c.call(s,f):u.set(s,f),f);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))c(h);new MutationObserver(h=>{for(const d of h)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function f(h){const d={};return h.integrity&&(d.integrity=h.integrity),h.referrerPolicy&&(d.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?d.credentials="include":h.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(h){if(h.ep)return;h.ep=!0;const d=f(h);fetch(h.href,d)}})();function Ap(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var df={exports:{}},ei={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Qd;function Mp(){if(Qd)return ei;Qd=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(c,h,d){var y=null;if(d!==void 0&&(y=""+d),h.key!==void 0&&(y=""+h.key),"key"in h){d={};for(var v in h)v!=="key"&&(d[v]=h[v])}else d=h;return h=d.ref,{$$typeof:s,type:c,key:y,ref:h!==void 0?h:null,props:d}}return ei.Fragment=u,ei.jsx=f,ei.jsxs=f,ei}var Zd;function Op(){return Zd||(Zd=1,df.exports=Mp()),df.exports}var Pt=Op(),mf={exports:{}},Z={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Vd;function zp(){if(Vd)return Z;Vd=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),et=Symbol.iterator;function mt(p){return p===null||typeof p!="object"?null:(p=et&&p[et]||p["@@iterator"],typeof p=="function"?p:null)}var Et={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dt=Object.assign,Xt={};function Mt(p,C,U){this.props=p,this.context=C,this.refs=Xt,this.updater=U||Et}Mt.prototype.isReactComponent={},Mt.prototype.setState=function(p,C){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,C,"setState")},Mt.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Jt(){}Jt.prototype=Mt.prototype;function Bt(p,C,U){this.props=p,this.context=C,this.refs=Xt,this.updater=U||Et}var te=Bt.prototype=new Jt;te.constructor=Bt,Dt(te,Mt.prototype),te.isPureReactComponent=!0;var ee=Array.isArray;function Lt(){}var k={H:null,A:null,T:null,S:null},Tt=Object.prototype.hasOwnProperty;function je(p,C,U){var L=U.ref;return{$$typeof:s,type:p,key:C,ref:L!==void 0?L:null,props:U}}function ma(p,C){return je(p.type,C,p.props)}function Xe(p){return typeof p=="object"&&p!==null&&p.$$typeof===s}function le(p){var C={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return C[U]})}var Jl=/\/+/g;function Fe(p,C){return typeof p=="object"&&p!==null&&p.key!=null?le(""+p.key):C.toString(36)}function He(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Lt,Lt):(p.status="pending",p.then(function(C){p.status==="pending"&&(p.status="fulfilled",p.value=C)},function(C){p.status==="pending"&&(p.status="rejected",p.reason=C)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function z(p,C,U,L,V){var W=typeof p;(W==="undefined"||W==="boolean")&&(p=null);var it=!1;if(p===null)it=!0;else switch(W){case"bigint":case"string":case"number":it=!0;break;case"object":switch(p.$$typeof){case s:case u:it=!0;break;case H:return it=p._init,z(it(p._payload),C,U,L,V)}}if(it)return V=V(p),it=L===""?"."+Fe(p,0):L,ee(V)?(U="",it!=null&&(U=it.replace(Jl,"$&/")+"/"),z(V,C,U,"",function(sn){return sn})):V!=null&&(Xe(V)&&(V=ma(V,U+(V.key==null||p&&p.key===V.key?"":(""+V.key).replace(Jl,"$&/")+"/")+it)),C.push(V)),1;it=0;var Ft=L===""?".":L+":";if(ee(p))for(var Ot=0;Ot<p.length;Ot++)L=p[Ot],W=Ft+Fe(L,Ot),it+=z(L,C,U,W,V);else if(Ot=mt(p),typeof Ot=="function")for(p=Ot.call(p),Ot=0;!(L=p.next()).done;)L=L.value,W=Ft+Fe(L,Ot++),it+=z(L,C,U,W,V);else if(W==="object"){if(typeof p.then=="function")return z(He(p),C,U,L,V);throw C=String(p),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return it}function R(p,C,U){if(p==null)return p;var L=[],V=0;return z(p,L,"","",function(W){return C.call(U,W,V++)}),L}function G(p){if(p._status===-1){var C=p._result;C=C(),C.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=C)}if(p._status===1)return p._result.default;throw p._result}var st=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},ht={map:R,forEach:function(p,C,U){R(p,function(){C.apply(this,arguments)},U)},count:function(p){var C=0;return R(p,function(){C++}),C},toArray:function(p){return R(p,function(C){return C})||[]},only:function(p){if(!Xe(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return Z.Activity=B,Z.Children=ht,Z.Component=Mt,Z.Fragment=f,Z.Profiler=h,Z.PureComponent=Bt,Z.StrictMode=c,Z.Suspense=E,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Z.__COMPILER_RUNTIME={__proto__:null,c:function(p){return k.H.useMemoCache(p)}},Z.cache=function(p){return function(){return p.apply(null,arguments)}},Z.cacheSignal=function(){return null},Z.cloneElement=function(p,C,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var L=Dt({},p.props),V=p.key;if(C!=null)for(W in C.key!==void 0&&(V=""+C.key),C)!Tt.call(C,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&C.ref===void 0||(L[W]=C[W]);var W=arguments.length-2;if(W===1)L.children=U;else if(1<W){for(var it=Array(W),Ft=0;Ft<W;Ft++)it[Ft]=arguments[Ft+2];L.children=it}return je(p.type,V,L)},Z.createContext=function(p){return p={$$typeof:y,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:d,_context:p},p},Z.createElement=function(p,C,U){var L,V={},W=null;if(C!=null)for(L in C.key!==void 0&&(W=""+C.key),C)Tt.call(C,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=C[L]);var it=arguments.length-2;if(it===1)V.children=U;else if(1<it){for(var Ft=Array(it),Ot=0;Ot<it;Ot++)Ft[Ot]=arguments[Ot+2];V.children=Ft}if(p&&p.defaultProps)for(L in it=p.defaultProps,it)V[L]===void 0&&(V[L]=it[L]);return je(p,W,V)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(p){return{$$typeof:v,render:p}},Z.isValidElement=Xe,Z.lazy=function(p){return{$$typeof:H,_payload:{_status:-1,_result:p},_init:G}},Z.memo=function(p,C){return{$$typeof:b,type:p,compare:C===void 0?null:C}},Z.startTransition=function(p){var C=k.T,U={};k.T=U;try{var L=p(),V=k.S;V!==null&&V(U,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(Lt,st)}catch(W){st(W)}finally{C!==null&&U.types!==null&&(C.types=U.types),k.T=C}},Z.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Z.use=function(p){return k.H.use(p)},Z.useActionState=function(p,C,U){return k.H.useActionState(p,C,U)},Z.useCallback=function(p,C){return k.H.useCallback(p,C)},Z.useContext=function(p){return k.H.useContext(p)},Z.useDebugValue=function(){},Z.useDeferredValue=function(p,C){return k.H.useDeferredValue(p,C)},Z.useEffect=function(p,C){return k.H.useEffect(p,C)},Z.useEffectEvent=function(p){return k.H.useEffectEvent(p)},Z.useId=function(){return k.H.useId()},Z.useImperativeHandle=function(p,C,U){return k.H.useImperativeHandle(p,C,U)},Z.useInsertionEffect=function(p,C){return k.H.useInsertionEffect(p,C)},Z.useLayoutEffect=function(p,C){return k.H.useLayoutEffect(p,C)},Z.useMemo=function(p,C){return k.H.useMemo(p,C)},Z.useOptimistic=function(p,C){return k.H.useOptimistic(p,C)},Z.useReducer=function(p,C,U){return k.H.useReducer(p,C,U)},Z.useRef=function(p){return k.H.useRef(p)},Z.useState=function(p){return k.H.useState(p)},Z.useSyncExternalStore=function(p,C,U){return k.H.useSyncExternalStore(p,C,U)},Z.useTransition=function(){return k.H.useTransition()},Z.version="19.2.3",Z}var Kd;function Uf(){return Kd||(Kd=1,mf.exports=zp()),mf.exports}var Nt=Uf();const Jd=Ap(Nt);var yf={exports:{}},li={},gf={exports:{}},pf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var kd;function xp(){return kd||(kd=1,(function(s){function u(z,R){var G=z.length;z.push(R);t:for(;0<G;){var st=G-1>>>1,ht=z[st];if(0<h(ht,R))z[st]=R,z[G]=ht,G=st;else break t}}function f(z){return z.length===0?null:z[0]}function c(z){if(z.length===0)return null;var R=z[0],G=z.pop();if(G!==R){z[0]=G;t:for(var st=0,ht=z.length,p=ht>>>1;st<p;){var C=2*(st+1)-1,U=z[C],L=C+1,V=z[L];if(0>h(U,G))L<ht&&0>h(V,U)?(z[st]=V,z[L]=G,st=L):(z[st]=U,z[C]=G,st=C);else if(L<ht&&0>h(V,G))z[st]=V,z[L]=G,st=L;else break t}}return R}function h(z,R){var G=z.sortIndex-R.sortIndex;return G!==0?G:z.id-R.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();s.unstable_now=function(){return y.now()-v}}var E=[],b=[],H=1,B=null,et=3,mt=!1,Et=!1,Dt=!1,Xt=!1,Mt=typeof setTimeout=="function"?setTimeout:null,Jt=typeof clearTimeout=="function"?clearTimeout:null,Bt=typeof setImmediate<"u"?setImmediate:null;function te(z){for(var R=f(b);R!==null;){if(R.callback===null)c(b);else if(R.startTime<=z)c(b),R.sortIndex=R.expirationTime,u(E,R);else break;R=f(b)}}function ee(z){if(Dt=!1,te(z),!Et)if(f(E)!==null)Et=!0,Lt||(Lt=!0,le());else{var R=f(b);R!==null&&He(ee,R.startTime-z)}}var Lt=!1,k=-1,Tt=5,je=-1;function ma(){return Xt?!0:!(s.unstable_now()-je<Tt)}function Xe(){if(Xt=!1,Lt){var z=s.unstable_now();je=z;var R=!0;try{t:{Et=!1,Dt&&(Dt=!1,Jt(k),k=-1),mt=!0;var G=et;try{e:{for(te(z),B=f(E);B!==null&&!(B.expirationTime>z&&ma());){var st=B.callback;if(typeof st=="function"){B.callback=null,et=B.priorityLevel;var ht=st(B.expirationTime<=z);if(z=s.unstable_now(),typeof ht=="function"){B.callback=ht,te(z),R=!0;break e}B===f(E)&&c(E),te(z)}else c(E);B=f(E)}if(B!==null)R=!0;else{var p=f(b);p!==null&&He(ee,p.startTime-z),R=!1}}break t}finally{B=null,et=G,mt=!1}R=void 0}}finally{R?le():Lt=!1}}}var le;if(typeof Bt=="function")le=function(){Bt(Xe)};else if(typeof MessageChannel<"u"){var Jl=new MessageChannel,Fe=Jl.port2;Jl.port1.onmessage=Xe,le=function(){Fe.postMessage(null)}}else le=function(){Mt(Xe,0)};function He(z,R){k=Mt(function(){z(s.unstable_now())},R)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Tt=0<z?Math.floor(1e3/z):5},s.unstable_getCurrentPriorityLevel=function(){return et},s.unstable_next=function(z){switch(et){case 1:case 2:case 3:var R=3;break;default:R=et}var G=et;et=R;try{return z()}finally{et=G}},s.unstable_requestPaint=function(){Xt=!0},s.unstable_runWithPriority=function(z,R){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=et;et=z;try{return R()}finally{et=G}},s.unstable_scheduleCallback=function(z,R,G){var st=s.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?st+G:st):G=st,z){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=G+ht,z={id:H++,callback:R,priorityLevel:z,startTime:G,expirationTime:ht,sortIndex:-1},G>st?(z.sortIndex=G,u(b,z),f(E)===null&&z===f(b)&&(Dt?(Jt(k),k=-1):Dt=!0,He(ee,G-st))):(z.sortIndex=ht,u(E,z),Et||mt||(Et=!0,Lt||(Lt=!0,le()))),z},s.unstable_shouldYield=ma,s.unstable_wrapCallback=function(z){var R=et;return function(){var G=et;et=R;try{return z.apply(this,arguments)}finally{et=G}}}})(pf)),pf}var Wd;function Dp(){return Wd||(Wd=1,gf.exports=xp()),gf.exports}var vf={exports:{}},kt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var $d;function Cp(){if($d)return kt;$d=1;var s=Uf();function u(E){var b="https://react.dev/errors/"+E;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)b+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+E+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var c={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function d(E,b,H){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:B==null?null:""+B,children:E,containerInfo:b,implementation:H}}var y=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(E,b){if(E==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,kt.createPortal=function(E,b){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(u(299));return d(E,b,null,H)},kt.flushSync=function(E){var b=y.T,H=c.p;try{if(y.T=null,c.p=2,E)return E()}finally{y.T=b,c.p=H,c.d.f()}},kt.preconnect=function(E,b){typeof E=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,c.d.C(E,b))},kt.prefetchDNS=function(E){typeof E=="string"&&c.d.D(E)},kt.preinit=function(E,b){if(typeof E=="string"&&b&&typeof b.as=="string"){var H=b.as,B=v(H,b.crossOrigin),et=typeof b.integrity=="string"?b.integrity:void 0,mt=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;H==="style"?c.d.S(E,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:B,integrity:et,fetchPriority:mt}):H==="script"&&c.d.X(E,{crossOrigin:B,integrity:et,fetchPriority:mt,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},kt.preinitModule=function(E,b){if(typeof E=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var H=v(b.as,b.crossOrigin);c.d.M(E,{crossOrigin:H,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&c.d.M(E)},kt.preload=function(E,b){if(typeof E=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var H=b.as,B=v(H,b.crossOrigin);c.d.L(E,H,{crossOrigin:B,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},kt.preloadModule=function(E,b){if(typeof E=="string")if(b){var H=v(b.as,b.crossOrigin);c.d.m(E,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:H,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else c.d.m(E)},kt.requestFormReset=function(E){c.d.r(E)},kt.unstable_batchedUpdates=function(E,b){return E(b)},kt.useFormState=function(E,b,H){return y.H.useFormState(E,b,H)},kt.useFormStatus=function(){return y.H.useHostTransitionStatus()},kt.version="19.2.3",kt}var Fd;function wp(){if(Fd)return vf.exports;Fd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),vf.exports=Cp(),vf.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Id;function Rp(){if(Id)return li;Id=1;var s=Dp(),u=Uf(),f=wp();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function E(t){if(d(t)!==t)throw Error(c(188))}function b(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return E(n),t;if(i===a)return E(n),e;i=i.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=i;else{for(var o=!1,r=n.child;r;){if(r===l){o=!0,l=n,a=i;break}if(r===a){o=!0,a=n,l=i;break}r=r.sibling}if(!o){for(r=i.child;r;){if(r===l){o=!0,l=i,a=n;break}if(r===a){o=!0,a=i,l=n;break}r=r.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function H(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=H(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,et=Symbol.for("react.element"),mt=Symbol.for("react.transitional.element"),Et=Symbol.for("react.portal"),Dt=Symbol.for("react.fragment"),Xt=Symbol.for("react.strict_mode"),Mt=Symbol.for("react.profiler"),Jt=Symbol.for("react.consumer"),Bt=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Lt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),je=Symbol.for("react.activity"),ma=Symbol.for("react.memo_cache_sentinel"),Xe=Symbol.iterator;function le(t){return t===null||typeof t!="object"?null:(t=Xe&&t[Xe]||t["@@iterator"],typeof t=="function"?t:null)}var Jl=Symbol.for("react.client.reference");function Fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Jl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Dt:return"Fragment";case Mt:return"Profiler";case Xt:return"StrictMode";case ee:return"Suspense";case Lt:return"SuspenseList";case je:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Et:return"Portal";case Bt:return t.displayName||"Context";case Jt:return(t._context.displayName||"Context")+".Consumer";case te:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:Fe(t.type)||"Memo";case Tt:e=t._payload,t=t._init;try{return Fe(t(e))}catch{}}return null}var He=Array.isArray,z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},st=[],ht=-1;function p(t){return{current:t}}function C(t){0>ht||(t.current=st[ht],st[ht]=null,ht--)}function U(t,e){ht++,st[ht]=t.current,t.current=e}var L=p(null),V=p(null),W=p(null),it=p(null);function Ft(t,e){switch(U(W,e),U(V,t),U(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?od(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=od(e),t=rd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}C(L),U(L,t)}function Ot(){C(L),C(V),C(W)}function sn(t){t.memoizedState!==null&&U(it,t);var e=L.current,l=rd(e,t.type);e!==l&&(U(V,t),U(L,l))}function fi(t){V.current===t&&(C(L),C(V)),it.current===t&&(C(it),Fn._currentValue=G)}var Ku,qf;function kl(t){if(Ku===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ku=e&&e[1]||"",qf=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ku+t+qf}var Ju=!1;function ku(t,e){if(!t||Ju)return"";Ju=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(M){var A=M}Reflect.construct(t,[],D)}else{try{D.call()}catch(M){A=M}t.call(D.prototype)}}else{try{throw Error()}catch(M){A=M}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),o=i[0],r=i[1];if(o&&r){var m=o.split(`
|
|
44
|
-
`),_=r.split(`
|
|
45
|
-
`);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===_.length)for(a=m.length-1,n=_.length-1;1<=a&&0<=n&&m[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==_[n]){var O=`
|
|
46
|
-
`+m[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{Ju=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?kl(l):""}function Pm(t,e){switch(t.tag){case 26:case 27:case 5:return kl(t.type);case 16:return kl("Lazy");case 13:return t.child!==e&&e!==null?kl("Suspense Fallback"):kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return ku(t.type,!1);case 11:return ku(t.type.render,!1);case 1:return ku(t.type,!0);case 31:return kl("Activity");default:return""}}function jf(t){try{var e="",l=null;do e+=Pm(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Wu=Object.prototype.hasOwnProperty,$u=s.unstable_scheduleCallback,Fu=s.unstable_cancelCallback,ty=s.unstable_shouldYield,ey=s.unstable_requestPaint,oe=s.unstable_now,ly=s.unstable_getCurrentPriorityLevel,Xf=s.unstable_ImmediatePriority,Gf=s.unstable_UserBlockingPriority,oi=s.unstable_NormalPriority,ay=s.unstable_LowPriority,Qf=s.unstable_IdlePriority,ny=s.log,iy=s.unstable_setDisableYieldValue,fn=null,re=null;function Sl(t){if(typeof ny=="function"&&iy(t),re&&typeof re.setStrictMode=="function")try{re.setStrictMode(fn,t)}catch{}}var he=Math.clz32?Math.clz32:sy,uy=Math.log,cy=Math.LN2;function sy(t){return t>>>=0,t===0?32:31-(uy(t)/cy|0)|0}var ri=256,hi=262144,di=4194304;function Wl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function mi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~i,a!==0?n=Wl(a):(o&=r,o!==0?n=Wl(o):l||(l=r&~t,l!==0&&(n=Wl(l))))):(r=a&~i,r!==0?n=Wl(r):o!==0?n=Wl(o):l||(l=a&~t,l!==0&&(n=Wl(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function on(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function fy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Zf(){var t=di;return di<<=1,(di&62914560)===0&&(di=4194304),t}function Iu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function rn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function oy(t,e,l,a,n,i){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=o&~l;0<l;){var O=31-he(l),D=1<<O;r[O]=0,m[O]=-1;var A=_[O];if(A!==null)for(_[O]=null,O=0;O<A.length;O++){var M=A[O];M!==null&&(M.lane&=-536870913)}l&=~D}a!==0&&Vf(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function Vf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-he(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Kf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-he(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Jf(t,e){var l=e&-e;return l=(l&42)!==0?1:Pu(l),(l&(t.suspendedLanes|e))!==0?0:l}function Pu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function tc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function kf(){var t=R.p;return t!==0?t:(t=window.event,t===void 0?32:Hd(t.type))}function Wf(t,e){var l=R.p;try{return R.p=t,e()}finally{R.p=l}}var bl=Math.random().toString(36).slice(2),Gt="__reactFiber$"+bl,ae="__reactProps$"+bl,ya="__reactContainer$"+bl,ec="__reactEvents$"+bl,ry="__reactListeners$"+bl,hy="__reactHandles$"+bl,$f="__reactResources$"+bl,hn="__reactMarker$"+bl;function lc(t){delete t[Gt],delete t[ae],delete t[ec],delete t[ry],delete t[hy]}function ga(t){var e=t[Gt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ya]||l[Gt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=vd(t);t!==null;){if(l=t[Gt])return l;t=vd(t)}return e}t=l,l=t.parentNode}return null}function pa(t){if(t=t[Gt]||t[ya]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function dn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function va(t){var e=t[$f];return e||(e=t[$f]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[hn]=!0}var Ff=new Set,If={};function $l(t,e){Sa(t,e),Sa(t+"Capture",e)}function Sa(t,e){for(If[t]=e,t=0;t<e.length;t++)Ff.add(e[t])}var dy=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]*$"),Pf={},to={};function my(t){return Wu.call(to,t)?!0:Wu.call(Pf,t)?!1:dy.test(t)?to[t]=!0:(Pf[t]=!0,!1)}function yi(t,e,l){if(my(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function gi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ie(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ee(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function eo(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yy(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ac(t){if(!t._valueTracker){var e=eo(t)?"checked":"value";t._valueTracker=yy(t,e,""+t[e])}}function lo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=eo(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function pi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var gy=/[\n"\\]/g;function Te(t){return t.replace(gy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function nc(t,e,l,a,n,i,o,r){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ee(e)):t.value!==""+Ee(e)&&(t.value=""+Ee(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?ic(t,o,Ee(e)):l!=null?ic(t,o,Ee(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+Ee(r):t.removeAttribute("name")}function ao(t,e,l,a,n,i,o,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ac(t);return}l=l!=null?""+Ee(l):"",e=e!=null?""+Ee(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),ac(t)}function ic(t,e,l){e==="number"&&pi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ba(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ee(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function no(t,e,l){if(e!=null&&(e=""+Ee(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ee(l):""}function io(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(c(92));if(He(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ee(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),ac(t)}function Ea(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var py=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 uo(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||py.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function co(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&uo(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&uo(t,i,e[i])}function uc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vy=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"]]),Sy=/^[\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 vi(t){return Sy.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Pe(){}var cc=null;function sc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ta=null,_a=null;function so(t){var e=pa(t);if(e&&(t=e.stateNode)){var l=t[ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(nc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Te(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[ae]||null;if(!n)throw Error(c(90));nc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&lo(a)}break t;case"textarea":no(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ba(t,!!l.multiple,e,!1)}}}var fc=!1;function fo(t,e,l){if(fc)return t(e,l);fc=!0;try{var a=t(e);return a}finally{if(fc=!1,(Ta!==null||_a!==null)&&(iu(),Ta&&(e=Ta,t=_a,_a=Ta=null,so(e),t)))for(e=0;e<t.length;e++)so(t[e])}}function mn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[ae]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(tl)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){oc=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{oc=!1}var El=null,rc=null,Si=null;function oo(){if(Si)return Si;var t,e=rc,l=e.length,a,n="value"in El?El.value:El.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var o=l-t;for(a=1;a<=o&&e[l-a]===n[i-a];a++);return Si=n.slice(t,1<a?1-a:void 0)}function bi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ei(){return!0}function ro(){return!1}function ne(t){function e(l,a,n,i,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ei:ro,this.isPropagationStopped=ro,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),e}var Fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ti=ne(Fl),gn=B({},Fl,{view:0,detail:0}),by=ne(gn),hc,dc,pn,_i=B({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pn&&(pn&&t.type==="mousemove"?(hc=t.screenX-pn.screenX,dc=t.screenY-pn.screenY):dc=hc=0,pn=t),hc)},movementY:function(t){return"movementY"in t?t.movementY:dc}}),ho=ne(_i),Ey=B({},_i,{dataTransfer:0}),Ty=ne(Ey),_y=B({},gn,{relatedTarget:0}),mc=ne(_y),Ay=B({},Fl,{animationName:0,elapsedTime:0,pseudoElement:0}),My=ne(Ay),Oy=B({},Fl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zy=ne(Oy),xy=B({},Fl,{data:0}),mo=ne(xy),Dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cy={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"},wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ry(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=wy[t])?!!e[t]:!1}function yc(){return Ry}var Uy=B({},gn,{key:function(t){if(t.key){var e=Dy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Cy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yc,charCode:function(t){return t.type==="keypress"?bi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Hy=ne(Uy),Ny=B({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=ne(Ny),By=B({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yc}),Ly=ne(By),Yy=B({},Fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),qy=ne(Yy),jy=B({},_i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Xy=ne(jy),Gy=B({},Fl,{newState:0,oldState:0}),Qy=ne(Gy),Zy=[9,13,27,32],gc=tl&&"CompositionEvent"in window,vn=null;tl&&"documentMode"in document&&(vn=document.documentMode);var Vy=tl&&"TextEvent"in window&&!vn,go=tl&&(!gc||vn&&8<vn&&11>=vn),po=" ",vo=!1;function So(t,e){switch(t){case"keyup":return Zy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Aa=!1;function Ky(t,e){switch(t){case"compositionend":return bo(e);case"keypress":return e.which!==32?null:(vo=!0,po);case"textInput":return t=e.data,t===po&&vo?null:t;default:return null}}function Jy(t,e){if(Aa)return t==="compositionend"||!gc&&So(t,e)?(t=oo(),Si=rc=El=null,Aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return go&&e.locale!=="ko"?null:e.data;default:return null}}var ky={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 Eo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ky[t.type]:e==="textarea"}function To(t,e,l,a){Ta?_a?_a.push(a):_a=[a]:Ta=a,e=hu(e,"onChange"),0<e.length&&(l=new Ti("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Sn=null,bn=null;function Wy(t){nd(t,0)}function Ai(t){var e=dn(t);if(lo(e))return t}function _o(t,e){if(t==="change")return e}var Ao=!1;if(tl){var pc;if(tl){var vc="oninput"in document;if(!vc){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),vc=typeof Mo.oninput=="function"}pc=vc}else pc=!1;Ao=pc&&(!document.documentMode||9<document.documentMode)}function Oo(){Sn&&(Sn.detachEvent("onpropertychange",zo),bn=Sn=null)}function zo(t){if(t.propertyName==="value"&&Ai(bn)){var e=[];To(e,bn,t,sc(t)),fo(Wy,e)}}function $y(t,e,l){t==="focusin"?(Oo(),Sn=e,bn=l,Sn.attachEvent("onpropertychange",zo)):t==="focusout"&&Oo()}function Fy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ai(bn)}function Iy(t,e){if(t==="click")return Ai(e)}function Py(t,e){if(t==="input"||t==="change")return Ai(e)}function tg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var de=typeof Object.is=="function"?Object.is:tg;function En(t,e){if(de(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Wu.call(e,n)||!de(t[n],e[n]))return!1}return!0}function xo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Do(t,e){var l=xo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=xo(l)}}function Co(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Co(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=pi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=pi(t.document)}return e}function Sc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var eg=tl&&"documentMode"in document&&11>=document.documentMode,Ma=null,bc=null,Tn=null,Ec=!1;function Ro(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ec||Ma==null||Ma!==pi(a)||(a=Ma,"selectionStart"in a&&Sc(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}),Tn&&En(Tn,a)||(Tn=a,a=hu(bc,"onSelect"),0<a.length&&(e=new Ti("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Ma)))}function Il(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Oa={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Tc={},Uo={};tl&&(Uo=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function Pl(t){if(Tc[t])return Tc[t];if(!Oa[t])return t;var e=Oa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Uo)return Tc[t]=e[l];return t}var Ho=Pl("animationend"),No=Pl("animationiteration"),Bo=Pl("animationstart"),lg=Pl("transitionrun"),ag=Pl("transitionstart"),ng=Pl("transitioncancel"),Lo=Pl("transitionend"),Yo=new Map,_c="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(" ");_c.push("scrollEnd");function Ne(t,e){Yo.set(t,e),$l(e,[t])}var Mi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},_e=[],za=0,Ac=0;function Oi(){for(var t=za,e=Ac=za=0;e<t;){var l=_e[e];_e[e++]=null;var a=_e[e];_e[e++]=null;var n=_e[e];_e[e++]=null;var i=_e[e];if(_e[e++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}i!==0&&qo(l,n,i)}}function zi(t,e,l,a){_e[za++]=t,_e[za++]=e,_e[za++]=l,_e[za++]=a,Ac|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Mc(t,e,l,a){return zi(t,e,l,a),xi(t)}function ta(t,e){return zi(t,null,null,e),xi(t)}function qo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-he(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function xi(t){if(50<Zn)throw Zn=0,Hs=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var xa={};function ig(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 me(t,e,l,a){return new ig(t,e,l,a)}function Oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function el(t,e){var l=t.alternate;return l===null?(l=me(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function jo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Di(t,e,l,a,n,i){var o=0;if(a=t,typeof t=="function")Oc(t)&&(o=1);else if(typeof t=="string")o=op(t,l,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case je:return t=me(31,l,e,n),t.elementType=je,t.lanes=i,t;case Dt:return ea(l.children,n,i,e);case Xt:o=8,n|=24;break;case Mt:return t=me(12,l,e,n|2),t.elementType=Mt,t.lanes=i,t;case ee:return t=me(13,l,e,n),t.elementType=ee,t.lanes=i,t;case Lt:return t=me(19,l,e,n),t.elementType=Lt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Bt:o=10;break t;case Jt:o=9;break t;case te:o=11;break t;case k:o=14;break t;case Tt:o=16,a=null;break t}o=29,l=Error(c(130,t===null?"null":typeof t,"")),a=null}return e=me(o,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function ea(t,e,l,a){return t=me(7,t,a,e),t.lanes=l,t}function zc(t,e,l){return t=me(6,t,null,e),t.lanes=l,t}function Xo(t){var e=me(18,null,null,0);return e.stateNode=t,e}function xc(t,e,l){return e=me(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Go=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var l=Go.get(t);return l!==void 0?l:(e={value:t,source:e,stack:jf(e)},Go.set(t,e),e)}return{value:t,source:e,stack:jf(e)}}var Da=[],Ca=0,Ci=null,_n=0,Me=[],Oe=0,Tl=null,Ge=1,Qe="";function ll(t,e){Da[Ca++]=_n,Da[Ca++]=Ci,Ci=t,_n=e}function Qo(t,e,l){Me[Oe++]=Ge,Me[Oe++]=Qe,Me[Oe++]=Tl,Tl=t;var a=Ge;t=Qe;var n=32-he(a)-1;a&=~(1<<n),l+=1;var i=32-he(e)+n;if(30<i){var o=n-n%5;i=(a&(1<<o)-1).toString(32),a>>=o,n-=o,Ge=1<<32-he(e)+n|l<<n|a,Qe=i+t}else Ge=1<<i|l<<n|a,Qe=t}function Dc(t){t.return!==null&&(ll(t,1),Qo(t,1,0))}function Cc(t){for(;t===Ci;)Ci=Da[--Ca],Da[Ca]=null,_n=Da[--Ca],Da[Ca]=null;for(;t===Tl;)Tl=Me[--Oe],Me[Oe]=null,Qe=Me[--Oe],Me[Oe]=null,Ge=Me[--Oe],Me[Oe]=null}function Zo(t,e){Me[Oe++]=Ge,Me[Oe++]=Qe,Me[Oe++]=Tl,Ge=e.id,Qe=e.overflow,Tl=t}var Qt=null,yt=null,tt=!1,_l=null,ze=!1,wc=Error(c(519));function Al(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw An(Ae(e,t)),wc}function Vo(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Gt]=t,e[ae]=a,l){case"dialog":F("cancel",e),F("close",e);break;case"iframe":case"object":case"embed":F("load",e);break;case"video":case"audio":for(l=0;l<Kn.length;l++)F(Kn[l],e);break;case"source":F("error",e);break;case"img":case"image":case"link":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"input":F("invalid",e),ao(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":F("invalid",e);break;case"textarea":F("invalid",e),io(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||sd(e.textContent,l)?(a.popover!=null&&(F("beforetoggle",e),F("toggle",e)),a.onScroll!=null&&F("scroll",e),a.onScrollEnd!=null&&F("scrollend",e),a.onClick!=null&&(e.onclick=Pe),e=!0):e=!1,e||Al(t,!0)}function Ko(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:ze=!1;return;case 27:case 3:ze=!0;return;default:Qt=Qt.return}}function wa(t){if(t!==Qt)return!1;if(!tt)return Ko(t),tt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ws(t.type,t.memoizedProps)),l=!l),l&&yt&&Al(t),Ko(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));yt=pd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));yt=pd(t)}else e===27?(e=yt,Yl(t.type)?(t=tf,tf=null,yt=t):yt=e):yt=Qt?De(t.stateNode.nextSibling):null;return!0}function la(){yt=Qt=null,tt=!1}function Rc(){var t=_l;return t!==null&&(se===null?se=t:se.push.apply(se,t),_l=null),t}function An(t){_l===null?_l=[t]:_l.push(t)}var Uc=p(null),aa=null,al=null;function Ml(t,e,l){U(Uc,e._currentValue),e._currentValue=l}function nl(t){t._currentValue=Uc.current,C(Uc)}function Hc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Nc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;t:for(;i!==null;){var r=i;i=n;for(var m=0;m<e.length;m++)if(r.context===e[m]){i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),Hc(i.return,l,t),a||(o=null);break t}i=r.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Hc(o,l,t),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===t){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ra(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var r=n.type;de(n.pendingProps.value,o.value)||(t!==null?t.push(r):t=[r])}}else if(n===it.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Fn):t=[Fn])}n=n.return}t!==null&&Nc(e,t,l,a),e.flags|=262144}function wi(t){for(t=t.firstContext;t!==null;){if(!de(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function na(t){aa=t,al=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Jo(aa,t)}function Ri(t,e){return aa===null&&na(t),Jo(t,e)}function Jo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},al===null){if(t===null)throw Error(c(308));al=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else al=al.next=e;return l}var ug=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},cg=s.unstable_scheduleCallback,sg=s.unstable_NormalPriority,Ct={$$typeof:Bt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bc(){return{controller:new ug,data:new Map,refCount:0}}function Mn(t){t.refCount--,t.refCount===0&&cg(sg,function(){t.controller.abort()})}var On=null,Lc=0,Ua=0,Ha=null;function fg(t,e){if(On===null){var l=On=[];Lc=0,Ua=js(),Ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Lc++,e.then(ko,ko),e}function ko(){if(--Lc===0&&On!==null){Ha!==null&&(Ha.status="fulfilled");var t=On;On=null,Ua=0,Ha=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function og(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Wo=z.S;z.S=function(t,e){Rh=oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&fg(t,e),Wo!==null&&Wo(t,e)};var ia=p(null);function Yc(){var t=ia.current;return t!==null?t:dt.pooledCache}function Ui(t,e){e===null?U(ia,ia.current):U(ia,e.pool)}function $o(){var t=Yc();return t===null?null:{parent:Ct._currentValue,pool:t}}var Na=Error(c(460)),qc=Error(c(474)),Hi=Error(c(542)),Ni={then:function(){}};function Fo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Io(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Pe,Pe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,tr(t),t;default:if(typeof e.status=="string")e.then(Pe,Pe);else{if(t=dt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,tr(t),t}throw ca=e,Na}}function ua(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ca=l,Na):l}}var ca=null;function Po(){if(ca===null)throw Error(c(459));var t=ca;return ca=null,t}function tr(t){if(t===Na||t===Hi)throw Error(c(483))}var Ba=null,zn=0;function Bi(t){var e=zn;return zn+=1,Ba===null&&(Ba=[]),Io(Ba,t,e)}function xn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Li(t,e){throw e.$$typeof===et?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function er(t){function e(S,g){if(t){var T=S.deletions;T===null?(S.deletions=[g],S.flags|=16):T.push(g)}}function l(S,g){if(!t)return null;for(;g!==null;)e(S,g),g=g.sibling;return null}function a(S){for(var g=new Map;S!==null;)S.key!==null?g.set(S.key,S):g.set(S.index,S),S=S.sibling;return g}function n(S,g){return S=el(S,g),S.index=0,S.sibling=null,S}function i(S,g,T){return S.index=T,t?(T=S.alternate,T!==null?(T=T.index,T<g?(S.flags|=67108866,g):T):(S.flags|=67108866,g)):(S.flags|=1048576,g)}function o(S){return t&&S.alternate===null&&(S.flags|=67108866),S}function r(S,g,T,x){return g===null||g.tag!==6?(g=zc(T,S.mode,x),g.return=S,g):(g=n(g,T),g.return=S,g)}function m(S,g,T,x){var q=T.type;return q===Dt?O(S,g,T.props.children,x,T.key):g!==null&&(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&ua(q)===g.type)?(g=n(g,T.props),xn(g,T),g.return=S,g):(g=Di(T.type,T.key,T.props,null,S.mode,x),xn(g,T),g.return=S,g)}function _(S,g,T,x){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=xc(T,S.mode,x),g.return=S,g):(g=n(g,T.children||[]),g.return=S,g)}function O(S,g,T,x,q){return g===null||g.tag!==7?(g=ea(T,S.mode,x,q),g.return=S,g):(g=n(g,T),g.return=S,g)}function D(S,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=zc(""+g,S.mode,T),g.return=S,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mt:return T=Di(g.type,g.key,g.props,null,S.mode,T),xn(T,g),T.return=S,T;case Et:return g=xc(g,S.mode,T),g.return=S,g;case Tt:return g=ua(g),D(S,g,T)}if(He(g)||le(g))return g=ea(g,S.mode,T,null),g.return=S,g;if(typeof g.then=="function")return D(S,Bi(g),T);if(g.$$typeof===Bt)return D(S,Ri(S,g),T);Li(S,g)}return null}function A(S,g,T,x){var q=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return q!==null?null:r(S,g,""+T,x);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case mt:return T.key===q?m(S,g,T,x):null;case Et:return T.key===q?_(S,g,T,x):null;case Tt:return T=ua(T),A(S,g,T,x)}if(He(T)||le(T))return q!==null?null:O(S,g,T,x,null);if(typeof T.then=="function")return A(S,g,Bi(T),x);if(T.$$typeof===Bt)return A(S,g,Ri(S,T),x);Li(S,T)}return null}function M(S,g,T,x,q){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S=S.get(T)||null,r(g,S,""+x,q);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case mt:return S=S.get(x.key===null?T:x.key)||null,m(g,S,x,q);case Et:return S=S.get(x.key===null?T:x.key)||null,_(g,S,x,q);case Tt:return x=ua(x),M(S,g,T,x,q)}if(He(x)||le(x))return S=S.get(T)||null,O(g,S,x,q,null);if(typeof x.then=="function")return M(S,g,T,Bi(x),q);if(x.$$typeof===Bt)return M(S,g,T,Ri(g,x),q);Li(g,x)}return null}function N(S,g,T,x){for(var q=null,lt=null,Y=g,J=g=0,P=null;Y!==null&&J<T.length;J++){Y.index>J?(P=Y,Y=null):P=Y.sibling;var at=A(S,Y,T[J],x);if(at===null){Y===null&&(Y=P);break}t&&Y&&at.alternate===null&&e(S,Y),g=i(at,g,J),lt===null?q=at:lt.sibling=at,lt=at,Y=P}if(J===T.length)return l(S,Y),tt&&ll(S,J),q;if(Y===null){for(;J<T.length;J++)Y=D(S,T[J],x),Y!==null&&(g=i(Y,g,J),lt===null?q=Y:lt.sibling=Y,lt=Y);return tt&&ll(S,J),q}for(Y=a(Y);J<T.length;J++)P=M(Y,S,J,T[J],x),P!==null&&(t&&P.alternate!==null&&Y.delete(P.key===null?J:P.key),g=i(P,g,J),lt===null?q=P:lt.sibling=P,lt=P);return t&&Y.forEach(function(Ql){return e(S,Ql)}),tt&&ll(S,J),q}function j(S,g,T,x){if(T==null)throw Error(c(151));for(var q=null,lt=null,Y=g,J=g=0,P=null,at=T.next();Y!==null&&!at.done;J++,at=T.next()){Y.index>J?(P=Y,Y=null):P=Y.sibling;var Ql=A(S,Y,at.value,x);if(Ql===null){Y===null&&(Y=P);break}t&&Y&&Ql.alternate===null&&e(S,Y),g=i(Ql,g,J),lt===null?q=Ql:lt.sibling=Ql,lt=Ql,Y=P}if(at.done)return l(S,Y),tt&&ll(S,J),q;if(Y===null){for(;!at.done;J++,at=T.next())at=D(S,at.value,x),at!==null&&(g=i(at,g,J),lt===null?q=at:lt.sibling=at,lt=at);return tt&&ll(S,J),q}for(Y=a(Y);!at.done;J++,at=T.next())at=M(Y,S,J,at.value,x),at!==null&&(t&&at.alternate!==null&&Y.delete(at.key===null?J:at.key),g=i(at,g,J),lt===null?q=at:lt.sibling=at,lt=at);return t&&Y.forEach(function(Ep){return e(S,Ep)}),tt&&ll(S,J),q}function rt(S,g,T,x){if(typeof T=="object"&&T!==null&&T.type===Dt&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case mt:t:{for(var q=T.key;g!==null;){if(g.key===q){if(q=T.type,q===Dt){if(g.tag===7){l(S,g.sibling),x=n(g,T.props.children),x.return=S,S=x;break t}}else if(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&ua(q)===g.type){l(S,g.sibling),x=n(g,T.props),xn(x,T),x.return=S,S=x;break t}l(S,g);break}else e(S,g);g=g.sibling}T.type===Dt?(x=ea(T.props.children,S.mode,x,T.key),x.return=S,S=x):(x=Di(T.type,T.key,T.props,null,S.mode,x),xn(x,T),x.return=S,S=x)}return o(S);case Et:t:{for(q=T.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(S,g.sibling),x=n(g,T.children||[]),x.return=S,S=x;break t}else{l(S,g);break}else e(S,g);g=g.sibling}x=xc(T,S.mode,x),x.return=S,S=x}return o(S);case Tt:return T=ua(T),rt(S,g,T,x)}if(He(T))return N(S,g,T,x);if(le(T)){if(q=le(T),typeof q!="function")throw Error(c(150));return T=q.call(T),j(S,g,T,x)}if(typeof T.then=="function")return rt(S,g,Bi(T),x);if(T.$$typeof===Bt)return rt(S,g,Ri(S,T),x);Li(S,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(S,g.sibling),x=n(g,T),x.return=S,S=x):(l(S,g),x=zc(T,S.mode,x),x.return=S,S=x),o(S)):l(S,g)}return function(S,g,T,x){try{zn=0;var q=rt(S,g,T,x);return Ba=null,q}catch(Y){if(Y===Na||Y===Hi)throw Y;var lt=me(29,Y,null,S.mode);return lt.lanes=x,lt.return=S,lt}finally{}}}var sa=er(!0),lr=er(!1),Ol=!1;function jc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(nt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=xi(t),qo(t,null,l),e}return zi(t,a,e,l),xi(t)}function Dn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Kf(t,l)}}function Gc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Qc=!1;function Cn(){if(Qc){var t=Ha;if(t!==null)throw t}}function wn(t,e,l,a){Qc=!1;var n=t.updateQueue;Ol=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var m=r,_=m.next;m.next=null,o===null?i=_:o.next=_,o=m;var O=t.alternate;O!==null&&(O=O.updateQueue,r=O.lastBaseUpdate,r!==o&&(r===null?O.firstBaseUpdate=_:r.next=_,O.lastBaseUpdate=m))}if(i!==null){var D=n.baseState;o=0,O=_=m=null,r=i;do{var A=r.lane&-536870913,M=A!==r.lane;if(M?(I&A)===A:(a&A)===A){A!==0&&A===Ua&&(Qc=!0),O!==null&&(O=O.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var N=t,j=r;A=e;var rt=l;switch(j.tag){case 1:if(N=j.payload,typeof N=="function"){D=N.call(rt,D,A);break t}D=N;break t;case 3:N.flags=N.flags&-65537|128;case 0:if(N=j.payload,A=typeof N=="function"?N.call(rt,D,A):N,A==null)break t;D=B({},D,A);break t;case 2:Ol=!0}}A=r.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=n.callbacks,M===null?n.callbacks=[A]:M.push(A))}else M={lane:A,tag:r.tag,payload:r.payload,callback:r.callback,next:null},O===null?(_=O=M,m=D):O=O.next=M,o|=A;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;M=r,r=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);O===null&&(m=D),n.baseState=m,n.firstBaseUpdate=_,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Ul|=o,t.lanes=o,t.memoizedState=D}}function ar(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function nr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)ar(l[t],e)}var La=p(null),Yi=p(0);function ir(t,e){t=dl,U(Yi,t),U(La,e),dl=t|e.baseLanes}function Zc(){U(Yi,dl),U(La,La.current)}function Vc(){dl=Yi.current,C(La),C(Yi)}var ye=p(null),xe=null;function Dl(t){var e=t.alternate;U(zt,zt.current&1),U(ye,t),xe===null&&(e===null||La.current!==null||e.memoizedState!==null)&&(xe=t)}function Kc(t){U(zt,zt.current),U(ye,t),xe===null&&(xe=t)}function ur(t){t.tag===22?(U(zt,zt.current),U(ye,t),xe===null&&(xe=t)):Cl()}function Cl(){U(zt,zt.current),U(ye,ye.current)}function ge(t){C(ye),xe===t&&(xe=null),C(zt)}var zt=p(0);function qi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Is(l)||Ps(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var il=0,K=null,ft=null,wt=null,ji=!1,Ya=!1,fa=!1,Xi=0,Rn=0,qa=null,rg=0;function _t(){throw Error(c(321))}function Jc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!de(t[l],e[l]))return!1;return!0}function kc(t,e,l,a,n,i){return il=i,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Qr:fs,fa=!1,i=l(a,n),fa=!1,Ya&&(i=sr(e,l,a,n)),cr(t),i}function cr(t){z.H=Nn;var e=ft!==null&&ft.next!==null;if(il=0,wt=ft=K=null,ji=!1,Rn=0,qa=null,e)throw Error(c(300));t===null||Rt||(t=t.dependencies,t!==null&&wi(t)&&(Rt=!0))}function sr(t,e,l,a){K=t;var n=0;do{if(Ya&&(qa=null),Rn=0,Ya=!1,25<=n)throw Error(c(301));if(n+=1,wt=ft=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}z.H=Zr,i=e(l,a)}while(Ya);return i}function hg(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?Un(e):e,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(K.flags|=1024),e}function Wc(){var t=Xi!==0;return Xi=0,t}function $c(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Fc(t){if(ji){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ji=!1}il=0,wt=ft=K=null,Ya=!1,Rn=Xi=0,qa=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?K.memoizedState=wt=t:wt=wt.next=t,wt}function xt(){if(ft===null){var t=K.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var e=wt===null?K.memoizedState:wt.next;if(e!==null)wt=e,ft=t;else{if(t===null)throw K.alternate===null?Error(c(467)):Error(c(310));ft=t,t={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},wt===null?K.memoizedState=wt=t:wt=wt.next=t}return wt}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Un(t){var e=Rn;return Rn+=1,qa===null&&(qa=[]),t=Io(qa,t,e),e=K,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Qr:fs),t}function Qi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Un(t);if(t.$$typeof===Bt)return Zt(t)}throw Error(c(438,String(t)))}function Ic(t){var e=null,l=K.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=K.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Gi(),K.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=ma;return e.index++,l}function ul(t,e){return typeof e=="function"?e(t):e}function Zi(t){var e=xt();return Pc(e,ft,t)}function Pc(t,e,l){var a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var r=o=null,m=null,_=e,O=!1;do{var D=_.lane&-536870913;if(D!==_.lane?(I&D)===D:(il&D)===D){var A=_.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),D===Ua&&(O=!0);else if((il&A)===A){_=_.next,A===Ua&&(O=!0);continue}else D={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=D,o=i):m=m.next=D,K.lanes|=A,Ul|=A;D=_.action,fa&&l(i,D),i=_.hasEagerState?_.eagerState:l(i,D)}else A={lane:D,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=A,o=i):m=m.next=A,K.lanes|=D,Ul|=D;_=_.next}while(_!==null&&_!==e);if(m===null?o=i:m.next=r,!de(i,t.memoizedState)&&(Rt=!0,O&&(l=Ha,l!==null)))throw l;t.memoizedState=i,t.baseState=o,t.baseQueue=m,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function ts(t){var e=xt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do i=t(i,o.action),o=o.next;while(o!==n);de(i,e.memoizedState)||(Rt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function fr(t,e,l){var a=K,n=xt(),i=tt;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=e();var o=!de((ft||n).memoizedState,l);if(o&&(n.memoizedState=l,Rt=!0),n=n.queue,as(hr.bind(null,a,n,t),[t]),n.getSnapshot!==e||o||wt!==null&&wt.memoizedState.tag&1){if(a.flags|=2048,ja(9,{destroy:void 0},rr.bind(null,a,n,l,e),null),dt===null)throw Error(c(349));i||(il&127)!==0||or(a,e,l)}return l}function or(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=K.updateQueue,e===null?(e=Gi(),K.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function rr(t,e,l,a){e.value=l,e.getSnapshot=a,dr(e)&&mr(t)}function hr(t,e,l){return l(function(){dr(e)&&mr(t)})}function dr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!de(t,l)}catch{return!0}}function mr(t){var e=ta(t,2);e!==null&&fe(e,t,2)}function es(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),fa){Sl(!0);try{l()}finally{Sl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:t},e}function yr(t,e,l,a){return t.baseState=l,Pc(t,ft,typeof a=="function"?a:ul)}function dg(t,e,l,a,n){if(Ji(t))throw Error(c(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};z.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,gr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function gr(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=z.T,o={};z.T=o;try{var r=l(n,a),m=z.S;m!==null&&m(o,r),pr(t,e,r)}catch(_){ls(t,e,_)}finally{i!==null&&o.types!==null&&(i.types=o.types),z.T=i}}else try{i=l(n,a),pr(t,e,i)}catch(_){ls(t,e,_)}}function pr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){vr(t,e,a)},function(a){return ls(t,e,a)}):vr(t,e,l)}function vr(t,e,l){e.status="fulfilled",e.value=l,Sr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,gr(t,l)))}function ls(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Sr(e),e=e.next;while(e!==a)}t.action=null}function Sr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function br(t,e){return e}function Er(t,e){if(tt){var l=dt.formState;if(l!==null){t:{var a=K;if(tt){if(yt){e:{for(var n=yt,i=ze;n.nodeType!==8;){if(!i){n=null;break e}if(n=De(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){yt=De(n.nextSibling),a=n.data==="F!";break t}}Al(a)}a=!1}a&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:e},l.queue=a,l=jr.bind(null,K,a),a.dispatch=l,a=es(!1),i=ss.bind(null,K,!1,a.queue),a=It(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=dg.bind(null,K,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Tr(t){var e=xt();return _r(e,ft,t)}function _r(t,e,l){if(e=Pc(t,e,br)[0],t=Zi(ul)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Un(e)}catch(o){throw o===Na?Hi:o}else a=e;e=xt();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(K.flags|=2048,ja(9,{destroy:void 0},mg.bind(null,n,l),null)),[a,i,t]}function mg(t,e){t.action=e}function Ar(t){var e=xt(),l=ft;if(l!==null)return _r(e,l,t);xt(),e=e.memoizedState,l=xt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function ja(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=K.updateQueue,e===null&&(e=Gi(),K.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Mr(){return xt().memoizedState}function Vi(t,e,l,a){var n=It();K.flags|=t,n.memoizedState=ja(1|e,{destroy:void 0},l,a===void 0?null:a)}function Ki(t,e,l,a){var n=xt();a=a===void 0?null:a;var i=n.memoizedState.inst;ft!==null&&a!==null&&Jc(a,ft.memoizedState.deps)?n.memoizedState=ja(e,i,l,a):(K.flags|=t,n.memoizedState=ja(1|e,i,l,a))}function Or(t,e){Vi(8390656,8,t,e)}function as(t,e){Ki(2048,8,t,e)}function yg(t){K.flags|=4;var e=K.updateQueue;if(e===null)e=Gi(),K.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function zr(t){var e=xt().memoizedState;return yg({ref:e,nextImpl:t}),function(){if((nt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function xr(t,e){return Ki(4,2,t,e)}function Dr(t,e){return Ki(4,4,t,e)}function Cr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wr(t,e,l){l=l!=null?l.concat([t]):null,Ki(4,4,Cr.bind(null,e,t),l)}function ns(){}function Rr(t,e){var l=xt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Jc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Ur(t,e){var l=xt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Jc(e,a[1]))return a[0];if(a=t(),fa){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[a,e],a}function is(t,e,l){return l===void 0||(il&1073741824)!==0&&(I&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Hh(),K.lanes|=t,Ul|=t,l)}function Hr(t,e,l,a){return de(l,e)?l:La.current!==null?(t=is(t,l,a),de(t,e)||(Rt=!0),t):(il&42)===0||(il&1073741824)!==0&&(I&261930)===0?(Rt=!0,t.memoizedState=l):(t=Hh(),K.lanes|=t,Ul|=t,e)}function Nr(t,e,l,a,n){var i=R.p;R.p=i!==0&&8>i?i:8;var o=z.T,r={};z.T=r,ss(t,!1,e,l);try{var m=n(),_=z.S;if(_!==null&&_(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=og(m,a);Hn(t,e,O,Se(t))}else Hn(t,e,a,Se(t))}catch(D){Hn(t,e,{then:function(){},status:"rejected",reason:D},Se())}finally{R.p=i,o!==null&&r.types!==null&&(o.types=r.types),z.T=o}}function gg(){}function us(t,e,l,a){if(t.tag!==5)throw Error(c(476));var n=Br(t).queue;Nr(t,n,e,G,l===null?gg:function(){return Lr(t),l(a)})}function Br(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:G},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lr(t){var e=Br(t);e.next===null&&(e=t.alternate.memoizedState),Hn(t,e.next.queue,{},Se())}function cs(){return Zt(Fn)}function Yr(){return xt().memoizedState}function qr(){return xt().memoizedState}function pg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Se();t=zl(l);var a=xl(e,t,l);a!==null&&(fe(a,e,l),Dn(a,e,l)),e={cache:Bc()},t.payload=e;return}e=e.return}}function vg(t,e,l){var a=Se();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(t)?Xr(e,l):(l=Mc(t,e,l,a),l!==null&&(fe(l,t,a),Gr(l,e,a)))}function jr(t,e,l){var a=Se();Hn(t,e,l,a)}function Hn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ji(t))Xr(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,r=i(o,l);if(n.hasEagerState=!0,n.eagerState=r,de(r,o))return zi(t,e,n,0),dt===null&&Oi(),!1}catch{}finally{}if(l=Mc(t,e,n,a),l!==null)return fe(l,t,a),Gr(l,e,a),!0}return!1}function ss(t,e,l,a){if(a={lane:2,revertLane:js(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ji(t)){if(e)throw Error(c(479))}else e=Mc(t,l,a,2),e!==null&&fe(e,t,2)}function Ji(t){var e=t.alternate;return t===K||e!==null&&e===K}function Xr(t,e){Ya=ji=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Gr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Kf(t,l)}}var Nn={readContext:Zt,use:Qi,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Nn.useEffectEvent=_t;var Qr={readContext:Zt,use:Qi,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:Or,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Vi(4194308,4,Cr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Vi(4194308,4,t,e)},useInsertionEffect:function(t,e){Vi(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var a=t();if(fa){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=It();if(l!==void 0){var n=l(e);if(fa){Sl(!0);try{l(e)}finally{Sl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=vg.bind(null,K,t),[a.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=es(t);var e=t.queue,l=jr.bind(null,K,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:ns,useDeferredValue:function(t,e){var l=It();return is(l,t,e)},useTransition:function(){var t=es(!1);return t=Nr.bind(null,K,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=K,n=It();if(tt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),dt===null)throw Error(c(349));(I&127)!==0||or(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Or(hr.bind(null,a,i,t),[t]),a.flags|=2048,ja(9,{destroy:void 0},rr.bind(null,a,i,l,e),null),l},useId:function(){var t=It(),e=dt.identifierPrefix;if(tt){var l=Qe,a=Ge;l=(a&~(1<<32-he(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Xi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=rg++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:cs,useFormState:Er,useActionState:Er,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=ss.bind(null,K,!0,l),l.dispatch=e,[t,e]},useMemoCache:Ic,useCacheRefresh:function(){return It().memoizedState=pg.bind(null,K)},useEffectEvent:function(t){var e=It(),l={impl:t};return e.memoizedState=l,function(){if((nt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},fs={readContext:Zt,use:Qi,useCallback:Rr,useContext:Zt,useEffect:as,useImperativeHandle:wr,useInsertionEffect:xr,useLayoutEffect:Dr,useMemo:Ur,useReducer:Zi,useRef:Mr,useState:function(){return Zi(ul)},useDebugValue:ns,useDeferredValue:function(t,e){var l=xt();return Hr(l,ft.memoizedState,t,e)},useTransition:function(){var t=Zi(ul)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Un(t),e]},useSyncExternalStore:fr,useId:Yr,useHostTransitionStatus:cs,useFormState:Tr,useActionState:Tr,useOptimistic:function(t,e){var l=xt();return yr(l,ft,t,e)},useMemoCache:Ic,useCacheRefresh:qr};fs.useEffectEvent=zr;var Zr={readContext:Zt,use:Qi,useCallback:Rr,useContext:Zt,useEffect:as,useImperativeHandle:wr,useInsertionEffect:xr,useLayoutEffect:Dr,useMemo:Ur,useReducer:ts,useRef:Mr,useState:function(){return ts(ul)},useDebugValue:ns,useDeferredValue:function(t,e){var l=xt();return ft===null?is(l,t,e):Hr(l,ft.memoizedState,t,e)},useTransition:function(){var t=ts(ul)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Un(t),e]},useSyncExternalStore:fr,useId:Yr,useHostTransitionStatus:cs,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=xt();return ft!==null?yr(l,ft,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ic,useCacheRefresh:qr};Zr.useEffectEvent=zr;function os(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var rs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Se(),n=zl(a);n.payload=e,l!=null&&(n.callback=l),e=xl(t,n,a),e!==null&&(fe(e,t,a),Dn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Se(),n=zl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=xl(t,n,a),e!==null&&(fe(e,t,a),Dn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Se(),a=zl(l);a.tag=2,e!=null&&(a.callback=e),e=xl(t,a,l),e!==null&&(fe(e,t,l),Dn(e,t,l))}};function Vr(t,e,l,a,n,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,o):e.prototype&&e.prototype.isPureReactComponent?!En(l,a)||!En(n,i):!0}function Kr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&rs.enqueueReplaceState(e,e.state,null)}function oa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Jr(t){Mi(t)}function kr(t){console.error(t)}function Wr(t){Mi(t)}function ki(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function $r(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function hs(t,e,l){return l=zl(l),l.tag=3,l.payload={element:null},l.callback=function(){ki(t,e)},l}function Fr(t){return t=zl(t),t.tag=3,t}function Ir(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){$r(e,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){$r(e,l,a),typeof n!="function"&&(Hl===null?Hl=new Set([this]):Hl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Sg(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ra(e,l,n,!0),l=ye.current,l!==null){switch(l.tag){case 31:case 13:return xe===null?uu():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ni?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Ls(t,a,n)),!1;case 22:return l.flags|=65536,a===Ni?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Ls(t,a,n)),!1}throw Error(c(435,l.tag))}return Ls(t,a,n),uu(),!1}if(tt)return e=ye.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==wc&&(t=Error(c(422),{cause:a}),An(Ae(t,l)))):(a!==wc&&(e=Error(c(423),{cause:a}),An(Ae(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ae(a,l),n=hs(t.stateNode,a,n),Gc(t,n),At!==4&&(At=2)),!1;var i=Error(c(520),{cause:a});if(i=Ae(i,l),Qn===null?Qn=[i]:Qn.push(i),At!==4&&(At=2),e===null)return!0;a=Ae(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=hs(l.stateNode,a,t),Gc(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Hl===null||!Hl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Fr(n),Ir(n,t,l,a),Gc(l,n),!1}l=l.return}while(l!==null);return!1}var ds=Error(c(461)),Rt=!1;function Vt(t,e,l,a){e.child=t===null?lr(e,null,l,a):sa(e,t.child,l,a)}function Pr(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var o={};for(var r in a)r!=="ref"&&(o[r]=a[r])}else o=a;return na(e),a=kc(t,e,l,o,i,n),r=Wc(),t!==null&&!Rt?($c(t,e,n),cl(t,e,n)):(tt&&r&&Dc(e),e.flags|=1,Vt(t,e,a,n),e.child)}function th(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!Oc(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,eh(t,e,i,a,n)):(t=Di(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Es(t,n)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:En,l(o,a)&&t.ref===e.ref)return cl(t,e,n)}return e.flags|=1,t=el(i,a),t.ref=e.ref,t.return=e,e.child=t}function eh(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(En(i,a)&&t.ref===e.ref)if(Rt=!1,e.pendingProps=a=i,Es(t,n))(t.flags&131072)!==0&&(Rt=!0);else return e.lanes=t.lanes,cl(t,e,n)}return ms(t,e,l,a,n)}function lh(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return ah(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ui(e,i!==null?i.cachePool:null),i!==null?ir(e,i):Zc(),ur(e);else return a=e.lanes=536870912,ah(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ui(e,i.cachePool),ir(e,i),Cl(),e.memoizedState=null):(t!==null&&Ui(e,null),Zc(),Cl());return Vt(t,e,n,l),e.child}function Bn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ah(t,e,l,a,n){var i=Yc();return i=i===null?null:{parent:Ct._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Ui(e,null),Zc(),ur(e),t!==null&&Ra(t,e,a,!0),e.childLanes=n,null}function Wi(t,e){return e=Fi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function nh(t,e,l){return sa(e,t.child,null,l),t=Wi(e,e.pendingProps),t.flags|=2,ge(e),e.memoizedState=null,t}function bg(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(tt){if(a.mode==="hidden")return t=Wi(e,a),e.lanes=536870912,Bn(null,t);if(Kc(e),(t=yt)?(t=gd(t,ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ge,overflow:Qe}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Qt=e,yt=null)):t=null,t===null)throw Al(e);return e.lanes=536870912,null}return Wi(e,a)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(Kc(e),n)if(e.flags&256)e.flags&=-257,e=nh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Rt||Ra(t,e,l,!1),n=(l&t.childLanes)!==0,Rt||n){if(a=dt,a!==null&&(o=Jf(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,ta(t,o),fe(a,t,o),ds;uu(),e=nh(t,e,l)}else t=i.treeContext,yt=De(o.nextSibling),Qt=e,tt=!0,_l=null,ze=!1,t!==null&&Zo(e,t),e=Wi(e,a),e.flags|=4096;return e}return t=el(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $i(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function ms(t,e,l,a,n){return na(e),l=kc(t,e,l,a,void 0,n),a=Wc(),t!==null&&!Rt?($c(t,e,n),cl(t,e,n)):(tt&&a&&Dc(e),e.flags|=1,Vt(t,e,l,n),e.child)}function ih(t,e,l,a,n,i){return na(e),e.updateQueue=null,l=sr(e,a,l,n),cr(t),a=Wc(),t!==null&&!Rt?($c(t,e,i),cl(t,e,i)):(tt&&a&&Dc(e),e.flags|=1,Vt(t,e,l,i),e.child)}function uh(t,e,l,a,n){if(na(e),e.stateNode===null){var i=xa,o=l.contextType;typeof o=="object"&&o!==null&&(i=Zt(o)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=rs,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},jc(e),o=l.contextType,i.context=typeof o=="object"&&o!==null?Zt(o):xa,i.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(os(e,l,o,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&rs.enqueueReplaceState(i,i.state,null),wn(e,a,i,n),Cn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var r=e.memoizedProps,m=oa(l,r);i.props=m;var _=i.context,O=l.contextType;o=xa,typeof O=="object"&&O!==null&&(o=Zt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||_!==o)&&Kr(e,i,a,o),Ol=!1;var A=e.memoizedState;i.state=A,wn(e,a,i,n),Cn(),_=e.memoizedState,r||A!==_||Ol?(typeof D=="function"&&(os(e,l,D,a),_=e.memoizedState),(m=Ol||Vr(e,l,m,a,A,_,o))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),i.props=a,i.state=_,i.context=o,a=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,Xc(t,e),o=e.memoizedProps,O=oa(l,o),i.props=O,D=e.pendingProps,A=i.context,_=l.contextType,m=xa,typeof _=="object"&&_!==null&&(m=Zt(_)),r=l.getDerivedStateFromProps,(_=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==D||A!==m)&&Kr(e,i,a,m),Ol=!1,A=e.memoizedState,i.state=A,wn(e,a,i,n),Cn();var M=e.memoizedState;o!==D||A!==M||Ol||t!==null&&t.dependencies!==null&&wi(t.dependencies)?(typeof r=="function"&&(os(e,l,r,a),M=e.memoizedState),(O=Ol||Vr(e,l,O,a,A,M,m)||t!==null&&t.dependencies!==null&&wi(t.dependencies))?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,M,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,M,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=M),i.props=a,i.state=M,i.context=m,a=O):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,$i(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=sa(e,t.child,null,n),e.child=sa(e,null,l,n)):Vt(t,e,l,n),e.memoizedState=i.state,t=e.child):t=cl(t,e,n),t}function ch(t,e,l,a){return la(),e.flags|=256,Vt(t,e,l,a),e.child}var ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gs(t){return{baseLanes:t,cachePool:$o()}}function ps(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ve),t}function sh(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),o&&(n=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(tt){if(n?Dl(e):Cl(),(t=yt)?(t=gd(t,ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ge,overflow:Qe}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Qt=e,yt=null)):t=null,t===null)throw Al(e);return Ps(t)?e.lanes=32:e.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(Cl(),n=e.mode,r=Fi({mode:"hidden",children:r},n),a=ea(a,n,l,null),r.return=e,a.return=e,r.sibling=a,e.child=r,a=e.child,a.memoizedState=gs(l),a.childLanes=ps(t,o,l),e.memoizedState=ys,Bn(null,a)):(Dl(e),vs(e,r))}var m=t.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(i)e.flags&256?(Dl(e),e.flags&=-257,e=Ss(t,e,l)):e.memoizedState!==null?(Cl(),e.child=t.child,e.flags|=128,e=null):(Cl(),r=a.fallback,n=e.mode,a=Fi({mode:"visible",children:a.children},n),r=ea(r,n,l,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,sa(e,t.child,null,l),a=e.child,a.memoizedState=gs(l),a.childLanes=ps(t,o,l),e.memoizedState=ys,e=Bn(null,a));else if(Dl(e),Ps(r)){if(o=r.nextSibling&&r.nextSibling.dataset,o)var _=o.dgst;o=_,a=Error(c(419)),a.stack="",a.digest=o,An({value:a,source:null,stack:null}),e=Ss(t,e,l)}else if(Rt||Ra(t,e,l,!1),o=(l&t.childLanes)!==0,Rt||o){if(o=dt,o!==null&&(a=Jf(o,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ta(t,a),fe(o,t,a),ds;Is(r)||uu(),e=Ss(t,e,l)}else Is(r)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,yt=De(r.nextSibling),Qt=e,tt=!0,_l=null,ze=!1,t!==null&&Zo(e,t),e=vs(e,a.children),e.flags|=4096);return e}return n?(Cl(),r=a.fallback,n=e.mode,m=t.child,_=m.sibling,a=el(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,_!==null?r=el(_,r):(r=ea(r,n,l,null),r.flags|=2),r.return=e,a.return=e,a.sibling=r,e.child=a,Bn(null,a),a=e.child,r=t.child.memoizedState,r===null?r=gs(l):(n=r.cachePool,n!==null?(m=Ct._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=$o(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=ps(t,o,l),e.memoizedState=ys,Bn(t.child,a)):(Dl(e),l=t.child,t=l.sibling,l=el(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function vs(t,e){return e=Fi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Fi(t,e){return t=me(22,t,null,e),t.lanes=0,t}function Ss(t,e,l){return sa(e,t.child,null,l),t=vs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fh(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Hc(t.return,e,l)}function bs(t,e,l,a,n,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=i)}function oh(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var o=zt.current,r=(o&2)!==0;if(r?(o=o&1|2,e.flags|=128):o&=1,U(zt,o),Vt(t,e,a,l),a=tt?_n:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fh(t,l,e);else if(t.tag===19)fh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&qi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),bs(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&qi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}bs(e,!0,l,null,i,a);break;case"together":bs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ul|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ra(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=el(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=el(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Es(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&wi(t)))}function Eg(t,e,l){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),Ml(e,Ct,t.memoizedState.cache),la();break;case 27:case 5:sn(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:Ml(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Kc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Dl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?sh(t,e,l):(Dl(e),t=cl(t,e,l),t!==null?t.sibling:null);Dl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ra(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return oh(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(zt,zt.current),a)break;return null;case 22:return e.lanes=0,lh(t,e,l,e.pendingProps);case 24:Ml(e,Ct,t.memoizedState.cache)}return cl(t,e,l)}function rh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Rt=!0;else{if(!Es(t,l)&&(e.flags&128)===0)return Rt=!1,Eg(t,e,l);Rt=(t.flags&131072)!==0}else Rt=!1,tt&&(e.flags&1048576)!==0&&Qo(e,_n,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ua(e.elementType),e.type=t,typeof t=="function")Oc(t)?(a=oa(t,a),e.tag=1,e=uh(null,e,t,a,l)):(e.tag=0,e=ms(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===te){e.tag=11,e=Pr(null,e,t,a,l);break t}else if(n===k){e.tag=14,e=th(null,e,t,a,l);break t}}throw e=Fe(t)||t,Error(c(306,e,""))}}return e;case 0:return ms(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=oa(a,e.pendingProps),uh(t,e,a,n,l);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(c(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,Xc(t,e),wn(e,a,null,l);var o=e.memoizedState;if(a=o.cache,Ml(e,Ct,a),a!==i.cache&&Nc(e,[Ct],l,!0),Cn(),a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=ch(t,e,a,l);break t}else if(a!==n){n=Ae(Error(c(424)),e),An(n),e=ch(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(yt=De(t.firstChild),Qt=e,tt=!0,_l=null,ze=!0,l=lr(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),a===n){e=cl(t,e,l);break t}Vt(t,e,a,l)}e=e.child}return e;case 26:return $i(t,e),t===null?(l=Td(e.type,null,e.pendingProps,null))?e.memoizedState=l:tt||(l=e.type,t=e.pendingProps,a=du(W.current).createElement(l),a[Gt]=e,a[ae]=t,Kt(a,l,t),Yt(a),e.stateNode=a):e.memoizedState=Td(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return sn(e),t===null&&tt&&(a=e.stateNode=Sd(e.type,e.pendingProps,W.current),Qt=e,ze=!0,n=yt,Yl(e.type)?(tf=n,yt=De(a.firstChild)):yt=n),Vt(t,e,e.pendingProps.children,l),$i(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&tt&&((n=a=yt)&&(a=Fg(a,e.type,e.pendingProps,ze),a!==null?(e.stateNode=a,Qt=e,yt=De(a.firstChild),ze=!1,n=!0):n=!1),n||Al(e)),sn(e),n=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,a=i.children,Ws(n,i)?a=null:o!==null&&Ws(n,o)&&(e.flags|=32),e.memoizedState!==null&&(n=kc(t,e,hg,null,null,l),Fn._currentValue=n),$i(t,e),Vt(t,e,a,l),e.child;case 6:return t===null&&tt&&((t=l=yt)&&(l=Ig(l,e.pendingProps,ze),l!==null?(e.stateNode=l,Qt=e,yt=null,t=!0):t=!1),t||Al(e)),null;case 13:return sh(t,e,l);case 4:return Ft(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=sa(e,null,a,l):Vt(t,e,a,l),e.child;case 11:return Pr(t,e,e.type,e.pendingProps,l);case 7:return Vt(t,e,e.pendingProps,l),e.child;case 8:return Vt(t,e,e.pendingProps.children,l),e.child;case 12:return Vt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Ml(e,e.type,a.value),Vt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,na(e),n=Zt(n),a=a(n),e.flags|=1,Vt(t,e,a,l),e.child;case 14:return th(t,e,e.type,e.pendingProps,l);case 15:return eh(t,e,e.type,e.pendingProps,l);case 19:return oh(t,e,l);case 31:return bg(t,e,l);case 22:return lh(t,e,l,e.pendingProps);case 24:return na(e),a=Zt(Ct),t===null?(n=Yc(),n===null&&(n=dt,i=Bc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},jc(e),Ml(e,Ct,n)):((t.lanes&l)!==0&&(Xc(t,e),wn(e,null,null,l),Cn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Ml(e,Ct,a)):(a=i.cache,Ml(e,Ct,a),a!==n.cache&&Nc(e,[Ct],l,!0))),Vt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function sl(t){t.flags|=4}function Ts(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Yh())t.flags|=8192;else throw ca=Ni,qc}else t.flags&=-16777217}function hh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zd(e))if(Yh())t.flags|=8192;else throw ca=Ni,qc}function Ii(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Zf():536870912,t.lanes|=e,Za|=e)}function Ln(t,e){if(!tt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Tg(t,e,l){var a=e.pendingProps;switch(Cc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(e),null;case 1:return gt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),nl(Ct),Ot(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(wa(e)?sl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Rc())),gt(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(sl(e),i!==null?(gt(e),hh(e,i)):(gt(e),Ts(e,n,null,a,l))):i?i!==t.memoizedState?(sl(e),gt(e),hh(e,i)):(gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&sl(e),gt(e),Ts(e,n,t,a,l)),null;case 27:if(fi(e),l=W.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&sl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return gt(e),null}t=L.current,wa(e)?Vo(e):(t=Sd(n,a,l),e.stateNode=t,sl(e))}return gt(e),null;case 5:if(fi(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&sl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return gt(e),null}if(i=L.current,wa(e))Vo(e);else{var o=du(W.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}i[Gt]=e,i[ae]=a;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;t:switch(Kt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&sl(e)}}return gt(e),Ts(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&sl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=W.current,wa(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Qt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Gt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||sd(t.nodeValue,l)),t||Al(e,!0)}else t=du(t).createTextNode(a),t[Gt]=e,e.stateNode=t}return gt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=wa(e),l!==null){if(t===null){if(!a)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Gt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;gt(e),t=!1}else l=Rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ge(e),e):(ge(e),null);if((e.flags&128)!==0)throw Error(c(558))}return gt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=wa(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(c(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Gt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;gt(e),n=!1}else n=Rc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ge(e),e):(ge(e),null)}return ge(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ii(e,e.updateQueue),gt(e),null);case 4:return Ot(),t===null&&Zs(e.stateNode.containerInfo),gt(e),null;case 10:return nl(e.type),gt(e),null;case 19:if(C(zt),a=e.memoizedState,a===null)return gt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)Ln(a,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=qi(t),i!==null){for(e.flags|=128,Ln(a,!1),t=i.updateQueue,e.updateQueue=t,Ii(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)jo(l,t),l=l.sibling;return U(zt,zt.current&1|2),tt&&ll(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&oe()>au&&(e.flags|=128,n=!0,Ln(a,!1),e.lanes=4194304)}else{if(!n)if(t=qi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ii(e,t),Ln(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tt)return gt(e),null}else 2*oe()-a.renderingStartTime>au&&l!==536870912&&(e.flags|=128,n=!0,Ln(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=oe(),t.sibling=null,l=zt.current,U(zt,n?l&1|2:l&1),tt&&ll(e,a.treeForkCount),t):(gt(e),null);case 22:case 23:return ge(e),Vc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(gt(e),e.subtreeFlags&6&&(e.flags|=8192)):gt(e),l=e.updateQueue,l!==null&&Ii(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&C(ia),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),nl(Ct),gt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function _g(t,e){switch(Cc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return nl(Ct),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return fi(e),null;case 31:if(e.memoizedState!==null){if(ge(e),e.alternate===null)throw Error(c(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ge(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return C(zt),null;case 4:return Ot(),null;case 10:return nl(e.type),null;case 22:case 23:return ge(e),Vc(),t!==null&&C(ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nl(Ct),null;case 25:return null;default:return null}}function dh(t,e){switch(Cc(e),e.tag){case 3:nl(Ct),Ot();break;case 26:case 27:case 5:fi(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&ge(e);break;case 13:ge(e);break;case 19:C(zt);break;case 10:nl(e.type);break;case 22:case 23:ge(e),Vc(),t!==null&&C(ia);break;case 24:nl(Ct)}}function Yn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,o=l.inst;a=i(),o.destroy=a}l=l.next}while(l!==n)}}catch(r){ct(e,e.return,r)}}function wl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var o=a.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,n=e;var m=l,_=r;try{_()}catch(O){ct(n,m,O)}}}a=a.next}while(a!==i)}}catch(O){ct(e,e.return,O)}}function mh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{nr(e,l)}catch(a){ct(t,t.return,a)}}}function yh(t,e,l){l.props=oa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){ct(t,e,a)}}function qn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){ct(t,e,n)}}function Ze(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ct(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ct(t,e,n)}else l.current=null}function gh(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ct(t,t.return,n)}}function _s(t,e,l){try{var a=t.stateNode;Vg(a,t.type,l,e),a[ae]=e}catch(n){ct(t,t.return,n)}}function ph(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function As(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ph(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ms(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Pe));else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Ms(t,e,l),t=t.sibling;t!==null;)Ms(t,e,l),t=t.sibling}function Pi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Pi(t,e,l),t=t.sibling;t!==null;)Pi(t,e,l),t=t.sibling}function vh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e,a,l),e[Gt]=t,e[ae]=l}catch(i){ct(t,t.return,i)}}var fl=!1,Ut=!1,Os=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,qt=null;function Ag(t,e){if(t=t.containerInfo,Js=bu,t=wo(t),Sc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var o=0,r=-1,m=-1,_=0,O=0,D=t,A=null;e:for(;;){for(var M;D!==l||n!==0&&D.nodeType!==3||(r=o+n),D!==i||a!==0&&D.nodeType!==3||(m=o+a),D.nodeType===3&&(o+=D.nodeValue.length),(M=D.firstChild)!==null;)A=D,D=M;for(;;){if(D===t)break e;if(A===l&&++_===n&&(r=o),A===i&&++O===a&&(m=o),(M=D.nextSibling)!==null)break;D=A,A=D.parentNode}D=M}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ks={focusedElem:t,selectionRange:l},bu=!1,qt=e;qt!==null;)if(e=qt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,qt=t;else for(;qt!==null;){switch(e=qt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var N=oa(l.type,n);t=a.getSnapshotBeforeUpdate(N,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(j){ct(l,l.return,j)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Fs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Fs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,qt=t;break}qt=e.return}}function bh(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(t,l),a&4&&Yn(5,l);break;case 1:if(rl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){ct(l,l.return,o)}else{var n=oa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){ct(l,l.return,o)}}a&64&&mh(l),a&512&&qn(l,l.return);break;case 3:if(rl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{nr(t,e)}catch(o){ct(l,l.return,o)}}break;case 27:e===null&&a&4&&vh(l);case 26:case 5:rl(t,l),e===null&&a&4&&gh(l),a&512&&qn(l,l.return);break;case 12:rl(t,l);break;case 31:rl(t,l),a&4&&_h(t,l);break;case 13:rl(t,l),a&4&&Ah(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Ug.bind(null,l),Pg(t,l))));break;case 22:if(a=l.memoizedState!==null||fl,!a){e=e!==null&&e.memoizedState!==null||Ut,n=fl;var i=Ut;fl=a,(Ut=e)&&!i?hl(t,l,(l.subtreeFlags&8772)!==0):rl(t,l),fl=n,Ut=i}break;case 30:break;default:rl(t,l)}}function Eh(t){var e=t.alternate;e!==null&&(t.alternate=null,Eh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&lc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var St=null,ie=!1;function ol(t,e,l){for(l=l.child;l!==null;)Th(t,e,l),l=l.sibling}function Th(t,e,l){if(re&&typeof re.onCommitFiberUnmount=="function")try{re.onCommitFiberUnmount(fn,l)}catch{}switch(l.tag){case 26:Ut||Ze(l,e),ol(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Ze(l,e);var a=St,n=ie;Yl(l.type)&&(St=l.stateNode,ie=!1),ol(t,e,l),kn(l.stateNode),St=a,ie=n;break;case 5:Ut||Ze(l,e);case 6:if(a=St,n=ie,St=null,ol(t,e,l),St=a,ie=n,St!==null)if(ie)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(l.stateNode)}catch(i){ct(l,e,i)}else try{St.removeChild(l.stateNode)}catch(i){ct(l,e,i)}break;case 18:St!==null&&(ie?(t=St,md(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ia(t)):md(St,l.stateNode));break;case 4:a=St,n=ie,St=l.stateNode.containerInfo,ie=!0,ol(t,e,l),St=a,ie=n;break;case 0:case 11:case 14:case 15:wl(2,l,e),Ut||wl(4,l,e),ol(t,e,l);break;case 1:Ut||(Ze(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&yh(l,e,a)),ol(t,e,l);break;case 21:ol(t,e,l);break;case 22:Ut=(a=Ut)||l.memoizedState!==null,ol(t,e,l),Ut=a;break;default:ol(t,e,l)}}function _h(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ia(t)}catch(l){ct(e,e.return,l)}}}function Ah(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ia(t)}catch(l){ct(e,e.return,l)}}function Mg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Sh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Sh),e;default:throw Error(c(435,t.tag))}}function tu(t,e){var l=Mg(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Hg.bind(null,t,a);a.then(n,n)}})}function ue(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,o=e,r=o;t:for(;r!==null;){switch(r.tag){case 27:if(Yl(r.type)){St=r.stateNode,ie=!1;break t}break;case 5:St=r.stateNode,ie=!1;break t;case 3:case 4:St=r.stateNode.containerInfo,ie=!0;break t}r=r.return}if(St===null)throw Error(c(160));Th(i,o,n),St=null,ie=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mh(e,t),e=e.sibling}var Be=null;function Mh(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ue(e,t),ce(t),a&4&&(wl(3,t,t.return),Yn(3,t),wl(5,t,t.return));break;case 1:ue(e,t),ce(t),a&512&&(Ut||l===null||Ze(l,l.return)),a&64&&fl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Be;if(ue(e,t),ce(t),a&512&&(Ut||l===null||Ze(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[hn]||i[Gt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Kt(i,a,l),i[Gt]=t,Yt(i),a=i;break t;case"link":var o=Md("link","href",n).get(a+(l.href||""));if(o){for(var r=0;r<o.length;r++)if(i=o[r],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(r,1);break e}}i=n.createElement(a),Kt(i,a,l),n.head.appendChild(i);break;case"meta":if(o=Md("meta","content",n).get(a+(l.content||""))){for(r=0;r<o.length;r++)if(i=o[r],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(r,1);break e}}i=n.createElement(a),Kt(i,a,l),n.head.appendChild(i);break;default:throw Error(c(468,a))}i[Gt]=t,Yt(i),a=i}t.stateNode=a}else Od(n,t.type,t.stateNode);else t.stateNode=Ad(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Od(n,t.type,t.stateNode):Ad(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&_s(t,t.memoizedProps,l.memoizedProps)}break;case 27:ue(e,t),ce(t),a&512&&(Ut||l===null||Ze(l,l.return)),l!==null&&a&4&&_s(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ue(e,t),ce(t),a&512&&(Ut||l===null||Ze(l,l.return)),t.flags&32){n=t.stateNode;try{Ea(n,"")}catch(N){ct(t,t.return,N)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,_s(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Os=!0);break;case 6:if(ue(e,t),ce(t),a&4){if(t.stateNode===null)throw Error(c(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(N){ct(t,t.return,N)}}break;case 3:if(gu=null,n=Be,Be=mu(e.containerInfo),ue(e,t),Be=n,ce(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ia(e.containerInfo)}catch(N){ct(t,t.return,N)}Os&&(Os=!1,Oh(t));break;case 4:a=Be,Be=mu(t.stateNode.containerInfo),ue(e,t),ce(t),Be=a;break;case 12:ue(e,t),ce(t);break;case 31:ue(e,t),ce(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 13:ue(e,t),ce(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(lu=oe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=fl,O=Ut;if(fl=_||n,Ut=O||m,ue(e,t),Ut=O,fl=_,ce(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||fl||Ut||ra(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{r=m.stateNode;var D=m.memoizedProps.style,A=D!=null&&D.hasOwnProperty("display")?D.display:null;r.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(N){ct(m,m.return,N)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(N){ct(m,m.return,N)}}}else if(e.tag===18){if(l===null){m=e;try{var M=m.stateNode;n?yd(M,!0):yd(m.stateNode,!1)}catch(N){ct(m,m.return,N)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,tu(t,l))));break;case 19:ue(e,t),ce(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 30:break;case 21:break;default:ue(e,t),ce(t)}}function ce(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(ph(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,i=As(t);Pi(t,i,n);break;case 5:var o=l.stateNode;l.flags&32&&(Ea(o,""),l.flags&=-33);var r=As(t);Pi(t,r,o);break;case 3:case 4:var m=l.stateNode.containerInfo,_=As(t);Ms(t,_,m);break;default:throw Error(c(161))}}catch(O){ct(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Oh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Oh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function rl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bh(t,e.alternate,e),e=e.sibling}function ra(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wl(4,e,e.return),ra(e);break;case 1:Ze(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&yh(e,e.return,l),ra(e);break;case 27:kn(e.stateNode);case 26:case 5:Ze(e,e.return),ra(e);break;case 22:e.memoizedState===null&&ra(e);break;case 30:ra(e);break;default:ra(e)}t=t.sibling}}function hl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,o=i.flags;switch(i.tag){case 0:case 11:case 15:hl(n,i,l),Yn(4,i);break;case 1:if(hl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){ct(a,a.return,_)}if(a=i,n=a.updateQueue,n!==null){var r=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)ar(m[n],r)}catch(_){ct(a,a.return,_)}}l&&o&64&&mh(i),qn(i,i.return);break;case 27:vh(i);case 26:case 5:hl(n,i,l),l&&a===null&&o&4&&gh(i),qn(i,i.return);break;case 12:hl(n,i,l);break;case 31:hl(n,i,l),l&&o&4&&_h(n,i);break;case 13:hl(n,i,l),l&&o&4&&Ah(n,i);break;case 22:i.memoizedState===null&&hl(n,i,l),qn(i,i.return);break;case 30:break;default:hl(n,i,l)}e=e.sibling}}function zs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Mn(l))}function xs(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Mn(t))}function Le(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zh(t,e,l,a),e=e.sibling}function zh(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Le(t,e,l,a),n&2048&&Yn(9,e);break;case 1:Le(t,e,l,a);break;case 3:Le(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Mn(t)));break;case 12:if(n&2048){Le(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,o=i.id,r=i.onPostCommit;typeof r=="function"&&r(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){ct(e,e.return,m)}}else Le(t,e,l,a);break;case 31:Le(t,e,l,a);break;case 13:Le(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,o=e.alternate,e.memoizedState!==null?i._visibility&2?Le(t,e,l,a):jn(t,e):i._visibility&2?Le(t,e,l,a):(i._visibility|=2,Xa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&zs(o,e);break;case 24:Le(t,e,l,a),n&2048&&xs(e.alternate,e);break;default:Le(t,e,l,a)}}function Xa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,r=l,m=a,_=o.flags;switch(o.tag){case 0:case 11:case 15:Xa(i,o,r,m,n),Yn(8,o);break;case 23:break;case 22:var O=o.stateNode;o.memoizedState!==null?O._visibility&2?Xa(i,o,r,m,n):jn(i,o):(O._visibility|=2,Xa(i,o,r,m,n)),n&&_&2048&&zs(o.alternate,o);break;case 24:Xa(i,o,r,m,n),n&&_&2048&&xs(o.alternate,o);break;default:Xa(i,o,r,m,n)}e=e.sibling}}function jn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:jn(l,a),n&2048&&zs(a.alternate,a);break;case 24:jn(l,a),n&2048&&xs(a.alternate,a);break;default:jn(l,a)}e=e.sibling}}var Xn=8192;function Ga(t,e,l){if(t.subtreeFlags&Xn)for(t=t.child;t!==null;)xh(t,e,l),t=t.sibling}function xh(t,e,l){switch(t.tag){case 26:Ga(t,e,l),t.flags&Xn&&t.memoizedState!==null&&rp(l,Be,t.memoizedState,t.memoizedProps);break;case 5:Ga(t,e,l);break;case 3:case 4:var a=Be;Be=mu(t.stateNode.containerInfo),Ga(t,e,l),Be=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Xn,Xn=16777216,Ga(t,e,l),Xn=a):Ga(t,e,l));break;default:Ga(t,e,l)}}function Dh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Gn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,wh(a,t)}Dh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ch(t),t=t.sibling}function Ch(t){switch(t.tag){case 0:case 11:case 15:Gn(t),t.flags&2048&&wl(9,t,t.return);break;case 3:Gn(t);break;case 12:Gn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,eu(t)):Gn(t);break;default:Gn(t)}}function eu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,wh(a,t)}Dh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wl(8,e,e.return),eu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,eu(e));break;default:eu(e)}t=t.sibling}}function wh(t,e){for(;qt!==null;){var l=qt;switch(l.tag){case 0:case 11:case 15:wl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qt=a;else t:for(l=t;qt!==null;){a=qt;var n=a.sibling,i=a.return;if(Eh(a),a===l){qt=null;break t}if(n!==null){n.return=i,qt=n;break t}qt=i}}}var Og={getCacheForType:function(t){var e=Zt(Ct),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Ct).controller.signal}},zg=typeof WeakMap=="function"?WeakMap:Map,nt=0,dt=null,$=null,I=0,ut=0,pe=null,Rl=!1,Qa=!1,Ds=!1,dl=0,At=0,Ul=0,ha=0,Cs=0,ve=0,Za=0,Qn=null,se=null,ws=!1,lu=0,Rh=0,au=1/0,nu=null,Hl=null,Ht=0,Nl=null,Va=null,ml=0,Rs=0,Us=null,Uh=null,Zn=0,Hs=null;function Se(){return(nt&2)!==0&&I!==0?I&-I:z.T!==null?js():kf()}function Hh(){if(ve===0)if((I&536870912)===0||tt){var t=hi;hi<<=1,(hi&3932160)===0&&(hi=262144),ve=t}else ve=536870912;return t=ye.current,t!==null&&(t.flags|=32),ve}function fe(t,e,l){(t===dt&&(ut===2||ut===9)||t.cancelPendingCommit!==null)&&(Ka(t,0),Bl(t,I,ve,!1)),rn(t,l),((nt&2)===0||t!==dt)&&(t===dt&&((nt&2)===0&&(ha|=l),At===4&&Bl(t,I,ve,!1)),Ve(t))}function Nh(t,e,l){if((nt&6)!==0)throw Error(c(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||on(t,e),n=a?Cg(t,e):Bs(t,e,!0),i=a;do{if(n===0){Qa&&!a&&Bl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!xg(l)){n=Bs(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var r=t;n=Qn;var m=r.current.memoizedState.isDehydrated;if(m&&(Ka(r,o).flags|=256),o=Bs(r,o,!1),o!==2){if(Ds&&!m){r.errorRecoveryDisabledLanes|=i,ha|=i,n=4;break t}i=se,se=n,i!==null&&(se===null?se=i:se.push.apply(se,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){Ka(t,0),Bl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Bl(a,e,ve,!Rl);break t;case 2:se=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(n=lu+300-oe(),10<n)){if(Bl(a,e,ve,!Rl),mi(a,0,!0)!==0)break t;ml=e,a.timeoutHandle=hd(Bh.bind(null,a,l,se,nu,ws,e,ve,ha,Za,Rl,i,"Throttled",-0,0),n);break t}Bh(a,l,se,nu,ws,e,ve,ha,Za,Rl,i,null,-0,0)}}break}while(!0);Ve(t)}function Bh(t,e,l,a,n,i,o,r,m,_,O,D,A,M){if(t.timeoutHandle=-1,D=e.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pe},xh(e,i,D);var N=(i&62914560)===i?lu-oe():(i&4194048)===i?Rh-oe():0;if(N=hp(D,N),N!==null){ml=i,t.cancelPendingCommit=N(Zh.bind(null,t,e,i,l,a,n,o,r,m,O,D,null,A,M)),Bl(t,i,o,!_);return}}Zh(t,e,i,l,a,n,o,r,m)}function xg(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!de(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bl(t,e,l,a){e&=~Cs,e&=~ha,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-he(n),o=1<<i;a[i]=-1,n&=~o}l!==0&&Vf(t,l,e)}function iu(){return(nt&6)===0?(Vn(0),!1):!0}function Ns(){if($!==null){if(ut===0)var t=$.return;else t=$,al=aa=null,Fc(t),Ba=null,zn=0,t=$;for(;t!==null;)dh(t.alternate,t),t=t.return;$=null}}function Ka(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,kg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ml=0,Ns(),dt=t,$=l=el(t.current,null),I=e,ut=0,pe=null,Rl=!1,Qa=on(t,e),Ds=!1,Za=ve=Cs=ha=Ul=At=0,se=Qn=null,ws=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-he(a),i=1<<n;e|=t[n],a&=~i}return dl=e,Oi(),l}function Lh(t,e){K=null,z.H=Nn,e===Na||e===Hi?(e=Po(),ut=3):e===qc?(e=Po(),ut=4):ut=e===ds?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,$===null&&(At=1,ki(t,Ae(e,t.current)))}function Yh(){var t=ye.current;return t===null?!0:(I&4194048)===I?xe===null:(I&62914560)===I||(I&536870912)!==0?t===xe:!1}function qh(){var t=z.H;return z.H=Nn,t===null?Nn:t}function jh(){var t=z.A;return z.A=Og,t}function uu(){At=4,Rl||(I&4194048)!==I&&ye.current!==null||(Qa=!0),(Ul&134217727)===0&&(ha&134217727)===0||dt===null||Bl(dt,I,ve,!1)}function Bs(t,e,l){var a=nt;nt|=2;var n=qh(),i=jh();(dt!==t||I!==e)&&(nu=null,Ka(t,e)),e=!1;var o=At;t:do try{if(ut!==0&&$!==null){var r=$,m=pe;switch(ut){case 8:Ns(),o=6;break t;case 3:case 2:case 9:case 6:ye.current===null&&(e=!0);var _=ut;if(ut=0,pe=null,Ja(t,r,m,_),l&&Qa){o=0;break t}break;default:_=ut,ut=0,pe=null,Ja(t,r,m,_)}}Dg(),o=At;break}catch(O){Lh(t,O)}while(!0);return e&&t.shellSuspendCounter++,al=aa=null,nt=a,z.H=n,z.A=i,$===null&&(dt=null,I=0,Oi()),o}function Dg(){for(;$!==null;)Xh($)}function Cg(t,e){var l=nt;nt|=2;var a=qh(),n=jh();dt!==t||I!==e?(nu=null,au=oe()+500,Ka(t,e)):Qa=on(t,e);t:do try{if(ut!==0&&$!==null){e=$;var i=pe;e:switch(ut){case 1:ut=0,pe=null,Ja(t,e,i,1);break;case 2:case 9:if(Fo(i)){ut=0,pe=null,Gh(e);break}e=function(){ut!==2&&ut!==9||dt!==t||(ut=7),Ve(t)},i.then(e,e);break t;case 3:ut=7;break t;case 4:ut=5;break t;case 7:Fo(i)?(ut=0,pe=null,Gh(e)):(ut=0,pe=null,Ja(t,e,i,7));break;case 5:var o=null;switch($.tag){case 26:o=$.memoizedState;case 5:case 27:var r=$;if(o?zd(o):r.stateNode.complete){ut=0,pe=null;var m=r.sibling;if(m!==null)$=m;else{var _=r.return;_!==null?($=_,cu(_)):$=null}break e}}ut=0,pe=null,Ja(t,e,i,5);break;case 6:ut=0,pe=null,Ja(t,e,i,6);break;case 8:Ns(),At=6;break t;default:throw Error(c(462))}}wg();break}catch(O){Lh(t,O)}while(!0);return al=aa=null,z.H=a,z.A=n,nt=l,$!==null?0:(dt=null,I=0,Oi(),At)}function wg(){for(;$!==null&&!ty();)Xh($)}function Xh(t){var e=rh(t.alternate,t,dl);t.memoizedProps=t.pendingProps,e===null?cu(t):$=e}function Gh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ih(l,e,e.pendingProps,e.type,void 0,I);break;case 11:e=ih(l,e,e.pendingProps,e.type.render,e.ref,I);break;case 5:Fc(e);default:dh(l,e),e=$=jo(e,dl),e=rh(l,e,dl)}t.memoizedProps=t.pendingProps,e===null?cu(t):$=e}function Ja(t,e,l,a){al=aa=null,Fc(e),Ba=null,zn=0;var n=e.return;try{if(Sg(t,n,e,l,I)){At=1,ki(t,Ae(l,t.current)),$=null;return}}catch(i){if(n!==null)throw $=n,i;At=1,ki(t,Ae(l,t.current)),$=null;return}e.flags&32768?(tt||a===1?t=!0:Qa||(I&536870912)!==0?t=!1:(Rl=t=!0,(a===2||a===9||a===3||a===6)&&(a=ye.current,a!==null&&a.tag===13&&(a.flags|=16384))),Qh(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){Qh(e,Rl);return}t=e.return;var l=Tg(e.alternate,e,dl);if(l!==null){$=l;return}if(e=e.sibling,e!==null){$=e;return}$=e=t}while(e!==null);At===0&&(At=5)}function Qh(t,e){do{var l=_g(t.alternate,t);if(l!==null){l.flags&=32767,$=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){$=t;return}$=t=l}while(t!==null);At=6,$=null}function Zh(t,e,l,a,n,i,o,r,m){t.cancelPendingCommit=null;do su();while(Ht!==0);if((nt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(i=e.lanes|e.childLanes,i|=Ac,oy(t,l,i,o,r,m),t===dt&&($=dt=null,I=0),Va=e,Nl=t,ml=l,Rs=i,Us=n,Uh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ng(oi,function(){return Wh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=R.p,R.p=2,o=nt,nt|=4;try{Ag(t,e,l)}finally{nt=o,R.p=n,z.T=a}}Ht=1,Vh(),Kh(),Jh()}}function Vh(){if(Ht===1){Ht=0;var t=Nl,e=Va,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=R.p;R.p=2;var n=nt;nt|=4;try{Mh(e,t);var i=ks,o=wo(t.containerInfo),r=i.focusedElem,m=i.selectionRange;if(o!==r&&r&&r.ownerDocument&&Co(r.ownerDocument.documentElement,r)){if(m!==null&&Sc(r)){var _=m.start,O=m.end;if(O===void 0&&(O=_),"selectionStart"in r)r.selectionStart=_,r.selectionEnd=Math.min(O,r.value.length);else{var D=r.ownerDocument||document,A=D&&D.defaultView||window;if(A.getSelection){var M=A.getSelection(),N=r.textContent.length,j=Math.min(m.start,N),rt=m.end===void 0?j:Math.min(m.end,N);!M.extend&&j>rt&&(o=rt,rt=j,j=o);var S=Do(r,j),g=Do(r,rt);if(S&&g&&(M.rangeCount!==1||M.anchorNode!==S.node||M.anchorOffset!==S.offset||M.focusNode!==g.node||M.focusOffset!==g.offset)){var T=D.createRange();T.setStart(S.node,S.offset),M.removeAllRanges(),j>rt?(M.addRange(T),M.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),M.addRange(T))}}}}for(D=[],M=r;M=M.parentNode;)M.nodeType===1&&D.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<D.length;r++){var x=D[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}bu=!!Js,ks=Js=null}finally{nt=n,R.p=a,z.T=l}}t.current=e,Ht=2}}function Kh(){if(Ht===2){Ht=0;var t=Nl,e=Va,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=R.p;R.p=2;var n=nt;nt|=4;try{bh(t,e.alternate,e)}finally{nt=n,R.p=a,z.T=l}}Ht=3}}function Jh(){if(Ht===4||Ht===3){Ht=0,ey();var t=Nl,e=Va,l=ml,a=Uh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ht=5:(Ht=0,Va=Nl=null,kh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Hl=null),tc(l),e=e.stateNode,re&&typeof re.onCommitFiberRoot=="function")try{re.onCommitFiberRoot(fn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=z.T,n=R.p,R.p=2,z.T=null;try{for(var i=t.onRecoverableError,o=0;o<a.length;o++){var r=a[o];i(r.value,{componentStack:r.stack})}}finally{z.T=e,R.p=n}}(ml&3)!==0&&su(),Ve(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Hs?Zn++:(Zn=0,Hs=t):Zn=0,Vn(0)}}function kh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Mn(e)))}function su(){return Vh(),Kh(),Jh(),Wh()}function Wh(){if(Ht!==5)return!1;var t=Nl,e=Rs;Rs=0;var l=tc(ml),a=z.T,n=R.p;try{R.p=32>l?32:l,z.T=null,l=Us,Us=null;var i=Nl,o=ml;if(Ht=0,Va=Nl=null,ml=0,(nt&6)!==0)throw Error(c(331));var r=nt;if(nt|=4,Ch(i.current),zh(i,i.current,o,l),nt=r,Vn(0,!1),re&&typeof re.onPostCommitFiberRoot=="function")try{re.onPostCommitFiberRoot(fn,i)}catch{}return!0}finally{R.p=n,z.T=a,kh(t,e)}}function $h(t,e,l){e=Ae(l,e),e=hs(t.stateNode,e,2),t=xl(t,e,2),t!==null&&(rn(t,2),Ve(t))}function ct(t,e,l){if(t.tag===3)$h(t,t,l);else for(;e!==null;){if(e.tag===3){$h(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hl===null||!Hl.has(a))){t=Ae(l,t),l=Fr(2),a=xl(e,l,2),a!==null&&(Ir(l,a,e,t),rn(a,2),Ve(a));break}}e=e.return}}function Ls(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new zg;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Ds=!0,n.add(l),t=Rg.bind(null,t,e,l),e.then(t,t))}function Rg(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,dt===t&&(I&l)===l&&(At===4||At===3&&(I&62914560)===I&&300>oe()-lu?(nt&2)===0&&Ka(t,0):Cs|=l,Za===I&&(Za=0)),Ve(t)}function Fh(t,e){e===0&&(e=Zf()),t=ta(t,e),t!==null&&(rn(t,e),Ve(t))}function Ug(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Fh(t,l)}function Hg(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),Fh(t,l)}function Ng(t,e){return $u(t,e)}var fu=null,ka=null,Ys=!1,ou=!1,qs=!1,Ll=0;function Ve(t){t!==ka&&t.next===null&&(ka===null?fu=ka=t:ka=ka.next=t),ou=!0,Ys||(Ys=!0,Lg())}function Vn(t,e){if(!qs&&ou){qs=!0;do for(var l=!1,a=fu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var o=a.suspendedLanes,r=a.pingedLanes;i=(1<<31-he(42|t)+1)-1,i&=n&~(o&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,ed(a,i))}else i=I,i=mi(a,a===dt?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||on(a,i)||(l=!0,ed(a,i));a=a.next}while(l);qs=!1}}function Bg(){Ih()}function Ih(){ou=Ys=!1;var t=0;Ll!==0&&Jg()&&(t=Ll);for(var e=oe(),l=null,a=fu;a!==null;){var n=a.next,i=Ph(a,e);i===0?(a.next=null,l===null?fu=n:l.next=n,n===null&&(ka=l)):(l=a,(t!==0||(i&3)!==0)&&(ou=!0)),a=n}Ht!==0&&Ht!==5||Vn(t),Ll!==0&&(Ll=0)}function Ph(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-he(i),r=1<<o,m=n[o];m===-1?((r&l)===0||(r&a)!==0)&&(n[o]=fy(r,e)):m<=e&&(t.expiredLanes|=r),i&=~r}if(e=dt,l=I,l=mi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(ut===2||ut===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Fu(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||on(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Fu(a),tc(l)){case 2:case 8:l=Gf;break;case 32:l=oi;break;case 268435456:l=Qf;break;default:l=oi}return a=td.bind(null,t),l=$u(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Fu(a),t.callbackPriority=2,t.callbackNode=null,2}function td(t,e){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(su()&&t.callbackNode!==l)return null;var a=I;return a=mi(t,t===dt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Nh(t,a,e),Ph(t,oe()),t.callbackNode!=null&&t.callbackNode===l?td.bind(null,t):null)}function ed(t,e){if(su())return null;Nh(t,e,!0)}function Lg(){Wg(function(){(nt&6)!==0?$u(Xf,Bg):Ih()})}function js(){if(Ll===0){var t=Ua;t===0&&(t=ri,ri<<=1,(ri&261888)===0&&(ri=256)),Ll=t}return Ll}function ld(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vi(""+t)}function ad(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Yg(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=ld((n[ae]||null).action),o=a.submitter;o&&(e=(e=o[ae]||null)?ld(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var r=new Ti("action","action",null,a,n);t.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ll!==0){var m=o?ad(n,o):new FormData(n);us(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(r.preventDefault(),m=o?ad(n,o):new FormData(n),us(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var Xs=0;Xs<_c.length;Xs++){var Gs=_c[Xs],qg=Gs.toLowerCase(),jg=Gs[0].toUpperCase()+Gs.slice(1);Ne(qg,"on"+jg)}Ne(Ho,"onAnimationEnd"),Ne(No,"onAnimationIteration"),Ne(Bo,"onAnimationStart"),Ne("dblclick","onDoubleClick"),Ne("focusin","onFocus"),Ne("focusout","onBlur"),Ne(lg,"onTransitionRun"),Ne(ag,"onTransitionStart"),Ne(ng,"onTransitionCancel"),Ne(Lo,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$l("onBeforeInput",["compositionend","keypress","textInput","paste"]),$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kn="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(" "),Xg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kn));function nd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var o=a.length-1;0<=o;o--){var r=a[o],m=r.instance,_=r.currentTarget;if(r=r.listener,m!==i&&n.isPropagationStopped())break t;i=r,n.currentTarget=_;try{i(n)}catch(O){Mi(O)}n.currentTarget=null,i=m}else for(o=0;o<a.length;o++){if(r=a[o],m=r.instance,_=r.currentTarget,r=r.listener,m!==i&&n.isPropagationStopped())break t;i=r,n.currentTarget=_;try{i(n)}catch(O){Mi(O)}n.currentTarget=null,i=m}}}}function F(t,e){var l=e[ec];l===void 0&&(l=e[ec]=new Set);var a=t+"__bubble";l.has(a)||(id(e,t,2,!1),l.add(a))}function Qs(t,e,l){var a=0;e&&(a|=4),id(l,t,a,e)}var ru="_reactListening"+Math.random().toString(36).slice(2);function Zs(t){if(!t[ru]){t[ru]=!0,Ff.forEach(function(l){l!=="selectionchange"&&(Xg.has(l)||Qs(l,!1,t),Qs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ru]||(e[ru]=!0,Qs("selectionchange",!1,e))}}function id(t,e,l,a){switch(Hd(e)){case 2:var n=yp;break;case 8:n=gp;break;default:n=uf}l=n.bind(null,e,l,t),n=void 0,!oc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Vs(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var r=a.stateNode.containerInfo;if(r===n)break;if(o===4)for(o=a.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;r!==null;){if(o=ga(r),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){a=i=o;continue t}r=r.parentNode}}a=a.return}fo(function(){var _=i,O=sc(l),D=[];t:{var A=Yo.get(t);if(A!==void 0){var M=Ti,N=t;switch(t){case"keypress":if(bi(l)===0)break t;case"keydown":case"keyup":M=Hy;break;case"focusin":N="focus",M=mc;break;case"focusout":N="blur",M=mc;break;case"beforeblur":case"afterblur":M=mc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=ho;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Ly;break;case Ho:case No:case Bo:M=My;break;case Lo:M=qy;break;case"scroll":case"scrollend":M=by;break;case"wheel":M=Xy;break;case"copy":case"cut":case"paste":M=zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=yo;break;case"toggle":case"beforetoggle":M=Qy}var j=(e&4)!==0,rt=!j&&(t==="scroll"||t==="scrollend"),S=j?A!==null?A+"Capture":null:A;j=[];for(var g=_,T;g!==null;){var x=g;if(T=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||T===null||S===null||(x=mn(g,S),x!=null&&j.push(Jn(g,x,T))),rt)break;g=g.return}0<j.length&&(A=new M(A,N,null,l,O),D.push({event:A,listeners:j}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&l!==cc&&(N=l.relatedTarget||l.fromElement)&&(ga(N)||N[ya]))break t;if((M||A)&&(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,M?(N=l.relatedTarget||l.toElement,M=_,N=N?ga(N):null,N!==null&&(rt=d(N),j=N.tag,N!==rt||j!==5&&j!==27&&j!==6)&&(N=null)):(M=null,N=_),M!==N)){if(j=ho,x="onMouseLeave",S="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(j=yo,x="onPointerLeave",S="onPointerEnter",g="pointer"),rt=M==null?A:dn(M),T=N==null?A:dn(N),A=new j(x,g+"leave",M,l,O),A.target=rt,A.relatedTarget=T,x=null,ga(O)===_&&(j=new j(S,g+"enter",N,l,O),j.target=T,j.relatedTarget=rt,x=j),rt=x,M&&N)e:{for(j=Gg,S=M,g=N,T=0,x=S;x;x=j(x))T++;x=0;for(var q=g;q;q=j(q))x++;for(;0<T-x;)S=j(S),T--;for(;0<x-T;)g=j(g),x--;for(;T--;){if(S===g||g!==null&&S===g.alternate){j=S;break e}S=j(S),g=j(g)}j=null}else j=null;M!==null&&ud(D,A,M,j,!1),N!==null&&rt!==null&&ud(D,rt,N,j,!0)}}t:{if(A=_?dn(_):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var lt=_o;else if(Eo(A))if(Ao)lt=Py;else{lt=Fy;var Y=$y}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&uc(_.elementType)&&(lt=_o):lt=Iy;if(lt&&(lt=lt(t,_))){To(D,lt,l,O);break t}Y&&Y(t,A,_),t==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&ic(A,"number",A.value)}switch(Y=_?dn(_):window,t){case"focusin":(Eo(Y)||Y.contentEditable==="true")&&(Ma=Y,bc=_,Tn=null);break;case"focusout":Tn=bc=Ma=null;break;case"mousedown":Ec=!0;break;case"contextmenu":case"mouseup":case"dragend":Ec=!1,Ro(D,l,O);break;case"selectionchange":if(eg)break;case"keydown":case"keyup":Ro(D,l,O)}var J;if(gc)t:{switch(t){case"compositionstart":var P="onCompositionStart";break t;case"compositionend":P="onCompositionEnd";break t;case"compositionupdate":P="onCompositionUpdate";break t}P=void 0}else Aa?So(t,l)&&(P="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(P="onCompositionStart");P&&(go&&l.locale!=="ko"&&(Aa||P!=="onCompositionStart"?P==="onCompositionEnd"&&Aa&&(J=oo()):(El=O,rc="value"in El?El.value:El.textContent,Aa=!0)),Y=hu(_,P),0<Y.length&&(P=new mo(P,t,null,l,O),D.push({event:P,listeners:Y}),J?P.data=J:(J=bo(l),J!==null&&(P.data=J)))),(J=Vy?Ky(t,l):Jy(t,l))&&(P=hu(_,"onBeforeInput"),0<P.length&&(Y=new mo("onBeforeInput","beforeinput",null,l,O),D.push({event:Y,listeners:P}),Y.data=J)),Yg(D,t,_,l,O)}nd(D,e)})}function Jn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function hu(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=mn(t,l),n!=null&&a.unshift(Jn(t,n,i)),n=mn(t,e),n!=null&&a.push(Jn(t,n,i))),t.tag===3)return a;t=t.return}return[]}function Gg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ud(t,e,l,a,n){for(var i=e._reactName,o=[];l!==null&&l!==a;){var r=l,m=r.alternate,_=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||_===null||(m=_,n?(_=mn(l,i),_!=null&&o.unshift(Jn(l,_,m))):n||(_=mn(l,i),_!=null&&o.push(Jn(l,_,m)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var Qg=/\r\n?/g,Zg=/\u0000|\uFFFD/g;function cd(t){return(typeof t=="string"?t:""+t).replace(Qg,`
|
|
49
|
-
`).replace(Zg,"")}function sd(t,e){return e=cd(e),cd(t)===e}function ot(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ea(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ea(t,""+a);break;case"className":gi(t,"class",a);break;case"tabIndex":gi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":gi(t,l,a);break;case"style":co(t,a,i);break;case"data":if(e!=="object"){gi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=vi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&ot(t,e,"name",n.name,n,null),ot(t,e,"formEncType",n.formEncType,n,null),ot(t,e,"formMethod",n.formMethod,n,null),ot(t,e,"formTarget",n.formTarget,n,null)):(ot(t,e,"encType",n.encType,n,null),ot(t,e,"method",n.method,n,null),ot(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=vi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Pe);break;case"onScroll":a!=null&&F("scroll",t);break;case"onScrollEnd":a!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=vi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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"?t.setAttribute(l,""+a):t.removeAttribute(l);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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":F("beforetoggle",t),F("toggle",t),yi(t,"popover",a);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=vy.get(l)||l,yi(t,l,a))}}function Ks(t,e,l,a,n,i){switch(l){case"style":co(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ea(t,a):(typeof a=="number"||typeof a=="bigint")&&Ea(t,""+a);break;case"onScroll":a!=null&&F("scroll",t);break;case"onScrollEnd":a!=null&&F("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!If.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[ae]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):yi(t,l,a)}}}function Kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:ot(t,e,i,o,l,null)}}n&&ot(t,e,"srcSet",l.srcSet,l,null),a&&ot(t,e,"src",l.src,l,null);return;case"input":F("invalid",t);var r=i=o=n=null,m=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":o=O;break;case"checked":m=O;break;case"defaultChecked":_=O;break;case"value":i=O;break;case"defaultValue":r=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,e));break;default:ot(t,e,a,O,l,null)}}ao(t,i,r,m,_,o,n,!1);return;case"select":F("invalid",t),a=o=i=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":i=r;break;case"defaultValue":o=r;break;case"multiple":a=r;default:ot(t,e,n,r,l,null)}e=i,l=o,t.multiple=!!a,e!=null?ba(t,!!a,e,!1):l!=null&&ba(t,!!a,l,!0);return;case"textarea":F("invalid",t),i=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(r=l[o],r!=null))switch(o){case"value":a=r;break;case"defaultValue":n=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:ot(t,e,o,r,l,null)}io(t,a,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ot(t,e,m,a,l,null)}return;case"dialog":F("beforetoggle",t),F("toggle",t),F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(a=0;a<Kn.length;a++)F(Kn[a],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:ot(t,e,_,a,l,null)}return;default:if(uc(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&Ks(t,e,O,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ot(t,e,r,a,l,null))}function Vg(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,r=null,m=null,_=null,O=null;for(M in l){var D=l[M];if(l.hasOwnProperty(M)&&D!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":m=D;default:a.hasOwnProperty(M)||ot(t,e,M,null,a,D)}}for(var A in a){var M=a[A];if(D=l[A],a.hasOwnProperty(A)&&(M!=null||D!=null))switch(A){case"type":i=M;break;case"name":n=M;break;case"checked":_=M;break;case"defaultChecked":O=M;break;case"value":o=M;break;case"defaultValue":r=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:M!==D&&ot(t,e,A,M,a,D)}}nc(t,o,r,m,_,O,i,n);return;case"select":M=o=r=A=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":M=m;default:a.hasOwnProperty(i)||ot(t,e,i,null,a,m)}for(n in a)if(i=a[n],m=l[n],a.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":A=i;break;case"defaultValue":r=i;break;case"multiple":o=i;default:i!==m&&ot(t,e,n,i,a,m)}e=r,l=o,a=M,A!=null?ba(t,!!l,A,!1):!!a!=!!l&&(e!=null?ba(t,!!l,e,!0):ba(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ot(t,e,r,null,a,n)}for(o in a)if(n=a[o],i=l[o],a.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":A=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==i&&ot(t,e,o,n,a,i)}no(t,A,M);return;case"option":for(var N in l)if(A=l[N],l.hasOwnProperty(N)&&A!=null&&!a.hasOwnProperty(N))switch(N){case"selected":t.selected=!1;break;default:ot(t,e,N,null,a,A)}for(m in a)if(A=a[m],M=l[m],a.hasOwnProperty(m)&&A!==M&&(A!=null||M!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ot(t,e,m,A,a,M)}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 j in l)A=l[j],l.hasOwnProperty(j)&&A!=null&&!a.hasOwnProperty(j)&&ot(t,e,j,null,a,A);for(_ in a)if(A=a[_],M=l[_],a.hasOwnProperty(_)&&A!==M&&(A!=null||M!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:ot(t,e,_,A,a,M)}return;default:if(uc(e)){for(var rt in l)A=l[rt],l.hasOwnProperty(rt)&&A!==void 0&&!a.hasOwnProperty(rt)&&Ks(t,e,rt,void 0,a,A);for(O in a)A=a[O],M=l[O],!a.hasOwnProperty(O)||A===M||A===void 0&&M===void 0||Ks(t,e,O,A,a,M);return}}for(var S in l)A=l[S],l.hasOwnProperty(S)&&A!=null&&!a.hasOwnProperty(S)&&ot(t,e,S,null,a,A);for(D in a)A=a[D],M=l[D],!a.hasOwnProperty(D)||A===M||A==null&&M==null||ot(t,e,D,A,a,M)}function fd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,o=n.initiatorType,r=n.duration;if(i&&r&&fd(o)){for(o=0,r=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],_=m.startTime;if(_>r)break;var O=m.transferSize,D=m.initiatorType;O&&fd(D)&&(m=m.responseEnd,o+=O*(m<r?1:(r-_)/(m-_)))}if(--a,e+=8*(i+o)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Js=null,ks=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function od(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ws(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var $s=null;function Jg(){var t=window.event;return t&&t.type==="popstate"?t===$s?!1:($s=t,!0):($s=null,!1)}var hd=typeof setTimeout=="function"?setTimeout:void 0,kg=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,Wg=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(t){return dd.resolve(null).then(t).catch($g)}:hd;function $g(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function md(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Ia(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")kn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,kn(l);for(var i=l.firstChild;i;){var o=i.nextSibling,r=i.nodeName;i[hn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&kn(t.ownerDocument.body);l=n}while(l);Ia(e)}function yd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Fs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Fs(l),lc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Fg(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[hn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=De(t.nextSibling),t===null)break}return null}function Ig(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=De(t.nextSibling),t===null))return null;return t}function gd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=De(t.nextSibling),t===null))return null;return t}function Is(t){return t.data==="$?"||t.data==="$~"}function Ps(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Pg(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function De(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var tf=null;function pd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return De(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function vd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Sd(t,e,l){switch(e=du(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function kn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);lc(t)}var Ce=new Map,bd=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=R.d;R.d={f:tp,r:ep,D:lp,C:ap,L:np,m:ip,X:cp,S:up,M:sp};function tp(){var t=yl.f(),e=iu();return t||e}function ep(t){var e=pa(t);e!==null&&e.tag===5&&e.type==="form"?Lr(e):yl.r(t)}var Wa=typeof document>"u"?null:document;function Ed(t,e,l){var a=Wa;if(a&&typeof e=="string"&&e){var n=Te(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),bd.has(n)||(bd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Kt(e,"link",t),Yt(e),a.head.appendChild(e)))}}function lp(t){yl.D(t),Ed("dns-prefetch",t,null)}function ap(t,e){yl.C(t,e),Ed("preconnect",t,e)}function np(t,e,l){yl.L(t,e,l);var a=Wa;if(a&&t&&e){var n='link[rel="preload"][as="'+Te(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Te(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Te(l.imageSizes)+'"]')):n+='[href="'+Te(t)+'"]';var i=n;switch(e){case"style":i=$a(t);break;case"script":i=Fa(t)}Ce.has(i)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ce.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Wn(i))||e==="script"&&a.querySelector($n(i))||(e=a.createElement("link"),Kt(e,"link",t),Yt(e),a.head.appendChild(e)))}}function ip(t,e){yl.m(t,e);var l=Wa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Te(a)+'"][href="'+Te(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Fa(t)}if(!Ce.has(i)&&(t=B({rel:"modulepreload",href:t},e),Ce.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector($n(i)))return}a=l.createElement("link"),Kt(a,"link",t),Yt(a),l.head.appendChild(a)}}}function up(t,e,l){yl.S(t,e,l);var a=Wa;if(a&&t){var n=va(a).hoistableStyles,i=$a(t);e=e||"default";var o=n.get(i);if(!o){var r={loading:0,preload:null};if(o=a.querySelector(Wn(i)))r.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ce.get(i))&&ef(t,l);var m=o=a.createElement("link");Yt(m),Kt(m,"link",t),m._p=new Promise(function(_,O){m.onload=_,m.onerror=O}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,yu(o,e,a)}o={type:"stylesheet",instance:o,count:1,state:r},n.set(i,o)}}}function cp(t,e){yl.X(t,e);var l=Wa;if(l&&t){var a=va(l).hoistableScripts,n=Fa(t),i=a.get(n);i||(i=l.querySelector($n(n)),i||(t=B({src:t,async:!0},e),(e=Ce.get(n))&&lf(t,e),i=l.createElement("script"),Yt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sp(t,e){yl.M(t,e);var l=Wa;if(l&&t){var a=va(l).hoistableScripts,n=Fa(t),i=a.get(n);i||(i=l.querySelector($n(n)),i||(t=B({src:t,async:!0,type:"module"},e),(e=Ce.get(n))&&lf(t,e),i=l.createElement("script"),Yt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Td(t,e,l,a){var n=(n=W.current)?mu(n):null;if(!n)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=$a(l.href),l=va(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=$a(l.href);var i=va(n).hoistableStyles,o=i.get(t);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=n.querySelector(Wn(t)))&&!i._p&&(o.instance=i,o.state.loading=5),Ce.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ce.set(t,l),i||fp(n,t,l,o.state))),e&&a===null)throw Error(c(528,""));return o}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fa(l),l=va(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function $a(t){return'href="'+Te(t)+'"'}function Wn(t){return'link[rel="stylesheet"]['+t+"]"}function _d(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function fp(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Kt(e,"link",l),Yt(e),t.head.appendChild(e))}function Fa(t){return'[src="'+Te(t)+'"]'}function $n(t){return"script[async]"+t}function Ad(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Te(l.href)+'"]');if(a)return e.instance=a,Yt(a),a;var n=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Yt(a),Kt(a,"style",n),yu(a,l.precedence,t),e.instance=a;case"stylesheet":n=$a(l.href);var i=t.querySelector(Wn(n));if(i)return e.state.loading|=4,e.instance=i,Yt(i),i;a=_d(l),(n=Ce.get(n))&&ef(a,n),i=(t.ownerDocument||t).createElement("link"),Yt(i);var o=i;return o._p=new Promise(function(r,m){o.onload=r,o.onerror=m}),Kt(i,"link",a),e.state.loading|=4,yu(i,l.precedence,t),e.instance=i;case"script":return i=Fa(l.src),(n=t.querySelector($n(i)))?(e.instance=n,Yt(n),n):(a=l,(n=Ce.get(i))&&(a=B({},l),lf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Yt(n),Kt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,yu(a,l.precedence,t));return e.instance}function yu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,o=0;o<a.length;o++){var r=a[o];if(r.dataset.precedence===e)i=r;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function ef(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function lf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var gu=null;function Md(t,e,l){if(gu===null){var a=new Map,n=gu=new Map;n.set(l,a)}else n=gu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[hn]||i[Gt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var r=a.get(o);r?r.push(i):a.set(o,[i])}}return a}function Od(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function op(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function zd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function rp(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=$a(a.href),i=e.querySelector(Wn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=pu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Yt(i);return}i=e.ownerDocument||e,a=_d(a),(n=Ce.get(n))&&ef(a,n),i=i.createElement("link"),Yt(i);var o=i;o._p=new Promise(function(r,m){o.onload=r,o.onerror=m}),Kt(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=pu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var af=0;function hp(t,e){return t.stylesheets&&t.count===0&&Su(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&af===0&&(af=62500*Kg());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>af?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function Su(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,e.forEach(dp,t),vu=null,pu.call(t))}function dp(t,e){if(!(e.state.loading&4)){var l=vu.get(t);if(l)var a=l.get(null);else{l=new Map,vu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=e.instance,o=n.getAttribute("data-precedence"),i=l.get(o)||a,i===a&&l.set(null,n),l.set(o,n),this.count++,a=pu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Fn={$$typeof:Bt,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function mp(t,e,l,a,n,i,o,r,m){this.tag=1,this.containerInfo=t,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=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function xd(t,e,l,a,n,i,o,r,m,_,O,D){return t=new mp(t,e,l,o,m,_,O,D,r),e=1,i===!0&&(e|=24),i=me(3,null,null,e),t.current=i,i.stateNode=t,e=Bc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},jc(i),t}function Dd(t){return t?(t=xa,t):xa}function Cd(t,e,l,a,n,i){n=Dd(n),a.context===null?a.context=n:a.pendingContext=n,a=zl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=xl(t,a,e),l!==null&&(fe(l,t,e),Dn(l,t,e))}function wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function nf(t,e){wd(t,e),(t=t.alternate)&&wd(t,e)}function Rd(t){if(t.tag===13||t.tag===31){var e=ta(t,67108864);e!==null&&fe(e,t,67108864),nf(t,67108864)}}function Ud(t){if(t.tag===13||t.tag===31){var e=Se();e=Pu(e);var l=ta(t,e);l!==null&&fe(l,t,e),nf(t,e)}}var bu=!0;function yp(t,e,l,a){var n=z.T;z.T=null;var i=R.p;try{R.p=2,uf(t,e,l,a)}finally{R.p=i,z.T=n}}function gp(t,e,l,a){var n=z.T;z.T=null;var i=R.p;try{R.p=8,uf(t,e,l,a)}finally{R.p=i,z.T=n}}function uf(t,e,l,a){if(bu){var n=cf(a);if(n===null)Vs(t,e,a,Eu,l),Nd(t,a);else if(vp(n,t,e,l,a))a.stopPropagation();else if(Nd(t,a),e&4&&-1<pp.indexOf(t)){for(;n!==null;){var i=pa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Wl(i.pendingLanes);if(o!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var m=1<<31-he(o);r.entanglements[1]|=m,o&=~m}Ve(i),(nt&6)===0&&(au=oe()+500,Vn(0))}}break;case 31:case 13:r=ta(i,2),r!==null&&fe(r,i,2),iu(),nf(i,2)}if(i=cf(a),i===null&&Vs(t,e,a,Eu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Vs(t,e,a,null,l)}}function cf(t){return t=sc(t),sf(t)}var Eu=null;function sf(t){if(Eu=null,t=ga(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=v(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Eu=t,null}function Hd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ly()){case Xf:return 2;case Gf:return 8;case oi:case ay:return 32;case Qf:return 268435456;default:return 32}default:return 32}}var ff=!1,ql=null,jl=null,Xl=null,In=new Map,Pn=new Map,Gl=[],pp="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 Nd(t,e){switch(t){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Xl=null;break;case"pointerover":case"pointerout":In.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pn.delete(e.pointerId)}}function ti(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=pa(e),e!==null&&Rd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function vp(t,e,l,a,n){switch(e){case"focusin":return ql=ti(ql,t,e,l,a,n),!0;case"dragenter":return jl=ti(jl,t,e,l,a,n),!0;case"mouseover":return Xl=ti(Xl,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return In.set(i,ti(In.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Pn.set(i,ti(Pn.get(i)||null,t,e,l,a,n)),!0}return!1}function Bd(t){var e=ga(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ud(l)});return}}else if(e===31){if(e=v(l),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ud(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=cf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);cc=a,l.target.dispatchEvent(a),cc=null}else return e=pa(l),e!==null&&Rd(e),t.blockedOn=l,!1;e.shift()}return!0}function Ld(t,e,l){Tu(t)&&l.delete(e)}function Sp(){ff=!1,ql!==null&&Tu(ql)&&(ql=null),jl!==null&&Tu(jl)&&(jl=null),Xl!==null&&Tu(Xl)&&(Xl=null),In.forEach(Ld),Pn.forEach(Ld)}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,ff||(ff=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Sp)))}var Au=null;function Yd(t){Au!==t&&(Au=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Au===t&&(Au=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(sf(a||l)===null)continue;break}var i=pa(l);i!==null&&(t.splice(e,3),e-=3,us(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ia(t){function e(m){return _u(m,t)}ql!==null&&_u(ql,t),jl!==null&&_u(jl,t),Xl!==null&&_u(Xl,t),In.forEach(e),Pn.forEach(e);for(var l=0;l<Gl.length;l++){var a=Gl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Bd(l),l.blockedOn===null&&Gl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],o=n[ae]||null;if(typeof i=="function")o||Yd(l);else if(o){var r=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[ae]||null)r=o.formAction;else if(sf(n)!==null)continue}else r=o.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),Yd(l)}}}function qd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function of(t){this._internalRoot=t}Mu.prototype.render=of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,a=Se();Cd(l,a,t,e,null,null)},Mu.prototype.unmount=of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Cd(t.current,2,null,t,null,null),iu(),e[ya]=null}};function Mu(t){this._internalRoot=t}Mu.prototype.unstable_scheduleHydration=function(t){if(t){var e=kf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Gl.length&&e!==0&&e<Gl[l].priority;l++);Gl.splice(l,0,t),l===0&&Bd(t)}};var jd=u.version;if(jd!=="19.2.3")throw Error(c(527,jd,"19.2.3"));R.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=b(e),t=t!==null?H(t):null,t=t===null?null:t.stateNode,t};var bp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{fn=Ou.inject(bp),re=Ou}catch{}}return li.createRoot=function(t,e){if(!h(t))throw Error(c(299));var l=!1,a="",n=Jr,i=kr,o=Wr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=xd(t,1,!1,null,null,l,a,null,n,i,o,qd),t[ya]=e.current,Zs(t),new of(e)},li.hydrateRoot=function(t,e,l){if(!h(t))throw Error(c(299));var a=!1,n="",i=Jr,o=kr,r=Wr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=xd(t,1,!0,e,l??null,a,n,m,i,o,r,qd),e.context=Dd(null),l=e.current,a=Se(),a=Pu(a),n=zl(a),n.callback=null,xl(l,n,a),l=a,e.current.lanes=l,rn(e,l),Ve(e),t[ya]=e.current,Zs(t),new Mu(e)},li.version="19.2.3",li}var Pd;function Up(){if(Pd)return yf.exports;Pd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),yf.exports=Rp(),yf.exports}var Hp=Up();function tm(s){return s!==null&&typeof s=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(s))||Array.isArray(s)}function Mf(s,u,f=new WeakMap){if(Object.is(s,u))return!0;if(typeof s=="function"&&typeof u=="function")return typeof s==typeof u;if(!tm(s)||!tm(u))return!1;const c=f.get(s);if(c&&c===u)return!0;if(f.set(s,u),Array.isArray(s)||Array.isArray(u)){if(!Array.isArray(s)||!Array.isArray(u)||s.length!==u.length)return!1;for(let y=0;y<s.length;y++)if(!Mf(s[y],u[y],f))return!1;return!0}const h=Object.keys(s),d=Object.keys(u);if(h.length!==d.length)return!1;for(let y=0;y<h.length;y++){const v=h[y];if(!Object.prototype.hasOwnProperty.call(u,v))return!1;const E=s[v],b=u[v];if(!Mf(E,b,f))return!1}return!0}function Np(s){const u=[],f=(d,y)=>y.reduce((v,E)=>v==null?v:v[E],d),c=(d,y)=>(...v)=>{const E=f(s.current,d),b=E==null?void 0:E[y];if(typeof b=="function")return b.apply(E,v)},h=d=>{if(typeof d=="function"){const y=u[u.length-1],v=u.slice(0,-1);return c(v,y)}if(Array.isArray(d)){const y=u.length,v=new Array(d.length);for(let E=0;E<d.length;E++)u[y]=E,v[E]=h(d[E]);return u.length=y,v}if(d&&typeof d=="object"){const y=u.length,v={};for(const E of Object.keys(d))u[y]=E,v[E]=h(d[E]);return u.length=y,v}return d};return h(s.current)}function Bp(s){const u=Jd.useRef(s);u.current=s;const f=Jd.useRef(null);return(!f.current||!Mf(f.current.snapshot,s))&&(f.current={snapshot:s,shaped:Np(u)}),f.current.shaped}const Lp=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction"]);function Yp(s){const u=Nt.useRef(null),f=Bp(s),c=Nt.useMemo(()=>Lp.reduce((y,v)=>(y[v]=(...E)=>{if(!u.current){console.warn("ChatKit element is not mounted");return}return u.current[v](...E)},y),{}),[]),h=Nt.useCallback(y=>{u.current=y},[]),d=Nt.useMemo(()=>{const y={},v={};for(const[E,b]of Object.entries(f))/^on[A-Z]/.test(E)&&E!=="onClientTool"?v[E]=b:y[E]=b;return{setInstance:h,options:y,handlers:v}},[f,h]);return Nt.useMemo(()=>({...c,control:d,ref:u}),[c,d])}class qp{constructor(){pt(this,"callbacks",new Map)}on(u,f){this.callbacks.has(u)||this.callbacks.set(u,new Set),this.callbacks.get(u).add(f)}emit(u,...f){var h;const c=f[0];(h=this.callbacks.get(u))==null||h.forEach(d=>d(c))}off(u,f){var c;f?(c=this.callbacks.get(u))==null||c.delete(f):this.callbacks.delete(u)}allOff(){this.callbacks.clear()}}async function jp(s,u){const f=s.getReader();let c;for(;!(c=await f.read()).done;)u(c.value)}function Xp(s){let u,f,c,h=!1;return function(y){u===void 0?(u=y,f=0,c=-1):u=Qp(u,y);const v=u.length;let E=0;for(;f<v;){h&&(u[f]===10&&(E=++f),h=!1);let b=-1;for(;f<v&&b===-1;++f)switch(u[f]){case 58:c===-1&&(c=f-E);break;case 13:h=!0;case 10:b=f;break}if(b===-1)break;s(u.subarray(E,b),c),E=f,c=-1}E===v?u=void 0:E!==0&&(u=u.subarray(E),f-=E)}}function Gp(s,u,f){let c=em();const h=new TextDecoder;return function(y,v){if(y.length===0)f==null||f(c),c=em();else if(v>0){const E=h.decode(y.subarray(0,v)),b=v+(y[v+1]===32?2:1),H=h.decode(y.subarray(b));switch(E){case"data":c.data=c.data?c.data+`
|
|
50
|
-
`+H:H;break;case"event":c.event=H;break;case"id":s(c.id=H);break;case"retry":const B=parseInt(H,10);isNaN(B)||u(c.retry=B);break}}}}function Qp(s,u){const f=new Uint8Array(s.length+u.length);return f.set(s),f.set(u,s.length),f}function em(){return{data:"",event:"",id:"",retry:void 0}}var Zp=function(s,u){var f={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&u.indexOf(c)<0&&(f[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(s);h<c.length;h++)u.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(s,c[h])&&(f[c[h]]=s[c[h]]);return f};const Of="text/event-stream",Vp=1e3,lm="last-event-id";function Kp(s,u){var{signal:f,headers:c,onopen:h,onmessage:d,onclose:y,onerror:v,openWhenHidden:E,fetch:b}=u,H=Zp(u,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((B,et)=>{const mt=Object.assign({},c);mt.accept||(mt.accept=Of);let Et;function Dt(){Et.abort(),document.hidden||ee()}E||document.addEventListener("visibilitychange",Dt);let Xt=Vp,Mt=0;function Jt(){document.removeEventListener("visibilitychange",Dt),window.clearTimeout(Mt),Et.abort()}f==null||f.addEventListener("abort",()=>{Jt(),B()});const Bt=b??window.fetch,te=h??Jp;async function ee(){var Lt;Et=new AbortController;try{const k=await Bt(s,Object.assign(Object.assign({},H),{headers:mt,signal:Et.signal}));await te(k),await jp(k.body,Xp(Gp(Tt=>{Tt?mt[lm]=Tt:delete mt[lm]},Tt=>{Xt=Tt},d))),y==null||y(),Jt(),B()}catch(k){if(!Et.signal.aborted)try{const Tt=(Lt=v==null?void 0:v(k))!==null&&Lt!==void 0?Lt:Xt;window.clearTimeout(Mt),Mt=window.setTimeout(ee,Tt)}catch(Tt){Jt(),et(Tt)}}}ee()})}function Jp(s){const u=s.headers.get("content-type");if(!(u!=null&&u.startsWith(Of)))throw new Error(`Expected content-type to be ${Of}, Actual: ${u}`)}const nn="__chatkit_error__";class qu extends Error{constructor(f,c,h){super(f);pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.name="HttpError",this.statusText=c.statusText,this.status=c.status,this.metadata=h}static fromPossibleFrameSafeError(f){if(f instanceof qu)return f;if(f&&typeof f=="object"&&nn in f&&f[nn]==="HttpError"){const c=f,h=new qu(c.message,{status:c.status,statusText:c.statusText},c.metadata);return h.stack=c.stack,h}return null}}var bm;bm=nn;const Yf=class Yf{constructor(u,f,c){pt(this,bm,"HttpError");pt(this,"message");pt(this,"stack");pt(this,"status");pt(this,"statusText");pt(this,"metadata");this.message=u,this.stack=new Error(u).stack,this.status=f.status,this.statusText=f.statusText,this.metadata=c}static fromHttpError(u){return new Yf(u.message,{status:u.status,statusText:u.statusText},u.metadata)}};let ju=Yf;const kp=1e3,Wp=1e4,$p=5,Fp=(s,u=Wp,f=kp)=>{const c=Math.min(u,f*2**s);return Math.floor(c*(.5+Math.random()*.5))};class am extends Error{constructor(u){super(),this.cause=u}}const Ip=async(s,u)=>{let f=0;const{onopen:c,...h}=u;await Kp(s,{...h,onopen:async d=>{var v;if(c==null||c(d),d.ok&&((v=d.headers.get("content-type"))!=null&&v.startsWith("text/event-stream"))){f=0;return}const y=new ju(`Streaming failed: ${d.statusText}`,d);throw d.status>=400&&d.status<500?y:new am(y)},onerror:d=>{if(d instanceof am){if(f>=$p)throw d.cause;return f+=1,Fp(f)}throw d}})};function Sf(){const s=globalThis.crypto;if(typeof(s==null?void 0:s.randomUUID)=="function")return s.randomUUID();if(typeof(s==null?void 0:s.getRandomValues)=="function"){const u=new Uint8Array(16);return s.getRandomValues(u),u[6]=u[6]&15|64,u[8]=u[8]&63|128,[...u].map(f=>f.toString(16).padStart(2,"0")).join("").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5")}return`ck_${Date.now()}_${Math.random().toString(16).slice(2)}`}let Pp=class Tm extends Error{constructor(f){super(f);pt(this,"_name");this.name="IntegrationError",this._name=this.name}static fromPossibleFrameSafeError(f){if(f&&typeof f=="object"&&nn in f&&f[nn]==="IntegrationError"){const c=f,h=new Tm(c.message);return h.stack=c.stack,h}return null}};var Em;Em=nn;class t0{constructor(u){pt(this,Em,"IntegrationError");pt(this,"message");pt(this,"stack");this.message=u,this.stack=new Error(u).stack}}class e0{constructor({handlers:u,target:f,targetOrigin:c,fetch:h=window.fetch}){pt(this,"targetOrigin");pt(this,"target");pt(this,"commandHandlers");pt(this,"_fetch");pt(this,"emitter",new qp);pt(this,"handlers",new Map);pt(this,"fetchEventSourceHandlers",new Map);pt(this,"abortControllers",new Map);pt(this,"commands",new Proxy({},{get:(u,f)=>(c,h)=>new Promise((d,y)=>{const v=Sf();this.handlers.set(v,{resolve:d,reject:y,stack:new Error().stack||""}),this.sendMessage({type:"command",nonce:v,command:`on${f.charAt(0).toUpperCase()}${f.slice(1)}`,data:c},h)})}));pt(this,"handleMessage",async u=>{var c,h,d,y;if(!u.data||u.data.__xpaiChatKit!==!0||u.origin!==this.targetOrigin||u.source!==this.target())return;const f=u.data;switch(f.type){case"event":{this.emitter.emit(f.event,f.data);break}case"fetch":{try{if(f.formData){const H=new FormData;for(const[B,et]of Object.entries(f.formData))H.append(B,et);f.params.body=H}const v=new AbortController;this.abortControllers.set(f.nonce,v),f.params.signal=v.signal;const E=await this._fetch(f.url,f.params);if(!E.ok){const H=await E.json().then(B=>B.message||E.statusText).catch(()=>E.statusText);throw new ju(H,E)}const b=await E.json().catch(()=>({}));this.sendMessage({type:"response",response:b,nonce:f.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:f.nonce})}break}case"fetchEventSource":{try{const v=new AbortController;this.abortControllers.set(f.nonce,v),await Ip(f.url,{...f.params,signal:v.signal,fetch:this._fetch,onmessage:E=>{this.sendMessage({type:"fetchEventSourceMessage",message:E,nonce:f.nonce})}}),this.sendMessage({type:"response",response:void 0,nonce:f.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:f.nonce})}break}case"command":{if(!this.canReceiveCommand(f.command)){this.sendMessage({type:"response",error:new t0(`Command ${f.command} not supported`),nonce:f.nonce});return}try{const v=await((h=(c=this.commandHandlers)[f.command])==null?void 0:h.call(c,f.data));this.sendMessage({type:"response",response:v,nonce:f.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:f.nonce})}break}case"response":{const v=this.handlers.get(f.nonce);if(!v){console.error("No handler found for nonce",f.nonce);return}if(f.error){const E=Pp.fromPossibleFrameSafeError(f.error),b=qu.fromPossibleFrameSafeError(f.error);E?(E.stack=v.stack,v.reject(E)):b?v.reject(b):v.reject(f.error)}else v.resolve(f.response);this.handlers.delete(f.nonce);break}case"fetchEventSourceMessage":{if(!this.fetchEventSourceHandlers.get(f.nonce)){console.error("No handler found for nonce",f.nonce);return}(y=(d=this.fetchEventSourceHandlers.get(f.nonce))==null?void 0:d.onmessage)==null||y.call(d,f.message);break}case"abortSignal":{const v=this.abortControllers.get(f.nonce);v&&(v.abort(f.reason),this.abortControllers.delete(f.nonce));break}}});this.commandHandlers=u,this.target=f,this.targetOrigin=c,this._fetch=((...d)=>h(...d))}setTargetOrigin(u){this.targetOrigin=u}sendMessage(u,f){var h;const c={__xpaiChatKit:!0,...u};(h=this.target())==null||h.postMessage(c,this.targetOrigin,f)}connect(){window.addEventListener("message",this.handleMessage)}disconnect(){window.removeEventListener("message",this.handleMessage)}fetch(u,f){return new Promise((c,h)=>{const d=Sf();this.handlers.set(d,{resolve:c,reject:h,stack:new Error().stack||""});let y;if(f.body instanceof FormData){y={};for(const[v,E]of f.body.entries())y[v]=E;f.body=void 0}f.signal&&(f.signal.addEventListener("abort",()=>{var v;this.sendMessage({type:"abortSignal",nonce:d,reason:(v=f.signal)==null?void 0:v.reason})}),f.signal=void 0),this.sendMessage({type:"fetch",nonce:d,params:f,formData:y,url:u})})}fetchEventSource(u,f){return new Promise((c,h)=>{const{onmessage:d,signal:y,...v}=f,E=Sf();this.handlers.set(E,{resolve:c,reject:h,stack:new Error().stack||""}),this.fetchEventSourceHandlers.set(E,{onmessage:d}),y&&y.addEventListener("abort",()=>{this.sendMessage({type:"abortSignal",nonce:E,reason:y.reason})}),this.sendMessage({type:"fetchEventSource",nonce:E,params:v,url:u})})}emit(...[u,f,c]){this.sendMessage({type:"event",event:u,data:f},c)}on(...[u,f]){this.emitter.on(u,f)}destroy(){window.removeEventListener("message",this.handleMessage),this.emitter.allOff(),this.handlers.clear()}}const l0=s=>btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),a0=s=>{if(s===void 0)throw new TypeError("encodeBase64: `undefined` cannot be encoded to valid JSON. Pass null instead.");const u=JSON.stringify(s),f=new TextEncoder().encode(u);let c="";for(const h of f)c+=String.fromCharCode(h);return l0(c)};class Ye extends Error{}function n0(s){return s.message}const i0=["command.setOptions","command.sendUserMessage","command.setComposerValue","command.setThreadId","command.focusComposer","command.fetchUpdates","command.sendCustomAction","command.showHistory","command.hideHistory","event.ready","event.error","event.log","event.response.start","event.response.end","event.response.stop","event.thread.change","event.tool.change","event.thread.load.start","event.thread.load.end","event.deeplink","event.effect","error.StreamError","error.StreamEventParsingError","error.WidgetItemError","error.InitialThreadLoadError","error.FileAttachmentError","error.HistoryViewError","error.FatalAppError","error.IntegrationError","error.EntitySearchError","error.DomainVerificationRequestError","backend.threads.get_by_id","backend.threads.list","backend.threads.update","backend.threads.delete","backend.threads.create","backend.threads.add_user_message","backend.threads.add_client_tool_output","backend.threads.retry_after_item","backend.threads.custom_action","backend.attachments.create","backend.attachments.get_preview","backend.attachments.delete","backend.items.list","backend.items.feedback","thread.item.generated_image","thread.item.user_message","thread.item.assistant_message","thread.item.client_tool_call","thread.item.widget","thread.item.task","thread.item.workflow","thread.item.end_of_turn","thread.item.image_generation","widget.Basic","widget.Card","widget.ListView","widget.ListViewItem","widget.Badge","widget.Box","widget.Row","widget.Col","widget.Button","widget.Caption","widget.Chart","widget.Checkbox","widget.DatePicker","widget.Divider","widget.Form","widget.Icon","widget.Image","widget.Input","widget.Label","widget.Markdown","widget.RadioGroup","widget.Select","widget.Spacer","widget.Text","widget.Textarea","widget.Title","widget.Transition"],u0=["command.shareThread","command.setTrainingOptOut","event.thread.restore","event.message.share","event.image.download","event.history.open","event.history.close","event.log.chatgpt","error.HttpError","error.NetworkError","error.UnhandledError","error.UnhandledPromiseRejectionError","error.StreamEventHandlingError","error.StreamStopError","error.ThreadRenderingError","error.IntlError","error.AppError","backend.threads.stop","backend.threads.share","backend.threads.create_from_shared","backend.threads.init","backend.attachments.process","widget.CardCarousel","widget.Favicon","widget.CardLinkItem","widget.Map"],c0={chatkit:{allow:[...i0,"thread.item.image_generation"],deny:u0}},nm=s=>{const u=c0[s],f=new Set(u.allow);for(const b of u.deny??[])f.delete(b);const c=new Set,h=new Set,d=new Set,y=new Set,v=new Set,E=new Set;for(const b of f){if(b.startsWith("command.")){c.add(b.slice(8));continue}if(b.startsWith("event.")){h.add(b.slice(6));continue}if(b.startsWith("backend.")){d.add(b.slice(8));continue}if(b.startsWith("thread.item.")&&y.add(b.slice(12)),b.startsWith("error.")){v.add(b.slice(6));continue}if(b.startsWith("widget.")){E.add(b.slice(7));continue}}return{commands:c,events:h,backend:d,threadItems:y,errors:v,widgets:E}};class s0 extends e0{canReceiveCommand(u){return!0}}const f0=["idle","running-right","running-left","waving","jumping","failed","waiting","running","review"],ai={columns:8,rows:9,cellWidth:192,cellHeight:208,animations:{idle:{row:0,frames:6,frameDurations:[280,110,110,140,140,320]},"running-right":{row:1,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},"running-left":{row:2,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},waving:{row:3,frames:4,frameDurations:[140,140,140,280]},jumping:{row:4,frames:5,frameDurations:[140,140,140,140,280]},failed:{row:5,frames:8,frameDurations:[140,140,140,140,140,140,140,240]},waiting:{row:6,frames:6,frameDurations:[150,150,150,150,150,260]},running:{row:7,frames:6,frameDurations:[120,120,120,120,120,220]},review:{row:8,frames:6,frameDurations:[150,150,150,150,150,280]}}},xu={top:0,right:0,bottom:0,left:0},im="chatkit:pet:position:v1",o0="/pets/boba/spritesheet.webp",zf={type:"sprite-atlas",src:o0},um={pin:"bottom-right",draggable:!0,scale:.25,persist:!0,zIndex:40};function r0(s,u){return{row:(u==null?void 0:u.row)??s.row,frames:(u==null?void 0:u.frames)??s.frames,frameDurations:u!=null&&u.frameDurations&&u.frameDurations.length>0?u.frameDurations:s.frameDurations}}function h0(s){var f;const u={};for(const c of f0)u[c]=r0(ai.animations[c],(f=s==null?void 0:s.animations)==null?void 0:f[c]);return{columns:(s==null?void 0:s.columns)??ai.columns,rows:(s==null?void 0:s.rows)??ai.rows,cellWidth:(s==null?void 0:s.cellWidth)??ai.cellWidth,cellHeight:(s==null?void 0:s.cellHeight)??ai.cellHeight,animations:u}}function d0(s){return s&&s.src?s:zf}function ci(s){return s?s===!0?{character:zf,position:um,behavior:"auto",ariaLabel:"Animated pet",imageRendering:"auto"}:s.enabled===!1?null:{character:d0(s.character),position:{...um,...s.position},behavior:s.behavior??"auto",ariaLabel:s.ariaLabel??"Animated pet",imageRendering:s.imageRendering??"auto"}:null}function m0(s){return s.src?{kind:"atlas",src:s.src,atlas:h0(s.atlas)}:null}function bf(s){return typeof s=="number"?{top:s,right:s,bottom:s,left:s}:{top:(s==null?void 0:s.top)??xu.top,right:(s==null?void 0:s.right)??xu.right,bottom:(s==null?void 0:s.bottom)??xu.bottom,left:(s==null?void 0:s.left)??xu.left}}function we(s,u,f,c){const h=c.left,d=c.top,y=Math.max(h,f.width-u.width-c.right),v=Math.max(d,f.height-u.height-c.bottom);return{x:Math.min(y,Math.max(h,s.x)),y:Math.min(v,Math.max(d,s.y))}}function y0(s,u,f,c){const h=(f.width-u.width)/2,d=(f.height-u.height)/2,y=f.width-u.width-c.right,v=f.height-u.height-c.bottom;switch(s){case"top-left":return we({x:c.left,y:c.top},u,f,c);case"top":return we({x:h,y:c.top},u,f,c);case"top-right":return we({x:y,y:c.top},u,f,c);case"left":return we({x:c.left,y:d},u,f,c);case"center":return we({x:h,y:d},u,f,c);case"right":return we({x:y,y:d},u,f,c);case"bottom-left":return we({x:c.left,y:v},u,f,c);case"bottom":return we({x:h,y:v},u,f,c);case"bottom-right":default:return we({x:y,y:v},u,f,c)}}const xf=(s,u=new WeakSet)=>{if(typeof s=="function")return"[ChatKitMethod]";if(typeof s!="object"||s===null||u.has(s))return s;if(u.add(s),Array.isArray(s))return s.map(c=>xf(c,u));const f={};for(const[c,h]of Object.entries(s))typeof h!="function"?f[c]=xf(h,u):f[c]="[ChatKitMethod]";return f},Du=2,g0=.5,p0=1.5,v0=3,S0=2e3,cm=12,b0=320,Ke=12,Pa=8,E0='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',sm={"en-US":{closePetMenuItem:"Close pet",hideMessage:"Hide message",expandMessage:"Expand message",collapseMessage:"Collapse message",restoreMessage:"Show message",replyButton:"Reply",replyPlaceholder:"Reply...",sendButton:"Send",sendingButton:"Sending...",sendFailed:"Failed to send"},"zh-CN":{closePetMenuItem:"关闭宠物",hideMessage:"隐藏消息",expandMessage:"展开消息",collapseMessage:"收起消息",restoreMessage:"显示消息",replyButton:"回复",replyPlaceholder:"输入回复...",sendButton:"发送",sendingButton:"发送中...",sendFailed:"发送失败"}};function Cu(s){s.stopPropagation()}function tn(){const s=window.visualViewport;return{width:(s==null?void 0:s.width)||window.innerWidth||320,height:(s==null?void 0:s.height)||window.innerHeight||480}}function T0(s,u){if(!u)return null;try{const f=window.localStorage.getItem(s);if(!f)return null;const c=JSON.parse(f);return!c||typeof c!="object"||typeof c.x!="number"||typeof c.y!="number"?null:{x:c.x,y:c.y}}catch{return null}}function _0(s,u,f){if(u)try{window.localStorage.setItem(s,JSON.stringify(f))}catch{}}function A0(s){return s.replace(/["\\]/g,"\\$&")}function fm(s){return Math.max(.1,s)*g0}function Zl(s,u,f){return Math.min(f,Math.max(u,s))}function M0(){if(typeof window<"u")try{const s=window.localStorage.getItem("chatkit:locale");if(s)return s}catch{}return typeof navigator<"u"?navigator.language:null}function om(s){const u=(s??M0()??"").trim().toLowerCase();return u==="zh-cn"||u==="zh-hans"||u.startsWith("zh")?"zh-CN":"en-US"}function O0(s){switch(s){case"compact":return{padding:"8px 10px",gap:6,marginTop:3,toggleSize:30,actionSize:22};case"spacious":return{padding:"14px 16px",gap:10,marginTop:6,toggleSize:38,actionSize:28};case"normal":default:return{padding:"12px 14px",gap:8,marginTop:4,toggleSize:34,actionSize:26}}}function z0(s){switch(s){case"pill":return 24;case"round":return 16;case"sharp":return 0;case"soft":default:return 12}}function ni(s){var v,E;const u=typeof s=="string"?null:s,f=((v=u==null?void 0:u.typography)==null?void 0:v.baseSize)??16,c=(u==null?void 0:u.density)??"normal",h=c==="compact"?-1:c==="spacious"?1:0,d=Zl(f-2+h,11,17);return{...O0(c),bodySize:d,titleSize:d+1,iconSize:Zl(d+2,13,19),radius:z0(u==null?void 0:u.radius),fontFamily:((E=u==null?void 0:u.typography)==null?void 0:E.fontFamily)??E0}}function x0(s){return s==="idle"||s==="running-right"||s==="running-left"||s==="waving"||s==="jumping"||s==="failed"||s==="waiting"||s==="running"||s==="review"}function D0(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const u=s;return x0(u.state)?{state:u.state}:null}function C0(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const u=s;return u.pet===null||typeof u.pet=="boolean"?{pet:u.pet}:u.pet&&typeof u.pet=="object"&&!Array.isArray(u.pet)?{pet:u.pet}:null}function w0(s){return s==="running"||s==="completed"||s==="failed"}function rm(s){return s?[s.threadId,s.messageId||s.updatedAt||s.message].join(":"):null}function hm(s){return s?[s.threadId,s.messageId??""].join(":"):null}function R0(s){if(s===null)return{summary:null};if(!s||typeof s!="object"||Array.isArray(s))return null;const u=s;return typeof u.threadId!="string"||!u.threadId.trim()||typeof u.title!="string"||!u.title.trim()||typeof u.message!="string"||!u.message.trim()||!w0(u.status)?null:{summary:{threadId:u.threadId,title:u.title,message:u.message,status:u.status,...typeof u.messageId=="string"&&u.messageId.trim()?{messageId:u.messageId}:{},...typeof u.updatedAt=="string"&&u.updatedAt.trim()?{updatedAt:u.updatedAt}:{}}}}function U0(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const u=s;return u.name!=="thread.summary"?null:R0(u.data??null)}class H0{constructor(u,f){this.overlayElement=null,this.petElement=null,this.contextMenuElement=null,this.summaryElement=null,this.summaryToggleElement=null,this.mediaElement=null,this.options=null,this.theme=null,this.resolved=null,this.summary=null,this.summaryRenderKey=null,this.dismissedSummaryKey=null,this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.replyInputElement=null,this.copyLocale=om(),this.copy=sm[this.copyLocale],this.currentState="waiting",this.lastAutoState="waiting",this.transient=null,this.position=null,this.dragPosition=null,this.dragOffset={x:0,y:0},this.lastDragPosition=null,this.lastDragClientX=null,this.dragAnimation=null,this.isDragging=!1,this.isHovering=!1,this.movedDuringDrag=!1,this.prefersReducedMotion=!1,this.frame=0,this.completed=!1,this.activeAnimationName=null,this.activeAnimationMode=null,this.frameTimer=null,this.restingDelayTimer=null,this.mediaQuery=null,this.connected=!1,this.handleViewportChange=()=>{this.closeContextMenu(),this.render()},this.handleReducedMotionChange=()=>{var c;this.prefersReducedMotion=!!((c=this.mediaQuery)!=null&&c.matches),this.prefersReducedMotion&&(this.transient=null),this.render()},this.handlePointerEnter=()=>{this.clearRestingDelayTimer(),this.isHovering=!0,this.rescheduleAnimation()},this.handlePointerLeave=()=>{this.isDragging||this.enterRestingAfterDelay()},this.handleContextMenu=c=>{c.preventDefault(),c.stopPropagation(),this.openContextMenu({x:c.clientX,y:c.clientY})},this.handleContextMenuEvent=c=>{c.preventDefault(),c.stopPropagation()},this.handleContextMenuOutsidePointerDown=c=>{const h=this.contextMenuElement;h&&c.composedPath().includes(h)||this.closeContextMenu()},this.handleContextMenuKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.closeContextMenu())},this.handleClosePetMenuItemClick=c=>{var h;c.preventDefault(),c.stopPropagation(),this.closeContextMenu(),(h=this.onClose)==null||h.call(this)},this.handleSummaryPointerEnter=()=>{this.isSummaryHovering=!0,this.render()},this.handleSummaryPointerLeave=()=>{this.isSummaryHovering=!1,this.isReplyOpen||this.render()},this.handleSummaryClick=()=>{var h,d;const c=(h=this.summary)==null?void 0:h.threadId.trim();c&&((d=this.onThreadSummaryActivate)==null||d.call(this,c))},this.handleSummaryDelete=()=>{const c=rm(this.summary);c&&(this.dismissedSummaryKey=c),this.isSummaryCollapsed=!1,this.isReplyOpen=!1,this.replyDraft="",this.replyError=null,this.removeSummaryElements()},this.handleSummaryCollapseToggle=()=>{this.isSummaryCollapsed=!this.isSummaryCollapsed,this.isSummaryExpanded=!1,this.isReplyOpen=!1,this.replyError=null,this.render()},this.handleSummaryExpandToggle=()=>{this.isSummaryExpanded=!this.isSummaryExpanded,this.render()},this.handleReplyOpen=()=>{this.isReplyOpen=!0,this.replyError=null,this.render()},this.handleReplyInput=c=>{const h=c.currentTarget;h instanceof HTMLInputElement&&(this.replyDraft=h.value,this.replyError=null)},this.handleReplySubmit=c=>{c.preventDefault(),this.submitReply()},this.handleReplyKeyDown=c=>{c.key==="Escape"&&(c.preventDefault(),this.isReplyOpen=!1,this.replyError=null,this.render())},this.handlePointerDown=c=>{var y,v;if(c.button!==0||c.ctrlKey||(this.closeContextMenu(),!((y=this.options)!=null&&y.position.draggable)))return;c.preventDefault();const h=(v=this.petElement)==null?void 0:v.getBoundingClientRect();if(!h)return;const d={x:h.left,y:h.top};this.dragOffset={x:c.clientX-h.left,y:c.clientY-h.top},this.lastDragPosition=d,this.lastDragClientX=c.clientX,this.dragAnimation=null,this.movedDuringDrag=!1,this.dragPosition=d,this.isDragging=!0,this.clearRestingDelayTimer(),this.isHovering=!0,this.installDragListeners(),this.rescheduleAnimation()},this.handlePointerMove=c=>{const h=this.getNextDragPosition(c),d=this.lastDragPosition;if(d&&(Math.abs(d.x-h.x)>Du||Math.abs(d.y-h.y)>Du)&&(this.movedDuringDrag=!0),this.lastDragClientX!==null){const y=c.clientX-this.lastDragClientX;y>Du?this.dragAnimation="running-right":y<-Du&&(this.dragAnimation="running-left")}this.lastDragClientX=c.clientX,this.lastDragPosition=h,this.dragPosition=h,this.render()},this.handlePointerUp=c=>{const h=this.lastDragPosition??this.getNextDragPosition(c);this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragClientX=null,this.removeDragListeners(),this.persistPosition(h),c.pointerType==="mouse"&&this.isPointerOverPet(c)?(this.isHovering=!0,this.rescheduleAnimation()):(this.enterRestingAfterDelay(),this.rescheduleAnimation())},this.handleClick=()=>{var c;this.movedDuringDrag||((c=this.onActivate)==null||c.call(this),!this.prefersReducedMotion&&(this.transient={name:"waving"},this.render()))},this.root=u,this.onActivate=f==null?void 0:f.onActivate,this.onClose=f==null?void 0:f.onClose,this.onReply=f==null?void 0:f.onReply,this.onThreadSummaryActivate=f==null?void 0:f.onThreadSummaryActivate,this.connect()}connect(){this.connected||(this.connected=!0,this.installViewportListeners(),this.installReducedMotionListener(),this.render())}setOptions(u,f){this.closeContextMenu();const c=ci(u);if(this.options=c,this.theme=f??null,!c){this.isDragging=!1,this.isHovering=!1,this.position=null,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.transient=null,this.resolved=null,this.clearRestingDelayTimer(),this.removeDragListeners(),this.removeOverlay();return}this.position=T0(im,c.position.persist),c.behavior==="auto"&&!this.prefersReducedMotion&&(this.transient={name:"waving"}),this.resolveCharacter(),this.render()}setState(u){var c;const f=this.lastAutoState;this.lastAutoState=u,this.currentState=u,((c=this.options)==null?void 0:c.behavior)==="auto"&&!this.prefersReducedMotion&&u==="idle"&&(f==="running"||f==="review")&&!this.transient?this.transient={name:"jumping"}:u!=="idle"&&(this.transient=null),this.render()}setLocale(u){const f=om(u);f!==this.copyLocale&&(this.copyLocale=f,this.copy=sm[f],this.summaryRenderKey=null,this.closeContextMenu(),this.render())}setThreadSummary(u){const f=hm(this.summary),c=hm(u);if(this.summary=u,!u){this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.summaryRenderKey=null,this.removeSummaryElements();return}f!==c&&(this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft=""),this.render()}setThreadSummaryStatus(u){!this.summary||this.summary.status===u||(this.summary={...this.summary,status:u},this.render())}destroy(){var u,f,c,h;this.connected&&(this.connected=!1,this.clearRestingDelayTimer(),this.clearTimers(),this.removeDragListeners(),this.removeOverlay(),window.removeEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.removeEventListener("resize",this.handleViewportChange),(f=window.visualViewport)==null||f.removeEventListener("scroll",this.handleViewportChange),(h=(c=this.mediaQuery)==null?void 0:c.removeEventListener)==null||h.call(c,"change",this.handleReducedMotionChange),this.mediaQuery=null)}installViewportListeners(){var u,f;window.addEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.addEventListener("resize",this.handleViewportChange),(f=window.visualViewport)==null||f.addEventListener("scroll",this.handleViewportChange)}installReducedMotionListener(){var u,f;window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.prefersReducedMotion=this.mediaQuery.matches,(f=(u=this.mediaQuery).addEventListener)==null||f.call(u,"change",this.handleReducedMotionChange))}resolveCharacter(){if(!this.options){this.resolved=null;return}const u=this.options.character;this.resolved=m0(u)}ensureOverlay(){if(this.overlayElement&&this.petElement)return;const u=document.createElement("div");u.setAttribute("data-chatkit-host-pet-layer",""),u.style.position="fixed",u.style.inset="0",u.style.pointerEvents="none",u.style.overflow="visible";const f=document.createElement("style");f.textContent=`
|
|
51
|
-
@keyframes chatkit-pet-summary-spin {
|
|
52
|
-
to { transform: rotate(360deg); }
|
|
53
|
-
}
|
|
54
|
-
`;const c=document.createElement("div");c.setAttribute("data-chatkit-host-pet",""),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.touchAction="none",c.style.userSelect="none",c.style.willChange="transform",c.addEventListener("pointerenter",this.handlePointerEnter),c.addEventListener("pointerleave",this.handlePointerLeave),c.addEventListener("pointerdown",this.handlePointerDown),c.addEventListener("contextmenu",this.handleContextMenu),c.addEventListener("click",this.handleClick),u.append(f,c),this.root.append(u),this.overlayElement=u,this.petElement=c}removeOverlay(){var u;this.clearRestingDelayTimer(),this.clearTimers(),this.closeContextMenu(),this.petElement&&(this.petElement.removeEventListener("pointerenter",this.handlePointerEnter),this.petElement.removeEventListener("pointerleave",this.handlePointerLeave),this.petElement.removeEventListener("pointerdown",this.handlePointerDown),this.petElement.removeEventListener("contextmenu",this.handleContextMenu),this.petElement.removeEventListener("click",this.handleClick)),this.isHovering=!1,this.removeSummaryElements(),(u=this.overlayElement)==null||u.remove(),this.overlayElement=null,this.petElement=null,this.mediaElement=null}removeSummaryElements(){var u,f;(u=this.summaryElement)==null||u.remove(),(f=this.summaryToggleElement)==null||f.remove(),this.summaryElement=null,this.summaryToggleElement=null,this.replyInputElement=null,this.summaryRenderKey=null}getSize(){if(!this.options||!this.resolved)return{width:0,height:0};const u=fm(this.options.position.scale),f={width:this.resolved.atlas.cellWidth,height:this.resolved.atlas.cellHeight};return{width:f.width*u,height:f.height*u}}getCurrentPosition(u){const f=this.options;if(!f)return{x:0,y:0};const c=tn(),h=bf(f.position.boundsPadding),d=f.position.pin===void 0?"bottom-right":f.position.pin,y=d?y0(d,u,c,h):null;return we(this.dragPosition??this.position??y??{x:h.left,y:h.top},u,c,h)}persistPosition(u){if(!this.options)return;const f=this.getSize(),c=we(u,f,tn(),bf(this.options.position.boundsPadding));this.position=c,_0(im,this.options.position.persist,c)}getActiveAnimationName(){return this.options?this.isDragging?this.dragAnimation??"running":this.transient?this.transient.name:this.options.behavior==="manual"?"idle":this.currentState:"idle"}getActiveAnimationMode(){return this.isDragging?"loop":this.transient?"once":"loop"}resetAnimationIfNeeded(u,f){this.activeAnimationName===u&&this.activeAnimationMode===f||(this.clearTimers(),this.activeAnimationName=u,this.activeAnimationMode=f,this.frame=0,this.completed=!1)}render(){if(!this.options||!this.resolved){this.clearTimers(),this.petElement&&this.petElement.replaceChildren(),this.removeSummaryElements(),this.mediaElement=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.frame=0,this.completed=!1;return}this.ensureOverlay();const u=this.overlayElement,f=this.petElement;if(!u||!f)return;const c=this.getSize(),h=this.getCurrentPosition(c),d=this.getActiveAnimationName(),y=this.getActiveAnimationMode();this.resetAnimationIfNeeded(d,y),u.style.zIndex=String(this.options.position.zIndex),f.style.width=`${c.width}px`,f.style.height=`${c.height}px`,f.style.transform=`translate3d(${h.x}px, ${h.y}px, 0)`,f.style.cursor=this.options.position.draggable?this.isDragging?"grabbing":"grab":"default",f.dataset.petAnimation=d,f.setAttribute("aria-label",this.options.ariaLabel),f.setAttribute("role","img"),this.renderAtlas(d,y),this.renderThreadSummary(h,c),this.scheduleNextFrame(d,y)}renderThreadSummary(u,f){var y,v,E;const c=this.summary,h=rm(c);if(!c||!h||this.dismissedSummaryKey===h){this.removeSummaryElements();return}if(this.isSummaryCollapsed){this.renderCollapsedSummary(u,f);return}const d=[this.copyLocale,this.isSummaryExpanded?"expanded":"compact",this.isSummaryHovering?"hover":"rest",this.isReplyOpen?"reply":"closed",this.isReplySubmitting?"submitting":"ready",this.replyError??""].join("|");(!this.summaryElement||this.summaryRenderKey!==d)&&((y=this.summaryElement)==null||y.remove(),(v=this.summaryToggleElement)==null||v.remove(),this.summaryElement=this.createSummaryBubble(c),this.summaryToggleElement=this.createSummaryToggleButton("v"),(E=this.overlayElement)==null||E.append(this.summaryElement,this.summaryToggleElement),this.summaryRenderKey=d,this.isReplyOpen&&!this.isReplySubmitting&&window.setTimeout(()=>{var b;return(b=this.replyInputElement)==null?void 0:b.focus()},0)),this.updateSummaryBubbleContent(c),this.positionSummaryBubble(u,f)}renderCollapsedSummary(u,f){var c,h;(c=this.summaryElement)==null||c.remove(),this.summaryElement=null,this.summaryRenderKey=null,this.summaryToggleElement||(this.summaryToggleElement=this.createSummaryToggleButton("1"),(h=this.overlayElement)==null||h.append(this.summaryToggleElement)),this.summaryToggleElement.textContent="1",this.positionSummaryToggleBadge(u,f)}positionSummaryToggleBadge(u,f){const c=this.summaryToggleElement;if(!c)return;const h=tn(),d=ni(this.theme).toggleSize,y=Zl(u.x+f.width-d*.35,Ke,h.width-d-Ke),v=Zl(u.y-d*.35,Ke,h.height-d-Ke);c.style.width=`${d}px`,c.style.height=`${d}px`,c.style.transform=`translate3d(${y}px, ${v}px, 0)`,c.style.borderRadius="999px"}positionSummaryBubble(u,f){const c=this.summaryElement,h=this.summaryToggleElement;if(!c||!h)return;const d=tn(),y=Math.min(b0,d.width-Ke*2);c.style.width=`${y}px`;const v=c.offsetHeight||96,E=u.y-v-cm,H=E>=Ke?E:Zl(u.y+f.height+cm,Ke,d.height-v-Ke),B=Zl(u.x+f.width/2-y/2,Ke,d.width-y-Ke);c.style.transform=`translate3d(${B}px, ${H}px, 0)`,this.positionSummaryToggleBadge(u,f)}createSummaryBubble(u){const f=this.isSummaryHovering&&!this.isReplyOpen,c=ni(this.theme),h=document.createElement("div");h.setAttribute("data-chatkit-pet-summary",""),h.addEventListener("pointerenter",this.handleSummaryPointerEnter),h.addEventListener("pointerleave",this.handleSummaryPointerLeave),h.addEventListener("click",this.handleSummaryClick),h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.boxSizing="border-box",h.style.pointerEvents="auto",h.style.padding=c.padding,h.style.border="1px solid rgba(148, 163, 184, 0.22)",h.style.borderRadius=`${c.radius}px`,h.style.background="rgba(255, 255, 255, 0.94)",h.style.color="#1f2937",h.style.boxShadow="0 8px 24px rgba(15, 23, 42, 0.1)",h.style.font=`500 ${c.bodySize}px/1.35 ${c.fontFamily}`,h.style.backdropFilter="blur(10px)";const d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap=`${c.gap}px`,(this.isSummaryHovering||this.isReplyOpen)&&d.append(this.createSummaryActionButton("x",this.copy.hideMessage,this.handleSummaryDelete));const y=document.createElement("div");y.textContent=u.title,y.style.minWidth="0",y.style.flex="1",y.style.overflow="hidden",y.style.textOverflow="ellipsis",y.style.whiteSpace="nowrap",y.style.fontWeight="700",y.style.fontSize=`${c.titleSize}px`,y.dataset.chatkitPetSummaryTitle="",d.append(y),this.isSummaryHovering||this.isReplyOpen?d.append(this.createSummaryActionButton(this.isSummaryExpanded?"-":">",this.isSummaryExpanded?this.copy.collapseMessage:this.copy.expandMessage,this.handleSummaryExpandToggle)):d.append(this.createStatusIcon(u.status));const v=document.createElement("div");if(v.textContent=u.message,v.style.marginTop=`${c.marginTop}px`,v.style.fontWeight="400",v.style.color="#374151",v.style.overflow="hidden",this.isSummaryExpanded?(v.style.maxHeight="7em",v.style.overflowY="auto"):(v.style.display="-webkit-box",v.style.setProperty("-webkit-line-clamp","2"),v.style.setProperty("-webkit-box-orient","vertical")),v.dataset.chatkitPetSummaryMessage="",h.append(d,v),f){const E=this.createTextButton(this.copy.replyButton,this.handleReplyOpen);E.style.position="absolute",E.style.right="14px",E.style.bottom="10px",h.append(E)}return this.isReplyOpen&&h.append(this.createReplyForm()),h}updateSummaryBubbleContent(u){var d,y,v;const f=(d=this.summaryElement)==null?void 0:d.querySelector("[data-chatkit-pet-summary-title]");f&&f.textContent!==u.title&&(f.textContent=u.title);const c=(y=this.summaryElement)==null?void 0:y.querySelector("[data-chatkit-pet-summary-message]");c&&c.textContent!==u.message&&(c.textContent=u.message);const h=(v=this.summaryElement)==null?void 0:v.querySelector("[data-chatkit-pet-summary-status]");if(h&&h.dataset.chatkitPetSummaryStatus!==u.status){const E=this.createStatusIcon(u.status);h.replaceWith(E)}}createSummaryToggleButton(u){const f=ni(this.theme),c=document.createElement("button");return c.type="button",c.textContent=u,c.title=u==="1"?this.copy.restoreMessage:this.copy.collapseMessage,c.addEventListener("click",Cu),c.addEventListener("click",this.handleSummaryCollapseToggle),c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.pointerEvents="auto",c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.background="rgba(248, 250, 252, 0.94)",c.style.color="#475569",c.style.boxShadow="0 6px 18px rgba(15, 23, 42, 0.1)",c.style.cursor="pointer",c.style.font=`600 ${f.titleSize}px/1 ${f.fontFamily}`,c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="center",c}createStatusIcon(u){const c=ni(this.theme).iconSize,h=document.createElement("span");if(h.setAttribute("aria-hidden","true"),h.dataset.chatkitPetSummaryStatus=u,h.style.display="inline-flex",h.style.width=`${c}px`,h.style.height=`${c}px`,h.style.alignItems="center",h.style.justifyContent="center",h.style.flex="0 0 auto",u==="running")return h.style.border="2px solid rgba(71, 85, 105, 0.32)",h.style.borderTopColor="#64748b",h.style.borderRadius="999px",h.style.animation="chatkit-pet-summary-spin 900ms linear infinite",h;if(h.style.borderRadius="999px",h.style.fontSize=`${Math.max(10,c-4)}px`,h.style.fontWeight="700",u==="failed")return h.textContent="!",h.style.background="#fee2e2",h.style.color="#b91c1c",h;h.textContent="",h.style.border="2px solid #22c55e",h.style.position="relative";const d=document.createElement("span");return d.style.width=`${Math.round(c*.44)}px`,d.style.height=`${Math.round(c*.25)}px`,d.style.borderLeft="2px solid #22c55e",d.style.borderBottom="2px solid #22c55e",d.style.transform="rotate(-45deg) translate(1px, -1px)",h.append(d),h}createSummaryActionButton(u,f,c){const h=ni(this.theme),d=document.createElement("button");return d.type="button",d.textContent=u,d.title=f,d.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),c()}),d.style.width=`${h.actionSize}px`,d.style.height=`${h.actionSize}px`,d.style.border="0",d.style.borderRadius="999px",d.style.background="rgba(241, 245, 249, 0.96)",d.style.color="#475569",d.style.cursor="pointer",d.style.font=`600 ${h.titleSize}px/1 ${h.fontFamily}`,d}createTextButton(u,f){const c=document.createElement("button");return c.type="button",c.textContent=u,c.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation(),f()}),c.style.border="1px solid rgba(148, 163, 184, 0.28)",c.style.borderRadius="999px",c.style.background="rgba(248, 250, 252, 0.95)",c.style.color="#334155",c.style.cursor="pointer",c.style.padding="3px 10px",c.style.font='600 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',c}createReplyForm(){const u=document.createElement("form");u.addEventListener("click",Cu),u.addEventListener("submit",this.handleReplySubmit),u.addEventListener("keydown",this.handleReplyKeyDown),u.style.display="flex",u.style.gap="6px",u.style.alignItems="center",u.style.marginTop="8px";const f=document.createElement("input");f.type="text",f.value=this.replyDraft,f.disabled=this.isReplySubmitting,f.placeholder=this.copy.replyPlaceholder,f.addEventListener("input",this.handleReplyInput),f.style.minWidth="0",f.style.flex="1",f.style.border="1px solid rgba(148, 163, 184, 0.35)",f.style.borderRadius="999px",f.style.padding="6px 10px",f.style.font='400 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',this.replyInputElement=f;const c=document.createElement("button");if(c.type="submit",c.textContent=this.isReplySubmitting?this.copy.sendingButton:this.copy.sendButton,c.disabled=this.isReplySubmitting,c.style.border="0",c.style.borderRadius="999px",c.style.background="#22c55e",c.style.color="#052e16",c.style.cursor=this.isReplySubmitting?"default":"pointer",c.style.padding="6px 10px",c.style.font='700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.append(f,c),this.replyError){const h=document.createElement("div");h.textContent=this.copy.sendFailed,h.style.flexBasis="100%",h.style.color="#b91c1c",h.style.fontSize="12px",u.style.flexWrap="wrap",u.append(h)}return u}createContextMenu(){const u=document.createElement("div");u.setAttribute("data-chatkit-pet-context-menu",""),u.setAttribute("role","menu"),u.addEventListener("contextmenu",this.handleContextMenuEvent),u.addEventListener("pointerdown",Cu),u.addEventListener("click",Cu),u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.boxSizing="border-box",u.style.minWidth="132px",u.style.padding="4px",u.style.pointerEvents="auto",u.style.border="1px solid rgba(148, 163, 184, 0.28)",u.style.borderRadius="10px",u.style.background="rgba(255, 255, 255, 0.96)",u.style.color="#1f2937",u.style.boxShadow="0 12px 28px rgba(15, 23, 42, 0.16)",u.style.font='500 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.style.backdropFilter="blur(10px)";const f=document.createElement("button");return f.type="button",f.textContent=this.copy.closePetMenuItem,f.setAttribute("role","menuitem"),f.addEventListener("click",this.handleClosePetMenuItemClick),f.style.display="block",f.style.width="100%",f.style.border="0",f.style.borderRadius="7px",f.style.background="transparent",f.style.color="inherit",f.style.cursor="pointer",f.style.padding="7px 10px",f.style.textAlign="left",f.style.font="inherit",u.append(f),u}openContextMenu(u){var h;const f=this.overlayElement;if(!f)return;this.closeContextMenu();const c=this.createContextMenu();f.append(c),this.contextMenuElement=c,this.positionContextMenu(u),(h=c.querySelector("button"))==null||h.focus({preventScroll:!0}),window.addEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.addEventListener("keydown",this.handleContextMenuKeyDown)}closeContextMenu(){var u;(u=this.contextMenuElement)==null||u.remove(),this.contextMenuElement=null,window.removeEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.removeEventListener("keydown",this.handleContextMenuKeyDown)}positionContextMenu(u){const f=this.contextMenuElement;if(!f)return;const c=tn(),h=f.offsetWidth||132,d=f.offsetHeight||40,y=Math.max(Pa,c.width-h-Pa),v=Math.max(Pa,c.height-d-Pa),E=Zl(u.x,Pa,y),b=Zl(u.y,Pa,v);f.style.transform=`translate3d(${E}px, ${b}px, 0)`}renderAtlas(u,f){var et;if(!this.petElement||((et=this.resolved)==null?void 0:et.kind)!=="atlas"||!this.options)return;if(!(this.mediaElement instanceof HTMLDivElement)){const mt=document.createElement("div");mt.setAttribute("aria-hidden","true"),this.petElement.replaceChildren(mt),this.mediaElement=mt}const c=this.mediaElement,h=this.resolved.atlas,d=h.animations[u]??h.animations.idle,y=f==="once"&&this.completed?Math.max(0,d.frames-1):Math.min(this.frame,Math.max(0,d.frames-1)),v=fm(this.options.position.scale),E=h.cellWidth,b=h.cellHeight,H=h.columns*E,B=h.rows*b;c.style.width=`${E}px`,c.style.height=`${b}px`,c.style.overflow="hidden",c.style.transform=`scale(${v})`,c.style.transformOrigin="top left",c.style.pointerEvents="none",c.style.backgroundImage=`url("${A0(this.resolved.src)}")`,c.style.backgroundRepeat="no-repeat",c.style.backgroundSize=`${H}px ${B}px`,c.style.backgroundPosition=`${-y*E}px ${-d.row*b}px`,c.style.imageRendering=this.options.imageRendering,c.dataset.petFrame=String(y)}scheduleNextFrame(u,f){if(this.prefersReducedMotion||this.completed||!this.resolved){this.clearTimers();return}if(this.frameTimer!==null)return;const c=this.resolved.atlas,h=c.animations[u]??c.animations.idle,y=(h.frameDurations[this.frame]??h.frameDurations[h.frameDurations.length-1]??150)*p0,v=this.isHovering||this.isDragging?y:y*v0;this.frameTimer=window.setTimeout(()=>{this.frameTimer=null;const E=this.frame+1;if(E>=h.frames){if(f==="once"){this.completed=!0,this.frame=Math.max(0,h.frames-1),this.finishTransient();return}this.frame=0,this.render();return}this.frame=E,this.render()},v)}clearTimers(){this.frameTimer!==null&&(window.clearTimeout(this.frameTimer),this.frameTimer=null)}clearRestingDelayTimer(){this.restingDelayTimer!==null&&(window.clearTimeout(this.restingDelayTimer),this.restingDelayTimer=null)}finishTransient(){this.transient=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.render()}rescheduleAnimation(){this.clearTimers(),this.render()}enterRestingAfterDelay(){this.clearRestingDelayTimer(),this.isHovering=!0,this.restingDelayTimer=window.setTimeout(()=>{this.restingDelayTimer=null,!this.isDragging&&(this.isHovering=!1,this.rescheduleAnimation())},S0)}isPointOverPet(u,f){var h;const c=(h=this.petElement)==null?void 0:h.getBoundingClientRect();return c?u>=c.left&&u<=c.right&&f>=c.top&&f<=c.bottom:!1}isPointerOverPet(u){return this.isPointOverPet(u.clientX,u.clientY)}async submitReply(){var f;const u=this.replyDraft.trim();if(!(!u||this.isReplySubmitting)){this.isReplySubmitting=!0,this.replyError=null,this.render();try{await((f=this.onReply)==null?void 0:f.call(this,u)),this.replyDraft="",this.isReplyOpen=!1,this.isSummaryHovering=!1}catch{this.replyError="Failed to send"}finally{this.isReplySubmitting=!1,this.render()}}}getNextDragPosition(u){return this.options?we({x:u.clientX-this.dragOffset.x,y:u.clientY-this.dragOffset.y},this.getSize(),tn(),bf(this.options.position.boundsPadding)):{x:0,y:0}}installDragListeners(){window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp,{once:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{once:!0})}removeDragListeners(){window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}var N0=Object.create,_m=Object.defineProperty,B0=Object.getOwnPropertyDescriptor,Am=(s,u)=>(u=Symbol[s])?u:Symbol.for("Symbol."+s),Xu=s=>{throw TypeError(s)},L0=(s,u,f)=>u in s?_m(s,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):s[u]=f,Y0=s=>[,,,N0((s==null?void 0:s[Am("metadata")])??null)],Mm=["class","method","getter","setter","accessor","field","value","get","set"],Om=s=>s!==void 0&&typeof s!="function"?Xu("Function expected"):s,q0=(s,u,f,c,h)=>({kind:Mm[s],name:u,metadata:c,addInitializer:d=>f._?Xu("Already initialized"):h.push(Om(d||null))}),j0=(s,u)=>L0(u,Am("metadata"),s[3]),X0=(s,u,f,c)=>{for(var h=0,d=s[u>>1],y=d&&d.length;h<y;h++)d[h].call(f);return c},$e=(s,u,f,c,h,d)=>{for(var y,v,E,b,H=u&7,B=!1,et=!1,mt=2,Et=Mm[H+5],Dt=s[mt]||(s[mt]=[]),Xt=(h=h.prototype,B0(h,f)),Mt=c.length-1;Mt>=0;Mt--)E=q0(H,f,v={},s[3],Dt),E.static=B,E.private=et,b=E.access={has:Jt=>f in Jt},b.get=Jt=>Jt[f],y=(0,c[Mt])(Xt[Et],E),v._=1,Om(y)&&(Xt[Et]=y);return Xt&&_m(h,f,Xt),h},Hf=(s,u,f)=>u.has(s)||Xu("Cannot "+f),w=(s,u,f)=>(Hf(s,u,"read from private field"),f?f.call(s):u.get(s)),jt=(s,u,f)=>u.has(s)?Xu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(s):u.set(s,f),$t=(s,u,f,c)=>(Hf(s,u,"write to private field"),u.set(s,f),f),Q=(s,u,f)=>(Hf(s,u,"access private method"),f),zm,xm,Dm,Cm,wm,Rm,Um,Hm,Nm,Bm,Df,bt,Vl,gl,pl,Nu,Nf,Gu,un,da,ke,Re,Bu,Wt,vt,X,ln,Bf,vl,Qu,Lm,Zu,Ym,qm,Lf,Kl,si,Cf,jm,Xm,Gm,Qm,Lu,Zm,Vm,Km,Yu,cn,wf,be;function Jm(s){return xf(s)}function Je(s,u){const f=String(u.name);return function(...c){if(!this.capabilities.commands.has(f))throw new Ye(`ChatKit command "${String(f)}" is not available for the "${this.profile}" profile.`);return s.apply(this,c)}}class Ue extends(Df=HTMLElement,Bm=[Je],Nm=[Je],Hm=[Je],Um=[Je],Rm=[Je],wm=[Je],Cm=[Je],Dm=[Je],xm=[Je],zm=[Je],Df){constructor({profile:u}){super(),X0(be,5,this),jt(this,X),this.profile=void 0,this.capabilities=void 0,jt(this,bt),jt(this,Vl),jt(this,gl),jt(this,pl),jt(this,Nu),jt(this,Nf,!1),jt(this,Gu,!1),jt(this,un),jt(this,da,!1),jt(this,ke,this.attachShadow({mode:"open"})),jt(this,Re,new H0(w(this,ke),{onActivate:()=>Q(this,X,jm).call(this),onClose:()=>Q(this,X,Xm).call(this),onReply:f=>Q(this,X,Gm).call(this,f),onThreadSummaryActivate:f=>void Q(this,X,Qm).call(this,f)})),jt(this,Bu),jt(this,Wt,new Promise(f=>{$t(this,Bu,f)})),jt(this,vt,new s0({fetch:((...f)=>{var h;const c=((h=w(this,bt))==null?void 0:h.api)&&"fetch"in w(this,bt).api&&w(this,bt).api.fetch;return c?c(...f):fetch(...f)}),target:()=>{var f;return((f=w(this,gl))==null?void 0:f.contentWindow)??null},targetOrigin:window.location.origin,handlers:{onFileInputClick:({inputAttributes:f})=>new Promise(c=>{const h=document.createElement("input");for(const[y,v]of Object.entries(f))h.setAttribute(y,String(v));const d=()=>{c(Array.from(h.files||[])),w(this,ke).contains(h)&&w(this,ke).removeChild(h)};h.addEventListener("cancel",d),h.addEventListener("change",d),w(this,ke).appendChild(h),h.click()}),onClientToolCall:async({name:f,params:c,id:h,tool_call_id:d})=>{var v;const y=(v=w(this,bt))==null?void 0:v.onClientTool;return y||Q(this,X,ln).call(this,new Ye("No handler for client tool calls. You'll need to add onClientTool to your ChatKit options.")),y({name:f,params:c,id:h,tool_call_id:d})},onWidgetAction:async({action:f,widgetItem:c})=>{var d,y;const h=(y=(d=w(this,bt))==null?void 0:d.widgets)==null?void 0:y.onAction;return h||Q(this,X,ln).call(this,new Ye("No handler for widget actions. You'll need to add widgets.onAction to your ChatKit options.")),h(f,c)},onEntitySearch:async({query:f})=>{var c,h,d;return((d=(h=(c=w(this,bt))==null?void 0:c.entities)==null?void 0:h.onTagSearch)==null?void 0:d.call(h,f))??[]},onEntityClick:async({entity:f})=>{var c,h,d;return(d=(h=(c=w(this,bt))==null?void 0:c.entities)==null?void 0:h.onClick)==null?void 0:d.call(h,f)},onEntityPreview:async({entity:f})=>{var c,h,d;return((d=(h=(c=w(this,bt))==null?void 0:c.entities)==null?void 0:h.onRequestPreview)==null?void 0:d.call(h,f))??{preview:null}},onGetClientSecret:async f=>((!w(this,bt)||!("getClientSecret"in w(this,bt).api)||!w(this,bt).api.getClientSecret)&&Q(this,X,ln).call(this,new Ye("Could not refresh the session because ChatKitOptions.api.getClientSecret is not configured.")),w(this,bt).api.getClientSecret(f??null)),onAddMetadataToRequest:({op:f,params:c})=>{throw new Ye("ChatKit: onAddMetadataToRequest is unimplemented.")}}})),jt(this,Lu,()=>{Q(this,X,Kl).call(this,!1)}),jt(this,Yu,()=>{var f;this.dataset.loaded="true",this.dispatchEvent(new CustomEvent("chatkit.ready",{bubbles:!0,composed:!0})),(f=w(this,Bu))==null||f.call(this)}),jt(this,cn,!1),this.profile=u,this.capabilities=nm(u)}setProfile(u){this.profile=u,this.capabilities=nm(u)}connectedCallback(){w(this,Re).connect();const u=document.createElement("style");u.textContent=`
|
|
55
|
-
:host {
|
|
56
|
-
display: block;
|
|
57
|
-
position: relative;
|
|
58
|
-
height: 100%;
|
|
59
|
-
width: 100%;
|
|
60
|
-
overflow: visible;
|
|
61
|
-
}
|
|
62
|
-
:host([data-display-mode="pet"]) {
|
|
63
|
-
display: contents;
|
|
64
|
-
}
|
|
65
|
-
:host([data-chat-minimized-to-pet="true"]) {
|
|
66
|
-
display: contents;
|
|
67
|
-
}
|
|
68
|
-
.ck-iframe {
|
|
69
|
-
border: none;
|
|
70
|
-
position: absolute;
|
|
71
|
-
inset: 0;
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 100%;
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
color-scheme: light only;
|
|
76
|
-
}
|
|
77
|
-
.ck-wrapper {
|
|
78
|
-
position: absolute;
|
|
79
|
-
inset: 0;
|
|
80
|
-
width: 100%;
|
|
81
|
-
height: 100%;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
opacity: 0;
|
|
84
|
-
}
|
|
85
|
-
.ck-launcher-close {
|
|
86
|
-
display: none;
|
|
87
|
-
}
|
|
88
|
-
:host([data-display-mode="pet"]) .ck-wrapper {
|
|
89
|
-
position: fixed;
|
|
90
|
-
inset: auto 16px 16px auto;
|
|
91
|
-
width: min(420px, calc(100vw - 32px));
|
|
92
|
-
height: min(720px, calc(100vh - 32px));
|
|
93
|
-
max-height: calc(100vh - 32px);
|
|
94
|
-
overflow: visible;
|
|
95
|
-
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
96
|
-
border-radius: 18px;
|
|
97
|
-
background: Canvas;
|
|
98
|
-
box-shadow:
|
|
99
|
-
0 24px 80px rgba(15, 23, 42, 0.22),
|
|
100
|
-
0 0 0 1px rgba(15, 23, 42, 0.04);
|
|
101
|
-
opacity: 0;
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
transform: translateY(12px) scale(0.98);
|
|
104
|
-
transition:
|
|
105
|
-
opacity 160ms ease,
|
|
106
|
-
transform 160ms ease;
|
|
107
|
-
z-index: 39;
|
|
108
|
-
}
|
|
109
|
-
:host([data-display-mode="pet"][data-chat-open="true"]) .ck-wrapper {
|
|
110
|
-
opacity: 1;
|
|
111
|
-
pointer-events: auto;
|
|
112
|
-
transform: translateY(0) scale(1);
|
|
113
|
-
}
|
|
114
|
-
:host([data-display-mode="pet"]) .ck-iframe {
|
|
115
|
-
border-radius: inherit;
|
|
116
|
-
}
|
|
117
|
-
:host([data-display-mode="pet"]) .ck-launcher-close {
|
|
118
|
-
display: inline-flex;
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: -10px;
|
|
121
|
-
right: -10px;
|
|
122
|
-
z-index: 2;
|
|
123
|
-
width: 28px;
|
|
124
|
-
height: 28px;
|
|
125
|
-
align-items: center;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
border: 1px solid rgba(148, 163, 184, 0.45);
|
|
128
|
-
border-radius: 999px;
|
|
129
|
-
background: rgba(255, 255, 255, 0.96);
|
|
130
|
-
color: #475569;
|
|
131
|
-
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
132
|
-
cursor: pointer;
|
|
133
|
-
font: inherit;
|
|
134
|
-
font-size: 0;
|
|
135
|
-
line-height: 1;
|
|
136
|
-
}
|
|
137
|
-
:host([data-display-mode="pet"]) .ck-launcher-close::before,
|
|
138
|
-
:host([data-display-mode="pet"]) .ck-launcher-close::after {
|
|
139
|
-
content: '';
|
|
140
|
-
position: absolute;
|
|
141
|
-
top: 50%;
|
|
142
|
-
left: 50%;
|
|
143
|
-
width: 14px;
|
|
144
|
-
height: 2px;
|
|
145
|
-
border-radius: 999px;
|
|
146
|
-
background: currentColor;
|
|
147
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
148
|
-
}
|
|
149
|
-
:host([data-display-mode="pet"]) .ck-launcher-close::after {
|
|
150
|
-
transform: translate(-50%, -50%) rotate(-45deg);
|
|
151
|
-
}
|
|
152
|
-
:host([data-display-mode="pet"]) .ck-launcher-close:hover {
|
|
153
|
-
background: #fff;
|
|
154
|
-
color: #0f172a;
|
|
155
|
-
}
|
|
156
|
-
:host([data-color-scheme="dark"]) .ck-iframe {
|
|
157
|
-
color-scheme: dark only;
|
|
158
|
-
}
|
|
159
|
-
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-wrapper {
|
|
160
|
-
border-color: rgba(148, 163, 184, 0.28);
|
|
161
|
-
background: #020617;
|
|
162
|
-
box-shadow:
|
|
163
|
-
0 24px 80px rgba(0, 0, 0, 0.5),
|
|
164
|
-
0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
165
|
-
}
|
|
166
|
-
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-launcher-close {
|
|
167
|
-
background: rgba(15, 23, 42, 0.88);
|
|
168
|
-
border-color: rgba(148, 163, 184, 0.32);
|
|
169
|
-
color: #cbd5e1;
|
|
170
|
-
}
|
|
171
|
-
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-launcher-close:hover {
|
|
172
|
-
background: #1e293b;
|
|
173
|
-
color: #f8fafc;
|
|
174
|
-
}
|
|
175
|
-
:host([data-loaded="true"]) .ck-wrapper {
|
|
176
|
-
opacity: 1;
|
|
177
|
-
}
|
|
178
|
-
:host([data-chat-minimized-to-pet="true"]) .ck-wrapper {
|
|
179
|
-
opacity: 0;
|
|
180
|
-
pointer-events: none;
|
|
181
|
-
visibility: hidden;
|
|
182
|
-
}
|
|
183
|
-
:host([data-display-mode="pet"]:not([data-chat-open="true"])) .ck-wrapper {
|
|
184
|
-
opacity: 0;
|
|
185
|
-
}
|
|
186
|
-
@media (max-width: 520px) {
|
|
187
|
-
:host([data-display-mode="pet"]) .ck-wrapper {
|
|
188
|
-
inset: auto 8px 8px 8px;
|
|
189
|
-
width: auto;
|
|
190
|
-
height: min(680px, calc(100vh - 16px));
|
|
191
|
-
max-height: calc(100vh - 16px);
|
|
192
|
-
border-radius: 16px;
|
|
193
|
-
}
|
|
194
|
-
:host([data-display-mode="pet"]) .ck-launcher-close {
|
|
195
|
-
top: -8px;
|
|
196
|
-
right: 8px;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
`;const f=document.createElement("iframe");f.className="ck-iframe",f.name="chatkit",f.role="presentation",f.tabIndex=0,f.setAttribute("allowtransparency","true"),f.setAttribute("frameborder","0"),f.setAttribute("scrolling","no"),f.setAttribute("allow","clipboard-read; clipboard-write"),$t(this,gl,f);const c=document.createElement("div");c.className="ck-wrapper",c.appendChild(f),$t(this,pl,c);const h=document.createElement("button");h.className="ck-launcher-close",h.type="button",h.setAttribute("aria-label","Close chat"),h.addEventListener("click",w(this,Lu)),c.appendChild(h),$t(this,Nu,h),w(this,ke).append(u),w(this,vt).on("left_header_icon_click",()=>{var d,y,v;(v=(y=(d=w(this,bt))==null?void 0:d.header)==null?void 0:y.leftAction)==null||v.onClick()}),w(this,vt).on("right_header_icon_click",()=>{var d,y,v;(v=(y=(d=w(this,bt))==null?void 0:d.header)==null?void 0:y.rightAction)==null||v.onClick()}),w(this,vt).on("public_event",([d,y])=>{if(d==="log"){const v=U0(y);v&&w(this,Re).setThreadSummary(v.summary)}else d==="response.start"?w(this,Re).setThreadSummaryStatus("running"):d==="response.end"?w(this,Re).setThreadSummaryStatus("completed"):d==="response.stop"&&w(this,Re).setThreadSummaryStatus("completed");if(this.capabilities.events.has(d)){if(d==="error"&&"error"in y){const v=n0(y.error);if(this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:v}})),v instanceof Ye)throw v;return}this.dispatchEvent(new CustomEvent(`chatkit.${d}`,{detail:y}))}}),w(this,vt).on("pet_state_change",d=>{const y=D0(d);y&&w(this,Re).setState(y.state)}),w(this,vt).on("pet_options_change",d=>{const y=C0(d);y&&((!w(this,da)||y.pet===null)&&$t(this,da,!1),$t(this,un,y.pet),Q(this,X,Cf).call(this))}),w(this,vt).on("chat_minimize_change",d=>{const y=typeof d=="object"&&d!==null&&"minimized"in d&&d.minimized===!0;y&&!Q(this,X,Zu).call(this)||(Q(this,X,si).call(this,y),y&&Q(this,X,Kl).call(this,!1))}),w(this,vt).on("unmount",()=>{w(this,pl)&&w(this,ke).contains(w(this,pl))&&(w(this,ke).removeChild(w(this,pl)),$t(this,pl,void 0),$t(this,gl,void 0))}),w(this,vt).on("capabilities_profile_change",({profile:d})=>{this.setProfile(d)}),f.addEventListener("load",w(this,Yu),{once:!0});try{Q(this,X,wf).call(this)}catch(d){console.error(d),Q(this,X,ln).call(this,d instanceof Error?d:new Ye("Failed to initialize ChatKit"))}}disconnectedCallback(){var u,f;(u=w(this,gl))==null||u.removeEventListener("load",w(this,Yu)),(f=w(this,Nu))==null||f.removeEventListener("click",w(this,Lu)),w(this,vt).disconnect(),w(this,Re).destroy()}applySanitizedOptions(u){$t(this,bt,u),$t(this,da,!1),w(this,Re).setLocale(u.locale),Q(this,X,Cf).call(this),w(this,cn)?(Q(this,X,Bf).call(this,w(this,bt)),w(this,Wt).then(()=>{w(this,vt).commands.setOptions(Jm(Q(this,X,Lf).call(this,u)))})):Q(this,X,wf).call(this)}setOptions(u){try{const f=this.sanitizeOptions(u);Q(this,X,Km).call(this,f),this.applySanitizedOptions(f)}catch(f){Q(this,X,ln).call(this,f instanceof Error?f:new Ye("Failed to parse options"))}}async focusComposer(){var u,f;await w(this,Wt),(u=w(this,gl))==null||u.focus(),await((f=w(this,vt))==null?void 0:f.commands.focusComposer())}async fetchUpdates(){var u;await w(this,Wt),await((u=w(this,vt))==null?void 0:u.commands.fetchUpdates())}async sendUserMessage(u){var f;await w(this,Wt),await((f=w(this,vt))==null?void 0:f.commands.sendUserMessage(u))}async setComposerValue(u){var f;await w(this,Wt),await((f=w(this,vt))==null?void 0:f.commands.setComposerValue(u))}async setThreadId(u){var f;await w(this,Wt),await((f=w(this,vt))==null?void 0:f.commands.setThreadId({threadId:u}))}async shareThread(){var u;return await w(this,Wt),(u=w(this,vt))==null?void 0:u.commands.shareThread()}async sendCustomAction(u,f){var c;return await w(this,Wt),(c=w(this,vt))==null?void 0:c.commands.sendCustomAction({action:u,itemId:f})}async showHistory(){var u;return await w(this,Wt),(u=w(this,vt))==null?void 0:u.commands.showHistory()}async hideHistory(){var u;return await w(this,Wt),(u=w(this,vt))==null?void 0:u.commands.hideHistory()}async setTrainingOptOut(u){var f;return await w(this,Wt),(f=w(this,vt))==null?void 0:f.commands.setTrainingOptOut({value:u})}}be=Y0(Df);bt=new WeakMap;Vl=new WeakMap;gl=new WeakMap;pl=new WeakMap;Nu=new WeakMap;Nf=new WeakMap;Gu=new WeakMap;un=new WeakMap;da=new WeakMap;ke=new WeakMap;Re=new WeakMap;Bu=new WeakMap;Wt=new WeakMap;vt=new WeakMap;X=new WeakSet;ln=function(s){throw this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:s}})),s};Bf=function(s){var u;this.dataset.colorScheme=typeof s.theme=="string"?s.theme:((u=s.theme)==null?void 0:u.colorScheme)??"light",this.dataset.displayMode=Q(this,X,vl).call(this,s),Q(this,X,vl).call(this,s)!=="pet"&&Q(this,X,Kl).call(this,!1)};vl=function(s=w(this,bt)){return(s==null?void 0:s.displayMode)==="pet"?"pet":"chat"};Qu=function(s=w(this,bt)){return s?Q(this,X,vl).call(this,s)==="pet"&&!ci(s.pet??null)?!0:s.pet??null:null};Lm=function(s){if(!s)return s;const u=ci(Q(this,X,Qu).call(this)??null);return u?s===!0?{position:u.position}:s.position?{...s,position:{...u.position,...s.position,boundsPadding:s.position.boundsPadding??u.position.boundsPadding,pin:"pin"in s.position?s.position.pin:u.position.pin}}:{...s,position:u.position}:s};Zu=function(){if(w(this,da))return null;let s;return w(this,un)!==void 0?s=Q(this,X,Lm).call(this,w(this,un)):s=Q(this,X,Qu).call(this),Q(this,X,vl).call(this)==="pet"&&!ci(s??null)&&(s=!0),Q(this,X,qm).call(this,s)};Ym=function(s){try{const u=new URL(w(this,Vl)??window.location.href,window.location.origin);return new URL(s,u).toString()}catch{return s}};qm=function(s){const u=ci(s??null);return u?{character:{...u.character,src:Q(this,X,Ym).call(this,u.character.src)},position:u.position,behavior:u.behavior,ariaLabel:u.ariaLabel,imageRendering:u.imageRendering}:null};Lf=function(s){const u=Q(this,X,Qu).call(this,s);if(u===(s.pet??null))return s;const f={...s};return u===null?delete f.pet:f.pet=u,f};Kl=function(s){$t(this,Nf,s),s?this.dataset.chatOpen="true":delete this.dataset.chatOpen};si=function(s){const u=s&&!!Q(this,X,Zu).call(this);$t(this,Gu,u),u?this.dataset.chatMinimizedToPet="true":delete this.dataset.chatMinimizedToPet};Cf=function(){var u;const s=Q(this,X,Zu).call(this);w(this,Re).setOptions(s,(u=w(this,bt))==null?void 0:u.theme),s||Q(this,X,si).call(this,!1)};jm=function(){if(w(this,Gu)){Q(this,X,si).call(this,!1),Q(this,X,vl).call(this)==="pet"&&Q(this,X,Kl).call(this,!0),w(this,Wt).then(()=>this.focusComposer()).catch(()=>{});return}Q(this,X,vl).call(this)==="pet"&&(Q(this,X,Kl).call(this,!0),w(this,Wt).then(()=>this.focusComposer()).catch(()=>{}))};Xm=function(){$t(this,da,!0),$t(this,un,null),Q(this,X,si).call(this,!1),Q(this,X,Kl).call(this,!1),w(this,Re).setOptions(null),Q(this,X,vl).call(this)!=="pet"&&w(this,Wt).then(()=>w(this,vt).commands.setPetEnabled({enabled:!1})).catch(()=>{})};Gm=async function(s){await this.sendUserMessage({text:s})};Qm=async function(s){Q(this,X,vl).call(this)==="pet"&&Q(this,X,Kl).call(this,!0),await this.setThreadId(s),await this.focusComposer()};Lu=new WeakMap;Zm=function(){if(!w(this,Vl))throw new Ye("ChatKit frameUrl is not configured. Provide it via setOptions({ frameUrl }) before mounting.");return w(this,Vl)};Vm=function(s){if(w(this,cn)&&w(this,Vl)&&w(this,Vl)!==s)throw new Ye("ChatKit frameUrl cannot be changed after initialization. Create a new element to use a different URL.");$t(this,Vl,s)};Km=function(s){if(!("frameUrl"in s))return;const u=s.frameUrl;if(delete s.frameUrl,u!=null){if(typeof u!="string"||u.trim()==="")throw new Ye("ChatKit frameUrl must be a non-empty string.");Q(this,X,Vm).call(this,u)}};Yu=new WeakMap;cn=new WeakMap;wf=function(){if(w(this,cn)||!w(this,gl)||!w(this,bt))return;$t(this,cn,!0),Q(this,X,Bf).call(this,w(this,bt));const s=new URL(Q(this,X,Zm).call(this),window.location.origin);w(this,vt).setTargetOrigin(s.origin),s.hash=a0({options:Jm(Q(this,X,Lf).call(this,w(this,bt))),referrer:window.location.origin,profile:this.profile}),w(this,vt).connect(),w(this,gl).src=s.toString(),w(this,pl)&&w(this,ke).append(w(this,pl))};$e(be,1,"focusComposer",Bm,Ue);$e(be,1,"fetchUpdates",Nm,Ue);$e(be,1,"sendUserMessage",Hm,Ue);$e(be,1,"setComposerValue",Um,Ue);$e(be,1,"setThreadId",Rm,Ue);$e(be,1,"shareThread",wm,Ue);$e(be,1,"sendCustomAction",Cm,Ue);$e(be,1,"showHistory",Dm,Ue);$e(be,1,"hideHistory",xm,Ue);$e(be,1,"setTrainingOptOut",zm,Ue);j0(be,Ue);class G0 extends Ue{constructor(){super({profile:"chatkit"})}sanitizeOptions(u){var f;return(f=u.threadItemActions)==null||delete f.share,u}}function Q0(s="xpertai-chatkit"){"customElements"in globalThis&&(customElements.get(s)||customElements.define(s,G0))}Q0();const km={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.ready":"onReady","chatkit.effect":"onEffect"},Z0=Object.keys(km),V0=Nt.forwardRef(function({control:u,...f},c){const h=Nt.useRef(null);return Nt.useLayoutEffect(()=>{const d=h.current;if(!d)return;if(customElements.get("xpertai-chatkit")){d.setOptions(u.options);return}let y=!0;return customElements.whenDefined("xpertai-chatkit").then(()=>{y&&d.setOptions(u.options)}),()=>{y=!1}},[u.options]),Nt.useEffect(()=>{const d=h.current;if(!d)return;const y=new AbortController;for(const v of Z0)d.addEventListener(v,E=>{const b=km[v],H=u.handlers[b];typeof H=="function"&&H(E.detail)},{signal:y.signal});return()=>{y.abort()}},[u.handlers]),Pt.jsx("xpertai-chatkit",{ref:d=>{h.current=d,u.setInstance(d),typeof c=="function"?c(d):c&&(c.current=d),h.current},...f})}),K0=["office_powerpoint_snapshot","office_powerpoint_select_slide","office_powerpoint_add_slide","office_powerpoint_delete_slide","office_powerpoint_add_text_box","office_powerpoint_add_shape","office_powerpoint_update_shape","office_powerpoint_delete_shape","office_powerpoint_insert_image"],J0=new Set(K0);function k0(s){return J0.has(s)}const W0=80;function We(s){return typeof s=="string"&&s.trim()?s.trim():void 0}function dm(s,u){const f=We(s);if(!f)throw new Error(`${u} must be a non-empty string.`);return f}function qe(s){return typeof s=="number"&&Number.isFinite(s)?s:void 0}function wu(s,u){const f=qe(s);if(f===void 0)throw new Error(`${u} must be a finite number.`);return f}function Vu(s){if(!(typeof s!="number"||!Number.isInteger(s)||s<=0))return s}function mm(s,u){const f=Vu(s);if(f===void 0)throw new Error(`${u} must be a positive integer.`);return f}function ym(s,u){if(s!==!0)throw new Error(`${u} requires confirm: true.`)}function $0(s){return s-1}function Ru(s,u){return Vu(s.slideIndex)??u??1}function Ef(s){return{left:qe(s.left),top:qe(s.top),width:qe(s.width),height:qe(s.height)}}function Tf(s){return{fillColor:We(s.fillColor),lineColor:We(s.lineColor),text:We(s.text),name:We(s.name)}}function gm(s){return{slideIndex:Vu(s.slideIndex),shapeId:We(s.shapeId),shapeName:We(s.shapeName)}}function pm(s){return Object.fromEntries(Object.entries(s).filter(u=>u[1]!==void 0))}function F0(s,u){u.left!==void 0&&(s.left=u.left),u.top!==void 0&&(s.top=u.top),u.width!==void 0&&(s.width=u.width),u.height!==void 0&&(s.height=u.height)}function _f(s,u){var c,h;const f=s;u.name&&(s.name=u.name),u.fillColor&&((h=(c=f.fill)==null?void 0:c.setSolidColor)==null||h.call(c,u.fillColor)),u.lineColor&&f.lineFormat&&(f.lineFormat.color=u.lineColor),u.text!==void 0&&(s.textFrame.textRange.text=u.text)}function Uu(s){return{id:s.id,name:s.name,type:s.type,left:s.left,top:s.top,width:s.width,height:s.height}}function Hu(s){s.load("id,name,type,left,top,width,height")}async function en(){var s,u;return(u=(s=globalThis.Office)==null?void 0:s.context)!=null&&u.document?new Promise(f=>{Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,c=>{if(c.status!==Office.AsyncResultStatus.Succeeded){f([]);return}const h=c.value;f(Array.isArray(h.slides)?h.slides:[])})}):[]}async function vm(s){var u,f;if(!((f=(u=globalThis.Office)==null?void 0:u.context)!=null&&f.document))throw new Error("Office.context.document is unavailable.");await new Promise((c,h)=>{Office.context.document.goToByIdAsync(s,Office.GoToType.Index,{selectionMode:Office.SelectionMode.None},d=>{var y;d.status===Office.AsyncResultStatus.Succeeded?c():h(new Error(((y=d.error)==null?void 0:y.message)||"Failed to select slide."))})})}async function I0(s,u){var f,c;if(!((c=(f=globalThis.Office)==null?void 0:f.context)!=null&&c.document))throw new Error("Office.context.document is unavailable.");await new Promise((h,d)=>{Office.context.document.setSelectedDataAsync(s,u,y=>{var v;y.status===Office.AsyncResultStatus.Succeeded?h():d(new Error(((v=y.error)==null?void 0:v.message)||"Failed to insert image."))})})}function P0(s){const u=";base64,",f=s.indexOf(u);return f===-1?s:s.slice(f+u.length)}function tv(){var s,u,f,c;return{host:(u=(s=globalThis.Office)==null?void 0:s.context)==null?void 0:u.host,platform:(c=(f=globalThis.Office)==null?void 0:f.context)==null?void 0:c.platform}}function ev(){var u,f;const s=(f=(u=globalThis.Office)==null?void 0:u.context)==null?void 0:f.requirements;return{powerpointApi:{"1.1":!!(s!=null&&s.isSetSupported("PowerPointApi","1.1")),"1.3":!!(s!=null&&s.isSetSupported("PowerPointApi","1.3")),"1.4":!!(s!=null&&s.isSetSupported("PowerPointApi","1.4")),"1.6":!!(s!=null&&s.isSetSupported("PowerPointApi","1.6"))},imageCoercion:{"1.1":!!(s!=null&&s.isSetSupported("ImageCoercion","1.1"))}}}function Rf(s){return s.presentation.slides}async function ii(s,u){return Rf(s).getItemAt($0(u))}async function Sm(s,u){const f=await ii(s,u.slideIndex??1);if(u.shapeId)return f.shapes.getItem(u.shapeId);const c=u.shapeName;if(!c)throw new Error("shapeId or shapeName is required.");const h=f.shapes;h.load("items/id,items/name"),await s.sync();const d=h.items.find(y=>y.name===c);if(!d)throw new Error(`Shape not found: ${c}`);return h.getItem(d.id)}var ui;class lv{constructor(u={}){rf(this,ui);this.host="PowerPoint",hf(this,ui,u.maxSnapshotShapes??W0)}supports(u){return k0(u)}async execute(u,f){switch(u){case"office_powerpoint_snapshot":return this.snapshot(f);case"office_powerpoint_select_slide":return this.selectSlide(f);case"office_powerpoint_add_slide":return this.addSlide(f);case"office_powerpoint_delete_slide":return this.deleteSlide(f);case"office_powerpoint_add_text_box":return this.addTextBox(f);case"office_powerpoint_add_shape":return this.addShape(f);case"office_powerpoint_update_shape":return this.updateShape(f);case"office_powerpoint_delete_shape":return this.deleteShape(f);case"office_powerpoint_insert_image":return this.insertImage(f)}}async snapshot(u){var y;const f=await en(),c=(y=f[0])==null?void 0:y.index,h=Ru(u,c),d=Vu(u.maxShapes)??zu(this,ui);return PowerPoint.run(async v=>{const E=Rf(v);E.load("items/id");const b=await ii(v,h);b.load("id"),b.shapes.load("items"),await v.sync();const H=b.shapes.items.slice(0,d);return H.forEach(Hu),await v.sync(),{host:tv(),requirements:ev(),slideCount:E.items.length,selectedSlides:f,slide:{index:h,id:b.id,shapeCount:b.shapes.items.length,shapes:H.map(Uu),truncated:b.shapes.items.length>H.length}}})}async selectSlide(u){const f=mm(u.slideIndex,"slideIndex");return await vm(f),{slideIndex:f}}async addSlide(u){const f=We(u.slideMasterId),c=We(u.layoutId),h={...f?{slideMasterId:f}:{},...c?{layoutId:c}:{}};return PowerPoint.run(async d=>{const y=Rf(d);return Object.keys(h).length?y.add(h):y.add(),y.load("items/id"),await d.sync(),{slideIndex:y.items.length,slideCount:y.items.length}})}async deleteSlide(u){ym(u.confirm,"Deleting a slide");const f=mm(u.slideIndex,"slideIndex");return PowerPoint.run(async c=>((await ii(c,f)).delete(),await c.sync(),{slideIndex:f,deleted:!0}))}async addTextBox(u){var v;const f=await en(),c=Ru(u,(v=f[0])==null?void 0:v.index),h=dm(u.text,"text"),d=Ef(u),y=Tf(u);return PowerPoint.run(async E=>{const H=(await ii(E,c)).shapes.addTextBox(h,pm(d));return _f(H,y),Hu(H),await E.sync(),{slideIndex:c,shape:Uu(H)}})}async addShape(u){var v;const f=await en(),c=Ru(u,(v=f[0])==null?void 0:v.index),h=We(u.shapeType)??"Rectangle",d=Ef(u),y=Tf(u);return PowerPoint.run(async E=>{const H=(await ii(E,c)).shapes.addGeometricShape(h,pm(d));return _f(H,y),Hu(H),await E.sync(),{slideIndex:c,shape:Uu(H)}})}async updateShape(u){var y;const f=gm(u),c=await en();f.slideIndex=f.slideIndex??((y=c[0])==null?void 0:y.index)??1;const h=Ef(u),d=Tf(u);return PowerPoint.run(async v=>{const E=await Sm(v,f);return F0(E,h),_f(E,d),Hu(E),await v.sync(),{slideIndex:f.slideIndex,shape:Uu(E)}})}async deleteShape(u){var h;ym(u.confirm,"Deleting a shape");const f=gm(u),c=await en();return f.slideIndex=f.slideIndex??((h=c[0])==null?void 0:h.index)??1,PowerPoint.run(async d=>((await Sm(d,f)).delete(),await d.sync(),{slideIndex:f.slideIndex,shapeId:f.shapeId,shapeName:f.shapeName,deleted:!0}))}async insertImage(u){var y;const f=await en(),c=Ru(u,(y=f[0])==null?void 0:y.index),h=P0(dm(u.base64??u.dataUrl,"base64"));await vm(c);const d={coercionType:Office.CoercionType.Image,...qe(u.left)!==void 0?{imageLeft:wu(u.left,"left")}:{},...qe(u.top)!==void 0?{imageTop:wu(u.top,"top")}:{},...qe(u.width)!==void 0?{imageWidth:wu(u.width,"width")}:{},...qe(u.height)!==void 0?{imageHeight:wu(u.height,"height")}:{}};return await I0(h,d),{slideIndex:c,inserted:!0,width:qe(u.width),height:qe(u.height)}}}ui=new WeakMap;function Wm(s={}){return new lv(s)}var an;class av{constructor(u){rf(this,an);hf(this,an,u)}supports(u){return zu(this,an).some(f=>f.supports(u))}async execute(u,f){const c=zu(this,an).find(h=>h.supports(u));if(!c)throw new Error(`Unknown Office tool: ${u}`);return c.execute(u,f)}}an=new WeakMap;function nv(s){return new av(s)}function iv(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)?s:{}}function Af(s,u,f){return{tool_call_id:s.tool_call_id??s.id,name:s.name,status:u,content:JSON.stringify(f)}}function uv(s){return s instanceof Error?s.message:String(s)}function cv(s={}){const u=s.registry??nv([s.adapter??Wm()]);return async f=>{if(!u.supports(f.name))return Af(f,"error",{ok:!1,error:`Unknown Office tool: ${f.name}`});try{const c=await u.execute(f.name,iv(f.params));return Af(f,"success",{ok:!0,result:c})}catch(c){return Af(f,"error",{ok:!1,error:uv(c)})}}}const sv="/api/create-session";async function $m(s){const u=await fetch(sv,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(s?{currentClientSecret:s}:{})}),f=await u.json().catch(()=>({}));if(!u.ok)throw new Error(f.error||`HTTP ${u.status}`);if(!f.client_secret||!f.apiUrl||!f.frameUrl||!f.xpertId)throw new Error("ChatKit session response is missing required fields.");return f}async function fv(){var u;if(!((u=globalThis.Office)!=null&&u.onReady))return{isOfficeHost:!1};const s=await Office.onReady();return{host:s.host,platform:s.platform,isOfficeHost:!0}}function Fm(s){return s instanceof Error?s.message:String(s)}function ov(){return navigator.language.toLowerCase().startsWith("zh")?"zh-Hans":"en"}function rv({initialSession:s}){const[u,f]=Nt.useState(s),[c,h]=Nt.useState(null),d=Nt.useMemo(()=>cv({adapter:Wm()}),[]),y=Nt.useMemo(()=>({frameUrl:u.frameUrl,locale:ov(),api:{apiUrl:u.apiUrl,xpertId:u.xpertId,getClientSecret:async E=>{const b=E?await $m(E):u;return f(b),b.organizationId?{secret:b.client_secret,organizationId:b.organizationId}:b.client_secret}},theme:{colorScheme:"light",radius:"round",density:"compact",typography:{baseSize:14,fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},color:{accent:{primary:"#0f766e",level:1}}},composer:{placeholder:"Ask XpertAI to edit this presentation...",attachments:{enabled:!0}},startScreen:{greeting:"PowerPoint Copilot is ready.",prompts:[{icon:"sparkle",label:"Draft an outline",prompt:"Create a 5-slide outline for this presentation."},{icon:"square-text",label:"Add a slide",prompt:"Add a concise summary slide after the current slide."}]},header:{enabled:!0,title:{enabled:!0,text:"XpertAI PowerPoint Copilot"}},onClientTool:async E=>{h(null);const b=await d(E);return b.status==="error"&&h(typeof b.content=="string"?b.content:"Office tool failed."),b},onError:E=>{h(Fm(E))}}),[d,u]),v=Yp(y);return Pt.jsxs("main",{className:"taskpane",children:[c?Pt.jsx("div",{className:"status-banner error",children:c}):null,Pt.jsx(V0,{control:v.control,className:"chatkit-shell"})]})}function hv(){const[s,u]=Nt.useState(null),[f,c]=Nt.useState(null),[h,d]=Nt.useState(null);return Nt.useEffect(()=>{let y=!1;async function v(){try{const[E,b]=await Promise.all([fv(),$m()]);y||(u(E),c(b))}catch(E){y||d(Fm(E))}}return v(),()=>{y=!0}},[]),h?Pt.jsx("main",{className:"taskpane centered",children:Pt.jsxs("div",{className:"status-card",children:[Pt.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),Pt.jsx("p",{children:h})]})}):!s||!f?Pt.jsx("main",{className:"taskpane centered",children:Pt.jsxs("div",{className:"status-card",children:[Pt.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),Pt.jsx("p",{children:"Connecting..."})]})}):Pt.jsx(rv,{initialSession:f})}const Im=document.getElementById("root");if(!Im)throw new Error("Missing #root element.");Hp.createRoot(Im).render(Pt.jsx(Nt.StrictMode,{children:Pt.jsx(hv,{})}));
|